• sik0fewl@lemmy.ca
    link
    fedilink
    arrow-up
    9
    ·
    2 months ago

    This is interesting.

    Compacting garbage collector, written in very unsafe Rust

  • TehPers@beehaw.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 months ago

    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.

      • FizzyOrange
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        Bun uses JavaScriptCore. Deno uses V8.

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

  • Bazebara
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    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