[RESEARCH] JavaScript engines #28
Tunnisteet
Ei tunnistetta
bug
doodad
enhancement
levels & doodads
security
ui toolkit
wontfix
Ei merkkipaalua
Ei käsittelijää
1 osallistujaa
Ilmoitukset
Määräpäivä
Määräpäivää ei asetettu.
Riippuvuudet
Riippuvuuksia ei asetettu.
Reference: SketchyMaze/doodle#28
Ladataan…
Viittaa uudesa ongelmassa
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm currently using otto for the embedded JS interpreter for Doodad scripts. It's a pure Go runtime for JS but only supports old-style ES5 syntax (no
let
orconst
, etc.)Some ideas for possible replacement:
QuickJS
https://github.com/lithdew/quickjs
A JavaScript runtime written in C with ES2020 syntax. According to the Go page, should be easily cross-compilable with gcc and mingw. Looks like you can bind Go functions to be callable from the interpreter.
Honorable Mentions
goja
https://github.com/dop251/goja
Seems in the same lines as Otto and only ES5 syntax.
Alternate Languages (Python etc.)
Starlark
https://github.com/google/starlark-go
Starlark is a Python-like language from Google.
Switched to goja in
4d08bf1d85
which has some useful ES6 syntax support already.