Comment by hassleblad23

1 year ago

Zig seems to be a good choice here.

> Rust's compile times are slow. Zig's compile times are fast. This is not the only reason, but it's a big reason.

So why not something like OCaml that has fast compile times and a lot of nice features for writing compilers? (pattern matching, etc.)

  • I guess if you want to never limit yourself in terms of performance, you're kinda stuck with either C/C++/Zig/Rust/etc.

    GCed languages can be fast, probably even as fast as any of the aforementioned languages with enough engineering effort, but in terms of high performance, it's actually easier to write high performance code in the aforementioned languages rather than in a GCed language.

    • OCaml is fast enough for writing hypervisors, unikernels, networking drivers, powering all Jane Street's business.

  • The same reason why they're not self-hosting. They want compiler performance to be in the top C, C++, Rust, Zig tier. OCaml isn't slow, but at best it's in the second Java, C#, etc. tier.