News for hackers. Stuff that matters.
Re:Writing high performance F# code by rawoke083600 on Thursday February 04, 2021 @10:25PM (#26032732)
I wished they made the ecosystem as easy as Go to install on Linux. Last time I "tried" to get into F# (The lang looks really good). I was lost between mono and .net and the other 1000000 gazillion libraries I had to install to get a basic dev-env. After giving up half my SSD in storage, I still had env issues. :/
Re:Writing high performance F# code by Barrin92 on Thursday February 04, 2021 @10:38PM (#26032806)
Nowadays it's pretty straight forward. Just run `sudo snap install dotnet-sdk --classic`, install plugins for fsharp for vscode and you're good to go.
Re:Writing high performance F# code by chusk3 on Thursday February 04, 2021 @11:45PM (#26033225)
Worth noting that snap installs aren't supported in the vscode tooling for F#. There's an open issue and I have a handle on some of the core problems, but they invalidate a ton of assumptions we have.

The safer route is to install the non-snap-based versions.

(I maintain this tooling, for what it's worth)

Re:Writing high performance F# code by xupybd on Friday February 05, 2021 @02:25AM (#26033965)
Thanks for working on this tooling. Your efforts are much appreciated.
Re:Writing high performance F# code by knocte on Friday February 05, 2021 @12:57AM (#26033568)
Can you link to the open issue? I want to subscribe to it.
Re:Writing high performance F# code by rattray on Thursday February 04, 2021 @11:15PM (#26033035)
What's the --classic flag for? Just curious
Re:Writing high performance F# code by knocte on Friday February 05, 2021 @12:56AM (#26033565)
Classic confinement (no sandboxing) because an IDE needs to access tons of stuff from your system (the compilers, your projects, etc).
Re:Writing high performance F# code by rattray on Friday February 05, 2021 @11:23AM (#26037962)
Ah, thank you!
Re:Writing high performance F# code by phillipcarter on Thursday February 04, 2021 @11:32PM (#26033137)
You can follow this guide for installing on your distro of choice: https://docs.microsoft.com/en-us/dotnet/core/install/linux

Unless you have a reason to only use LTS releases, install .NET 5. I suppose this doc could clarify that 3.1 is an LTS and .NET 5 is a "current" (but newer and better).

Re:Writing high performance F# code by angio on Friday February 05, 2021 @08:27AM (#26036039)
My experience is the opposite, with .NET Core I can manage multiple versions of the SDK with my linux package manager and not an external tool. Then in each project I specify which SDK I want to use and what dotnet tools to install.
Re:Writing high performance F# code by mumblemumble on Friday February 05, 2021 @09:19AM (#26036542)
It's become a lot easer with the .NET 5 release from a couple months back.

https://devblogs.microsoft.com/dotnet/announcing-net-5-0/

Re:Writing high performance F# code by 3836293648 on Friday February 05, 2021 @10:04AM (#26037034)
Isn't F# essentially just OCaml on .NET? Wouldn't OCaml be easier to get running?
Re:Writing high performance F# code by mumblemumble on Friday February 05, 2021 @10:22AM (#26037259)
In the same way that Objective-C is just C++ on OS X.

https://news.ycombinator.com/item?id=25989061

Re:Writing high performance F# code by pharmakom on Friday February 05, 2021 @03:08AM (#26034150)
Same, but it’s much better now. The best combination in my experience is:

- .Net Core 5

- VS Code

- Ionide

Re:Writing high performance F# code by Multicomp on Friday February 05, 2021 @06:48AM (#26035310)
literally yesterday I installed the above from nothing and was trying out some F# for fun and profit code within moments...amazing how far the tooling has come from even 2 years ago