Settings

Theme

Ask HN: What is the best programming language for "vibe coding"?

5 points by ranuzz 10 months ago · 6 comments · 1 min read


there must be an existing language that is perfect for prompt coding without even looking into the generated code. I mean we don't look at the machine code (not always) while compiling a higher level language. Now that english is the highest level programming language maybe there is a better option. IMO elixir is one possible candidate

taylodl 10 months ago

I asked Copilot this exact question and it says Python and JavaScript are the most popular for vibe programming. Take that with a grain of salt.

Taking the conversation further, basically languages in the TIOBE top 10 are your best bet. Copilot claimed that it's generally better at generating solutions in those languages than languages not in the TIOBE top 10. Don't know whether that's true or not, but it makes sense, and it was straight from the horse's mouth!

FWIW, I've had a lot of success vibe coding with Python and JavaScript.

mtmail 10 months ago

For writing tests https://en.wikipedia.org/wiki/Behavior-driven_development#St... can be helpful. In my experience the parsing (e.g. Python behave library) is still regular expressions but maybe an AI can magically parse the sentences better.

layer8 10 months ago

Maybe Haskell, for its strong static typing (catches hallucinations faster), succinctness (uses less LLM tokens), and relative absence of side-effects (again should help with hallucinations).

Another factor, however, is abundance in the training data. In that light, Java may be a good candidate among statically typed languages.

bn-l 10 months ago

> without even looking into the generated code

I don’t think we’re even close to this.

  • ranuzzOP 10 months ago

    yeah, that's true. but given the pace at which codegen techs are evolving we can still speculate :)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection