Live data from Hacker News

Getting Started with Functional Programming in F#

codeopinion.com

21–30 of 43 posts

Re: Getting Started with Functional Programming in F#

#21
post #18

Earlier quoted context omitted.

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

Ok, yeah, influenced. Javascript could also be called a LISP with C-Syntax, but that wouldn't make it a LISP. But I get what you mean.

Re: Getting Started with Functional Programming in F#

#22

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 website is gold anyway, not only for f#. Lots of nice concepts, explained simply.

And lots of good tutorial/ideas

Re: Getting Started with Functional Programming in F#

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

Is phoenix actually taking off outside SV startups?

There are zero Elixir jobs on my part of the planet.

Whereas F# is on my PC thanks to a full VS install done by IT, and I can at least use it instead of Powershell.

Re: Getting Started with Functional Programming in F#

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

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

[deleted]

Re: Getting Started with Functional Programming in F#

#25
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?

This! Don't be fooled by the prevalence of Haskell-like libraries and patterns in the Scala community (or a vocal subset). Those are absolutely useful but you're free to use them or not, and if you want to just write ML style functional code then Scala is great for that too.

There is actually a really interesting (to me) discussion going on about where Scala sits on the Intersection of Java,ML & Haskell going on in the r/Scala subreddit at the moment:

https://www.reddit.com/r/scala/comments/5sv1w5/the_divergenc...

Re: Getting Started with Functional Programming in F#

#26
post #15

Earlier quoted context omitted.

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

This! Don't be fooled by the prevalence of Haskell-like libraries and patterns in the Scala community (or a vocal subset). Those are absolutely useful but you're free to use them or not, and if you want to just write ML style functional code then Scala is great for that too. There is actually a really interesting (to me) discussion going on about where Scala sits on the Intersection of Java,ML & Haskell going on in t…

So, I just started learning Haskell and I learned a bit of Standard ML in the past.

I was/am expecting Haskell to be broadly similar to ML - what's the main way the two languages differ?

edit: never mind, from the reddit discussion you linked:

> while these languages are undoubtedly strongly typed, they are not referentially transparent by default, and actually embrace some levels of imperative programming.

Good read, thanks!

Re: Getting Started with Functional Programming in F#

#27
post #18

Earlier quoted context omitted.

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

Ok, yeah, influenced. Javascript could also be called a LISP with C-Syntax, but that wouldn't make it a LISP. But I get what you mean.

You should compare the actual syntax and constructs. I agree that JS and LISP certainly are as far apart as anything else, and Python is as "functional" as any other imperative language.

But Scala indeed is very similar to (1) OCaml and then (2) ML, and last, (3) Haskell in terms of type inference, syntax, and many other FP concepts [1].

[1] http://www.appservgrid.com/hyper/hyp/ml

Re: Getting Started with Functional Programming in F#

#28

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.

github.com/Frege and eta-lang.org may be tried out

Re: Getting Started with Functional Programming in F#

#29

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.

Only problem is their tutorial code is all broken, I had to visit the github link to find what was missing and add it in.

Re: Getting Started with Functional Programming in F#

#30

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 worked through quite a few of the exercises on http://exercism.io/ and can recommend the challenge and the community around it for learning by writing code.
Post reply on HN