### Question for #LLM haters:
-
Question for #LLM haters:
So I don't really want to hate on LLMs or generative AI in this post, but I am curious about alternatives to LLMs for code generation. What I particularly have in mind is how LLMs are pretty good at calling up code examples and fitting them into your code base.
Has anyone tried just creating a very large database with millions of code examples or code snippets, perhaps tagged with keywords pertaining to what the code does, and letting people search code by tag and automatically paste it into your file? If StackOverflow has been mined for LLM training data, can't we just take that StackOverflow training data and parse-out the code snippets and generate such a database?
If LLMs coding tools like #Cursor, #Claude, #Copilot, Cody, etc. are basically doing that using statistical algorithms, couldn't we do the same thing with ordinary symbolic computation and a clever little editor plug-in with good UI/UX design for the copy-pasting?
#tech #software #AskFedi #CodingAssistant #LLM #AI #GenerativeAI
-
R relay@relay.mycrowd.ca shared this topic
-
Question for #LLM haters:
So I don't really want to hate on LLMs or generative AI in this post, but I am curious about alternatives to LLMs for code generation. What I particularly have in mind is how LLMs are pretty good at calling up code examples and fitting them into your code base.
Has anyone tried just creating a very large database with millions of code examples or code snippets, perhaps tagged with keywords pertaining to what the code does, and letting people search code by tag and automatically paste it into your file? If StackOverflow has been mined for LLM training data, can't we just take that StackOverflow training data and parse-out the code snippets and generate such a database?
If LLMs coding tools like #Cursor, #Claude, #Copilot, Cody, etc. are basically doing that using statistical algorithms, couldn't we do the same thing with ordinary symbolic computation and a clever little editor plug-in with good UI/UX design for the copy-pasting?
#tech #software #AskFedi #CodingAssistant #LLM #AI #GenerativeAI
@ramin_hal9001 That's called a library. Like this place that burned, Alexandria?
You debug the code that does stuff, and give it a name, and then it's easy to call from other code. LIBRARIES ARE MAGIC!
#software #programming #library #itsInABook #ButlerianJihad -
Question for #LLM haters:
So I don't really want to hate on LLMs or generative AI in this post, but I am curious about alternatives to LLMs for code generation. What I particularly have in mind is how LLMs are pretty good at calling up code examples and fitting them into your code base.
Has anyone tried just creating a very large database with millions of code examples or code snippets, perhaps tagged with keywords pertaining to what the code does, and letting people search code by tag and automatically paste it into your file? If StackOverflow has been mined for LLM training data, can't we just take that StackOverflow training data and parse-out the code snippets and generate such a database?
If LLMs coding tools like #Cursor, #Claude, #Copilot, Cody, etc. are basically doing that using statistical algorithms, couldn't we do the same thing with ordinary symbolic computation and a clever little editor plug-in with good UI/UX design for the copy-pasting?
#tech #software #AskFedi #CodingAssistant #LLM #AI #GenerativeAI
-
@ramin_hal9001 That's called a library. Like this place that burned, Alexandria?
You debug the code that does stuff, and give it a name, and then it's easy to call from other code. LIBRARIES ARE MAGIC!
#software #programming #library #itsInABook #ButlerianJihad@mdhughes@appdot.net yes, not only libraries, but macros as well. You have touched on one of my biggest gripes about "vibe coding." So what I am talking about really is using macro libraries and expanding macros in your editor.
Ideally, if anyone would do vibe coding at all, they would only do it for specific business logic that can't be reused.
But nowadays no one can be troubled to learn what code already exists or how to reuse it, or how to comment their code so other people can reuse it. Everyone just writes their code from scratch for everything. If you do write a new library, no one will use it because there aren't enough examples of how to use a new library that you can't really train an LLM to use it. This is what "productivity" means nowadays. The number of KLOCs you can produce per hour.
-
@mdhughes@appdot.net yes, not only libraries, but macros as well. You have touched on one of my biggest gripes about "vibe coding." So what I am talking about really is using macro libraries and expanding macros in your editor.
Ideally, if anyone would do vibe coding at all, they would only do it for specific business logic that can't be reused.
But nowadays no one can be troubled to learn what code already exists or how to reuse it, or how to comment their code so other people can reuse it. Everyone just writes their code from scratch for everything. If you do write a new library, no one will use it because there aren't enough examples of how to use a new library that you can't really train an LLM to use it. This is what "productivity" means nowadays. The number of KLOCs you can produce per hour.
@ramin_hal9001 Well, this is why I don't work for anyone, and just fart around. Nobody can demand my KPI or burndown charts or whatever now. So when I need code a second time, I put it in a library.
For a while, the write-less-code people were winning, we had "4GL" and nice scripting languages over rigorous libraries.
-
@ramin_hal9001 Well, this is why I don't work for anyone, and just fart around. Nobody can demand my KPI or burndown charts or whatever now. So when I need code a second time, I put it in a library.
For a while, the write-less-code people were winning, we had "4GL" and nice scripting languages over rigorous libraries.
@mdhughes@appdot.net yeah, once the people in charge of society decided to go with the strategy of burning the Earth down to maximize profits, they decided that if they were having trouble with computers running out of memory, they would just build more memory, rather than use memory more efficiently.
Externalize the cost of making code run faster, reducing the cost of building new physical circuits by abolishing environmental regulations on the chemicals used to build those circuits, reduce costs by making electricity cheaper by abolishing environmental regulations on emissions or fresh water usage. Once you get rid of the regulations, you can build more memory faster, then you don't have to pay your engineers to make software more efficient.
-
@nonbinarycoder@tech.lgbt yep, I get what you're saying.
Ramin Honary (@ramin_hal9001@fe.disroot.org)
@mdhughes yes, not only libraries, but macros as well. You have touched on one of my biggest gripes about “vibe coding.” So what I am talking about really is using macro libraries and expanding ma...
(fe.disroot.org)
There is still boilerplate code and configuration code that is usually not reusable. Ideally, every unique app would reuse libraries and just set different configuration parameters on these libraries.