Hacker News new | ask | show | jobs
by dkersten 21 days ago
Typescript wins in terms of training data IMHO, by which I mean that the training data is large enough that AI does great with TS, and the language is (IMHO) superior to Python in many ways.

I personally now use a mixture of Typescript and Rust for most things, including AI coding. Its been working quite well. (AI doesn't handle Rust as well as TS, in that the code isn't quite idiomatic, but it does ok)

2 comments

It turns out that volume of training data isn't the most important thing. Elixir beats Kotlin and C#, which beat pretty much everything else. Kotlin is probably the sweet spot for most things.
"sweet spot for most things." care to expand on this a bit? Thanks.
Kotlin has the combination of JVM ecosystem, overall good performance and agents are good at writing it. I'd argue that it's a better default choice to reach for when working on non-frontend code than Go, though Rust and Python still have use cases.
Thanks, that makes sense. I agree.
Not the most important thing, but it certainly helps.
Upvoted you, because the downvotes from the Python cult are unfair.
Haha thanks. Funny thing is, I’ve been a long time Python fan, learning it in 2001 and using it extensively for a long time. But then I learned Clojure, Typescript, and recently Rust and I’ve found Python to be quite flawed. But it sure does have a cult following.
:) I use Python as well-- so i am not anti-Pythonic in any strict sense. However, I don't like culltification of technology, be it Python or whatever else. Have you tried F#? It gave me a very good experience.
Only briefly for fun (and OCaml too but very long ago). F# does seem like a language I feel I could really like, though.

I’ve tinkered a little in Gleam and Elixir too. Elixir was incredibly enjoyable, and Gleam is a wonderful language that I wish I could work with more, but I don’t really have a use case for it and nobody will pay me to write it…

Back in 2009, I also spent a few months playing with Factor (before switching to Clojure because despite Clojure being niche, Factor was even more so). It was an interesting and somewhat mind bending experience.