News for hackers. Stuff that matters.
Re:An analysis of the C#/.NET platform by Mikeb85 on Saturday November 02, 2013 @05:26PM (#6660884)
> If a non-MS affiliated company marketed a language as lean as F#, with as good a runtime and editor/debugger, they'd be a huge amount of "hipster" cred and praise.

OCaml? Which is what F# is based on, compiles to anything (including fast native code), and is open-source?

Re:An analysis of the C#/.NET platform by MichaelGG on Saturday November 02, 2013 @05:36PM (#6660920)
Are OCaml's main libraries even threadsafe yet? Is there a smooth editor/debugger like Visual Studio? Just a quick look says the Windows version of OCaml doesn't even have a debugger. OCaml is neat, and more advanced than F# in some aspects, but I'm not sure the dev experience is nearly as slick.

Another thing not mentioned: libraries. Anything half-well designed on JVM or .NET has access to a massive amount of libraries (and both stdlibs are pretty complete). Depending on the project, that's not a trivial consideration.

More info from a biased source: https://www.quora.com/Functional-Programming/How-does-F-comp...

Re:An analysis of the C#/.NET platform by gaius on Sunday November 03, 2013 @06:31AM (#6662845)
You can get a fairly complete stdlib on OCaml too, as long as you are willing to commit yourself to using Jane Street Core rather than the one that comes with the language.
Re:An analysis of the C#/.NET platform by profquail on Saturday November 02, 2013 @05:50PM (#6660977)
I suspect F# can also be compiled to nearly anything OCaml can be -- that is specifically the point of the Code Quotations feature of the language.

F# is also open-source (https://github.com/fsharp/fsharp). Why do you keep implying it isn't?

Re:An analysis of the C#/.NET platform by Mikeb85 on Saturday November 02, 2013 @06:03PM (#6661024)
The .NET runtime isn't open source...

I like how this is down-voted as though it isn't true...

Re:An analysis of the C#/.NET platform by MichaelGG on Saturday November 02, 2013 @06:19PM (#6661081)
Perhaps because you're being pedantic about .NET versus the CLI? The CLI spec is a standard and open source. Microsoft's own version isn't open source (well, they did release an "open" source version, Rotor). But Mono's is.
Re:An analysis of the C#/.NET platform by profquail on Saturday November 02, 2013 @08:19PM (#6661485)
Correct -- the .NET runtime isn't open source.

F# has a very strong following on Mono though. In fact, I suspect a higher percentage of F# developers develop and/or deploy on Mono than any other language does.

You may not know this, but F# ships with the Mono distribution for OS X, and it may well ship with the Linux packages before long.

BTW, I maintain the F# port for FreeBSD, and the combination of F#, Mono 3.2.x, FreeBSD 10, and emacs is extremely fast and stable. http://fsharp.org/use/freebsd

Re:An analysis of the C#/.NET platform by platz on Saturday November 02, 2013 @09:41PM (#6661763)
I think the performance of Mono on Linux is a bit lacking though, compared to other Linux VM's/Runtimes or the Windows CLR runtime.
Re:An analysis of the C#/.NET platform by profquail on Sunday November 03, 2013 @12:07AM (#6662184)
That's true. Mono is generally slower than the CLR, though it has been improving ever since Xamarin took over. There's also an option now to use LLVM as the JIT compilation engine in Mono; for server-based applications (where steady-state performance matters more than start-up time), this can greatly improve the performance thanks to LLVM's optimizer.

With the improvements in the latest 3.2.x branch, I think Mono's performance is at least "good enough" for many use cases.

FWIW, I do a bit of F# + Mono development on FreeBSD 9 (and now FreeBSD 10) and have found the performance to be quite good. I wrote an installation guide (http://fsharp.org/use/freebsd) if you want to give it a try, e.g., in a VirtualBox VM.

Re:An analysis of the C#/.NET platform by platz on Monday November 04, 2013 @12:49PM (#6669990)
The LLVM as the JIT compilation engine in Mono option is very interesting! Thanks for that tip.

I used to use freebsd as a student a while ago. It was pretty interesting and I wish more people would give it a try.

Re:An analysis of the C#/.NET platform by nbevans on Saturday November 02, 2013 @05:47PM (#6660965)
F# is open source too. </minor pedant>
Re:An analysis of the C#/.NET platform by Mikeb85 on Saturday November 02, 2013 @06:03PM (#6661025)
The runtime (.NET) isn't...
Re:An analysis of the C#/.NET platform by nbevans on Saturday November 02, 2013 @06:20PM (#6661087)
I assume you're referring to the CLR here? As in: http://en.wikipedia.org/wiki/Common_Language_Runtime

Whilst no, the Microsoft CLR is not open source. It doesn't need to be. Because the CLI is a ECMA standard and known-good third party implementations (Mono) already exist.

The only thing to be gained from open sourcing the Microsoft CLR would be to benefit Mono. As Mono is the defacto official cross-platform port of the CLR. Since the Microsoft CLR almost certainly contains IP and trade secrets that they wouldn't want their commercial rivals to see, it would be more beneficial if Microsoft merely gave a fairly open code sharing and IP license to the Mono / Xamarin team so that they could benefit in the exact same way as though it were OSS MIT.

Re:An analysis of the C#/.NET platform by MichaelGG on Saturday November 02, 2013 @06:20PM (#6661085)
The runtime is actually the CLI, which is a standard and has open source implementations.