610
Hexed by async (fed.dyne.org)
you are viewing a single comment's thread
view the rest of the comments
[-] pimeys@lemmy.nauk.io 4 points 1 month ago

It kind of fails with certain protocols. I once wrote an async MSSQL client for Rust, and some data doesn't say its size in the headers. So this kind of forced the business logic to be async too.

[-] azimir@lemmy.ml 3 points 1 month ago

Yeah, those durn data size fields. At first you're like "why would you do this? It's specified in the spec, right?" Then you start consuming the data stream and go "oh, yeah need this".

I was doing some driver work for a real time location tracking board. The serial stream protocol was very well documented and designed. Plenty of byte length count fields, though.

this post was submitted on 24 Aug 2024
610 points (99.4% liked)

Programmer Humor

32215 readers
20 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS