←back to thread

Why F#?

(batsov.com)
438 points bozhidar | 2 comments | | HN request time: 0.402s | source
Show context
rockyj ◴[] No.43546371[source]
I did try F#, but I was new to .NET ecosystem. For 1 "hello world" I was quite surprised by how many project files and boilerplate was generated by .NET, which put me off.

I am all for FP, immutable, and modern languages. But then where are the jobs and which companies care if you write good code?

Now everyone wants languages which are easy to use with AI, while reducing workforce and "increased productivity". I have been programming for 20 years and know 4-5 languages, in India it was worse but in EU at-least I can make a sustainable living by writing Java / TypeScript. I cannot even find jobs with Kotlin + TypeScript which pay well, forget getting jobs in Elixir / Clojure / F# (there maybe a handful of opportunities if I will relocate for around 70K/year). That is why I have mostly given up on learning niche languages.

replies(11): >>43546449 #>>43546522 #>>43546629 #>>43546648 #>>43546914 #>>43546918 #>>43547243 #>>43547274 #>>43547691 #>>43548828 #>>43553311 #
1. Foofoobar12345 ◴[] No.43548828[source]
F# is quite usable with AI. All AI models are perfectly capable of generating idiomatic F# code. In fact, because it has a nice type system, if you ask the AI to model the problem well with types before implementing, hallucinated bugs are also easier caught.
replies(1): >>43549421 #
2. elcritch ◴[] No.43549421[source]
Same with Nim. It works surprisingly well with AI tools. I think both have more straightforward syntax so it’s easy to generate. I’m curious how more complex languages do like C++ / Rust.

Last time I tried C++ with Copilot it was terrible.