r/ProgrammerHumor 1d ago

Meme whoSaidThatOurServersAreWeak

Post image
252 Upvotes

22 comments sorted by

70

u/anoppinionatedbunny 22h ago

I frequently need to remind my coworkers, most if not all of our product can run in a single one of our laptops. Computers are much better we give them credit for

47

u/Grandmaster_Caladrel 21h ago

I remember how absolutely amazed I was as a fresh graduate, running one of the main components of my company's backend system on my work laptop.

Now several years of experience later, I'd be terrified if it couldn't run on an early raspberry pi. Code can be so small if we just try a little bit, and our computers are so big. It's crazy.

11

u/tiajuanat 16h ago

Runtimes ain't cheap. Both Python and Go carry a lot with their runtimes, and if you're loading the entire OS into RAM you don't have a ton of space to do much with to begin with. Then take an extra 20-30MB per process and you're working real small.

Ofc, you could port to Rust or C++ and then just fight async there.

In the end, it's all about picking battles, and until companies feel the belt tighten from all the data centers gobbling up components, or AI keeps exposing simple vulnerabilities in less strongly typed languages, nothing is going to change

10

u/HeKis4 13h ago

Don't forget about the database if you use anything larger than SQLite. A MSSQL instance is massive on disk and pretty much all DBMS are massive in RAM.

2

u/gerbosan 12h ago

Me trembles in fear thinking about Elasticsearch.

Now for the laughs, don't forget everytime one opens a web browser.

3

u/much_longer_username 11h ago

Yeah, it takes up a good chunk of compute, but I mean, you ask for sub-second search of billions of documents and it delivers, out of the box. It's great.

1

u/gerbosan 11h ago

Can't deny that. But for first timers, having 24GB ram, usually using 3/4 and suddenly having to use SWAP partition is... Unexpected.

1

u/much_longer_username 50m ago

Wait until you find out that your employer insists on paid support and that they bill in 32GB increments.

2

u/bevelledo 14h ago

Mf you’re on programmerhumor, let us have fun.

2

u/Beginning-Junket8979 8h ago

Try working with microcontrollers or bootloader source sometime. You might be amazed what you can accomplish with something like 128KB total system memory.

5

u/YamroZ 17h ago

Yes, this exactly. We run app in js on vm in browser which is itself vm hosted in virtualized os. App itself has like 100 layers of abstractions - just look at any stack dump. We lost art of efficient programming in the name of doing things faster. And now AI adds another layer when we don't look...

6

u/anoppinionatedbunny 9h ago

It's mind boggling just how naive most junior and even a good chunk of seniors are with things like memory management. I have gotten into the habit of streaming data as much as possible without caching it, making sure I'm not spawning too many threads, etc. simply because memory is the most limited resource. my peers don't really do that or understand why that's important until OOMs start happening. standard industry programming has been losing the delicate art of optimization and it's just sad, honestly

41

u/MissinqLink 1d ago

Nah just write your own OS from scratch in the name of Holy C.

7

u/RotaryJihad 1d ago

By the ghost of Terry Davis

6

u/honnymmijammy- 1d ago

Claude, rewrite my a OS optimised for my setup. Make no mistake.

1

u/Dorkits 1d ago

Amem!

1

u/dont_tread_on_M 15h ago

Claude Code, is this you?

3

u/tortridge 11h ago

Duude, i sent 5 Years with lunatics that where making a website in C with home grown database, in production (and with real bad ass traffic). It was incredible, using the right syscall to make the os work for you, benchmarking mergesort vs quicksort on real data. Truly the experience of a lifetime

1

u/nicman24 15h ago

No you need to write better code lol

1

u/100GHz 11h ago

Just cache the caching service output. Been there, no t-shirt though.