by QueensGambit on 4/22/24, 10:09 PM with 16 comments
by ingigauti on 4/23/24, 8:41 PM
In September, I began the development, and about a month ago, I released a new programming language called Plang (short for pseudo language). It embodies what is describe as intent programming. You can find the repository here: https://github.com/plangHQ
It’s remarkable how much less code is required, and there are significant security benefits as well.
by habitue on 4/23/24, 6:35 AM
by Nevermark on 4/23/24, 4:51 PM
The question of why AI is used to generate imperative or functional code instead of declarative code … is “So, why do programmers write code like this?”
It is the same issue, with essentially the same pros and cons.
Declarative is the best approach to code - when it works the best. But today declarative languages tend to be more domain specific, so not the best for a large proportion of code.
And also are not really purely declarative. Serious performance improvements still accrue to tuning the “declarative” code to the details of specific implementation models. I.e. to knowledge of specific databases.
—
In a way, AI language models have become the most general, if not the most reliable, declarative tools of all time.
Archiving LLM code generation conversations along with related code is helpful. Easy informal way to document intention.
In a few years a lot of source for casual and non-critical code may be natural language defined entities along side traditional source.
by unraveller on 4/24/24, 12:37 AM
We don't really need a declarative language to be in the same position as asking for high-level description, fewer lines means more places to hide hallucinations. We need an hallucination alarm to show where difficult but legitimate requirements are being squirmed out of without reason.
by two_handfuls on 4/23/24, 4:45 AM
by bazoom42 on 4/23/24, 8:11 AM