Comments (7)
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
andAtomic.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.
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.
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.
A first PoC PR is ready: biomejs/biome#1825
from boa.
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.
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.
Perfect, thanks for your work!
from boa.
Related Issues (20)
- Ability to call rust function using js "this" and "args" using a utility trait.
- Can't regex match on string containing emoji HOT 2
- Panic on invalid input to boa::parse HOT 1
- Tracking issue for migrating `boa_temporal` to a new repo HOT 5
- RUSTSEC-2024-0014: `generational-arena` is unmaintained HOT 1
- Split `boa_tester` into crates HOT 2
- Possible Incompleteness HOT 1
- Tracking issue for the `Intl` builtin object HOT 1
- Intl: Implement `supportedLocalesOf` for services
- Intl: Extract implementation into a separate crate
- Intl: Remove hacks to get the supported locales of a service HOT 1
- Add backtraces to errors HOT 2
- Explore other storage methods for our test results HOT 12
- custom `JsValue` for better embed HOT 2
- Restrict Direct Construction of `JsValue` to Ensure Invariants HOT 4
- Function.prototyp.toString only returns a fixed `[native code]` string
- Relative imports in SimpleModuleLoader fail to resolve HOT 4
- `Context::get_active_script_or_module` should return a script or module when using import in a generator HOT 1
- Simplifying Function Binding HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boa.