Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why is that not at least done asynchronously? I thought part of the whole narrative of shipping these new terrible pieces of software as standalone Google Chrome instances was that it makes it easier to spawn async JS workers for background tasks and whatnot?


async is still difficult. There is no getting around data synchronization issues. either you need to spend a lot of time in design or will get constant problems with things like not having a mutex when you should, mutex deadlock, holding a mutex too long, locking/unlocking too often.

I haven't done async JS, but I've done enough async elsewhere to know that language cannot work around bad design.


I thought this was mostly/fully solved with CRDTs?


You still need to design a CRDT that solves your particular problem, you don't just say the magic word "CRDT" and the problem is gone. And the performance will depend on how good the design is.


I think that’s what it’s doing. If you have a conversation with a person spanning hundreds of messages (over many weeks) it’ll be updating the status light next to their name on every single message in the history. The more messages in the history, the more workers you get!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: