This would be a better link: https://github.com/SerenityOS/serenity/tree/master/Userland/... OP links to a not quite informative web site.
LibJS JavaScript Engine
11–20 of 20 posts
Re: LibJS JavaScript Engine
#12SerenityOS Browser now passes the Acid3 test - https://news.ycombinator.com/item?id=30853392 - March 2022 (44 comments)
Re: LibJS JavaScript Engine
#13What is the draw here compared to other JS engines (either v8/JSC/spidermonkey on the big end or something like quickJS/duktape on the small end)?
Re: LibJS JavaScript Engine
#14What is the draw here compared to other JS engines (either v8/JSC/spidermonkey on the big end or something like quickJS/duktape on the small end)?
All those other engines are cross-platform, whereas LibJS is UNIX only and actually very dependent on SerenityOS libraries (so not really a portable UNIX library), but that's apparently the intended design.
Re: LibJS JavaScript Engine
#15Re: LibJS JavaScript Engine
#16Re: LibJS JavaScript Engine
#17Earlier quoted context omitted.
All those other engines are cross-platform, whereas LibJS is UNIX only and actually very dependent on SerenityOS libraries (so not really a portable UNIX library), but that's apparently the intended design.
To be fair both JavaScriptCore and V8 heavily rely on the base C++ libraries that are part of Chromium and Webkit.
JSC is not as nice but can still be built and embedded as a stand-alone library.
Re: LibJS JavaScript Engine
#18Earlier quoted context omitted.
To be fair both JavaScriptCore and V8 heavily rely on the base C++ libraries that are part of Chromium and Webkit.
You can totally build and use V8 independently (many projects, including node.js, do it) and they have documentation specifically targeted at embedders. JSC is not as nice but can still be built and embedded as a stand-alone library.
Re: LibJS JavaScript Engine
#19It would be nice if LibJS would become an independent library, but last time I checked it had way too many dependencies on other core / helper libraries in SerenityOS for it to be ripped out; not sure why it would need a separate website unless making it independent is in the plans.
Being closely integrated with the rest of the system & libraries is a feature, not a bug - no plans to change anything about it :^) That being said, it's definitely possible to use it outside of SerenityOS as a regular library, just need a checkout of the serenity source for that. See https://github.com/linusg/libjs-test262 for an example, specifically the CMake files and `src/main.cpp`. The separate website is just…
Re: LibJS JavaScript Engine
#20Earlier quoted context omitted.
Being closely integrated with the rest of the system & libraries is a feature, not a bug - no plans to change anything about it :^) That being said, it's definitely possible to use it outside of SerenityOS as a regular library, just need a checkout of the serenity source for that. See https://github.com/linusg/libjs-test262 for an example, specifically the CMake files and `src/main.cpp`. The separate website is just…
Will LibWeb get its own site too?
Perhaps for WPT results, once we capture those regularly.
[1]: https://github.com/SerenityOS/serenity/blob/master/Documenta...