Live data from Hacker News

If you're going to vibe code, why not do it in C?

stephenramsay.net

191–200 of 626 posts

Re: If you're going to vibe code, why not do it in C?

#191

> why not do it in C? Well, because you can do it in Fortran, of course! What else do you want? Multidimensional arrays out of the box, fast loops, native cuda support, trivial build and packaging system, zero version churning... all of this just with the bare language. It's the anti-python! The perfect language, you could say! Strings and i/o are a bit cumbersome, agreed, but your llm can take care of these without…

I like the cut of your jib.

Re: If you're going to vibe code, why not do it in C?

#192
post #185

> If You’re Going to Vibe Code, Why Not Do It in C? Or assembly, or binary Yes, this is a completely valid take and it is the ultimate answer to why vibe coding, the way most people define vibe coding is a dead end. The point is we want the LLM to generate code that is first and foremost readable by humans and structured in such a way that a human can take over control at any time. If you think this is how LLM should…

c is a small language thus more understandable and readable than others? e g. java,rust,c++ can get really complicated to read sometimes.

python though is very readable, not so much for typescript for me.

Re: If you're going to vibe code, why not do it in C?

#193

Earlier quoted context omitted.

why even write webpages or apps anymore just prompt an LLM everytime a user makes a request and write the page to send to the user :D

This... was a Show HN a little while back, can't tell if you're making a joke or referring to that.

oh god, it was a joke, but i want to see that. i hope they made it as a joke.

edit: I think i found it https://news.ycombinator.com/item?id=45783640

Re: If you're going to vibe code, why not do it in C?

#194
post #147

Earlier quoted context omitted.

That's a really, really interesting point. It makes me imagine a programming language designed for LLMs but not humans, designed for rigorous specification of every function, variable, type, etc., valid inputs and outputs, tightly coupled to unit tests, mandatory explicit handling of every exception, etc. Maybe it'll look like a lot of boilerplate but make it easy to read as opposed to easy to write. The idea of a la…

That’s what the article is about.

No it's not. The article proposes the idea of a language designed for vibe-coding, and suggests several variants designed for specific purposes. But none of the variants are for the purpose I suggested, which is about maximizing correctness. That's the point I was making.

Re: If you're going to vibe code, why not do it in C?

#195
Even experts create C/C++ code that is routinely exploited in the wild (see: pegasus malware, Zerodium, Windows zero days, Chrome zero days, etc.). No, please don't vibe code anything security critical, and please don't create unnecessary security risk by writing it in unsafe languages such as C/C++. The only advantage I can see is it creates some fun easy targets for beginning exploit developers. But that's not an advantage for you.

Re: If you're going to vibe code, why not do it in C?

#196
> if vibe coding is the future of software development (and it is), then why bother with languages that were designed for people who are not vibe coding? Shouldn’t there be such a thing as a “vibe-oriented programming language?” VOP.

A language designed for vibe coding could certainly be useful, but what that means is the opposite of what the author thinks that means.

The author thinks that such a language wouldn't need to have lots of high-level features and structure, since those are things that exist for human comprehension.

But actually, the opposite is true. If you're designing a language for LLMs, the language should be extremely strict and wordy and inconvenient and verbose. You should have to organize your code in a certain way, and be forced to check every condition, catch every error, consider every edge case, or the code won't compile.

Such a language would aggravate a human, but a machine wouldn't care. And LLMs would benefit from the rigidness, as it would help prevent any confusion or hallucination from causing bugs in the finished software.

Re: If you're going to vibe code, why not do it in C?

#197

Earlier quoted context omitted.

Yup. I would never be able to give my Jira tickets to an LLM because they're too damn vague or incomplete. Getting the requirements first needs 4 rounds of lobbying with all stakeholders.

A significant part of my LLM workflow involves having the LLM write and update tickets for me. It can make a vague ticket precise and that can be an easy platform to have discussions with stakeholders.

A significant part of my workflow is getting a ticket that is ill-defined or confused and rewriting it so that it is something I can do or not do.

From time to time I have talked over a ticket with an LLM and gotten back what I think is a useful analysis of the problem and put it into the text or comments and I find my peeps tend to think these are TLDR.

Re: If you're going to vibe code, why not do it in C?

#198
post #179

Earlier quoted context omitted.

It "obviously" does based on what, exactly? For most devs (and it appears you, based on your comments) the answer is "their own subjective impressions", but that METR study ( https://arxiv.org/pdf/2507.09089 ) should have completely killed any illusions that that is a reliable metric (note: this argument works regardless of how much LLMs have improved since the study period, because it's about how accurate dev's impr…

not OP but I have a hard metric for you. AI multiplied the amount of code I committed last month by 5x and it's exactly the code I would have written manually. Because I review every line. model: Claude Sonnet 3.5/4.5 in VSCode GitHub Copilot. (GPT Codex and Gemini are good too)

I have no reason to think you're lying about the first part (although I'd point there's several ways that metric could be misleading, and approximately every piece of evidence available suggests it doesn't generalize), but the second part is very fishy. There's really no way for you to know whether or not you'd have written the same code or effectively the same code after reviewing existing code, especially when that review must be fairly cursory (because in order to get the speed up you claim, you must be spending much less time reviewing the code than it would have taken to write). Effectively, what you've done is moved the subjectivity from "how much does this speed me up?" to "is the output the same as if I had done it manually?"

Re: If you're going to vibe code, why not do it in C?

#200

I have successfully vibe-coded features in C. I still don't like C. The agent forgets to free memory latter just like a human would and has to go back and fix it later. On the other hand, I've enjoyed vibe coding Rust more, because I'm interested in Rust and felt like my understanding approved along they way as I saw what code was produced. A lot of coding "talent" isn't skill with the language, it's learning all the…

I just wrote a piece on this specific C issue the other day https://news.ycombinator.com/item?id=46186930

well,glib is terrible for anything important, it's really just for desktop apps. when there is a mem error, glib does not really handle it,it just aborts. ok for desktop, not ok for anything else.
Post reply on HN