frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Bend 2 and the Vibe-Coding Trap

https://blog.liampwll.com/posts/bend_vibe_coding/
76•LiamPowell•47m ago

Comments

wg0•28m ago
Some noteworthy lines from the README.md[0]:

> - The compiler (not kernel) is 99% AI-written and has not been fully audited yet.

> - Strings are linked lists of characters, so text processing is slow.

[0]. https://github.com/bendlang/bend/tree/main

skybrian•28m ago
It seems like this is largely a matter of what you’re asking for. If you wanted to do more research into the state of the field, an AI might be pretty good at answering your questions.
jchanimal•25m ago
Yes, telling it that you want parsimonious solutions that reuse existing libraries makes a big difference. Why would it even try to do that sort of stuff if you didn’t ask?
vintermann•22m ago
But it won't tell you if you don't ask. It won't tell you, "This approach is stupid, Ada SPARK exists".
pu_pe•27m ago
The original discussion about the project (https://news.ycombinator.com/item?id=49746163) is very weird. Lots of call-outs about how the author is some sort of celebrity and random accounts vouching for him, with little discussion on the substance.

Not even the demo on that release works well.

larodi•22m ago
The whole original conversation was very smelly from the very start, 20k stars included on the GitHub page with lost history.
guhcampos•16m ago
We know what kind of turf that is.
stschaef•12m ago
I posted a sharp critique in the original discussion, aiming to be civil while critiquing the project. I may have been a bit terse, and would probably rephrase some of it now to avoid confusion, but I don't think I was ever outwardly disrespectful.

I received several very emotionally charged responses centered in the personal credentials of the author. They felt very out of place and did not engage substantively with any of the things I said. It was indeed very weird

The author, who I hadn't heard of before yesterday, actually seems like a cool dude. He was quite responsive, normal, and engaged with my feedback, which makes other random accounts being offended on his behalf all the more uncanny

IshKebab•27m ago
Yes I think fundamentally the effort required to understand, write, and verify a formal specification is just way higher than is reasonable in most situations.

There are some cases where it is pleasingly simple - usually low level algorithms like compression, sorting, search etc. Basically things you'd find in leetcode questions.

Most software isn't like that.

I think the actual answer is just that the very latest models (e.g. Astra) are actually quite good at writing normal tests, and you can just skim them to make sure they're doing something sane.

wg0•24m ago
If you have to write LAWS.bend which is pure code describing the laws then it isn't basically like those old days of writing unit tests and that too tests first hence the TDD?

So what is the unique idea here except a vibe coded compiler that generates C and everything else is handled by clang+llvm?

From README.md:

>The compiler (not kernel) is 99% AI-written and has not been fully audited yet.

Also, why the compiler is not written against and with LAWS.md so that no audit is required at all?

vintermann•24m ago
"Know what to ask for" is what will keep me with a job for a while longer, I guess.
GodelNumbering•22m ago
The code itself is the most compact representation of the rules you want applied.
simonw•22m ago
> It will never tell you that what you’re building already mostly exists as work that you can build on.

It will if you remember to ask it. I've got into the habit of starting any new project with a session where I ask a search-enabled LLM to help me figure out what the prior art for a problem is. It's saved me quite a bit of time.

bryancoxwell•11m ago
Think you could argue that’s more LLM-assisted engineering than it is vibe coding.
capitalatrisk•9m ago
It seems implicit in the article that the author should have remembered to ask, as part of the prior research.
mccoyb•20m ago
@LiamPowell the author is clearly aware of formal verification, they've written several implementations of dependently typed languages, and ... despite the presentation of their work, which has some obvious flaws (as can be judged by reception) ... their many comments indicate that they know what they are talking about.

Your post is setting up a strawman between automatic formal verification and formal verification using interactive theorem provers ... obviously there is a spectrum, and Ada/SPARK are navigating the space to try and automate much of the work required to automatically dispatch with obligations to prove (computable) properties about programs.

Bend2 is a QTT -- it's dependently typed, and comes from the lineage of systems which are focused on being expressive enough to formalize mathematics.

Of course you need to build a somewhat significant "standard library" of theorems, tactics (as metaprograms), etc ... to approach what is built into the compiler in Ada. These are different approaches with different trade offs.

Your post isn't clear, you don't go into any of these details ... why did you post this? Do you think this is clear writing?

LiamPowell•12m ago
> the author is clearly aware of formal verification, they've written several implementations of dependently typed languages

I'm not familiar with the author, I just saw the language posted the other day. I'll add a note to the top.

> These are different approaches with different trade offs.

Why would we want the tradeoff where the LLM has to write significantly more code and where the specification needs to be more complicated? If the author is aware of the state of the art then I think they made a poor choice, but that's not the point.

> Your post isn't clear, you don't go into any of these details

Bend just serves as a useful example, my general point is about how people will vibe-code a solution without an understanding of the field, leading to worse results than if they spent a little while understanding the field and then vibe-coded their thing.

Karrot_Kream•9m ago
If you're going to insinuate that the author of Bend2 doesn't understand PLs and formal verification, you should do so with some proof and not a hot take dunk.

I think it's fine to critique the language and the approach without criticizing the author and I hate that this site has become Tech Drama News, like the worst parts of Twitter.

mentalgear•20m ago
> The author of Bend has completely missed that this is the current standard in the field of formal verification, if they even know that this field exists at all. They have instead come up with this whole system requiring verbose specifications and even more verbose proofs. A little research before vibe-coding an entire language and compiler could have substantially improved the result because the author would have known what to ask for.

> This example matters beyond Bend, vibe-coding makes it makes it far too easy to implement a design that’s horribly broken or decades behind the current state of the art because you can immediately get a result without ever having to do any research. If you ask a LLM for a language where it’s possible to prove that a function is formally correct by building up a proof from basic principles then it will happily do so, it will never stop to suggest to you that computers can already build complex proofs without the need for a LLM and eliminate 99% of the work. It will never tell you that what you’re building already mostly exists as work that you can build on.

---

That's why all your LLM requests to build something substantial should start with "run prior work research first". Of course, at some point everything converges (if we share our outputs open-source) and then we may have solid standard patterns and libraries and do not need to waste trillions of tokens globally to rebuild the same minor, fundamental things, each one in their silent little silo.

IF we share, it will be of course to the monetary detriment of LLM providers who will have less income overall, and of course now they can't repackage anymore all our collective input, thoughts, human 'thinking traces' that they collect in their meta-data, as their new 'innovations' any more to inflate IPOs / stock prices.

cmiles74•15m ago
Or maybe it should be a flag to indicate that there might be more to think about before handing the task of to an LLM.
Forgeties79•12m ago
> "run prior work research first".

As effective as “make no mistakes.”

It is trying to please you, and it always determines that the way to please you is to fulfill the original, core request. Any caveats or first steps will always be secondary to the ultimate goal of “this person wants to do X, so I will do X.”

The only first step I have found somewhat consistently useful, because as we know LLMs do not behave consistently, is when doing tech troubleshooting I will go “look at documentation for X before answering” so that it will search manuals and such. Helps avoid speculation. But even then, it’s still not full proof.

Sidebar: this is one of the core problems of LLM’s currently. You are basically arguing with them to get them to behave a certain way all the time and it’s not always clear if they’re doing what they’re being told to do. Then add the compounding layer that the longer the conversation goes on, the more likely it is to misunderstand or just ignore things as it descends into context-length-induced madness

sligbad•19m ago
Pro: it can be an excellent way to learn if you realize good problems don't come easy, many such cases where I abandon something having learned from it and that's life

Con: the machine will tell you you have easily found a good problem, and engineered the perfect and necessary solution, if you let it

williamcotton•19m ago
I made my first half-dozen DSLs in the last couple of years with the assistance of these tools. Each one taught me valuable lessons about a whole gamut of considerations, from architecture to semantics and to all of the DAPs and LSPs between. Let it be known that the early approaches were, erhm, not very good.

"What if it did this..." and being able to quickly iterate is a fantastic way to explore the surface area of a new programming language.

This being said, I am past sharing these projects on this site as it really draws out an uncharitable crowd.

assumed_throwaw•17m ago
I haven't seen a language launch this controversial on HN since V-lang in 2019.

Glad we finally have some new drama to follow, definitely more entertaining than AI news.

Karrot_Kream•11m ago
Yeah I'm glad I use the time I spend on HN to... <checks notes> find shitty hot takes treading an old flamewar in the PL community. The SNR we all crave. Really exemplifies the guidelines like "be kind don't be snarky" and "please don't fulminate". Lol.
asfq-01•6m ago
I think they know the standards of formal verification. They just surf the AI hype, whip up a verbose Python-like language that is worse than any existing prover language and have 20k bots star it.

This is the way to succeed these days.

z7•5m ago
> The field in question is formal verification. It’s notable that those two words appear nowhere on Bend’s webpage or in its codebase. The developer has built an entire language around a field seemingly without realising that said field exists.

I checked the developer's X account, they have written numerous posts about formal verification, so this specific claim ("without realising that said field exists") seems to be false.

mccoyb•3m ago
Perhaps because their concerns are different? Similar reasoning: "why invest in dependently typed languages over SMT solvers? SMT solvers are automatic, and it is way easier to add annotations to my programs"

The answer is that these technologies are not universal in trade off space.

Of course, if you can have an LLM prove something by dispatch to an SMT solver ... you want to do that (and, indeed, LLMs do sometimes do this even when working on Lean proofs)

But the space of statements that you can prove using verification with SMT is smaller than dependently typed systems.

Also, Ada/SPARK are very good and robust -- they've been around for ~50 years ... but there's been a significant amount of work in formal verification. I would be more clear that Ada/SPARK are state-of-the-art for "mission critical software" (and have been for many years), but there's been a lot of research work in formal verification of low level programming since then (Low*, for instance)

cyanydeez•9m ago
Humans dont let LLMs raw dog internet web searches.
zbentley•8m ago
> That's why all your LLM requests to build something substantial should start with "run prior work research first".

Yes, but I think there are incentives to not do this for many LLM providers. Doing prior-work research is slow (web searches aren't fast, LLMs are rate-limited or blocked from plenty of pages, etc.), and sometimes contradictory which annoys LLM users, many of whom like faster gratification cycles from the agent slot machine handle.

Also, writing a bunch of bespoke code instead of leveraging prior art makes a lot of users feel like they own something novel/big/important, and also poses a larger maintenance surface for the LLM to make future changes (which costs tokens).

I don't think there's, like, a conspiracy at LLM providers to set up system prompts/RAG/etc. to discourage research-and-use-prior-art-by-default approaches. Rather, OpenAI/Anthropic/Google/etc. are optimizing for real but sometimes misleading success metrics which often lead away from a research-first approach.

Qbix Server – PHP 100× faster than Nginx and PHP-fpm

https://github.com/Qbix/webserver
1•theHocineSaad•21s ago•0 comments

The Input Layer

https://mg-crea.com/blog/the-input-layer/
1•olouv•2m ago•0 comments

Show HN: Explore 2D semantic space with the Jev model

https://semanticspace.dev/
1•holdswarm•2m ago•0 comments

King Charles has hesitations about AI

https://techcrunch.com/2026/09/17/even-the-king-of-england-has-his-hesitations-about-ai/
1•soltanov•3m ago•0 comments

The Harms of Modern Lighting and the Fight to Bring Back Incandescent Bulbs

https://www.midwesterndoctor.com/p/the-hidden-harms-of-modern-lighting
1•bilsbie•4m ago•0 comments

Show HN: Using a diffusion model to write docs quickly

https://www.cortee.ai
1•nandorb1•8m ago•0 comments

Making a game for the GBA and PC from the same codebase

https://mattgreer.dev/blog/making-a-game-for-gba-and-pc/
1•birdculture•8m ago•0 comments

lonely 20 questions, a game for people with no friends

https://20questions.foxmoss.com/
1•foxmoss•8m ago•0 comments

Don't Trust the Super-App: A Case Study of Russia's Max

https://arxiv.org/abs/2609.11814
2•pchr8•10m ago•0 comments

Does this mean it's fine to use Claude subscriptions with third party harnesses?

2•jakemanger•11m ago•1 comments

New cat species identified for the first time in a century

https://www.cbc.ca/news/science/tilcayo-tiger-cat-new-species-9.7349140
4•rdmuser•15m ago•1 comments

Moving Share Homes for Ukraine data's code to open source

https://mhclgdigital.blog.gov.uk/2026/09/18/moving-share-homes-for-ukraine-datas-code-to-open-sou...
1•edent•15m ago•0 comments

Grep your Claude Code/Codex history and jump back into the exact session

1•ayushgzip•17m ago•0 comments

Hjfjhg

1•MgAungPhyoThu•17m ago•0 comments

Building an Integrated Vector Database System in PostgreSQL

https://arxiv.org/abs/2608.15994
1•pykello•18m ago•0 comments

Albanins discovering the long-banned car (1992)

https://www.washingtonpost.com/archive/politics/1992/03/29/albanians-discovering-the-long-banned-...
1•edward•18m ago•1 comments

Backgrounding My Way to Japan – How to learn truth from fiction

https://aethermug.com/posts/backgrounding
1•mrcgnc•18m ago•0 comments

Show HN: Jawz – macro market state for AI agents, now a ChatGPT app (no login)

https://jawz.ai
1•nunespv•18m ago•0 comments

Query Plan Rewriting in PostgreSQL

https://theconsensus.dev/p/2026/09/13/query-plan-rewriting-in-postgresql.html
3•eatonphil•22m ago•0 comments

If materialism is true, the United States is probably conscious

https://www.jstor.org/stable/24704177
2•ashergill•23m ago•0 comments

Deploying Monorepos Sucks

https://dominikkoch.dev/blog/deploying-monorepos-sucks
2•DominikKoch•24m ago•0 comments

NeverLose – Crash-proof any Python function with one decorator

https://github.com/neverlose-io/neverlose
2•NeverLose_io•27m ago•0 comments

The 2.5-hour AI-generated Odyssey movie is 2.5 hours too long

https://www.theverge.com/entertainment/996499/ai-odyssey-movie-review
2•robenkleene•28m ago•0 comments

RepoGuard – CLI to stop Cursor and Copilot from bypassing architecture

https://github.com/taylormatematica-beep/repoguard
1•taylor_matemati•30m ago•0 comments

Show HN: OpsGraph – evidence-first PostgreSQL investigations

https://opsgraph-site-seven.vercel.app/
2•arittrabag•31m ago•0 comments

Show HN: I built a small tool to turn my essays into visual stories for YouTube [video]

https://www.youtube.com/watch?v=Sv1u6Oeum5k
1•devrob•31m ago•0 comments

Are AIs Still Struggling with CAPTCHAs?

https://www.schneier.com/blog/archives/2026/09/are-ais-still-struggling-with-captchas.html
1•danaris•31m ago•0 comments

Show HN: Qpilot – run your manual test cases without writing test code

https://github.com/broxhq/qpilot
2•broxhq•32m ago•0 comments

Allelify: Run commands in parallel while storing logs in /tmp to limit noise

https://www.npmjs.com/package/allelify
2•vismit2000•33m ago•0 comments

Grandmother falsely accused of bank theft after alleged AI facial recognition

https://abcnews.com/US/grandmother-falsely-accused-bank-theft-after-alleged-ai/story?id=136536444
1•OutOfHere•34m ago•0 comments