Live data from Hacker News

What's New in F# 4.1? [video]

channel9.msdn.com

21–30 of 65 posts

Re: What's New in F# 4.1? [video]

#21

I'm interested in .NET ecosystem languages, as well as functional programming. How is the parsing and meta-programming toolset? How easy or hard would it be for me to implement a subset of F# that only allows pure functions?

If you wanted to create a version of F# that only allows pure functions, your best option is probably to modify the F# compiler (which is open source). However, that sounds like something that might not be all that useful. A more useful thing could potentially be to use the "F# Compiler Service" (which is the compiler API, exposed via a nice F# library) and create some tool that checks purity. I think many people mig…

My purpose would be to create a multiplayer game programming platform. Basically, it would come with a game loop already running, with communications already working. Then you could modify the game by changing functions that transform game tick N to game tick N+1.

Re: What's New in F# 4.1? [video]

#22

While it is great to see all those new features appearing in F# 4.1, the video gives a very narrow perspective on "what is new in F#" - it is a video about new language features in 4.1 and so this is to be expected - but if I was to list "what is new in F# in 2016", large portion of the list would include recent community contributions. Three recent projects are: * http://fable.io , which is a modern F# to JavaScript…

VS Code and Ionide work really well together. There are some slight issues like the loss of syntax highlighting in certain cases, but that is a really small issue. I am using this combination on a GalliumOS chromebook and it works out of the box in like 10 or 15 minutes:

- install VSCode and then Ionide

- install .net core

- install mono (i believe ionide still uses mono)

- install node and npm and then yeoman

- install the aspnet generator for yo

- "yo aspnet" will give the option to generate a working ASP.NET F# website

Re: What's New in F# 4.1? [video]

#23

While it is great to see all those new features appearing in F# 4.1, the video gives a very narrow perspective on "what is new in F#" - it is a video about new language features in 4.1 and so this is to be expected - but if I was to list "what is new in F# in 2016", large portion of the list would include recent community contributions. Three recent projects are: * http://fable.io , which is a modern F# to JavaScript…

VS Code and Ionide work really well together. There are some slight issues like the loss of syntax highlighting in certain cases, but that is a really small issue. I am using this combination on a GalliumOS chromebook and it works out of the box in like 10 or 15 minutes: - install VSCode and then Ionide - install .net core - install mono (i believe ionide still uses mono) - install node and npm and then yeoman - inst…

> VS Code and Ionide work really well together

Not in my experience. Never since it appear the setup have worked for me, not even once.

I try again last week. I need to copy-paste the .sh script from github because the one it generate was wrong.

P.D: I don' use yeoman. NPM bloat is not my style: I follow the MS tutorial:

https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tuto...

Re: What's New in F# 4.1? [video]

#24

Earlier quoted context omitted.

Very strong on the parsing front - FSharp.Data contains parsers and type providers for a variety of common formats and FParsec is a mature parser combinators library.

FParsec is fantastic. I have implemented a parser that supports a indentation based language in it. FParsec makes it very productive, and very fun.

Is published? I have tried to use FParsec before for the same kind of language and failed.

Re: What's New in F# 4.1? [video]

#25

I'm interested in .NET ecosystem languages, as well as functional programming. How is the parsing and meta-programming toolset? How easy or hard would it be for me to implement a subset of F# that only allows pure functions?

Easy?

If we are talking about building a language in F#, remember that is possible to use any language for that.

In fact is make support for side-efects and mutating that complicate the build of a compiler/interpreter.

Re: What's New in F# 4.1? [video]

#26
post #23

Earlier quoted context omitted.

VS Code and Ionide work really well together. There are some slight issues like the loss of syntax highlighting in certain cases, but that is a really small issue. I am using this combination on a GalliumOS chromebook and it works out of the box in like 10 or 15 minutes: - install VSCode and then Ionide - install .net core - install mono (i believe ionide still uses mono) - install node and npm and then yeoman - inst…

> VS Code and Ionide work really well together Not in my experience. Never since it appear the setup have worked for me, not even once. I try again last week. I need to copy-paste the .sh script from github because the one it generate was wrong. P.D: I don' use yeoman. NPM bloat is not my style: I follow the MS tutorial: https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tuto...

The tutorial you linked is for developing against mono using Paket and FAKE. I also found it difficult to work with F# and mono. My recent and positive experience was with developing against .net core.

Also, you don't need to use yeoman, "dotnet new --lang F#" produces a blank F# .net core project and then you can add all of the dependencies manually.

Re: What's New in F# 4.1? [video]

#28
post #24

Earlier quoted context omitted.

FParsec is fantastic. I have implemented a parser that supports a indentation based language in it. FParsec makes it very productive, and very fun.

Is published? I have tried to use FParsec before for the same kind of language and failed.

Its currently in a private bitbucket repo. I can give you the parser though, MIT licensed.

ParserUtils is where maybeIndented and indented are. They make indentation just work. There currently overzealous with backtracking though, makes errors kinda shit. Working on that at somepoint.

https://gist.github.com/xavierzwirtz/99479a11f1eefd3215467f7...

Re: What's New in F# 4.1? [video]

#29

We need HKT. F#. Cmon... I love F# but seriosly...

Not only we do not need HKT, we also do not need Profunctor Optics.

They're a great way to massively slow down both your build and runtime by an order of magnitude. I work with Purescript on a daily basis and don't see it as anything other than an anti-feature that allows for masturbatory FP.

Re: What's New in F# 4.1? [video]

#30

We need HKT. F#. Cmon... I love F# but seriosly...

We're working on Type Classes. It seems like HKTs (or anything like them) are going to be hard without diverging in a huge way from the rest of the .NET ecosystem.

I really think Type Classes will address 90% of what people want without requiring deep hackery. The solutions we have with class dispatch right now are workable but awkward.
Post reply on HN