News for hackers. Stuff that matters.
Re:Nim 1.6 by rgrmrts on Tuesday October 19, 2021 @07:54AM (#28917114)
I haven’t used nim outside of some hello world toying a few years back. Is compiling actually that fast? I thought the nim compiler compiled to C and then called gcc (or whatever system compiler), isn’t that slow in practice?

Any large nim projects that anyone can point me to would be helpful too, I’ll give the compiler a shot later today!

Re:Nim 1.6 by sp33der89 on Tuesday October 19, 2021 @08:01AM (#28917163)
The proof is in the link!

> Fast compile times: a full compiler rebuild takes ~12s (Rust: 15min, gcc: 30min+, clang: 1hr+, Go: 90s) [2].

The compiler is really big and self-hosted too.

For large nim projects check out: https://github.com/mratsim/Arraymancer or https://github.com/treeform/pixie (personal faves).

Re:Nim 1.6 by rgrmrts on Tuesday October 19, 2021 @08:04AM (#28917185)
Thanks for the links, I’ll check those out.
Re:Nim 1.6 by kevin_thibedeau on Tuesday October 19, 2021 @10:42AM (#28918617)
When using Nim for "scripting" it is recommended to use TCC for rapid compilation. It is genuinely fast.