-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Goja #169
Comments
Just found that there is also some NodeJS support for Goja: https://github.com/dop251/goja_nodejs. Being able to support things like |
I stumbled across an issue from @matthewmueller looking for Goja class support to run Svelte server-side: dop251/goja#349 I reached out to him on twitter because it seems like we're trying to solve the same problem. He's tried some of the same stuff we've thought about for this project and covered some interesting new ground as well. Things Matt has tried/considered
To me (Matt), the most promising solutions are either bringing Goja compatibility up, or translating the QuickJS VM (possibly automating some of it with ccgo). I also mentioned that I had some trouble running go routines with v8go (#26 (comment)) and he said:
|
Goja has class support now: dop251/goja@0b5d210 Testing ground for Goja Svelte compiler: https://github.com/matthewmueller/goja-svelte |
Revisiting Goja a JS interpreter written in pure Go. If viable it would allow us to remove CGO which would simplify our cross-compile builds and finally allow native windows support. Reasons for revisiting:
However trying to add the Svelte compiler to a goja vm throws a lot of errors:
The first being line 22 of svelte/compiler.js:
class Stats {
. That's because classes are not yet supported in Goja but it appears that's being worked on currently: dop251/goja#167 (comment)The text was updated successfully, but these errors were encountered: