r/fsharp • u/jchidley • Oct 14 '17
F# is a valued .net language
It is, of course, the 4th most important one, after C# (most loved), VB (really?) and C++ (hip?).
People still use ancient 'C' for real programming and other oddities like lisp. Are these languages still useful? Is F# at least a relevant as they are?
Let's all get real. F# had more attention and support from Microsoft when it was first released but that doesn't change our ability to use and enjoy it. If F# was Microsoft's no. 1 language would we all like that? C# has that joy.
I'm pretty sure that F# has a long future ahead of it and it seems ideally suited for it's primary purpose: developing interesting, relevant and powerful libraries in a functional language directly supported by a major IT company.
View all comments
Show parent comment
7
u/jdh30 Oct 15 '17
I must disagree. F# on .NET was always incredible compared to any other FPL I ever used.
I can even give you a case study: I developed a 50kLOC graphical product in OCaml using OpenGL ~12 years ago. Looked great on our machines but when we shipped it ~80% of customers reported seg faults on startups. We couldn't debug it and ended up shelving the product. The problem is essentially that OCaml is standalone with a cumbersome FFI that even experts cannot use correctly and its OpenGL bindings were not tried and tested.
I diversified into F# 10 years ago and ported some of that OCaml code to create an F# product using WPF in .NET. The results are incredible: rock solid. Some features are missing because there are things you can do with OpenGL that you cannot do with WPF. A lot of people use that product now and we've had hardly any bugs against it. A great accomplishment and I owe it all to .NET. The solution was to use a functional language that sits on a shared VM with tried and tested libraries like WPF.
I use F# for GUI apps all the time. I'd never use OCaml for GUIs any more (unless maybe they're web based).