News for hackers. Stuff that matters.
Re:FaaS in Go with WASM, WASI and Rust by kqr on Sunday May 07, 2023 @06:37AM (#35850028)
Are you saying all of them are appropriate tools for the exact same set of problems, and their only differences are up to subjective taste?
Re:FaaS in Go with WASM, WASI and Rust by yebyen on Sunday May 07, 2023 @10:29AM (#35851907)
I think we're saying that you may not be able to form a proper orchestra or even a good, successful band with only the one instrument that you like most. If you are building a monolithic app, you have to choose one language to build it in. But you could choose wrong. Or the choices could isolate you from other talented musicians that you'd otherwise be happy to play with. If you learn to play their instrument, even just superficially, it will help you expand your understanding of the entire problem space. (Of music theory. Or programming.) And learning to play them all together in some kind of harmony is just... chefs kiss

Some people think Ruby is the wrong choice, and others are building successful businesses on it as a foundation. Did they make this choice because of subjective tastes, or for practical reasons?

(And you can do this with Wasm, implement compilers in your Ruby framework in a way that's fairly unobtrusive, to take advantage of apps that were compiled in another language that isn't C... and likely to net you some type of benefits if not performance benefits – but the constraints are interesting. Did I mention that Wasm doesn't seem to have a string type, unless you count WASI?)

I mentioned Ruby because I'm giving a lightning talk on this topic tomorrow at GitOpsCon and a bigger talk at OSS Summit

It's called "Exotic Runtime Targets"

Ruby and Wasm on Kubernetes and GitOps Delivery Pipelines

Re:FaaS in Go with WASM, WASI and Rust by adrianfcole on Monday May 08, 2023 @02:13AM (#35858646)
(wazero contributor) In case you are interested, you can use Ruby (or any other interpreter compiled to wasm) with wazero. Our CLI shows what most of the runtimes can do, too.

$ echo salaboy | wazero run ruby-3.2.0.wasm -ne 'print "Hello "; print'

Hello salaboy

Of course getting and gems etc gets weird in wasm..

Anyway, thanks to VMware labs for publishing interpreter wasm builds, people can play around. https://github.com/vmware-labs/webassembly-language-runtimes...

Random, but enjoy.

Re:FaaS in Go with WASM, WASI and Rust by yebyen on Tuesday May 09, 2023 @12:24AM (#35870150)
Thank you! I learned about wazero in this thread, I checked it out briefly but I will definitely look into it further by Thursday :)