3 ms·
This looks pretty awesome, zero deps! I was wondering how I was gonna host other languages in my Go programs, this is a contender.
by mftb 4y ago
This looks pretty awesome, zero deps! I was wondering how I was gonna host other languages in my Go programs, this is a contender.
- Cthulhu_ 4y agoYou may want to consider not doing so; why host other languages if you can either write Go code, or write what your Go program does in said other languages? See also https://boringtechnology.club/ https://boringtechnology.club/
- ctvo 4y agoIt's pretty rude to walk around blasting a presentation at folks. You have no idea what their other requirements are. What if they need arbitrary user submitted code to be sandboxed and don't want to deal with cgo utilizing other wasm runtimes? Wazero seems pretty boring and perfect.
- oxplot 4y ago> why host other languages Here's an example: I recently finished building https://subzo.com.au https://subzo.com.au which allows customizing and ordering 3D models. The way the model's cost, volume and other attributes are calculated needs to be done both on the frontend (for speed) and on the backend (to validate). Backend is in Go and we can't practically run Go in the browser. So instead, I wrote the calculation snippets in JavaScript (which runs natively in the browser) and ran them on the backend on a JavaScript VM library written in Go [1]. [1]: https://github.com/robertkrimen/otto https://github.com/robertkrimen/otto
- mftb 4y agoHosting Go in Go is kind of an interesting idea! I enjoyed what I found on boring technology club and in general I agree, shipping is happiness, but! That's on the job. Outside of work I also do a bunch of stuff and there I do, uh... whatever. The point being that my personal projects are all about doing things I just wouldn't do at work, too much hassle. Anyway, I enjoyed the link.