Better HN
topnewbestaskshowjobs
Log inSign up

jl258

2 karma · joined Apr 8, 2020 (6y ago) · 3 submissions

Submissions

comment 6y ago · link · parent

What was this write up? This one? http://richg42.blogspot.com/2018/02/some-lessons-learned-whi...

comment 6y ago · link · parent

I’m curious what you mean by this — why does coding for length prevent streaming? The receiving end can certainly treat the text as a stream still. Do you mean that the sender cannot “stream” if they are generating the contents on the fly? That seems trivial to solve - just break it up into chunks, assuming a little bit of buffering is OK.

comment 6y ago · link · parent

Commenter above, correct me if I’m misinterpreting, but — I imagine they meant for when programs talk to other programs. Regexes and string literals are written by humans; it would be easy for the compiler/program to calculate the length for you.