
Anders Murphy
1.4K posts

Anders Murphy
@anders_murphy
Clojure hacker. Emacs enthusiast. Game jamer.


⚡️ NEW: Block, Inc. has quietly rehired some of the 4,000 employees it laid off last month, with some workers receiving offers to return after the cuts were linked to clerical errors.

Compression vs diffing it's not as intuitive as you think. Sending down 2304+ divs (85041 bytes uncompressed ) over SSE and relying on #brotli compression instead of diffing results in a checkbox change being 13 bytes. On the other hand html diffing (which works at a semantic level) has to send the whole element: Which is 53 bytes. Compression works at the byte level, diffing works at the semantic level. What's even more meta is 13 bytes is smaller than the 53 byte string compressed (45 bytes) in isolation (not over a streaming connection). Over a streaming connection with the same context it compresses to 13 bytes. Streaming compression can work over a sequence of as many alternating frames as can fit in the compression context window. This is why compression over the duration of a connection with a shared context window is so powerful and such a natural fit for #datastar.
























