News for hackers. Stuff that matters.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by CraigJPerry on Tuesday December 03, 2013 @01:29PM (#6842082)
On Linux making a standalone binary is surprisingly easy:

    $ fsharpc file.fs  # can run the generated file.exe via mono at this point
    $ mkbundle --static file.exe -o file
Now ./file is a statically compiled binary. Easy deployment.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by bunderbunder on Tuesday December 03, 2013 @04:54PM (#6843466)
One potential gotcha there: The Mono runtime libraries are licensed under the LGPL, so beware of using this option if you've got licensing restrictions that prevent you from distributing binaries that are statically linked to LGPL code.

You can always leave the --static flag off, but then your binaries will require the Mono run-time to be installed.

Re:Announcing the F# 3.1 Compiler/Library Code Drop by sixbrx on Tuesday December 03, 2013 @01:33PM (#6842108)
Wow, I had no idea things have progressed this far in the F# world on Linux. I might have to try it on my next numerical project. Thanks for posting.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by tbirdz on Tuesday December 03, 2013 @01:41PM (#6842161)
I was interested in the language, but was put off by the .NET connection for using on linux. Is F# running on mono on linux comparable, performance-wise, with the windows stack?
Re:Announcing the F# 3.1 Compiler/Library Code Drop by snotrockets on Tuesday December 03, 2013 @03:28PM (#6842943)
Whenever splitting Microsoft is mentioned, I pray for them to spin off the devtools.

F# is better Scala than Scala, C# better Java than Java. Both suffer from a meh runtime (compared to other offers) on non-Windows platforms.

Re:Announcing the F# 3.1 Compiler/Library Code Drop by MichaelGG on Tuesday December 03, 2013 @02:25PM (#6842482)
Mono is generally slower, with a few exceptions. It's not "slow" though - maybe half the performance of the CLR? I'm not sure where it stands after v3, which includes a proper GC. Mono also has an LLVM option which increases startup times, but provides a ~30% bonus at runtime.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by bunderbunder on Tuesday December 03, 2013 @05:16PM (#6843584)
One of the possible exceptions is number crunching. .NET has no equivalent to Mono.SIMD, so for numerical tasks it's conceivable that code written for Mono could end up being far faster.

Depending on what you're doing, the performance difference might not matter in practice. Mono's (historically, at least) done worse with super OO-y code because of its poorer GC performance, but oftentimes that kind of code also ends up appearing in applications where overall performance is dominated by I/O and CPU efficiency ends up being negligible.

Re:Announcing the F# 3.1 Compiler/Library Code Drop by throwaway344 on Tuesday December 03, 2013 @01:37PM (#6842140)
That is awesome. I've been working pretty extensively with F# (several small projects, and a current bigger one), and I really love the language. Has all the functional constructs that I like plus mutable variables when I need them. And pretty boilerplate-less.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by tikhonj on Tuesday December 03, 2013 @06:06PM (#6843863)
I rather like the idea of "functional first" as a paradigm. It underscores the crucial fact that all the common functional languages (even Haskell) are multiparadigm; they just default to functional programming instead of defaulting to imperative programming the way other "multiparadigm"languages do.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by profquail on Tuesday December 03, 2013 @02:59PM (#6842751)
* Mac OS X: F# ships as part of the Mono distribution.

* Linux: http://fsharp.org/use/linux/

* FreeBSD: http://fsharp.org/use/freebsd/

Re:Announcing the F# 3.1 Compiler/Library Code Drop by gaze on Tuesday December 03, 2013 @02:21PM (#6842442)
Grrr. Why won't Microsoft open the CLR? It's so fast and has such amazing codegen! I don't want performance to degrade moving from Windows to some platform that requires I run mono!
Re:Announcing the F# 3.1 Compiler/Library Code Drop by dragonwriter on Tuesday December 03, 2013 @02:25PM (#6842488)
> Why won't Microsoft open the CLR? It's so fast and has such amazing codegen!

Watch how you are about to answer your own question.

> I don't want performance to degrade moving from Windows to some platform that requires I run mono!

Yes, but Microsoft, who sells Windows licenses, does want performance to degrade when you move from Windows to some other platform.

Re:Announcing the F# 3.1 Compiler/Library Code Drop by marshray on Tuesday December 03, 2013 @08:54PM (#6844521)
While it's not the same insanely-optimized JIT-compiled runtime implementation that you're asking about, note that the .Net micro framework has been released as Apache 2.0.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by lucian1900 on Wednesday December 04, 2013 @05:25AM (#6846043)
The solution is to ignore .NET entirely and only use Mono, even on Windows. Then you get the same platform everywhere, as you would with the JVM.
Re:Announcing the F# 3.1 Compiler/Library Code Drop by jzelinskie on Tuesday December 03, 2013 @04:04PM (#6843187)
I watched a video the other night of a demo of F# and was pretty impressed with some of the dev tools: especially IntelliSense on APIs and being able to provide an example URL to generate classes for incoming JSON.