freeqaz 3 days ago

This is still a hard problem today. Some hard tech was built for this. I'm excited for a world where this is more accessible and less hardcore than something like CRDTs (in terms of accessibility).

How have others noticed the world shifting in the past 6 years?

  • danielvaughn 3 days ago

    There are now a few sync engines that tackle this problem. Rocicorp Zero, Electric SQL, and one or two others. By no means a crowded space, but there are options now.

    edit: links

      https://zero.rocicorp.dev/
      https://electric-sql.com/
    • shredprez 2 days ago

      Have you had a chance to use either of these yet? Electric looks like an obvious mature choice — curious if you think Zero's approach is compelling enough to be worth trying in alpha

      • danielvaughn 19 hours ago

        Haven't used either of them. I met the guy behind Zero and he's super smart. He had been working on Replicache for a long time before he started this thing.

        That being said, I haven't tried them, so can't really give an educated opinion. But I feel pretty confident in the domain expertise on the Zero team.

  • andrewmcwatters 3 days ago

    All the fundamentals have existed for at least 26 years. So, no, not really.

    It's also really weird to use video game terminology and ignore the fact that all of the approaches used in this article have in fact, been done by major game engines, are readily documented in game development circles, etc.

    It reads like an undergrad discovering game development for the first time. None of this is novel. It wasn't even novel for a web or desktop application to use.

    • Rohansi 3 days ago

      I also found it weird. They're basically doing what multiplayer games do but for a web app. Not the typical way you'd build your web backend but nothing actually new... not even using CRDTs, just inspired by them.

      • andrewmcwatters 3 days ago

        Yeah, if anything it’s obvious how you’d implement multiplayer for web apps.

        By using multiplayer architecture…

        And all their talk about state reconciliation? That’s just server authority…

    • partdavid 3 days ago

      Can you say more about which prior art you think overlaps here? We have a similar use case to Figma and are implementing a similar solution. I'm not particularly concerned whether the path we're following is novel but I am particularly concerned with whether there are gotchas along it that we should be watching out for, so if there are more mature solutions, we'd be interested.

      • andrewmcwatters 3 days ago

        Read QuakeWorld 1999, client-server prediction, Counter-Strike: Source lag compensation.

        See also, “reconciliation.”

        Also, debatably the article hints towards an incorrect implementation because they specifically mention sending events instead of user input.

        By design, if you do this, you can create events that are supposed to eventually stop, but the user may drop packets and disconnect all the while you were processing an event that was never supposed to occur.

        If you poll user input and experience loss, there’s no event to misfire.

        This behavior manifests itself in games as a player that continues to walk forward despite having lost their connection to a server and is a indicator that a multiplayer server was implemented incorrectly.

      • Rohansi 3 days ago

        Multiplayer video games are the big one. There's no reason why you couldn't apply the same kind of synchronization to a web app. You'll just need to decide on an approach because not all games do it the same way. Most likely you'd want rollback netcode.

  • asnyder 3 days ago

    I know Liveblocks.io has been making this very easy and accessible over the last few years. They recently introduced AI, and are promoting that of course, but as I understand it multiplayer collaboration (https://liveblocks.io/multiplayer-editing) is their meat and potatoes.

    Not affiliated with Liveblocks, just aware of its existence.

    • ctnicholas 2 days ago

      I work at Liveblocks—yes! Our founders were inspired by Figma and wanted to make it possible for others to build apps like this more easily. We provide our own sync engine, Storage, which is aimed at this use case.

  • winrid 3 days ago

    Sharedb/racer solved this like 10yrs ago. You get synchronized snapshots, conflict resolition, diffs, change tracking..

  • wrren 3 days ago

    Elixir's Phoenix LiveView + PubSub covers a lot of these bases out of the box.

puff_pastry 2 days ago

Genuinely curious, do a lot of people use these multiplayer features? I always thought of design as (mostly) a solo endeavour

  • remus 2 days ago

    We'll often do design reviews in figma, that usually means a few people looking at the same doc and potentially a few people making tweaks at the same time. Usually in separate bits of the doc at the same time.

mandeepj 3 days ago

Doesn’t Google docs and MS 365 have very similar tech?

bogwog 3 days ago

Interesting article, but why does it randomly switch from dark to light mode once you scroll past a certain point?

  • tobyjsullivan 3 days ago

    It changes when I scroll to the animations.

    My guess is they implemented dark mode, then discovered some legacy posts have videos with transparent backgrounds. As a quick fix, they decided to disable dark mode anytime someone scrolls down to a video.

    Seems like one of those compromises to solve an 11th-hour bug.

  • rudi-c 3 days ago

    The contents of this article are pretty old, but the static website's design has been revamped (I believe several times) since then. My guess it that the two may have just fallen out of sync in such a way that this particular oddity manifests.

  • 654wak654 3 days ago

    The videos have white backgrounds, maybe it's to match that and keep the page cleaner.

  • rakag 2 days ago

    Haha getting flashbanged halfway through

  • koakuma-chan 3 days ago

    What is the meaning of life?

    • simultsop 3 days ago

      the guy behind a kabuki mask, stole my microbots

  • Traubenfuchs 3 days ago

    ...and why does the switch point have a small hysteresis?

1zael 3 days ago

Evan Wallace basically said screw it, I'm writing a custom WebGL renderer and multiplayer protocol, when everyone else was slapping together existing libraries. Most of us would have built a janky Electron app and called it a day. Instead they went nuclear on performance because that WAS their product differentiation.

  • eddythompson80 3 days ago

    Curious why you copy/paste your previous comments verbatim[1]. I was reading it and could have sworn I have read that exact comment before and was thinking it's dejavu.

    [1] https://news.ycombinator.com/item?id=44438131

    • dsnr 3 days ago

      Haha, I had the exact same feeling, like I had read the same comment before. Glad to know I’m not losing my mind :)

    • simultsop 3 days ago

      maybe an automated bot

      • wk_end 3 days ago

        Not sure, their comment history doesn't look like it. If I had to guess, they got a fair amount of karma from the old comment and thought they could get away with reusing it and harvesting some more.

