Coder Social home page Coder Social logo

Integrating Boa into Biome about boa HOT 7 CLOSED

arendjr avatar arendjr commented on April 28, 2024 1
Integrating Boa into Biome

from boa.

Comments (7)

jedel1043 avatar jedel1043 commented on April 28, 2024 2

Glad to hear you're considering using Boa!

Just answering some of your questions in more detail:

  • I'd say our biggest missing features conformance wise would be FinalizationRegistry and Atomic.waitAsync, but everything else should be pretty much in sync with the current spec (excluding Temporal which as @nekevss mentioned is still a WIP, but I don't include it because it's still a stage 3 proposal). Our biggest limitation right now is performance wise, because we have been focusing solely on improving our conformance (make it work, make it right, make it fast... or something like that).
  • I think it should be possible to expose our bytecode compilation machinery as composable methods, but it would require a bit of API design. Otherwise, exposing it as it is would mean having a deep understanding of the internals of our VM, which is not ideal for your use case.
  • ModuleLoader is pretty straightforward to use because we tried to match it as closely to the spec as possible. The only hurdle right now would be using Rust futures to handle asynchronous loading of modules, mainly because the integration of Promises <-> Futures is hard to do right now thanks to the lack of stable coroutines from Rust's side (or any other way to preserve Boa's &mut Context between await points).

If you have any technical questions about the engine, feel free to open a discussion thread in the repo and we'll try to answer ASAP :)

from boa.

nekevss avatar nekevss commented on April 28, 2024 1

Hi!

That's great to hear about your interest in using Boa!

To answer a few of the questions from above:

  • Conformance wise, there's a decent amount more work to be completed around temporal (but I'm sort of biased there πŸ˜†). It may also be worth noting that we're a JS engine and not a full runtime, so there may be some runtime features missing, if those are needed. There's also still more room for improvement around performance and optimization, as we've mostly been focusing on conformance.
  • I'm not entirely sure if there are benchmarks with us against other engines, but we do have benchmarks on our site. EDIT: There is some noise in the benchmark results, and we are looking into ways to improve on it in the future.
  • We would definitely welcome PRs to extend Boa's functionality!

EDIT: Boa is currently on test262.fyi for conformance testing for reference

from boa.

arendjr avatar arendjr commented on April 28, 2024

Thanks, that gives me some good starting references! Conformance-wise it seems Boa might be good enough already for us then, and performance I guess we'll have to see :) I'll try if I can make a PoC first with a transpilation step in-between to see how far that gets us.

from boa.

arendjr avatar arendjr commented on April 28, 2024

A first PoC PR is ready: biomejs/biome#1825

from boa.

arendjr avatar arendjr commented on April 28, 2024

Btw, the issue I was referring to with the module loader is the ContextBuilder::module_loader() method. Its signature refused to accept my Rc<SimpleModuleLoader> instance, but in main it’s fixed. I did notice the last release has been a while, is there a roadmap on when the next version is expected?

from boa.

jedel1043 avatar jedel1043 commented on April 28, 2024

Our roadmap for this cycle is almost done, we're working on migrating our Temporal implementation, fixing some bugs with our conformance tester and finishing our new webpage. No promises, but expect a release at the end of the month/start of the next month.

from boa.

arendjr avatar arendjr commented on April 28, 2024

Perfect, thanks for your work!

from boa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.