HN user

ingigauti

36 karma

Creator of Plang programming language, https://plang.is

Posts9
Comments32
View on HN

Not sure it's what you are looking for but I've been developing a new programming language that I think does what you are describing.

You can write natural language code like:

`read file.txt into variable` (or many other ways, as long as intent is clear)

If it is what you are looking for, you can dig through my profile for info

I took the position of not liking to much the AI coding early on. This was specially when it was starting. People writing long description to generate an app, I quickly noticed that doesn't work because it's all in the details.

Then having ai generate code for my project didn't feel good either, I didn't really understand what it was doing so I would have to read it to understand, then what is the purpose, I might as well write it.

I then started playing, and out came a new type of programming language called plang (as in pseudo language). It allows you to write the details without all the boiler code.

I'm think I've stumbled on to something, and just starting to get noticed :) https://www.infoworld.com/article/3635189/11-cutting-edge-pr...

The way I designed the language I had the current languages in mind. Don't forget you are programming, it's just more natural, you need details

But also the main reason is that it's much more difficult to solve the intent when mixing multiple action into the same step. In theory it's possible but the language isn't there yet.

Yeah, I don't believe LLM will be able to code fully, they are analog trying to do something digital where everything needs to be 100% correct.

Plang being analog language I see the LLM is able to code so much more and it never has syntax, library or other build errors.

I've been developing a programming language that does this, the repo can be found here https://github.com/plangHQ

Here is a code example

  ReadFileAndUpdate
  - read file.txt in %content%
  - set %content.updated% as %now%
  - write %content% to file.txt
I call this intent based programming. There isn't a strict syntax (there are few rules), the developer creates a Goal (think function) and writes steps (start with -) to solve the goal

I've been using it for clients with very good results, and from the 9 months I've been able to build code using it, the experience has shown far less code needs to be written and you see the project from different perspective.

You might try out Plang, plang.is, not hypercard like but the syntax is natural language,

For the kids, they can write the the code in their own language, so non-english

Bit of self promo, as I created it

It won't be a problem getting a usb stick, but I disagree that it´s not a hurdle

Why hasn't any distro create a Windows installer? I think it would increase the usage. Today you need to download an .iso file, you need to know how to set it up on USB, then restart.

I like download, open, next, done. Easy.

bingo

I have done my share setting up systems, I just don't have the patience I had when I was younger, put 2 hours into it. Gave up. There are new thing that I don't understand, need to learn that to understand. To much work. Just need to buy that usb stick

I really would like to be able to install Linux with Windows installer, just to make the switch easier.

I wanted to switch on my laptop and gave up. I didn't have large enough USB stick, so it just became to complex

Give me an Windows installer, and I'll switch today. Windows has really started to be slow in areas it shouldn't be, which translates to: it sucks

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

Interesting way of implementing this. I've been doing a similar natural language programming language.

It's structured a bit differently, what I found out is that programmers need fine grain control over the code, so I implemented it as steps, where programmer defined each step of execution. Your version is maybe more high level and for non programmers

My language is called Plang (from pseudo language) can be found at https://github.com/plangHQ

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.

I agree with you. I never liked how AI is really generating ton of code for us, then you need to read through it and understand it. Plus, the fail rate is to high.

That is why I design the language the way it is. You must define each step you want to happen in your application. Lets take for example user registration, it looks like this

--- plang code ---

CreateUser

- Make sure %password% and %email% is not empty

- Hash %password%, write to %hashedPassword%

- Insert into users, %hashedPassword%, %email%

- Post, create user in MailChimp, Bearer:%Settings.MailChimpApi%, %email%

- Create bearer token from %email%, write to %bearer%

- Write %bearer% to web response

--- plang code ---

That is an executable code in plang. It's easy to read through and understand. You need to have domain knowledge, such as what is hashing and bearer token. You are still programming, just at higher level.

Validating what will execute, you need to learn, just like with any language, but it is relatively simple and you start to trust the result with time(at least I have)

Compared to the 130 lines or so of code in C# for the same logic, https://gist.github.com/ingig/491ac9b13d65f40cc24ee5aed0408b... That´s about 95% reduction of code, and I see this repeatedly.

Couple of weeks ago I published a new programming language called Plang (as in pseudo language) that uses LLM to translate user intent into executable code, basically LLM as a compiler.

It saves you incredible amount of work, cutting code writing down by 90%+. The built code is deterministic(it will never change after build) and as a programmer you can validate the code that will be executed. It compiles to C#, so it handles GC, encoding, etc. that languages need to solve, so I can focus on other areas.

Plang also has some features that other language don't have, e.g. events on variables, built in identity and interesting(I think) approach to privacy.

I have not been advertising to much since it is still early development and I create still to many breaking changes, but help is welcome(and needed) so if it something that is interesting to you the repo is at https://github.com/plangHQ

Little over a week ago I published a programming language called plang (as in pseudo language).

It does exactly what you are describing in this post, all data is local, has identity (so no passwords), data is encrypted on local device but with ability to sync between devices securely.

Another benefit it has is that the code is verifiable, the app you create is just series of JSON files that anybody can read, do verifiable.

Yet another benefit is that the code is written in natural language, making it easy to understand what is suppose to happen. I call it intent programming. You can see more about it at plang.is

Not sure if it is cheaper but according to the founder (paraphrasing from a podcast he was on in Iceland)

The pig skin has possible viruses that can infect the human body, so they need to dip it into an acid to kill any potential infection, this destroys the pig skin. With cod living in different temperature, they don't have these viruses so they only need to dip into salt water to "clean" it, the cod skin keeps intact and therefore works better

The human body accepts the cod skin as normal skin since it's basically same at molecular level, because of evolution

Fascinating

Polygon and Ankr are backers, both blockchain companies. Dont know the other. That's why the question.

Also, why not have a public db for what you can, does it all have to be internal?

Can you explain how it works?

Let's say I'm in Germany and want to send money to US, doing it instantly is not possible with current Swift

But I could see how Fortress would have accounts in both Germany and US and then have a ledger that keeps track of it, money coming in in Germany, send money out in US, something like that?

Underlying tech then blockchain? Is it visible?