Remix.run Logo
td2 2 days ago

Wouldnt a fair counter argument be, that llms have been trained on way less fu ctional code though?

Like they are trained on a LOT of js code -> good at js Way less functional code -> worse performance?

mvellandi 2 days ago | parent | next [-]

You can write functional-style code in many languages, as I have in JS and occasionally Python to great benefit.

DeathArrow a day ago | parent [-]

For sure. I write functional style code in C# but it is not the same thing as writing OCaml or F#.

nextos 2 days ago | parent | prev [-]

That's a very fair point. There are some publications showing lower performance for languages with less training data. I imagine it also applies to different paradigms. Most training code will be imperative and of lower quality.