r/ProgrammerHumor • • May 24 '22

Pick one (or more)

/img/lgbteih1kh191.jpg
430 Upvotes

267 comments sorted by

View all comments

112

u/[deleted] May 24 '22

Udp every day baby

92

u/Milligan May 24 '22

I was going to tell a joke about a UDP packet, but you might not get it.

54

u/fakeunleet May 24 '22

I got it twice

3

u/Matrix5353 May 25 '22

Stop, you're giving me flashbacks about asymmetric load balanced multipath routing in cloud services platforms.

3

u/Anreall2000 May 25 '22

So u better tell it QUIC

→ More replies (2)

131

u/[deleted] May 24 '22

[removed] — view removed comment

56

u/HxA1337 May 24 '22

If it does not fit into one packet it is bloatware.

27

u/TheWidrolo May 25 '22

tries to make a photo and video sharing app

photos and videos dont fit in a packet

ban user for submitting bloat

6

u/TeaKingMac May 25 '22

Jumbo frames are best frames

→ More replies (1)

17

u/AlbertChomskystein May 24 '22

Which has lower latency though, TCP or CD sent by mail.

28

u/UltimateFlyingSheep May 24 '22

depends - are you using IP over avian carriers?

6

u/batsnakes May 25 '22

I'm convinced knowing RFC 2549 front to back has won me multiple jobs.

→ More replies (1)

12

u/BridgeBum May 25 '22

You are joking, but that is a real thing.

Data center migration a number of years ago. How did do the mass transfer of data from DC to DC? Put everything onto tape backup, loaded a truck and drove 1000 miles. That had better throughput than trying to use dedicated circuits.

Try to move enough data and storage media can actually be the optimal solution.

7

u/yrrot May 25 '22

Hell, isn't glacial storage on AWS just like, some dude pulling a drive and carting it over to a storage shelf?

4

u/[deleted] May 25 '22

AWS snowball and Snow Mobile, are even closer to the described scenario, doing exactly what they described of bringing a physical storage device and then shipping it to the intended location

→ More replies (1)

4

u/njxaxson May 25 '22

Randall Munroe (of XKCD) has a chapter in his book ("What If" or "How To", don't remember which one) where he talks about the highest density data transfer solution is to attach DNA-encoded data in droplets to Monarch butterflies. With enough of them you could migrate several exabytes(!!!) cross-continent in under a month.

→ More replies (1)

15

u/[deleted] May 24 '22

Order doesn’t matter, just tit size

→ More replies (6)
→ More replies (3)

6

u/liquid_bacon May 24 '22

Fun fact, r/factorio has their own secure transport protocol for UDP. Which lets them take advantage of the lighter weight packets, among other benefits.

UDP might not help you as much as TCP, since you'll have to make your own implementation for guaranteeing messages are transported. But for real time and constant data transport like what games need, TCP is a lot of overhead. As long as your packet loss isn't horrific, you can implement all of your necessities for secure transport (message received and resend requests, packet ID, etc) within the data you'll be sending anyway.

8

u/BobbyThrowaway6969 May 25 '22

TCP for turn based ganes, UDP for shooters.

For any C++ programmers that want the best of both worlds, I recommend ENet. A really fantastic lightweight networking lib that is UDP but with a couple lightweight features for order and reliability. It's a brilliant halfway point between TCP and UDP and dead-easy to use.

3

u/archbish99 May 25 '22

Or go the cutting-edge route and use QUIC. Multiple in-order reliable streams without head-of-line blocking between them, and internal datagram support besides.

→ More replies (2)

6

u/searing7 May 25 '22

I love this sub for things like this. Thanks for posting.

5

u/Ace-O-Matic May 25 '22

Joke's on OP, I know how to implement TCP over UDP.

4

u/nuclearslug May 25 '22

Before Covid, I used TCP. Now, I do my part and exclusively use UDP. Handshakes spread disease and I will not involved in any part of that.

3

u/EyeBlueAechDee May 25 '22

The extra speed is so worth th

→ More replies (1)

5

u/Lithl May 25 '22

Big titty udp girl

→ More replies (3)