News for hackers. Stuff that matters.
Re:Generate code for declarative language instead of program... by ingigauti on Tuesday April 23, 2024 @04:41PM (#40137009)
I think this is heading in the right direction. I had a similar idea about a year ago and spent three months thinking about it because creating a new programming language seemed crazy.

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.

Re:Generate code for declarative language instead of program... by kristianp on Tuesday April 23, 2024 @05:11PM (#40137314)
> Each code line incurs usually between $0.01 - $0.07 fee via LLM

Cool idea, how advanced an llm is required to "compile" the language?

Re:Generate code for declarative language instead of program... by ingigauti on Tuesday April 23, 2024 @08:12PM (#40138903)
It's using gpt4-turbo currently, was using gpt4 with fine result.

The instructions are rather simple, so looking at what lama3 is doing, I think it could easily do it, I just don't have the knowledge and since the problem was solved with gpt4 I didn't want to put time into it. I'm hoping it will come with the community, with time

But fine tuning a model will take this cost down 100x. Soon enough (couple of years) it will be compiling in the avg local machine.

And just to top it off, the way compiler is built, compiling will be invisible so no more compile time