4 ms·
What happens if you keep asking AI to rewrite it to use less and less resources?
by SirMaster 1mo ago
What happens if you keep asking AI to rewrite it to use less and less resources?
- LPisGood 1mo agoIt’s actually pretty good at this if you have some very specific constraints and objective.
- josephg 1mo agoI find I get great results from explicitly asking an LLM to write tests which profile memory and cpu usage. Then ask it to optimise to improve those metrics.
- Cthulhu_ 1mo agoAnd a way for it to get actual measurable results / feedback loop, which is apparently quite tricky even for humans to get.
- Scoundreller 1mo agotbh, it probably works. I'm vibe-coding a thing and just told it to figure out why it runs so slow: put in some optimizations. It ran some tests and stopped loading an entire-something at opening because there's no value to doing that.
- api 1mo agoIt does a pretty good job being put into a loop of "try to optimize for X" then "test and audit your code" then repeat.
- userbinator 1mo agoThis: https://news.ycombinator.com/item?id=49226923 https://news.ycombinator.com/item?id=49226923
- prplxd_nihilist 1mo agoFans went crazy when loading the browser demo
- azatom 1mo agojust be aware of the exact prompt: "memory usage is important": creates a 1TB binary "take multiple steps": uses so much power, extreme global warming, it will just print "hot" "think outside of the box": it will enslave you so you will not care about weather