6 ms·
Javascript has very different semantics from rust. It's not compiled for one thing, it's untyped, and it's executed by a dynamic interpreter that, in the case o
by archgoon 10y ago
Javascript has very different semantics from rust. It's not compiled for one thing, it's untyped, and it's executed by a dynamic interpreter that, in the case of v8, directly compiles hot code to native assembly.
- wcrichton 10y agoCounterpoint: I'm writing a language to do just that [1]. A lot of the basis from this post comes from my experiment in writing Javascript that compiles to Rust! [1] https://github.com/willcrichton/lia https://github.com/willcrichton/lia
- archgoon 10y agoLook forward to seeing the benchmarks. Good luck!