News for hackers. Stuff that matters.
Re:Wasmer 5.0 by crabmusket on Tuesday October 29, 2024 @07:33PM (#41990539)
Take that API scraping script example. Imagine next you want to build a platform where you run code written by your users who want to e.g. scrape APIs. Think ParseHub I guess? Zapier is another good example.

You'd let them write in Rust or some other language that can target WASM, then you'd run the WASM blobs in a controlled sandboxed execution environment in your platform.

Re:Wasmer 5.0 by iknowstuff on Tuesday October 29, 2024 @07:35PM (#41990555)
Re:Wasmer 5.0 by Groxx on Tuesday October 29, 2024 @07:35PM (#41990553)
So basically: what every single platform with plugins should be doing to protect their users. Or similar via some other language that allows sandboxing, e.g. Lua.
Re:Wasmer 5.0 by lll-o-lll on Tuesday October 29, 2024 @09:13PM (#41991050)
Yeah, but the plugins can be written in Rust!

OK, OK, it’s a bad example. WASM is language agnostic though, so as more languages can target WASM, then the possible advantage is programming language agnosticism. If I have some code, I don’t have to re-write it in Lua.

Re:Wasmer 5.0 by crabmusket on Wednesday October 30, 2024 @09:15PM (#42002416)
Yes, that's right. It's just another option that lets you do that in a different (better?) way, and doesn't force all your users to write Lua.