Hacker News new | ask | show | jobs
by astrange 1476 days ago
I definitely can’t hire anyone in this thread to work on cell phone performance. We fight for 10 KBs of memory and yes, we are still doing this in 2022.

Even on a server, you may have TBs of RAM but you don’t have that much L1 cache nor that much memory bandwidth.

1 comments

Why would you need hundreds of thousands or millions of goroutines for a cell phone app/daemon?

I would expect the number (and corresponding memory usage) to therefore be low.

The only numbers in programming are one, two, and many.

So if you’re not very careful and nothing stops you, it’s pretty easy to create an unbounded amount of anything.

By that logic, allowing more than 2 byte allocations is a mistake.