logoalt Hacker News

onlyrealcuzzo • yesterday at 9:23 PM • 1 reply • view on HN

If you mentioned it in the main page, I didn't see it.

Something that I'm interested in: How fast is the compilation speed on large programs compared to Zig, C, Go?

My ideal language is safer than Rust (no deadlocks / livelocks, no stack overflow from recursion), is optimized for cache locality, but compiles faster than Zig.

This seems like it's close to 2/3.


Replies

Aardappel • yesterday at 10:00 PM

The current implementation goes thru an optimizing C compiler as backend for "shipping/production" builds, which will limit how fast we can make it compile.

That said, during development/iteration/testing, you can just the built-in JIT, which is based on libtcc (which is very fast), as don't as you don't mind a ~3x runtime slowdown.