Join Nostr
2024-10-22 20:57:27 UTC
in reply to

alcinnz on Nostr: Serializing data to a bytestream is relatively trivial, even without pulling in ...

Serializing data to a bytestream is relatively trivial, even without pulling in dependencies.

Parsing from a bytestream I find tedious, with a large portion of devtools existing to help you with it in some way or other. Its typically aided by a "scanner" to ease backtracking & "lexer" to abstract the raw bytes into "tokens".

To address a lack of bandwidth we use "compression". A simple strategy being to look up each byte in a "codebook", which characterizes retro graphics!

2/4?