firmware
firmware copied to clipboard
Change Javascript engine to quickjs from duktape
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