News for hackers. Stuff that matters.
Re:Bringing a dynamic environment to C: My linker project by badpun on Friday October 28, 2022 @08:26AM (#33370516)
Also, the wave of programming languages started by Jonathan Blow talks (jai, zig etc.) all focus on very fast compile times even for large code bases. So, hopefully hot reload will be less of a need in a couple of years (when these languages mature).
Re:Bringing a dynamic environment to C: My linker project by pjmlp on Friday October 28, 2022 @08:41AM (#33370639)
It is kind of ironic that we had to wait 20 years to get back what Delphi, Eiffel and co have been offering for decades, in much more resource constrained hardware.
Re:Bringing a dynamic environment to C: My linker project by FpUser on Friday October 28, 2022 @10:52AM (#33372086)
I do not remember best in a class products / technologies often winning a race. It is mostly decided by suits for totally different reasons.
Re:Bringing a dynamic environment to C: My linker project by pjmlp on Friday October 28, 2022 @12:02PM (#33373204)
Or free beer stuff, where some developers rather suffer than pay for productive tooling.
Re:Bringing a dynamic environment to C: My linker project by stephc_int13 on Friday October 28, 2022 @09:25AM (#33371090)
Hot reload would still be an improvement on top of fast compile time, but yeah, the most important part is the compile/link part of the iteration.

Saving/reloading state could be done at the framework level, and it can't work in all cases (typically when memory layout is changed between iterations).

But I think that we collectively realized how slow compilers had become only recently (something like five years ago) because it was a slow boil frog situation.

Re:Bringing a dynamic environment to C: My linker project by exebook on Friday October 28, 2022 @05:38PM (#33378239)
Regardless how fast zig compiler self is, as far as it outsources code generation to llvm and linking to ld it will always be much slower than tinycc. Although recently I've noticed that if you ask llvm to generate and execute something they call bitcode, the code generation seemed faster.