Live data from Hacker News

Getting Started with Functional Programming in F#

codeopinion.com

1–10 of 43 posts

Re: Getting Started with Functional Programming in F#

#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.

Re: Getting Started with Functional Programming in F#

#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.

Re: Getting Started with Functional Programming in F#

#4
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.

There's a new F# project out there to utilize ASP.NET Core, which has got Kestrel under the hood. I just discovered it and have yet to do any performance testing, but I'd imagine it's pretty in-line with C# results.

https://dusted.codes/functional-aspnet-core

Re: Getting Started with Functional Programming in F#

#6
post #4
post #3

Earlier quoted context omitted.

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.

There's a new F# project out there to utilize ASP.NET Core, which has got Kestrel under the hood. I just discovered it and have yet to do any performance testing, but I'd imagine it's pretty in-line with C# results. https://dusted.codes/functional-aspnet-core

That looks promising!

Re: Getting Started with Functional Programming in F#

#7
post #5

When is 4.1 with .net core support going to be out?

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...

Re: Getting Started with Functional Programming in F#

#9
post #7
post #5

When is 4.1 with .net core support going to be out?

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.

Re: Getting Started with Functional Programming in F#

#10
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.

fsharp would really take off if it had a framework as attractive as phoenix.
Post reply on HN