News for hackers. Stuff that matters.
Re:WebVM: WASM virtual machine in browser with networking vi... by VikingCoder on Friday October 07, 2022 @12:03AM (#33117286)
WASM, yes. Tailscale, yes. In the browser, sure, I'll take it.

But what I really want is a capability-based WASM sandbox runtime (like wasmtime or workerd from Cloudflare) that provides an API that lists people that it can send messages to (through Tailscale.)

I configure the runtime with my contacts, and say which apps can communicate with which people.

And then a Dynamic DNS-like system for me to have an identity key, and look up the servers to find them. In case my contacts need to migrate to a new server. Maybe Tailscale already does this?

The runtime keeps the apps updated (like Sandstorm.io).

Re:WebVM: WASM virtual machine in browser with networking vi... by MuffinFlavored on Friday October 07, 2022 @01:05AM (#33117643)
why do you want this?
Re:WebVM: WASM virtual machine in browser with networking vi... by VikingCoder on Friday October 07, 2022 @08:11AM (#33120160)
I'm supremely impressed by Sandstorm.io, but I think it was designed kind of like an old BBS. One server, letting users come to it.

What I'm describing, I think could be the basis for federated services.

I imagine implementing RSS feeds and RSS Aggregators on top of a system like this.

And lots of other services, too.

I like the idea of it being capability based and sandboxed, because then I can feel safe running a service you wrote on my machine.

And I like the idea of all of the networking being in the framework, rather than being implemented in each app. Just like Sandstorm.io takes a lot of the problems of sharing out of each app.

The way this article ended up with WASM + Tailscale in the browser seems like a great way for a client to talk to a server based on WASM + Tailscale, like I want. So then my phone can connect to my home PC, running these federated services. I can picture implementing Google Photos on top of that. With sharing, too.

Re:WebVM: WASM virtual machine in browser with networking vi... by infogulch on Friday October 07, 2022 @02:19AM (#33118028)
Maybe it would be nice if tailscale could "peer" with other whitelisted networks that agree and share selected services/endpoints between peers. Given this plus a namespace system (DNS?) you'd be pretty close to a usable, secure, decentralized, p2p mesh network.

Edit: oh it's already a thing now? https://tailscale.com/kb/1084/sharing/

Re:WebVM: WASM virtual machine in browser with networking vi... by modarts on Friday October 07, 2022 @04:30AM (#33118711)
Re:WebVM: WASM virtual machine in browser with networking vi... by npmccallum on Friday October 07, 2022 @07:14AM (#33119747)
We at the Enarx project (https://try.enarx.dev) plan to implement precisely such a network policy in the very near future.
Re:WebVM: WASM virtual machine in browser with networking vi... by pmarreck on Friday October 07, 2022 @10:09AM (#33121571)
cool idea, alien-feeling name
Re:WebVM: WASM virtual machine in browser with networking vi... by lozf on Friday October 07, 2022 @10:31AM (#33121863)
"Enarx": Reads like "e-narks", the "e" from email (rather dated as a prefix these days, but we're all used to it), and an intentional misspelling of the plural of "nark", as in one who reports information to the authorities, a snitch, or tattle-tale.
Re:WebVM: WASM virtual machine in browser with networking vi... by pmarreck on Saturday October 08, 2022 @09:52AM (#33132260)
that’s not helping