guluarte 3 days ago

Why is their CTO suspended on Twitter https://x.com/evanwallace ?

  • echelon 3 days ago

    What happened? Is there a story behind this?

    • meowtimemania 3 days ago

      IIRC there was a period of time where you could get suspended for trivial things like mentioning twitter

dostick 3 days ago

Figma was born out of founder’s need to find a proof of concept test case for real-time collaboration JavaScript engine they created. They stumbled on this idea. Back then everyone used Sketch and wanted better prototyping and interaction design, and Figma appeared with its real time collaboration as major point which you used once just to try and never again.

Figma is one of the worst evils of corporate capitalism. The design oriented development is long ceases, mainly focusing on making new useless products because they need growth for shareholders. Considered a leader in UIUX design software while its own UIUX is abysmal, full of amateur level mistakes, inconsistencies and bad patterns. We have now a generation of designers that take Figma’s UX as an example to learn from and implement in their designs.

  • aswan 3 days ago

    > Figma was born out of founder’s need to find a proof of concept test case for real-time collaboration JavaScript engine they created. They stumbled on this idea.

    citation needed?

    The article discusses adding collaboration to an existing application, the opposite of what this comment asserts.

bullen 3 days ago

I think player is a misnomer here. Multiuser editing would be better.

Also websockets are complicated. So are WebRTC or HTTP/2+ solutions.

HTTP/1.1 Comet-Stream is still the silver bullet even when ISPs try to block them, it's the protocol that goes through best (99.6% in 2022)

I'm considering doing a multi-socket solution: 80 (HTTP Comet-Stream) and 3724 (Binary TCP because WoW).

https://multiplayeronlinestandard.com

  • bobbylarrybobby 3 days ago

    They've likened their product to a game engine, so multiplayer seems appropriate.

    • bullen 3 days ago

      Maybe if you can se other users actions in real-time? I'm not a visual guy so it was a long time since I tried Figma.

      • bruckie 3 days ago

        You can! It even shows everyone's cursors moving around.

        • bullen 3 days ago

          That's cool!