frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Computer Animator and Amiga fanatic Dick Van Dyke turns 100

106•ggm•6h ago•22 comments

Ask HN: Any online tech spaces you hang around that don't involve AI?

3•jc_811•1h ago•0 comments

Ask HN: Thought-Provoking Books

3•Agraillo•1h ago•1 comments

Ask HN: Did anyone else notice that the OpenAI Labs website was completely gone?

19•underlipton•20h ago•7 comments

AI coding is sexy, but accounting is the real low-hanging automation target

34•bmadduma•1d ago•23 comments

Searching: Cybersecurity Classes

3•prospopa•12h ago•1 comments

How does a "you interview for US company, we do the work" scam work?

29•marttilaine•1d ago•33 comments

Ask HN: Should "I asked $AI, and it said" replies be forbidden in HN guidelines?

965•embedding-shape•3d ago•460 comments

Ask HN: Is writing without AI worse than sharing your medical records online?

3•amichail•22h ago•3 comments

Ask HN: Go all-in on AI Boom vs. enjoy parenthood?

8•pratchett•16h ago•17 comments

Our "enterprise" experience with Stripe after $1B+ processed (be careful)

20•Boulderchaim•1d ago•6 comments

Referral to coach for fundraising for pre-revenue seed capital?

3•FWKevents•17h ago•1 comments

Ask HN: How can I delete a Substack account in Australia?

5•freefrog334433•1d ago•1 comments

Ask HN: ArXiv Endorsement as Independent Researcher

5•7777777phil•1d ago•6 comments

Revolutionizing Lighting: How Smart LEDs Are Transforming Homes and Businesses

3•emmasuntech•1d ago•0 comments

Ask HN: Can someone explain why OpenAI credits expire?

5•jemiluv8•2d ago•9 comments

Why are "remote" jobs in late 2025 still limited to hiring in US/CA/UK/DE?

22•ftonato•3d ago•12 comments

Ask HN: Relatively SoTA LLM Agents from Scratch?

3•solsane•1d ago•3 comments

Ask HN: End of Year Book Recommendations

20•marai2•2d ago•9 comments

Practical Tips for Gemini 3

6•xiaoru•2d ago•1 comments

Ask HN: What hard problems are still underexplored?

14•brihati•2d ago•22 comments

Ask HN: What are young technically minded people reading?

18•drdec•3d ago•27 comments

Console.text() – SMS alerts when code executes

6•Noel04•2d ago•9 comments

Ask HN: Has anyone been able to renew their IEEE this month?

8•chrisaycock•1d ago•0 comments

Ask HN: Is it still worth learning a new programming language?

13•xparadigm•3d ago•17 comments

Is any of you using LLMs to create full features in big enterprise apps?

7•not_that_d•3d ago•7 comments

Ask HN: What are you buying your kids for Christmas?

37•JamesSwift•1d ago•42 comments

Ask HN: Are there any viable Android phones for a power user to buy nowadays?

12•gooob•4d ago•8 comments

You've reached the end!

Open in hackernews

Ask HN: Do we need a language designed specifically for AI code generation?

4•baijum•6mo ago
Let's run a thought experiment. If we were to design a new programming language today with the primary goal of it being written by an AI (like Copilot) and reviewed by a human, what would its core features be?

My initial thoughts are that we would trade many of the conveniences we currently value for absolute, unambiguous clarity. For example:

- Would we get rid of most syntactic sugar? If there's only one, explicit way to write a `for` loop, the AI's output becomes more predictable and easier to review.

- Would we enforce extreme explicitness? Imagine a language where you must write `fn foo(none)` if there are no parameters, just to remove the ambiguity of `()`.

- How would we handle safety? Would features like mandatory visibility (`pub`/`priv`) and explicit ownership annotations for FFI calls become central to the language itself, providing guarantees the reviewer can see instantly?

- Would such a language even be usable by humans for day-to-day work, or would it purely be a compilation target for AI prompts?

What trade-offs would you be willing to make for a language that gave you higher confidence in the code an AI generates?

Comments

dtagames•6mo ago
LLMs don't work the way you think. In order to be useful, a model would have to be trained on large quantities of code written in your new language, which don't exist.

Even after that, it will exhibit all the same problems as existing models and other languages. The unreliability of LLMs comes from the way they make predictions, rather than "retrieve" real answers, like a database would. Changing the content and context (your new language) won't change that.

baijum•6mo ago
That's a very fair and critical point. You're right that we can't change the fundamental, probabilistic nature of LLMs themselves.

But that makes me wonder if the goal should be reframed. Instead of trying to eliminate errors, what if we could change their nature?

The interesting hypothesis to explore, then, is whether a language's grammar can be designed to make an LLM's probabilistic errors fail loudly as obvious syntactic errors, rather than failing silently as subtle, hard-to-spot semantic bugs.

For instance, if a language demands extreme explicitness and has no default behaviors, an LLM's failure to generate the required explicit token becomes a simple compile-time error, not a runtime surprise.

So while we can't "fix" the LLM's core, maybe we can design a grammar that acts as a much safer "harness" for its output.

dtagames•6mo ago
I would say we have this language already, too. It's machine code or its cousin, assembler. Processor instructions (machine code) that all software reduces down to are very explicit and have no default values.

The problem is that people don't like writing assembler, which is how we got Fortran in the first place.

The fundamental issue, then, is with the human language side of things, not the programming language side. The LLM is useful because it understands regular English, like "What is the difference between 'let' and 'const' in JS?," which is not something that can be expressed in a programming language.

To get the useful feature we want, natural language understanding, we have to accept the unreliable and predictive nature of the entire technique.

FloatArtifact•6mo ago
What I've always been confused on, why can't we train LLMs to code without ever seeing source code?

If it understands human language enough, it should be able to understand the logic laid out in the documentation mapped to symbols to construct code.

dtagames•6mo ago
We have this already. You can ask Cursor to go read the doc on syntax it may not have ever seen and write something that conforms. I used this recently to support a new feature in Lit which I'd never seen before and I doubt is in the training set much, if at all.

You can also describe your own app's syntax, architecture, function signatures, etc. in markdown files or just in chat and Cursor will write code that conforms to your desired syntax, which definitely doesn't exist in the training set.

FloatArtifact•6mo ago
Yes, but that's not how they're primarily trained.
baijum•5mo ago
This project could be one option for new languages: https://genlm.org/genlm-control/
muzani•6mo ago
Generally they work better with words that are more easily readable by humans. They have a lot of trouble with JSON and do YAML much better, for example. Running through more tokens doesn't just increase cost, it lowers quality.

So they'd likely go the other way. It's like how spoken languages have more redundancies built in.

theGeatZhopa•6mo ago
What's needed is a formalization and that formalization to been trained on. In not sure if systemprompt alone is powerful enough to check and enforce input as definite and exact formalized expression(s).

I don't think it will work out easily like "a programming language for LLM" - but you can always have a discussion with ol' lama