Live data from Hacker News

Tour of F#

docs.microsoft.com

31–40 of 140 posts

Re: Tour of F#

#31
post #2

One observation from watching Go and Rust gain popularity is that having an online code evaluation tool like https://play.rust-lang.org/ or https://play.golang.org/ can do wonders for adoption. People can experiment in a sandbox without having to hop into a development environment, and peers have an easier time debugging by easily sharing and reproducing problems. For anyone interested in trying out F# online, looks…

I tried tryfs.net, but the Hello World sample doesn't work in Chrome: uBlock Origin blocks some scripts, but even after disabling uBlock it still doesn't render anything to the output area, it just flashes.

Re: Tour of F#

#32
post #24
post #2

One observation from watching Go and Rust gain popularity is that having an online code evaluation tool like https://play.rust-lang.org/ or https://play.golang.org/ can do wonders for adoption. People can experiment in a sandbox without having to hop into a development environment, and peers have an easier time debugging by easily sharing and reproducing problems. For anyone interested in trying out F# online, looks…

A more recent Microsoft offering for trying F# (or Python, R) is: https://notebooks.azure.com Click on the Intro to F#. Or try the user contributed notebook: https://notebooks.azure.com/library/HorsesForCourses [msft]

Literate Programming with Notebooks is where no other .net based language comes close to F#. I will spend more time on F# notebooks, this is great!

Re: Tour of F#

#34

Earlier quoted context omitted.

There are multiple ways to use F# on the Mac. I use both Visual Studio Code with Ionide and Visual Studio for Mac. VSCode plugin: https://marketplace.visualstudio.com/items?itemName=Ionide.I... VS for mac: https://www.visualstudio.com/vs/visual-studio-mac/ There is a guide for VSCode + Ionide here: https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tuto...

Are you developing against Mono or .NET Core?

Both!

Re: Tour of F#

#35
post #22
post #16

What's the quick start for using F# on the Mac? Can I get a good native development environment? Am I better off running a Windows VM to get better tooling?

Visual Studio on Windows is good for F#, though it kind of needs the power tools plugin for F# to make it better. It's definitely not as awesome as the C# experience is, but still better than most! https://www.visualstudio.com/vs/visual-studio-mac/ for mac is pretty good. It's less than visual studio for windows, but still ok. Easy to get started. Visual Code, this seems a highly preferred option, and a lot of Fsharp…

Note that in VS2017, many of the Visual F# Power Tools features are in-box and use the same UI that C# and Visual Basic do. The folks behind the VFPT have been porting a lot of that code over and making many improvements along the way. There will be even more features and improvements in future VS 2017 updates, as well!

Re: Tour of F#

#36

Author of the article here. Happy to see this up on HN! The article is actually more of an annotated version of the F# Tutorial Script[0] which ships inside Visual Studio 2017 (also in other version of Visual Studio, but the Tutorial script is a bit different there). You can get started with F# just about everywhere everywhere: * Visual Studio[1] * Visual Studio for Mac[2] * Visual Studio Code (via Ionide plugins)[3]…

The Jupyter notebook hosting on Azure is a wonderful, underrated service. Amazing that they offer it for free.

Re: Tour of F#

#38
post #16

What's the quick start for using F# on the Mac? Can I get a good native development environment? Am I better off running a Windows VM to get better tooling?

There are multiple ways to use F# on the Mac. I use both Visual Studio Code with Ionide and Visual Studio for Mac. VSCode plugin: https://marketplace.visualstudio.com/items?itemName=Ionide.I... VS for mac: https://www.visualstudio.com/vs/visual-studio-mac/ There is a guide for VSCode + Ionide here: https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tuto...

I'm very curious about F# on Mac. I tried it once but it seems disjointed: Ionide requires Mono but I was wanting to use dotnet Core. They didn't seem to agree on what libraries were actually available and I would see red squiggles in the IDE while the code actually compiled.

Re: Tour of F#

#40
post #29
post #7

Earlier quoted context omitted.

I don't know if there's such a thing (maybe I should write one myself, as I plan to learn F# :) ), but a cheat sheet that is a bit higher level would be useful. Things like: * how do I read a text file * how do I write a text file * how do I download a file using HTTP * ...

Expert F# by Don Syme et. all is a fantastic book for precisely this purpose. People are doing themselves a disservice if they scramble for a collection of cheat sheets since there are so good books available.

Can you go straight to this book or do you need to get a certain comfort level with f# first? I have the latest edition for F# 4 but haven't read it yet, plan to as part of my learning the language but haven't figured out order.
Post reply on HN