Hacker News new | ask | show | jobs
by 9214 1798 days ago
Have your read p.1 in the message you are replying to? Red does not support static linking, that's true, but you can link to a dynamic runtime library instead, without slow recompilation times... or use the interpreter, or encap the script, or fallback on Red/System. There are options to compensate for the lack of your preferred workflow.
1 comments

and people who want static compile have to wait 30 seconds to recompile, even if its one line code change
EDIT: i just read up on this. only the first time the static build is slow. later rebuilds are fast. just like every c/c++ program. the first time it has to build everything, all following times it only needs to rebuild the parts that changed.

this has already been explained, and i am only repeating it here for the casual HN reader, so they can follow along.

old comment, that makes no sense because getting a fast static build isn't even a problem. left here because that is what was responded to:

why do you need a static build after every change? isn't a dynamic one sufficient for testing?

why do you need a dynamic build after every change?
As someone naive to Red myself, I just read through the 5 different compile methods mentioned in the parent comment, and while that's quite a bit more than other languages offer, it seems to offer an interesting set of tradeoffs that balance the needs of different real-world scenarios against the language design.

It sounds like you're describing an edge case. To better understand it, what's the actual context around your requirement of static builds?

To be clear about my question, I am genuinely curious - perhaps there are workarounds that could be used, or optimizations that could be considered in the long term.

However (and critically), there is not nearly enough semantic detail in your arguments as currently presented for developers to potentially extract actionable work items from. This is why everyone else is annoyed.

So don't compile statically while in the dev phase, then switch and sacrifice one gigantic 30-second chunk of your life for release.

Any reason this wouldn't work?