if you wrote a federated server, compiled it to wasm, then automatically federated with any other running instance, you could probably form a transient network
-
still, weird little idea.
-
god, this is really cursed
-
@aud yeah the more I think about it the more cursed it gets. Like if we wired the emergency alert system to an advertising network.
-
@[email protected] right? like, literally nothing good can come of this.
-
@aud how would discovery work though
-
@[email protected] yeah, I was thinking about that. You'd have to keep some degree of state even if it's just a "subscribe to this endpoint for new instances" sort of thing. So the central server that's serving up the WASM could have subscribers or even just a broadcast once and then wipe. Anyone listening could nab the address and federate.
Assuming enough people fired it up, in theory you'd have at least some graphs (even if you didn't have a globally connected one). If you then auto-federated with any instance that had a post 'boosted' or interacted with by an instance you're federating with, that could work too.
Mind you, this is just pure fucking chaos for no absolute reason. Sort of Conway's game of life but probably with racism and feds. -
@aud has anybody got tailscale working from WASM? The ephemeral P2P nature would be fun but you'd have to do STUN/TURN for the browsers to talk to each other without going through a central server. Actually all you'd really need to pull this off is a server running the FOSS version of the tailscale coordinator and then WASM tailscale clients using it to get handed off to talk to one another.
-
@[email protected] ooooooh, I have no idea. Right; I hadn't really considered the technical specifics necessary to actually handle the network routing.
https://tailscale.com/kb/1216/tailscale-ssh-console
Apparently it looks like this is using WASM and running entirely in user space?! Or, well, it says the networking stack is in user space, anyway; not really sure about the wireguard specifics and whether that relies on kernel support (or whether linux just has the kernel support). -
@aud one nice thing about tailscale is also that their blog posts are really good, I learned a lot about real-world networking from this post: https://tailscale.com/blog/how-nat-traversal-works
-
@[email protected] ooooh, I'll definitely check it out. I've been wanting to read up more about networking in general (and wireguard) for a lot of reasons.