Java FFI can be done, it is just on the messier end of the spectrum. I do a little bit of it as needed, but I've focused in on Polyglot languages for now, and deferred a lot of the hooks for nicely handling it to later work.
Talking about Java FFI invites you to say 'well then smart-ass how do you extend this Java class/interface over here with code written in your language' and frankly, that has never had a satisfying answer for any language that isn't Java.
But today you can pass Haskell Data.Text out through the FFI binding framework and it shows up on the other side as a valid TruffleString, in UTF-8 with zero copy semantics and if any Truffle language passes in a TruffleString that is UTF-8 encoded it gets unwrapped into Data.Text using the same.
That and some array support is pretty much enough to talk to everybody else.
Only tangentially related, but I'm reminded of Frege[0], a Haskell dialect for the JVM that I stumbled across at one point and thought looked really cool.... I see recent commits but the releases are all really old, so I can't tell what the state of the project is.
I hadn't thought of Fregue in some years! I helped them with their logo and some smaller issues back in the time. I will check out the latest commits to see what's being updated (hopefully not only dependabot:) ).
Since there is MicroHS Haskell compiler in 0.5 MB space nothing is stopping people to wire it together with TurboVision/ncurses. Apart from that the name is taken now.
Part of the name was a joke about people often mishearing Haskell as Pascal, Ed told me a couple of years ago. I think it might have been at ZuriHac back when it was at Google Zurich, so 2016-ish?
i see, but my statement does not become false because of it. his agent pushes several commits an hour in a continuous loop, meaning this respected developer is not involved in the process at all.
The article gives a link to the discussion on Reddit. In it, Edward says
"I actually did pretty much gave up sleep for a week. That said there are a few hour stretches here and there where I leave it on mostly cleanup tasks and doze off. you can find a couple of 2-3 hour breaks where it got hung up on approval while I was lights out. "
I briefly worked with him personally. He is 1. a perfectionist and 2. equipped with the intellectual and programming firepower to not get stuck in the resulting paralysis that a lot of people get stuck in but blast through tasks that should be impossible to do at all, let alone with a high degree of quality, successfully, through sheer intellectual firepower. The end result is that he is well known for already having not just one incredible Haskell library, but a number of them.
I can promise you he will not produce and release "slop". He would be an order of magnitude more offended at the idea than you are, I'd imagine.
in that case it is truly amazing, because I have never seen anyone even with current ai capable of being so productive and truly understanding what they are putting out.
Ed Kmett is one of the smartest people I have ever met in my life. He is quite literally built different.
He completed undergrad and graduate programs in math, computer science, and a special program in ai all simultaneously in 3 years. I believe he was finishing programs before his scholarships could kick in.
> not just one incredible Haskell library, but a number of them
...and this still understates his impact on Haskell, he helped shape how a lot of programs are written in Haskell through some of the stuff he worked on (see e.g. https://stackoverflow.com/a/2769840 as evidence of his influence on core functionality).
In the original commenter's defense, I _did_ let the agents I have working on this get a more than a bit test harness crazy back when I was able to use GHC itself as a behavioral oracle. That worked fine through the initial build out, but then it rushed ahead with a broken CI due to misalignment in priorities, and then kept piling fixtures on top of fixtures and didn't properly track their cross-dependencies. My work on this in the last 48 hours has mostly been about getting that part under control and stable across my target platforms so I have better bedrock to build atop.
He wore out the vim movement keys on a mac laptop keyboard in four months.
By "wore out" I mean he had worn the plastic down to the keyswitches, in FOUR MONTHS.
We once had an emergency production outage and Kmett got more productive as he stayed up later. At about 36 hours he fixed the problem. I fell over asleep, he fixed other problems he'd found during the investigation.
I have lots more Ed stories, but this output you question does not surprise me.
Kmett is a legend in Haskell. He writes and maintains tens of libraries - since the 2000s. Even before LLMs, Kmett had an output like most of us can do only with LLMs. Seriously, the guy is a coding machine.
now that there's all the rage about agentic coding - & languages don't matter - why r people not migrating to more less error prone languages like Haskell ?
I've had much better experiences with Haskell (well, mostly PureScript for now) than Python, but that might be because I am very hands-on with the design of the core types and abstractions I'm working with.
Having an effect system so that Claude is not tempted to throw in side-effects everywhere helps a lot too!
(For further context, I was comparing essentially vibe code across languages. Vibe-coded Clojure stood out as much less unpalatable than anything else I tried.)
The pre-LLM popularity of languages remains sticky because it influences what libraries are available, the sophistication of the tooling, and of course, sticky developer preferences. So while the playing fields may shift a little, it resembles what came before. Also, in my circles I've noticed it's very easy for us to rationalize why our previous favorite language is also the perfect language for the agent era.
If your favorite language before was Python, why, LLMs are fluent in it! So much training data! So many libraries! Home of machine learning! None of that pesky compile time, agents don't need compile time safety anyway, they write such good test coverage! It's The Perfect Agentic Coding Language.
If it was Rust, by jove, an agent can easily handle the headache of satisfying the borrow checker, and now you get the best of all worlds! Safety! Near-C runtime performance! Abstractions! The only reason people didn't use Rust before was it was Too Hard and there were Too Many Furries and now it's not hard and you don't have to interact with them, so get on board. It's The Perfect Agentic Coding Language.
If it was Golang, oh my goodness, what a choice. Pretty fast compile time and pretty fast runtime. Agents get a tight feedback loop with build->run->test->edit. Not very complicated, code has to be written in a straightforward banging-rocks-together way. Good stable ecosystem! Rob Pike designed the language for people he said were "not capable of understanding a brilliant language but we want to use them to build good software." That's an arrogant, demeaning way to describe your colleagues but if they're LLM agents it's dead on! It's The Perfect Agentic Coding Language.
I could go on and on. I'm not immune either! My own favorite language is F# and I play the same game:
It has access to the .NET ecosystem like C#, but I don't have to constantly remind the agents to prefer a style with immutable data and pure functions, they idiomatically do that in F#. Files have to be in order and can only refer to symbols defined "earlier" in order, if you want mutually-referential types or functions they have to be declared as such in a joint statement, so spaghetti is hard to create: each project's codebase naturally ends up in a layered bottom-to-top architecture. The language is terse enough to be token efficient, without being symbol soup. FSX scripts can be generated during agentic code reviews to demonstrate repros for discovered issues. If there's any type of code that still warrants me jumping in and writing some myself, that code would be data type definitions/domain modelling, and F# is a joy to write those in. It's The Perfect Agentic Coding Language.
> THC now implements every one of GHC 9.14.1’s prim-ops and provides a JIT for GHC Core that runs Haskell on the JVM
Look, it's very cool and a great project, but I just don't think you should call the compiler "turbo $something" if you're not going to make it a TUI IDE.
vocatan | a day ago
throwaway81523 | 22 hours ago
throwway262515 | 14 hours ago
kitd | 15 hours ago
gf000 | 8 hours ago
But of course as a Truffle language it gets "free" java interop
edwardkmett | 3 hours ago
Talking about Java FFI invites you to say 'well then smart-ass how do you extend this Java class/interface over here with code written in your language' and frankly, that has never had a satisfying answer for any language that isn't Java.
But today you can pass Haskell Data.Text out through the FFI binding framework and it shows up on the other side as a valid TruffleString, in UTF-8 with zero copy semantics and if any Truffle language passes in a TruffleString that is UTF-8 encoded it gets unwrapped into Data.Text using the same.
That and some array support is pretty much enough to talk to everybody else.
BalinKing | 15 hours ago
[0] https://github.com/frege/frege
kinow | 14 hours ago
fouc | 15 hours ago
bmacho | 14 hours ago
nathell | 14 hours ago
bmacho | 13 hours ago
edwardkmett | 3 hours ago
edwardkmett | 3 hours ago
quchen | 14 hours ago
davidkunz | 14 hours ago
TurboHaskal | 14 hours ago
vintermann | 10 hours ago
edwardkmett | 3 hours ago
Now picking CBD for the compressed Core Binary Distribution format we use? That? That was gratuitous.
asplake | 14 hours ago
therepanic | 13 hours ago
i am not sure anyone actually understands what is going on under the hood of the project. looks like average slop.
>> Exactly a week ago (as a joke), I started writing THC,
you? i hope you have read at least something of what your agent wrote about the project.
vintermann | 13 hours ago
therepanic | 13 hours ago
draven | 13 hours ago
4b11b4 | 9 hours ago
jerf | 8 hours ago
I can promise you he will not produce and release "slop". He would be an order of magnitude more offended at the idea than you are, I'd imagine.
therepanic | 6 hours ago
solomonb | 6 hours ago
He completed undergrad and graduate programs in math, computer science, and a special program in ai all simultaneously in 3 years. I believe he was finishing programs before his scholarships could kick in.
ddellacosta | 6 hours ago
...and this still understates his impact on Haskell, he helped shape how a lot of programs are written in Haskell through some of the stuff he worked on (see e.g. https://stackoverflow.com/a/2769840 as evidence of his influence on core functionality).
edwardkmett | 2 hours ago
In the original commenter's defense, I _did_ let the agents I have working on this get a more than a bit test harness crazy back when I was able to use GHC itself as a behavioral oracle. That worked fine through the initial build out, but then it rushed ahead with a broken CI due to misalignment in priorities, and then kept piling fixtures on top of fixtures and didn't properly track their cross-dependencies. My work on this in the last 48 hours has mostly been about getting that part under control and stable across my target platforms so I have better bedrock to build atop.
shae | 4 hours ago
He wore out the vim movement keys on a mac laptop keyboard in four months.
By "wore out" I mean he had worn the plastic down to the keyswitches, in FOUR MONTHS.
We once had an emergency production outage and Kmett got more productive as he stayed up later. At about 36 hours he fixed the problem. I fell over asleep, he fixed other problems he'd found during the investigation.
I have lots more Ed stories, but this output you question does not surprise me.
bmacho | 4 hours ago
Please continue telling them
rsrsrs86 | 10 hours ago
ta2345fa59be | 9 hours ago
How can you tell?
gojogs | 7 hours ago
draven | 12 hours ago
jeffhwang | 7 hours ago
https://www.reddit.com/r/haskell/comments/1wu24oe/turbo_hask...
woadwarrior01 | 12 hours ago
classified | 10 hours ago
Why not call it Jaskell then?
ch4s3 | 8 hours ago
classified | 8 hours ago
ch4s3 | 6 hours ago
classified | 4 hours ago
ch4s3 | 4 hours ago
cosmic_quanta | 8 hours ago
https://haskell.foundation/podcast/87/
dzonga | 7 hours ago
pawelmurias | 7 hours ago
Gimpei | 7 hours ago
epgui | 6 hours ago
I have no doubt the haskell compiles… but when it comes from an LLM it reads like nonsensical code soup.
Claude-generated Clojure seems a lot better.
tikhonj | 6 hours ago
Having an effect system so that Claude is not tempted to throw in side-effects everywhere helps a lot too!
epgui | 5 hours ago
(For further context, I was comparing essentially vibe code across languages. Vibe-coded Clojure stood out as much less unpalatable than anything else I tried.)
rspeele | 4 hours ago
If your favorite language before was Python, why, LLMs are fluent in it! So much training data! So many libraries! Home of machine learning! None of that pesky compile time, agents don't need compile time safety anyway, they write such good test coverage! It's The Perfect Agentic Coding Language.
If it was Rust, by jove, an agent can easily handle the headache of satisfying the borrow checker, and now you get the best of all worlds! Safety! Near-C runtime performance! Abstractions! The only reason people didn't use Rust before was it was Too Hard and there were Too Many Furries and now it's not hard and you don't have to interact with them, so get on board. It's The Perfect Agentic Coding Language.
If it was Golang, oh my goodness, what a choice. Pretty fast compile time and pretty fast runtime. Agents get a tight feedback loop with build->run->test->edit. Not very complicated, code has to be written in a straightforward banging-rocks-together way. Good stable ecosystem! Rob Pike designed the language for people he said were "not capable of understanding a brilliant language but we want to use them to build good software." That's an arrogant, demeaning way to describe your colleagues but if they're LLM agents it's dead on! It's The Perfect Agentic Coding Language.
I could go on and on. I'm not immune either! My own favorite language is F# and I play the same game:
It has access to the .NET ecosystem like C#, but I don't have to constantly remind the agents to prefer a style with immutable data and pure functions, they idiomatically do that in F#. Files have to be in order and can only refer to symbols defined "earlier" in order, if you want mutually-referential types or functions they have to be declared as such in a joint statement, so spaghetti is hard to create: each project's codebase naturally ends up in a layered bottom-to-top architecture. The language is terse enough to be token efficient, without being symbol soup. FSX scripts can be generated during agentic code reviews to demonstrate repros for discovered issues. If there's any type of code that still warrants me jumping in and writing some myself, that code would be data type definitions/domain modelling, and F# is a joy to write those in. It's The Perfect Agentic Coding Language.
zerr | 7 hours ago
yjftsjthsd-h | 5 hours ago
Look, it's very cool and a great project, but I just don't think you should call the compiler "turbo $something" if you're not going to make it a TUI IDE.
edwardkmett | 3 hours ago
Next?
mannycalavera42 | 2 hours ago
JSR_FDED | 5 hours ago
iLemming | 3 hours ago