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. :/
[ Parent
| on HN ]
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.
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)
Thanks for working on this tooling. Your efforts are much appreciated.
Can you link to the open issue? I want to subscribe to it.
What's the --classic flag for? Just curious
Classic confinement (no sandboxing) because an IDE needs to access tons of stuff from your system (the compilers, your projects, etc).
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).
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.
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.
Same, but it’s much better now. The best combination in my experience is:
- .Net Core 5
- VS Code
- Ionide