Re:Exploring Goja: A Golang JavaScript Runtime
by jtarchie on Friday September 06, 2024 @10:19PM
(#41471099)
I did see that. I'm going to let the fork simmer for awhile. I didn't require module support for my runtime. Since its meant to be very basic ETL runtime.
Re:Exploring Goja: A Golang JavaScript Runtime
by nchmy on Friday September 06, 2024 @11:48PM
(#41471315)
Fair enough! Though they're quite clearly a much more serious/focused/resourced team than the goja dev, and they've fully integrated it into the K6 codebase now. I expect it'll have a bright future.
Since you're doing ETL, did you consider something like Conduit, which is written in Golang and also allows for JS processing in the pipeline? Or is that overkill for what youre doing?
https://conduit.io/docs/processors/builtin/custom.javascript
Re:Exploring Goja: A Golang JavaScript Runtime
by dlock17 on Monday September 09, 2024 @04:14PM
(#41493107)
While I'm sure Goja is great for just JavaScript, using something like wazero allows your app to support more languages (anything that compiles to WASM) while keeping the benefits of CGO.
I've used Wazero myself on C++ -> WASM code but I'm sure you could use Emscripten or something to compile JavaScript to WASM.
So, Sobek seems to be the way forward...
[1] https://github.com/grafana/sobek/
[2] https://github.com/dop251/goja/pull/430
[3] https://github.com/dop251/goja/milestone/1