3 ms·
Now that gen AI can help write code, is a garbage collector necessary anymore?
by 762236 2y ago
Now that gen AI can help write code, is a garbage collector necessary anymore?
- logicchains 2y agoManual memory management is one of the hardest things for LLMs to get right.
- hyperhello 2y agoWhat do LLMs “get right”?
- gadflyinyoureye 2y agoFlutter widget design.
- cratermoon 2y agoWhatever code examples got the most votes on StackOverflow.
- rustc 2y agoLeetCode questions. They often give the memorized LeetCode answer even if you slightly modify a question so it has a different correct answer.
- echelon 2y agoLovable, V0, etc. generate landing sites with slick design and easy editability. Startups are going to have such an easy time of product demo and marketing sites. React is quickly falling to LLMs. Rust, in my personal experience, not so much.
- eknkc 2y agoI seem to use them more and more for repetitive tasks. Where I can write one line and will need to handle a couple more in a similar manner. They work fine. Also for refactoring they seem to do ok. Things like change this to a function, extract this type etc. They excel in snippets like “get unique items in this array” or “sort this by property x” kind of stuff where you could easily write or find an answer. Oh I also like to use them for code review. Not that I’d blindly trust one but you can have another eye to look at your pr (i use claude code for this and love it) and see if you introduced any side effects or missed something. For anything more complex like having one write some feature from scratch… meh. I haven’t had much luck. Also they seem to fuck up royally in a little complex project if you do not isolate your request like I mentioned above.
- __MatrixMan__ 2y agoI've found them to be pretty darn good at both emacs lisp and matplotlib.
- jandrese 2y agoI'd say it is more necessary than ever given how quickly AIs tend to forget what they've previously written once you get past homework length use cases.
- sunrunner 2y agoSadly, the garbage collector is still needed to deal with the output of the garbage generator ;)
- hnlmorg 2y agoThats beautifully put. I’m almost tempted to print it out and frame it.
- adhamsalama 2y agoYes.
- LPisGood 2y agoI’m curious what you mean by that. Do you mean that AI can help write perfectly memory safe code and so new languages shouldn’t have a garbage collector?
- meindnoch 2y agoGiven the amount of garbage people are producing with LLMs, garbage collectors are more necessary than ever.
- clownpenis_fart 2y ago[dead]
- timewizard 2y agoA garbage collector was never "necessary." Automated theft of other peoples copyrighted code is not relevant to this fact.