Live data from Hacker News

Ask HN: Will programmers write more efficient code during the memory shortage?

news.ycombinator.com

101–110 of 264 posts

Re: Ask HN: Will programmers write more efficient code during the memory shortage?

#101
I expect mobile OS and maybe mobile app developers to do so.

Google has already downgraded memory for their upcoming Pixel 11 while at the same time imposing local running models as a first-class feature. Both decreasing the memory pool and increasing the demands on it.

The key is that they own the full stack (hardware and software) and can demand the OS be more efficient, along with perhaps forcing that goal on app developers as well via tightened background limits etc.

Re: Ask HN: Will programmers write more efficient code during the memory shortage?

#104
post #6
post #4

Lad, modern day "programmers" don't even know what memory is. You'll be lucky to find any "software engineer" who can even tell you what a pointer is.

I can refer you to some documentation on the topic. ;)

I'm pretty sure the person who you are responding to already knows and does not need your documentation.

But most 'programmers' are just Python programmers and not real programmers.

Re: Ask HN: Will programmers write more efficient code during the memory shortage?

#105
I'd hope so. Not just because of the memory shortage, but because of the speed at which AI can help write code. Most high-level languages came about in order to speed up development, at the cost of performance and resource consumption. It's time to revisit some of these applications and see if we can use less resources to accomplish the same task. My work laptop with Teams and 2 Edge tabs open uses roughly 11GB of memory, which is insane.

Re: Ask HN: Will programmers write more efficient code during the memory shortage?

#106

Programmers will write more efficient algorithms if their employers tell them to trade time-to-market for hardware cost. Previously, it was trade hardware cost for time-to-market. "Programmers" don't make this decision, the product owner does.

I disagree. Engineers choose the technical stack based on the specs.

With LLMs, it's faster to ship even in a more verbose language like Go or Rust.

Re: Ask HN: Will programmers write more efficient code during the memory shortage?

#110

Algorithms and data structures aren't the problem, bundling Chromium to make a chat app is the problem. I think Rust's rise in popularity will probably lead to some benefits. Games will probably get more efficient but they're easier to scale down to the memory that's available.

Unfortunately shipping a Webview is also common trend in Rust applications.
Post reply on HN