Re:Moving from TypeScript to Rust / WebAssembly
by wtetzner on Friday July 10, 2020 @10:17AM
(#23791684)
> OCaml is definitely much nicer to use than C and C++. But I don't find it that much nicer to use than Rust TBH.
I find OCaml quite a bit nicer to use than Rust, though in a lot of ways that's due to my preference for structuring code using modules and functors.
However, due to Cargo and the fact that Rust has good Windows support, I end up reaching for Rust much more often than I do for OCaml.
Re:Moving from TypeScript to Rust / WebAssembly
by fluffything on Monday July 13, 2020 @03:55AM
(#23818253)
Modules is pretty much the only OCaml feature I miss in Rust. I can work around functors with some effort in Rust, and hopefully GATs will make this even simpler (although I don't expect GATs to give Rust functors).
OCaml is great for the application level stuff, and also performs quite well in general. But for building fundamental parts of the stack in which perf is important (like the multi-threading runtime, the garbage collector, etc.) you need to drop down to C++, C, or Rust.
OCaml is definitely much nicer to use than C and C++. But I don't find it that much nicer to use than Rust TBH.