JavaScript engine written in Rust

https://github.com/Hans-Halverson/brimstone

25 points · 6 comments · view on lemmy.world

6 Comments

sik0fewl@lemmy.ca · 9 pts · 303d (1 reply)

This is interesting.

Compacting garbage collector, written in very unsafe Rust

innocentz3r0@programming.dev · 1 pts · 303d
[ removed ]
TehPers@beehaw.org · 4 pts · 303d

This is super cool! I love seeing these new implementations of JS. boa is another JS runtime written in Rust as well.

I'm curious how easy it is to embed this. Can I use it from another Rust project? Can I customize module loading behavior, or set limits on the runtime to limit CPU usage or memory usage or intercept network calls? Can I use it from a non-Rust project? Or is this intended to be a standalone JS runtime called from the CLI? I've been looking at Boa as a JS engine for one of my projects, but I'm open to checking out brimstone too if it'll work.

sugar_in_your_tea@sh.itjust.works · 2 pts · 303d (2 replies)

Would be cool to have a comparison with bun.

blazebra@programming.dev · 2 pts · 303d (1 reply)

And Deno

FizzyOrange@programming.dev · 2 pts · 303d

Bun uses JavaScriptCore. Deno uses V8.

But yes it would be good to see a comparison to JavascriptCore and V8.

blazebra@programming.dev · 1 pts · 303d

There’s many components which could be split out from this JS engine such as Regex.

I’d love to see how it passes all ECMA tests