Skip to content

Change Javascript engine to quickjs from duktape #1026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Tawank
Copy link
Collaborator

@Tawank Tawank commented Apr 1, 2025

The Duktape JS engine hasn't been updated since 2017 and only supports JS syntax from 2015.

I'll be testing QuickJS to see if we can switch to it. It is actively maintained, supports newer JS syntax, and benchmarks show it's 2x faster than Duktape.

Maybe we'll finally be able to run an NES emulator on the JS interpreter in ESP32.

Proposed Changes

  • Change the Javascript engine to quickjs from duktape

Types of Changes

Bugfix, New Feature

User-Facing Change

- Faster JS interpreter
- Added async/await, Promises, setTimeout itd.
- Added new ES6 syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant