Live data from Hacker News

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

news.ycombinator.com

121–130 of 264 posts

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

#122
post #114

Earlier quoted context omitted.

Who determines the specs?

Specs are business requirements. Choosing a programming language is not a business requirement; it's a technical one.

Platforms are often part of the business requirements.

If you're working on SAP or Salesforce, the language decisions are already made for you. If you're integrating with an existing Electron runtime, then you'll be using something in the JS family, like it or not.

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

#125
post #118

That’ll be a minor part of it. The whole Electron “ship a browser for each app” ideology will die first.

It's unlikely. It means rewriting all these Electron apps using something more performant, which is pretty costly.

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

#126
> advanced algorithms and data structures

This isn't where memory goes or real-world speed comes from. For most applications, it's abstractions like React running in electron that hurt performance. There are also richer resources backing parts of apps--higher resolutions, better quality, higher framerates.

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

#127
post #118

That’ll be a minor part of it. The whole Electron “ship a browser for each app” ideology will die first.

It's unlikely. It means rewriting all these Electron apps using something more performant, which is pretty costly.

Yeah it won’t mean rewrites. It’ll just die as a starting point.

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

#128
post #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…

Google has done multiple Android memory reduction sprints over the years.

The problem is that things go quickly in the other direction between these sprints.

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

#129
It is a really simple matter of incentives.

If your backlog is full of feature requests you will add features.

If your backlog is full of tasks to reduce memory usage, speed up areas etc., then that is what you will do.

Most programmers will have no choice whatsoever.

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

#130
post #77

Earlier quoted context omitted.

“Stop doing stupid stuff” is usually the biggest performance gain in commercial development. We do stupid stuff as a stopgap to meet a deadline and then stupid stuff stays until it starts being a problem.

There's nothing more permanent than a temporary fix. If deadlines are causing those stopgaps, the aggressive deadlines are the root problem.

No deadline, no product.

Shipping is very important, sometimes more important than what you ship :)

Post reply on HN