top | item 45846179 (no title) stefanos82 | 3 months ago Does TypeScript emit machine code? OCaml gives you this option, if you need it. discuss order hn newest a-french-anon|3 months ago Well, TS transpiles to JS which then runs on Node, aka V8, a native JIT compiler. So yes, I guess? pjmlp|3 months ago Kind of, given that V8 performance is never going to be as good as AOT compiled language, and JIT needs warmup time.It is no accident that famous JavaScript tools keep being rewritten into C++, Dart, Go and Rust. procaryote|3 months ago But they say "we use ocaml [because it has types]" not "[because it can emit machine code]" koakuma-chan|3 months ago I would go for Rust if I wanted machine code load replies (1)
a-french-anon|3 months ago Well, TS transpiles to JS which then runs on Node, aka V8, a native JIT compiler. So yes, I guess? pjmlp|3 months ago Kind of, given that V8 performance is never going to be as good as AOT compiled language, and JIT needs warmup time.It is no accident that famous JavaScript tools keep being rewritten into C++, Dart, Go and Rust.
pjmlp|3 months ago Kind of, given that V8 performance is never going to be as good as AOT compiled language, and JIT needs warmup time.It is no accident that famous JavaScript tools keep being rewritten into C++, Dart, Go and Rust.
procaryote|3 months ago But they say "we use ocaml [because it has types]" not "[because it can emit machine code]" koakuma-chan|3 months ago I would go for Rust if I wanted machine code load replies (1)
a-french-anon|3 months ago
pjmlp|3 months ago
It is no accident that famous JavaScript tools keep being rewritten into C++, Dart, Go and Rust.
procaryote|3 months ago
koakuma-chan|3 months ago