News for hackers. Stuff that matters.
Re:Wazero: The zero dependency WebAssembly runtime for Go de... by Cthulhu_ on Tuesday May 17, 2022 @10:14AM (#31410971)
You 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/
Re:Wazero: The zero dependency WebAssembly runtime for Go de... by mftb on Friday May 20, 2022 @11:39PM (#31455063)
Hosting 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.
Re:Wazero: The zero dependency WebAssembly runtime for Go de... by oxplot on Tuesday May 17, 2022 @09:11PM (#31418161)
> why host other languages

Here's an example:

I recently finished building 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

Re:Wazero: The zero dependency WebAssembly runtime for Go de... by ctvo on Tuesday May 17, 2022 @10:21AM (#31411099)
It'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.