1,011 karma · joined Feb 22, 2019 (7y ago) · 496 submissions
comment 1y ago · link · parent
For now that's fine as it's mainly an on-ramp for Azure. But, if Windows is anything to go by, I imagine the enshitification of vscode is inevitable given enough time.
comment 1y ago · link · parent
The same people lose their minds if a project is GPL or copyleft.
comment 1y ago · link · parent
Developers are idiots (I include myself in that). The industry is myopic and completely driven by fashion.
comment 1y ago · link · parent
Sad to see developers getting ripped off by AI. Copilot is junk. The whole AI bubble is just a tax powered by fear of missing out. Save yourself 20$ a month, learn to touch type, use snippets and download a local copy of the docs.
comment 1y ago · link · parent
Partly, because the minute you have a shared widget across users 50%+ of your connected users are going to get an update when anything changes. So the overhead of tracking who should update when you are under high load is just that, overhead.
Being able to make those updates corse grain and homogeneous makes them easy to throttle so changes are effectively batched and you can easily set a max rate at which you push changes.
Same with diffing, the minute you need to update most of the page the work of diffing is pure overhead.
So in my mind a simpler corse grain system will actually perform better under heavy load in that worst case scenario somewhat counter intuitively. At least that's my current reasoning.
comment 1y ago · link · parent
comment 1y ago · link · parent
The magic is brotli/zstd are very good at streaming compression thanks to forward/backward references. What this effectively means is the client and the server share a compression window for the duration of the HTTP connection. So rather than each message being compressed separately with a new context, each message is compressed with the context of all the messages sent before it. What this means in practice is if you are sending 140kb of divs on each frame, but only one div changed between frames, then the next frame will only be 13bytes because the compression algorithm basically says to the client "you know that message I sent you 100ms ago, well this one is almost identical apart from this one change". It's like a really performant byte level diffing algorithm, except you as the programmer don't have to think about it. You just re-render the whole frame and let compression do the rest.
In these demos I push a frame to every connected client when something changes at most every 100ms. What that means, it effectively all the changes that happen in that time are batched into a single frame. Also means the server can stay in charge and control the flow of data (including back pressure, if it's under to much load, or the client is struggling to render frames).
comment 1y ago · link · parent
The billion items themselves are just in a server on the backend, stored in a sqlite database.
comment 1y ago · link · parent
I mean unless you consider me linking my dumb demos everytime someone accuses hypermedia of not being suitable for realtime/collaborative apps. That I'm 100% guilty of.