Conversation

Graham Sutherland / Polynomial

had a dream last night that I was trying to ungzip a log archive and it wouldn't work, and it turned out that the software had independently gzipped every single line, terminated with a \n

man, fuck my brain for coming up with that one

1
0
0

bet Mark Adler never saw this one coming back in 1992

1
0
0

@gsuberland that nightmare is very similar to what the "bokeh" package does, at least in one project I worked on -- numpy arrays' data segments got gzipped and then base64-d into a... I forget... json literal?

2
0
0

@dstndstn aaaaaa, gzip into base64 is such a sin outside of narrow contexts like "I need to put this in a URL".

1
0
0

@gsuberland @dstndstn i know that bzip2|base64 will start with Qlp... (usually Qlpo... actually)

wanna know how? XMPP. XMPP file transfer, specifically, which did not work back when i used XMPP

2
0
0

@gsuberland related fun fact: all our lovely line-oriented unix tools (or maybe just the terminal, idk), and emacs, don't actually work super well on million-character-long lines

0
0
0

@gsuberland @dstndstn but also, the Amaranth playground uses a custom Zstandard dictionary so that it can compress your code snippets and put them in the URL and share them (this way i don't need to maintain a backend service)

1
0
0

@whitequark @gsuberland @dstndstn augh do they really force binary data into xml too what the hell

1
0
0

@whitequark @dstndstn oh yeah I forgot about that feature of zstd; I'm gonna have to remember that one for future use.

1
0
0

@gsuberland @dstndstn the space savings we got were in the tens-of-% range due to the dictionary (on our representative inputs)

0
0
0

@charlotte @gsuberland @dstndstn oh, no, it's far worse. i was pasting base64 data manually as the chat messages, because file transfer was so broken

iirc, XMPP file transfer used 0 and 1 characters (8 bit per bit) in a huge CDATA block or something

0
0
1