Hacker News new | ask | show | jobs
by amelius 11 days ago
The programming language of the future will be a purely functional language, where the LLM acts as the compiler using correctness preserving transforms.

Any other way of coding will be considered ridiculous (except maybe if you do it for a hobby).

Better start learning Haskell, folks.

4 comments

In its purest form there would be no programming at all, you would just be interacting directly with the AI model. The interface would be like an amorphous digital goo that can instantly shape-shift into any state.
A learned comment in this forum stuck with me: suppose diff has not been written. You can use an AI to write diff. Or you can use AI to do a diff. The latter might be easier, but now you have to pay every time you diff files.

But as AI proliferates and gets cheaper, why not pay to diff files. It will be sufficiently cheap.

At that point, just ask AI to write the Holodeck and we won't ever need to use computers anymore.
I will never touch a computer again the moment I must pay a rental fee for diffing.
My daily computer - MacBook Air M1 - is quite old so I would indeed have to pay a fee to diff with AI. But I think what happens is that you get a desktop computer with a massive amount of AI processing power that typically just sits idle. In that case, why not just have your on-device AI do something rather than finding the right pre-written tool or writing up the appropriate tool? This will be especially true for occasional or one-off tasks.
I don't think we'll see a world where local llms are capable of diffing a file in the millisecond timescale that current diffing does.

Same for most things. How long does it take some juiced up llm to build an mp4 renderer? Can it do all of that in the milliseconds it takes mpv file.mp4 to display it's first rendered frames?

What about a video game? How long would it take the god of all AI, running on local hardware, to build and launch GTA 6? Could it do so in less than the ~4hour download and ~1 hour install? Could it do so in less than the hour install if I didn't have it installed? Could it build and launch in less than the ~minutes it would take to launch if I'd already downloaded and installed it?

Suppose in this future someone else runs their llms for many days/hours/weeks across many agents totalling perhaps years of clock time. They have a game/program that does something I'd like to do/play, and it sits in say a terabyte of space. The only way me using my agents instead of downloading their file makes sense is if I have so vastly much more compute than them that I can complete what they did in days/hours/weeks in around a day (assuming my internet somehow stays pegged to 100mb/s in this future), because I can download a terabyte in 24 hours.

Speaking of GTA 6 ... I'd buy that game if the non-player characters had capable AI, like an LLM agent.
But you pay an electricity fee for diffing. and/or you pay a battery life fee. You pay a timeslice of your finite human life. You pay an amount of depreciation cost of your computer hardware - if you bought a $1000 computer and all you did was diff, that would be $1000 to diff.
So, Star Trek
Haskell, future, pure and LLMs in the same sentence can only describe a good joke. But that wasn't one. So I guess you're serious. It's basically a useless language that hasn't been used for doing anything meaningfull, I tried using functional languages for doing "pure game programming" performance and type gymnastic was a total disaster. Spaghettified code even before LLMs
There are good reasons why people have tried for decades to make functional programming practical. Haskell is a great specification language that is also executable. LLMs can make it practical IF they can use correctness preserving transforms to compile this specification into fast executable code.
shellcheck is written in Haskell
OCaml, F#, or even Rust have functional cores that verify correctness. They’re wire token efficient, too.

Sufficiently massaged OCaml/F# approaches straightforward readability in plain English.

And, for people who have been doing it for a minute, the other ways of programming do seem a little ridiculous ;)

Yea lets just trash all these legacy codebases the world depends on, I'm sure this will work out
You're being sarcastic but it's likely necessary. There will be so many vulnerabilities found in legacy codebases and not enough people who understand them to patch the holes. We'll have to rely on LLM to update them and the once well-understood codebase would be more and more like a vibe-coded one.
Some people, when confronted with a problem, think “I know, I’ll use AI.” Now they have many problems. They think “I know, I’ll use many AIs.”
Legacy codebases are toast. This is where the software world is heading:

https://www.youtube.com/watch?v=Bo-vESS4jt0

https://www.youtube.com/watch?v=UCL4K36SHp0

It's like watching a boat pull into port. You can see the boat on the horizon, but people are saying the boat won't be arriving any time soon.

The boat's here. Nobody's going to be programming the old fashioned way anymore (except as a hobby or a specialist). You should probably get ready for the boat.

They have to go. You must keep feeble human hands off the code as much as possible. Ideally, all coding will be done in a safe and secure proprietary binary format owned by Anthropic, obfuscated and rich with LLM-poison booby traps to ensure that nobody can attempt to modify it using inefficient meatcoding or dangerous and unsafe bootleg Chinese LLMs. Only then can we achieve maximally aligned and efficient GSI and infinite prosperity for all.
Claude can rewrite those codebases in Rust in an eyeblink. Let them all burn.
So why doesnt Microsoft rewrite a fully backcompat "close to perfect" Windows thats requires less memory and lots of other good stuff ?
The same reason why we don't get a lot of shit that we ostensibly can and should get given that we have AI or any cool, advanced technology: lack of political/economic will.

Cloud services and AI are Microsoft's profit center now. Windows is kind of an afterthought. If anything, it exists more to drive users towards those services rather than for its own sake as an OS. They made noises about oxidizing it completely earlier this year. Maybe they'll get around to it. Or maybe not.

If AI rewrote a better/safer windows for tomorrow, Microsoft would need far fewer engineers to fix today and tomorrows issues/vulns along with significantly fewer support calls.

I would call those savings real economic incentives.

Can it? Have we seen anything created by ai work at scale? Like the rust Postgres clone or the photoshop one.

This thread is completely detached from AIs real capabilities

LLM are great at prototypes and starting things but once you get to a certain level of complexity they cannot make progress without stumbling over itself

Most people on HN are completely detached from the reality of AI it seems. They see all these AI this AI that headlines, discovered vulnerabilities and for some reason think "yea AI can fix that".