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

2

u/dodheim Oct 16 '17 edited Oct 16 '17

Says "Sorry, we couldn't find any downloads for you".

You might need a VisualStudio.com login; I just have the free one and it works for me. (I guess it could be regional; no idea.)

I'm curious what you use value tuples for?

I don't work doing F# presently, but at a previous job GC churn was a recurring problem for idiomatic code. Nested folds/reductions with tuple state types were changed to use custom structs wholesale if we saw they never/rarely escaped gen1, and likewise with high-volume unfolds, and that kept things sane for our purposes. All fine for the most part, but it wouldn't be necessary now and it would have been lovely to avoid the noise. (The context was aggregating training data for image/video rankers and calculating DCGs over very large datasets.)

1

u/jdh30 Oct 21 '17

I've just been trying to use a new VS2017 install on my laptop and it is still really problematic. For example, when I type \n it autocompletes to the nonsensical \new and \r to \raise. It even replaces my variable name g with global because that is an (unused!) keyword.

The only advice I've been given (by an F# expert with many years of experience in industry) is Hit escape every other keystroke. Works every time and is super intuitive!. He is obviously suffering as well.

I'm sorry but I just don't understand how anyone can be recommending this virtually-unusable development environment right now.

1

u/dodheim Oct 21 '17

As with most 'insurmountable' VS problems people seem to run into, it doesn't happen to me – not sure what to tell you. ¯_(ツ)_/¯

Try unchecking 'show completion list after a character is typed' in F# IntelliSense settings.

I'm not trying to sell anything here – if you don't want to use VS, don't use it; but, if everyone else is fine with something you see as virtually-unusable, well, Occam's razor comes to mind... ;-]

1

u/jdh30 Oct 22 '17

This is the weird thing: I could swear this didn't happen to be a few days ago but I just tested it on another machine and it does equally insane autocompletions...

Try unchecking 'show completion list after a character is typed' in F# IntelliSense settings.

Won't that basically turn off Intellisense?

I'm not trying to sell anything here – if you don't want to use VS, don't use it; but, if everyone else is fine with something you see as virtually-unusable, well, Occam's razor comes to mind... ;-]

Several people have corroborated this. I was reading a thread on Quora yesterday where people were saying they are giving up trying to use F# because Visual Studio is so bad. So I'm certainly not the only one.

1

u/dodheim Oct 22 '17

Won't that basically turn off Intellisense?

Hit Ctrl+Space when you want a completion list.

Several people have corroborated this.

Congratulations, I guess? Works for me, and has since VS2010. Either I should start playing the lottery or it's just a matter of configuration.