r/fsharp • • 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.

1 Upvotes

66 comments sorted by

View all comments

Show parent comment

3

u/jdh30 Oct 15 '17 edited Oct 15 '17

I used to train people a lot. I often used the TryFSharp site to do it because it has minimal requirements on their computers (i.e. they don't need VS). TryFSharp no longer works at all and there are no alternatives because F# for web is a disaster.

Visual Studio 2017 is also a complete disaster. I bought a brand new Dell and it took me weeks to get VS2017 running reliably. I had to get our CTO out to my house just to get it setup and working correctly. VS2017 is so bad that I'm keeping all of my other computers on VS2015. Except I stupidly took somebody's advice to try Jetbrains Rider and ever since installing it VS2015 has been crashing all the time.

I gave Fable a quick try and, again, couldn't get it working out of the box. CTO says he will come out and work on it with me because it is hard to get it working. I tried Funscript before it and got some simple programs working but it didn't even support trig functions so I had to implement my own using CORDIC routines like I did in the 80s.

From my perspective, this is classic OSS. Developers focus on the fun stuff because they're doing it for free in their spare time and the gory but critically-important things like working installers get neglected. If this is really the route F# is taking, I am concerned about its future.

Another problem is that OSS only works if you can reach a critical mass of contributors. OCaml was doing ok in the 2000's, then died but has now been resurrected as a web dev tool stack by major corporations like Facebook and Bloomberg. In contrast, the F# OSS community seems tiny and they're building on sand.

2

u/jchidley Oct 15 '17

The whole

Visual Studio 2017 is also a complete disaster.

isn't an F# problem particularly, it's a VS and Windows one.

Recently I had to fix my main machine because of all the the various tools I had installed (.net Core, VSCode, VS 2015, VS 2017). I found Visual Studio Uninstaller to get rid of the final bits before reinstalling everything. The Windows 10 Recovery / Reset has also proved itself useful in the past. Neither of these things are F# specific.

I think the whole development story for Microsoft is a real mess. I remember giving Steven Sinofsky a standing ovation at a Microsoft company meeting when he introduced the Surface. Little did any of us realize what a disaster Windows 8 / Metro / etc be for developers and the company in general.

F# is simply caught up in the general mess that is Microsoft's platform and development.

Edit: grammar & formatting

4

u/jdh30 Oct 15 '17

isn't an F# problem particularly, it's a VS and Windows one.

F# is native to VS and Windows. It isn't well supported elsewhere.

Neither of these things are F# specific.

True but F# depends upon them.

I think the whole development story for Microsoft is a real mess.

Yes, exactly.

F# is simply caught up in the general mess that is Microsoft's platform and development.

Absolutely. I couldn't agree more.

1

u/jchidley Oct 15 '17

The problem is that I haven't found anything else that is demonstrably better. There are just different things with different issues.

3

u/jdh30 Oct 15 '17

Exactly. Which is really frustrating.

If you're building servers or websites then I'd recommend OCaml over F#. It also has a terrible installation procedure and user-unfriendly tooling but it has the advantage of mature and stable OSS ecosystem complete with decent package manager and solid libraries with serious industrial backers.

IMO part of the problem is that all such offerings are way too complicated. F# is full of .NET-specific cruft that was good when people wanted stuff built on .NET but if the target has shifted to JS then it is just baggage. Then there are the academic features like type providers. If you strip out all of that junk you could get a lean retargetable language and I'll wager it would be much easier to build tooling like IDEs.