正在加载视频...
视频加载失败
Today I'm open-sourcing Tangle: a new library that automatically 'entangles' and syncs WebAssembly. Play with the demo: And check out the code:
10 条评论

Tangle is a new way to think about networking: Write multiplayer WebAssembly as if it's on a single computer and Tangle networks it. Magic! See my Tweet from last week for how easy it can be:

I'm very excited about Tangle but it is brand new! There are many bugs and issues. And Tangle is a building block: it will need libraries and integrations to truly shine. I'm releasing early so I can build publicly and let early adopters try it out. Let me know your thoughts!

Ooooh very interesting! Assuming I understand the idea, I've been thinking about similar stuff in context of old school home computer emulators (taking a complete emulator state snapshot, and the diff/store/sync/rewind/replay), never thought in the context of a WASM heap though.

Yeah that’s exactly it. Wasm has a few other things that need to be synced (globals) but the idea is the same. Right now it’s done in a very naive way but it works pretty well!

you might want to include this in your next issue, @verekia!

Really cool, Ian! @ryangreen8 & I were just playing with it. The physics is well done and it seems to have good bones. We ran into a couple mysterious network issues but its a great demo

@ryangreen8 Thanks for trying it out! Sorry about the network issues, there are definitely bugs! I hope to iron those out with time.

Very cool stuff, I really enjoy exploring the ways gamedev code patterns can be generalized to be useful outside of just gamedev and this is a great example :D

very exciting! Nice job and glad you chose to open-source it!

Very cool & interesting! @kettlecorn I think you can use NOSTR to handle the initial connection without the need of pay for a hosting. In this example you can play chess based on NOSTR. It uses TypeScript too! :)

