Top
Best
New

Posted by nicolas-siplis 17 hours ago

Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com)
511 points | 243 commentspage 7
lr0 15 hours ago|
How is that better than just writing tests and running them in any other language, let's say Go?
hei-lima 15 hours ago|
Tests aren't proofs.
gigatexal 15 hours ago||
All these skeptics and nobody just tried it out?

I will later. From what I can tell it looks nice. I like the syntax. I don’t know of the claims but willing to give it a shot.

The GPU story would it work on my Mac or is it not GPU agnostic?

baq 8 hours ago||
> All these skeptics and nobody just tried it out?

Welcome to HN!

May I remind you of the Dropbox comment? https://news.ycombinator.com/item?id=9224

gigatexal 8 hours ago||
Classic. That comment should be in a museum.
thomasfromcdnjs 11 hours ago||
I gave it a spin using muse 1.3

Got it to port kaparthys microgpt -> https://github.com/thomasdavis/bend-experiments/tree/main/mi...

muse did surprisingly well getting it to work, can't speak for the code quality.

mantovanidaniel 15 hours ago||
.
developedby 15 hours ago||
The benchmarks: https://github.com/bendlang/bend/tree/main/bench

The script we use to run them on our servers: https://github.com/bendlang/bend/blob/main/gates/perf.ts

hei-lima 15 hours ago||
Read the damn code and readme, for god's sake!
xyzsparetimexyz 12 hours ago||
Not the AI slop background colour T_T
eikonoklastess 29 minutes ago||
nigga doesnt know about solarized light
developedby 6 hours ago||
It's just solarized, i imagine most developers are familiar with it
mantovanidaniel 12 hours ago||
Awesome! Now we can use AI to manage our nuclear defense and attack response.
bb-connor 15 hours ago||
20k stars is sooooooooo sus lmao
imarid 14 hours ago|
He got 80k+ followers on Twitter (x), tracking his progress on Bend, why sus?
ModernMech 14 hours ago||
20k stars is about the same as Crystal and Gleam, languages with actual user bases that have been around for years. Here’s what organic versus… we’ll say viral growth looks like.

https://www.star-history.com/?repos=bendlang%2Fbend%2Ccrysta...

IshKebab 16 hours ago||
Interesting... But I don't think formal software verification is going to be the answer (is that what this is? Kind of unclear.)

It's too difficult and doesn't scale well to many real world programs - how do you formally verify Facebook?

We'll probably be stuck with normal testing and at least skimming code for a while.

gr_norm 16 hours ago||
Is EC2 real-world enough? From June:

https://aws.amazon.com/blogs/compute/aws-nitro-isolation-eng...

And for the PQ parts of Apple's crypto libraries, from May:

https://security.apple.com/blog/formal-verification-corecryp...

Similar from Microsoft, from July:

https://www.microsoft.com/en-us/research/blog/verifying-rust...

thesmtsolver2 9 hours ago||
Funny you say that while OpenAI and rest of the world rely on Lean and other formal systems to power through (or sometime brute force) math problems.
boxed 16 hours ago||
A single commit in github, and the compiler isn't there anyway. Where is the compiler?
robinhouston 16 hours ago||
I’m just looking at it for the first time myself, but isn’t the compiler in https://github.com/bendlang/bend/blob/main/bend2/comp.ts ?
boxed 8 hours ago||
Claiming super fast compile times with super fast runtimes faster than LLVM and the compiler is a single typescript file 6k characters long of AI slop. Jesus.
LightMachine 16 hours ago||
the compiler is in comp.ts, alongside the runtime

it is not a pretty file and it has a lot of gambiarra and AI slop for now

if you want to read something worthy, read the kernel (bend.ts)

lioeters 10 hours ago||
Glad to see a new release of Bend, fascinating cutting-edge stuff.

I had to look up "gambiarra": a Brazilian expression that means to use improvised methods to solve a problem with any avaiable material.

Totally understandable, I think you did the right thing by releasing early, even if it's still in rough shape, to get some public feedback. This forum can be a hit-or-miss, sometimes even great projects are not appreciated (and the opposite too). But I imagine some people are in the target audience who will see the project and actually explore the language, and follow along with its development.

Nezk 7 hours ago|
As I understand it, there are no implicit arguments (and, consequently, no unification) here, right? This doesn't seem very serious given the ambitions of a project like this. Of course, one could argue that it isn't necessary if everything is generated by a LLMs, but… why bother with "human-readable" Python-like syntax in that case? It's not Python, after all, and I don't think it would help with LLM code generation in any way.
Nezk 4 hours ago|
And benchmarking this language against Isabelle/Agda/Lean/Rocq is strange. The time taken for those systems to perform their checks is mostly spent on elaboration, which includes unification against metavariables, typeclass resolution and tactics. Bend has none of that (there are no type classes or traits, and according to the README, everything must be fully annotated and nothing inferred). This means that the benchmark is comparing Bend's checker to the other systems' elaborators + kernels rather than their kernels (Agda doesn't have this separation though). The latter would be a fairer comparison, and in this area the other systems are already fast. Framing it as "outperforming every proof assistant" without that caveat is misleading.

There is also a problem with LAWS.bend. The typechecker only guarantees that your code satisfies what's written in LAWS.bend — not that LAWS.bend says what you actually meant. There is nothing to stop an LLM from "satisfying" a law with a vacuous or narrower-than-intended formalisation — the trust problem simply shifts from the code to the specification (which could be also generated by LLM, and therefore incorrect). The repository even admits that the compiler itself is 99% LLM generated and not yet fully audited, which seems a questionable basis on which to build a "mathematical guarantees" marketing.

More comments...