Live data from Hacker News

Wasmer 5.0

wasmer.io

11–20 of 90 posts

Re: Wasmer 5.0

#11

> having V8 as a backend also means supporting WebAssembly Exceptions and Garbage Collection under the hood. Stay tuned for more news on this front soon Looking forward to this and languages that can make use of wasm-gc. Does wasm-gc allow sharing of host data/strings across different modules in the same runtime, or is it contained to only single module with repeated calls/invocations? The scenario I am considering w…

That's what reference types (the Wasm proposal) are for, GC builds on top of that.

Re: Wasmer 5.0

#12

Cool release! I've yet to personally find a good use case for wasm in any project, kind of the same way I'm not quite sure what to do with a bunch of Raspberry Pis It fills a need, I just don't know who/what has that need. Example: Say I write a bunch of Rust async projects for fun. Scraping APIs, etc. How/why would I choose wasm/wasmer to do that instead? I'd do it in Rust (awkwardly/in some specific non-standard wa…

WASM has two primary usages: 1) Making canvas webapps with unblockable ads built-in 2) Downloading and running random blobs of other people's code in a sandbox

To be fair, a rock-solid sandbox with extremely well defined and host controlled ingress/egress in a tiny package sounds absolutely fantastic

Re: Wasmer 5.0

#13

Earlier quoted context omitted.

WASM has two primary usages: 1) Making canvas webapps with unblockable ads built-in 2) Downloading and running random blobs of other people's code in a sandbox

To be fair, a rock-solid sandbox with extremely well defined and host controlled ingress/egress in a tiny package sounds absolutely fantastic

That’s what it is.

Re: Wasmer 5.0

#14

Earlier quoted context omitted.

WASM has two primary usages: 1) Making canvas webapps with unblockable ads built-in 2) Downloading and running random blobs of other people's code in a sandbox

To be fair, a rock-solid sandbox with extremely well defined and host controlled ingress/egress in a tiny package sounds absolutely fantastic

[deleted]

Re: Wasmer 5.0

#17

Cool release! I've yet to personally find a good use case for wasm in any project, kind of the same way I'm not quite sure what to do with a bunch of Raspberry Pis It fills a need, I just don't know who/what has that need. Example: Say I write a bunch of Rust async projects for fun. Scraping APIs, etc. How/why would I choose wasm/wasmer to do that instead? I'd do it in Rust (awkwardly/in some specific non-standard wa…

I've used wasm to write web applications in Go that run in the browser, both HTML applications (https://github.com/octoberswimmer/masc) and TUI apps using xterm.js (https://github.com/charmbracelet/bubbletea/pull/887).

Re: Wasmer 5.0

#18

Cool release! I've yet to personally find a good use case for wasm in any project, kind of the same way I'm not quite sure what to do with a bunch of Raspberry Pis It fills a need, I just don't know who/what has that need. Example: Say I write a bunch of Rust async projects for fun. Scraping APIs, etc. How/why would I choose wasm/wasmer to do that instead? I'd do it in Rust (awkwardly/in some specific non-standard wa…

It probably makes sense if you're running untrusted code or handling untrusted data, or running code that was written after the rest of your app So for a solo dev it doesn't add much, but for a web browser or something that needs plugins it could make a lot of sense.

> It probably makes sense if you're running untrusted code or handling untrusted data

I never understood this because... I feel like wasm (the standard) is an empty box and a lot of runtimes help you attach things to it / make it useful (able to read/write to filesystem, call the Internet, etc.)

Re: Wasmer 5.0

#20

Cool release! I've yet to personally find a good use case for wasm in any project, kind of the same way I'm not quite sure what to do with a bunch of Raspberry Pis It fills a need, I just don't know who/what has that need. Example: Say I write a bunch of Rust async projects for fun. Scraping APIs, etc. How/why would I choose wasm/wasmer to do that instead? I'd do it in Rust (awkwardly/in some specific non-standard wa…

A toy project, but I'm working on a Scrabble clone for my mother to play. There's singleplayer against an AI, and then multiplayer against other people (myself, mostly). Multiplayer needs a server backend with all the game logic which I have programmed in Rust, but there's no reason I can't have the game logic for singleplayer running entirely in the browser.

By compiling my backend code to WASM I basically do that - the client can use either a client-side 'server' or connect to a real server. The UI code itself is unchanged in either case.

I suppose the need in this case is that I have code written in a language other than JS and I want to run it in a browser; inversely I could have written the entire project in JS and hosted my backend server on say Node.

Post reply on HN