3 ms·
There are what, 5+ rust javascript engines that claim to be production-ready? Bolting one of those on in place of spider monkey seems like a reasonable future d
by swiftcoder 6mo ago
There are what, 5+ rust javascript engines that claim to be production-ready? Bolting one of those on in place of spider monkey seems like a reasonable future direction
- mort96 6mo agoWhat do you mean by "production ready" here exactly? In a web browser context, the JS engine is expected to have a high performance optimising JIT compiler. Do the existing Rust JS engines have that?
- swiftcoder 6mo agoI honestly don't know, but they do say "production ready" on their marketing pages, so... For an example of what I mean, see JetCrab: https://jetcrab.com https://jetcrab.com
- mort96 6mo agoThat page says: > Complete JavaScript execution pipeline from source code parsing to bytecode execution. So it's a bytecode interpreter, not a JIT. It might still be production ready for a bunch of use cases. I may use it as a scripting layer for some pluggable piece of software or a game. I wouldn't consider it appropriate for a "production ready web browser" which intends to compete with Firefox and Chrome. EDIT: Also for some reason all its components are called v8_something? That's pretty off putting, you can't just take another project's name like that.. and from the author's Reddit comments it seems to be mostly AI slop anyway. I'm guessing Claude wrote the "production ready" part on the website, I wouldn't trust it.
- CryZe 6mo agoThis doesn't implement a JS engine, it's just a wrapper around boa.
- 8NNTt8z3QvLT8tp 6mo agoThere's something to be said for the security benefits of not having a JIT though. Especially if you've used Rust for the engine you should have pretty solid security.
- depr 6mo agoThey may be production-ready in some sense but they're not ready to be put in Firefox, and/or they are v8 bindings.
- nicoburns 6mo agoThey're all more than 10x slower than SpiderMonkey.
- siwatanejo 6mo agowait, Servo is a js engine? I thought it was only about rendering websites