Live data from Hacker News

Getting Started with Functional Programming in F#

codeopinion.com

11–20 of 43 posts

Re: Getting Started with Functional Programming in F#

#12
post #9
post #7

Earlier quoted context omitted.

I can do this - PS C:\foo> dotnet --version 1.0.0-rc4-004771 PS C:\foo> dotnet new mvc -lang F# Pretty certain this is 4.1 and already out. Articles have been around for a while https://medium.com/real-world-fsharp/using-f-with-net-core-a...

Fsharp 4.1 does not appear to be released yet. The download for windows is still 4.0. Last I looked ionide did not support .net core. I'm betting it will be released as part of the VS 2017 visualfsharp update. They just called for help testing RC3. I'm looking forward to the release and the subsequent smoothing of the .net core fhsarp ecosystem.

First RTM release of VS 2017 due early March, but I think there will be many updates thereafter.

Re: Getting Started with Functional Programming in F#

#13
I'm currently learning F#, and liked everything so far, in particular that you can learn both functional style as well as interaction with existing .net apis, which allows you to build typical use-cases faster (as you would know them from imperative/oo languages, like building a small crawler). I wish there was a good ML-style language for the JVM.

VS Code has good integration, check out the Ionide plugin.

For a language introduction, this wikibook is quite ok: https://en.wikibooks.org/wiki/F_Sharp_Programming

Re: Getting Started with Functional Programming in F#

#14

I just started learning F# with the help of a well known F# dev. It's been a fun challenge. Give yourself the chance to try it out. Do check out http://fsharpforfunandprofit.com Its a great resource.

That site sold me on F# and functional programming! Really good content I can recommend too.

Another good Source: http://blog.ploeh.dk/

Re: Getting Started with Functional Programming in F#

#15

I'm currently learning F#, and liked everything so far, in particular that you can learn both functional style as well as interaction with existing .net apis, which allows you to build typical use-cases faster (as you would know them from imperative/oo languages, like building a small crawler). I wish there was a good ML-style language for the JVM. VS Code has good integration, check out the Ionide plugin. For a lang…

> I wish there was a good ML-style language for the JVM.

Scala?

Re: Getting Started with Functional Programming in F#

#16
post #3
post #2

I've recently got back in to F#, one thing I like is the fact you can leverage the world of .NET For instance, first thing I did was I used suave.io to expose a webservice for a digital IO module ( http://www.mccdaq.com/ ) and it amounted to around 50 ish lines of code. Runs flawlessly. The F# community is pretty awesome as well with a good ratio between experts and people learning the language.

SuaveIO is really nice to work with. Peformance is terrible but that could be fixed. Its on my list of things to have a go at improving some time with some PRs. I think the big low hanging fruit would be switching from async await to either Hopac or TPL, which is above my pay grade but there are lrobably othwr areas that could be tweaked. I encourage perf junkies to have a go at it, as it wonderful to work with.

the Suave extension for ASP.NET Core (https://www.nuget.org/packages/Suave.AspNetCore/) is fast and you can use lots of suave specific features, with same performant kestrel as base, because suave is added as middleware.

Or there is also a new attempt (https://github.com/dustinmoris/AspNetCore.Lambda) to use api similar to suave, more integrated with asp.net core itself (security/auth/etc).

Re: Getting Started with Functional Programming in F#

#17
post #15

I'm currently learning F#, and liked everything so far, in particular that you can learn both functional style as well as interaction with existing .net apis, which allows you to build typical use-cases faster (as you would know them from imperative/oo languages, like building a small crawler). I wish there was a good ML-style language for the JVM. VS Code has good integration, check out the Ionide plugin. For a lang…

> I wish there was a good ML-style language for the JVM. Scala?

ML?

Re: Getting Started with Functional Programming in F#

#18
post #15

Earlier quoted context omitted.

> I wish there was a good ML-style language for the JVM. Scala?

ML?

https://en.wikipedia.org/wiki/Scala_(programming_language)

(first paragraphs and "influenced by")

https://www.quora.com/What-are-the-influences-of-the-ML-lang...

...

Re: Getting Started with Functional Programming in F#

#19

I just started learning F# with the help of a well known F# dev. It's been a fun challenge. Give yourself the chance to try it out. Do check out http://fsharpforfunandprofit.com Its a great resource.

I'd especially recommend this article: http://fsharpforfunandprofit.com/posts/is-your-language-unre... for a very convincing counter-argument to my thinking about #c had enough functional features that learning f# isn't worth it. It's very high on my todo list basically because of this article.

Re: Getting Started with Functional Programming in F#

#20
post #9
post #7

Earlier quoted context omitted.

I can do this - PS C:\foo> dotnet --version 1.0.0-rc4-004771 PS C:\foo> dotnet new mvc -lang F# Pretty certain this is 4.1 and already out. Articles have been around for a while https://medium.com/real-world-fsharp/using-f-with-net-core-a...

Fsharp 4.1 does not appear to be released yet. The download for windows is still 4.0. Last I looked ionide did not support .net core. I'm betting it will be released as part of the VS 2017 visualfsharp update. They just called for help testing RC3. I'm looking forward to the release and the subsequent smoothing of the .net core fhsarp ecosystem.

Depends what you mean released. rtm not, but rc are out, and works.

Or use VS2017-rc, to use f# 4.1 with .NET framework

Or use .NET Core sdk and .net core https://github.com/dotnet/netcorecli-fsc/wiki/.NET-Core-SDK-... the default templates use new f# 4.1

Ionide in vscode support .net core (both project.json and msbuild sdks), atm there is a temporary issues with rc4, but feel free to use a previous sdk (are really similar, no need to stay bleeding edge, and will be fixing sooner than later).

See wiki https://github.com/dotnet/netcorecli-fsc/wiki for more info about f# and .net core, or new sdk (all version, with how-to and workaround if needed)

Post reply on HN