Live data from Hacker News

Getting Started with Functional Programming in F#

codeopinion.com

31–40 of 43 posts

Re: Getting Started with Functional Programming in F#

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

A few things still need to be ironed up.

Expect full support around .NET Core 2.0 time.

https://github.com/Microsoft/visualfsharp/issues/2400

Re: Getting Started with Functional Programming in F#

#32
post #27

Earlier quoted context omitted.

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

Fair enough, thanks for the pointer :)

Re: Getting Started with Functional Programming in F#

#33
post #27

Earlier quoted context omitted.

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

Scala is Hindley-Milner?

Re: Getting Started with Functional Programming in F#

#34
post #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

I had looked at Frege, but it doesn't seem to have the same traction as other functional languages.

Counting on github returns about 10k for each F# and Ocaml, about 60k for Haskell, and 100k for Scala, but about < 200 for Frege.

Re: Getting Started with Functional Programming in F#

#35
post #27

Earlier quoted context omitted.

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

Scala is Hindley-Milner?

http://www.scala-lang.org/old/node/4654

(Short answer: No, because it has [to support] subtypes.)

Re: Getting Started with Functional Programming in F#

#37
post #28

Earlier quoted context omitted.

> I wish there was a good ML-style language for the JVM. github.com/Frege and eta-lang.org may be tried out

I had looked at Frege, but it doesn't seem to have the same traction as other functional languages. Counting on github returns about 10k for each F# and Ocaml, about 60k for Haskell, and 100k for Scala, but about < 200 for Frege.

Yeah compared to .NET there's nothing ML-ish in the F# ballpark (in terms of push/community/basic corporate support = "traction") for the JVM afaik.

Re: Getting Started with Functional Programming in F#

#38
post #37

Earlier quoted context omitted.

I had looked at Frege, but it doesn't seem to have the same traction as other functional languages. Counting on github returns about 10k for each F# and Ocaml, about 60k for Haskell, and 100k for Scala, but about < 200 for Frege.

Yeah compared to .NET there's nothing ML-ish in the F# ballpark (in terms of push/community/basic corporate support = "traction") for the JVM afaik.

True in the sense that Scala has a magnitude higher number of repos, commercial adoption, libraries, than F# (while being much closer to ML than F# in a few important was).

Re: Getting Started with Functional Programming in F#

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

I've thought about this too, and unfortunately it is not feasible, because of the poor/nonexistent meta programming support in F#. Phoenix uses macros for optimizing functions from templates at compile time, handling translations in a clean way, and removing a lot of boilerplate.

Source: Have spent a lot of time with F#, including writing Type Providers (which would not solve the problem).

Re: Getting Started with Functional Programming in F#

#40
post #37

Earlier quoted context omitted.

Yeah compared to .NET there's nothing ML-ish in the F# ballpark (in terms of push/community/basic corporate support = "traction") for the JVM afaik.

True in the sense that Scala has a magnitude higher number of repos, commercial adoption, libraries, than F# (while being much closer to ML than F# in a few important was).

Whoops, my bad, the only faint idea about ML I do have is as the "MotherLode" from what I know of modern-day F# / Haskell --- never looked at Scala so far

That then should be the actual answer to OP's question

Post reply on HN