News for hackers. Stuff that matters.
Re:F# 2014 – A Retrospective and Call to Action by fsloth on Wednesday December 31, 2014 @09:19AM (#8819410)
This sounds swell!

BTW: Tomas Petricek's "Real-world functional progamming" as well as "Expert F#" by Don Syme are excellent introductions to the language.

Re:F# 2014 – A Retrospective and Call to Action by melling on Wednesday December 31, 2014 @09:52AM (#8819525)
Are there any guides to getting started quickly on Mac and Linux? Is F# baked enough in Mono to be useful?
Re:F# 2014 – A Retrospective and Call to Action by kvb on Wednesday December 31, 2014 @10:28AM (#8819690)
I can't personally vouch for them, but perhaps try http://fsharp.org/use/mac/ and http://fsharp.org/use/linux/, or the more in-depth http://fsharp.org/guides/mac-linux-cross-platform/?
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Wednesday December 31, 2014 @11:00AM (#8819804)
There are definitely people using F# on Mono in production, but it is the smaller brother still.

Having said that, nearly all of the "core" projects are now being CI tested on mono as well as windows, and the fsharpbindings project provides autocompletion for Vim and Emacs (+ powers the MonoDevelop/Xamarin Studio F# support as well).

I'm having great fun writing F# code in Linux with Vim - now that .fsx (F# script) files have proper #! support you can just write fsx files with full highlighting, error checking and autocompletion in place and then run them with supervisord.

Re:F# 2014 – A Retrospective and Call to Action by vosper on Wednesday December 31, 2014 @11:07AM (#8819827)
What are the pain points (if any) that you've encountered? I've been wanting to use F# on Linux for a while now.
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Wednesday December 31, 2014 @11:27AM (#8819913)
The lack of good instructions is definitely one!

(Edit: although http://fsharp.org/use/linux/ covers the absolute basics pretty well)

Up until recently, packaging was a bit of an issue, but recently the official Mono repositories have started being much more up to date again, and now include recent versions of F# as well: http://www.mono-project.com/download/#download-lin

Getting vim support is still a case of cloning the project from github https://github.com/fsharp/fsharpbinding and running make in the vim directory - Vim 7.4+, make, python and a couple of other vim plugins required.

After that, things can start getting pretty nice. For (my only public) example, https://github.com/mavnn/Advent2014 shows how you can use fsx scripts and paket (a package manager compatible with nuget.org and taking source dependencies from github) to create a nice little project without needing to get into any of the Visual Studio project file nastiness. Of course, if you need to work on an existing project, the Vim bindings know about how to handle that too - but actually editing project files is still a pain.

One word of caution: there's currently a bug in the packaging for rpm: I'd go with Debian/Ubuntu packages at the moment. And as a final option, building from source is slow but has become pretty reliable over the last year or so.

Re:F# 2014 – A Retrospective and Call to Action by vosper on Wednesday December 31, 2014 @03:45PM (#8820999)
Thanks for that. Having got past the setup and configuration issues, have you experienced any problems with the packages that are available? What's the ecosystem look like for F# on linux?
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Friday January 02, 2015 @04:24AM (#8826158)
Packages generally work fine, although if they rely on native binaries they often require a bit of tweaking to point at the Linux .so rather than the windows .dll. That's uncommon in the .net world though.

The ecosystem is huge; http://nuget.org hosts the main .net package collection, and it fairly comprehension. Also, to be fair to MS the standard library is pretty "batteries included"; it just doesn't always have what I would consider the nicest APIs.

Re:F# 2014 – A Retrospective and Call to Action by platz on Wednesday December 31, 2014 @12:09PM (#8820085)
Re:F# 2014 – A Retrospective and Call to Action by alexatkeplar on Wednesday December 31, 2014 @11:19AM (#8819871)
That sounds very tempting! What's the dependency bundling story like with F#/Mono - what would be the equivalent to assembling a fatjar for the JVM, or indeed `go build` for Go?
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Wednesday December 31, 2014 @11:30AM (#8819931)
As in a self executing file? Not the standard deploy story, but is in theory possible on Mono with a combination of F# compiler options to compile in all dependencies, and mono's "ahead of time (AOT)" build.

It does mean that you lose a number of traditional clr advantages such as JITting - and I have to admit that I haven't tried this route myself. Almost all of the clr code I've written has been server side.

Re:F# 2014 – A Retrospective and Call to Action by alexatkeplar on Wednesday December 31, 2014 @12:15PM (#8820109)
Ah - not necessarily a self-executing file - a fatjar still depends on having the JVM installed on the box. I guess I was asking if there is a way of packaging an F# script or app so that it can be installed on a server with a simple wget from Bintray? So all dependencies vendored in.
Re:F# 2014 – A Retrospective and Call to Action by nerdshark on Wednesday December 31, 2014 @04:53PM (#8821285)
F# applications are compiled to ordinary .NET executables, so you can look at how other .NET applications are packaged on *nix. Basically, you can package them as you would any other software, though it would help to either have .NET executables configured to launch with mono via binfmt_misc (on Linux), or have a small launcher script to do the 'mono myapp.exe' invocation.
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Wednesday December 31, 2014 @05:23PM (#8821374)
As mentioned above, fsx files can be executed with the correct #! if fsharpi is installed.
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Wednesday December 31, 2014 @01:11PM (#8820361)
I'd probably look into Paket (a nuget aware package/source dependency manager) for that. Sorry for the short answer, New Years celebrations beckon!
Re:F# 2014 – A Retrospective and Call to Action by mamcx on Wednesday December 31, 2014 @11:25AM (#8819909)
I wish exist something like this but for Sublime...
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Wednesday December 31, 2014 @11:32AM (#8819938)
It should be possible to plug the F# binding backend into sublime; it expects to run as a separate process and have buffer states passed back and forth as JSON. I don't know much about sublime plugins, but I believe that they're Python based and should be able to handle that reasonably elegantly.
Re:F# 2014 – A Retrospective and Call to Action by lennel on Wednesday December 31, 2014 @10:31AM (#8819705)
I know that one of the teams at my work has deployed a few tools on mono written in F#. I play with mono and f# (nix) and I was surprised with how mature mono develop was (I had very low expectations)- I have not used it in anger however, so things like profiling and such I have not even taken a peak at.
Re:F# 2014 – A Retrospective and Call to Action by igl on Wednesday December 31, 2014 @10:24AM (#8819674)
I asked myself the same question, seeking for ressources on the web and help on irc and i concluded that unfortunately the f# community is mainly a windows community. Mono is quite a niche.
Re:F# 2014 – A Retrospective and Call to Action by mmavnn on Wednesday December 31, 2014 @11:34AM (#8819946)
It is mainly Windows, but as stated in a few other answers people are using Mono in production. How long ago did you look around? I have to admit that it's only really become fully practical (in my mind) in the last 6 months or so.
Re:F# 2014 – A Retrospective and Call to Action by dominotw on Wednesday December 31, 2014 @12:03PM (#8820067)
>Tomas Petricek's "Real-world functional progamming" as well as "Expert F#" by Don Syme are excellent introductions to the language.

I found both books kind of lacking, the former has examples in C# which I found distracting and the latter was too dry. If F# gets a book in the league of "joy of clojure" it would greatly help push F# into the mainstream.

Meanwhile, this is the best book if you like doing exercises as you learn( why wouldn't you? ). Not sure why the book is so underrated.

http://www.amazon.com/Functional-Programming-Using-Michael-H...

Re:F# 2014 – A Retrospective and Call to Action by Rapzid on Wednesday December 31, 2014 @12:37PM (#8820188)
I've read large portions of these books and... I found this site a bit more "insiteful" if not as comprehensive:http://fsharpforfunandprofit.com/ .

This guy does fsharp consulting but there is a WEALTH of good information in the series he has posted.

Re:F# 2014 – A Retrospective and Call to Action by jarcane on Wednesday December 31, 2014 @09:30AM (#8819447)
Thanks! I hadn't head of either book yet. Looks like there's at least some content from RWFP on MSDN here: http://msdn.microsoft.com/en-us/library/vstudio/hh314518(v=v...
Re:F# 2014 – A Retrospective and Call to Action by fsloth on Wednesday December 31, 2014 @12:55PM (#8820271)
The academic nerd in me demands I add other references as well :)

Other resources I found usefull for F# were Sestoft's "Programming language concepts" which uses F# to teach about interpreters and compilers and Flying frog consultancy's "F# Journal".