July 8th, 2024

QuickJS, the Next Generation: a mighty JavaScript engine

The GitHub URL provides insights on QuickJS, a JavaScript engine. It covers the project's overview, emphasizing the fork and collaboration between original authors and fork maintainers.

Read original articleLink Icon
QuickJS, the Next Generation: a mighty JavaScript engine

The GitHub URL contains information about QuickJS, a JavaScript engine. It discusses the project's overview, highlighting details about the fork and the collaboration between the original authors and the fork maintainers.

Link Icon 9 comments
By @pansa2 - 3 months
QuickJS is presumably intended for embedding within applications - how does it compare to Lua for this?

Both languages are fairly quirky - at least JavaScript’s quirks are widely-known. But how do the implementations compare in terms of API, robustness, portability, performance etc?

Also, I’m not aware of any static typing add-ons for Lua, but presumably it’s possible to use TypeScript with QuickJS?

By @st_goliath - 3 months
As the title & link suggest, this project is a fork from QuickJS, a Javascript originally developed by Fabrice Bellard (https://bellard.org/quickjs/).

The fork is apparently in the process of re-integrating with upstream, after work on QuickJS resumed.

From the QuickJS-ng README:

> In October 2023 @bnoordhuis and @saghul decided to fork the QuickJS project

> ...

> As of early 2024 both projects agree the proper path forward involves merging both projects and combining the efforts.

By @dang - 3 months
Related ongoing thread:

Show HN: Execute JavaScript in a WebAssembly QuickJS sandbox - https://news.ycombinator.com/item?id=40896873 - July 2024 (47 comments)

By @apitman - 3 months
What's the current state of QuickJS? Is there anywhere it's a clearly better choice? Does it have a shot of being a top class engine?
By @megous - 3 months
Release notes marking differences from the original would be nice. I diffed the main header file, and at least public API seems quite similar.

Even if I wanted to switch, I just don't know what I'd be running into, until I do. :)

By @metadat - 3 months
What is mighty about QuickJS? It would be nice if they included how this marketing-esque term connects with the product at a src-code-level.
By @andrewstuart - 3 months
Can someone help me understand why there is no HTTP fetch built into this?

JavaScript is great but without HTTP fetch alot of potential uses are off the table.

By @andrewstuart - 3 months
This was written by Fabrice Bellard. I'm curious to know WHY he wrote it. Does anyone know?
By @lionkor - 3 months
I would be careful to use this in production. I'm a diehard C and C++ fan, but: Having a mutex unlock inside an if statement that performs an early return, on line 52000 something, does not inspire confidence.

Excellent job on building this, and it's very readable and nice, otherwise!