Y
Hacker News
new
|
ask
|
show
|
jobs
by
stefanos82
224 days ago
Does TypeScript emit machine code? OCaml gives you this option, if you need it.
2 comments
a-french-anon
224 days ago
Well, TS transpiles to JS which then runs on Node, aka V8, a native JIT compiler. So yes, I guess?
link
pjmlp
224 days 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.
link
procaryote
224 days ago
But they say "we use ocaml [because it has types]" not "[because it can emit machine code]"
link
koakuma-chan
224 days ago
I would go for Rust if I wanted machine code
link