News for hackers. Stuff that matters.
Re:Never* Use Datagrams by eru on Sunday June 23, 2024 @08:32AM (#40766981)
Well, you often have some dependency between messages. Some re-orderings don't matter, but some do.

If you just keep everything in the same order, then you never have to worry about any re-ordering.

I can see why people picked streams as the one-size-fits-all-(but-badly) abstraction.

Re:Never* Use Datagrams by tliltocatl on Sunday June 23, 2024 @09:10AM (#40767225)
Because worse is better and if you try to be everything you (don't) get OSI. Also because everyone loves serial ports and dialup modems and TCP just emulates a serial port over packet network. And it wasn't supposed to be one-size-fits-all, rather «let us have telnet while we figuring out the rest» but then ossification happend.