logoalt Hacker News

giraffe_ladyyesterday at 7:43 PM5 repliesview on HN

OCaml is the LLM secret weapon right now. They are better at writing it than they are any other language.* That’s all I have to say about it.

* Other “pure” hindley-milner languages are tied but among them ocaml has some particular strengths that I’m sure others will discuss.


Replies

mchaveryesterday at 11:42 PM

For web frontend, it's derivative programming language, rescript, is also a secret weapon because of types, fast compilation times and first class support of React. Using React in rescript is much nicer than TypeScript.

nine_kyesterday at 7:53 PM

Two genuine questions. (1) Why not Rust? (2) Why not Haskell?

(I have my own answers, but I'd love to hear yours, too.)

show 3 replies
sroerickyesterday at 10:54 PM

Couldn't agree more. Even when the models could barely write it, the compiler was so good

steve1977yesterday at 8:22 PM

Did you also compare F#?

phtrivieryesterday at 8:02 PM

Flamebait aside, has this been studied for real ? Curious how you would rate that...

show 1 reply