frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: What makes a programming language great for code generation?

3•keithasaurus•8h ago
At the moment, it seems programming language popularity might be the best indicator of whether an LLM will be proficient at generating working code (e.g. Python, JavaScript, Java, C). However, it seems plausible to me that languages which require the least amount of extra reasoning (and/or tokens?) could allow LLMs to produce working code more often. For instance, I would imagine immutability to be easier for an LLM to "reason" about than local mutability. The same could be said for strict formatting, explicit types, concise syntax, etc. By that reasoning I might expect functional languages to be particularly good targets.

Is there any evidence supporting these ideas? Should there be (or are there already) languages developed with LLMs in mind? Will we see developers pushed more toward languages that LLMs are more proficient at?

Comments

Bostonian•7h ago
I think you want a language where code that compiles is more likely to be correct code. Code that does not compile is only an annoyance, since it can't make its way into production.
lendacerda•7h ago
Yes you need good amounts of data for the LLM to learn the language. But after some point, the easyness of the language is more important. Python and Javascript (or TS) are kings

Ideally, you dont wanna LLM to reason. You yourself should understand the problem and the better solution for it, and then the AI just executes on it

AskHN: Best, simplest platform to run a Technical Interview on?

3•marche101•42m ago•0 comments

Ask HN: Do you have a side project you're getting tired of?

13•gdulli•6h ago•9 comments

Ask HN: Conversational AI to Learn a Language

77•edweis•5d ago•57 comments

Ask HN: How do you promote your personal projects with a limited budget?

115•javafactory•1d ago•86 comments

Ask HN: Agent / workflow frameworks or roll your own?

4•dennisy•6h ago•0 comments

We sold our first AI agent to a legacy industry–now we're stuck. Help us Advice?

7•goldmanX•10h ago•11 comments

Ask HN: Places in the UK / Europe Related to computers

7•sailorganymede•15h ago•7 comments

Ask HN: What makes a programming language great for code generation?

3•keithasaurus•8h ago•2 comments

Ask HN: Has anyone been able to overcome crippling executive dysfunction?

37•justanything•1d ago•35 comments

Ask HN: How to Make Friendster Great?

84•ca98am79•1d ago•124 comments

Tell HN: Mozilla is preparing to remove bookmark keywords

13•RheingoldRiver•5h ago•1 comments

I spent 15 years developing a tool to make sense of software version numbers

30•a1tern•2d ago•5 comments

Ask HN: Pros and cons of offering a self-hosted version of your SaaS?

12•DavyCreddy•1d ago•3 comments

Ask HN: Engineering Statics and Dynamics book recommendation

7•areoform•1d ago•2 comments

I'm Peter Roberts, immigration attorney, who does work for YC and startups. AMA

255•proberts•6d ago•453 comments

Ask HN: How are you using LLMs for research on a library of journal articles?

3•jopizio•1d ago•0 comments

Modern Python Boilerplate – good package basic structure

7•lambda-science•1d ago•0 comments

More than 1,500 AI projects are now vulnerable to a silent exploit

3•mykytamudryi•5h ago•1 comments

Ask HN: Where to find UX design resources?

10•bindd•1d ago•4 comments

What If Every Picture You've Ever Seen Already Exists?

16•cin4ed•2d ago•27 comments

Tell HN: The Hetzner Experience - Invisible Outages

34•AmazingTurtle•2d ago•12 comments

Ask HN: Don't You Mind That LLMs Are Mostly Proprietary?

18•dakiol•3d ago•18 comments

Built an AI Tool? List It for Free on Aisofto.com

6•rahulbstomar•1d ago•0 comments

Is this necassary to fail at first time? No money with 280 Users

3•gurpreet_codes•1d ago•5 comments

Ask HN: Does the languages we speak affect the way we think?

7•Genius_um•2d ago•19 comments

Big Beautiful Bill R&D Tax: Will tech go on a hiring spree again?

20•jbverschoor•3d ago•19 comments

Ask HN: Anyone working in traditional ML/stats research instead of LLMs?

21•itsmekali321•5d ago•11 comments

How to Fix the Gaming Industry

3•azyLum•2d ago•10 comments

Ask HN: Do people actually pay for small web tools?

57•scratchyone•4d ago•65 comments

Ask HN: When do you just give up and ship it?

16•90s_dev•2d ago•14 comments