News for hackers. Stuff that matters.
Re:I Lost Faith in the Industry, Burned Out, but the Cult of... by turtlebits on Friday February 22, 2019 @02:34PM (#19228378)
I've been meaning to look into F# and this post gave me the motivation to do so again.

However, trying to get up and running on a Mac, the documentation is horrible. I looked at several of the official guides, including the Microsoft site on how to get running with VSCode, and none of them worked without having to search for the error messages.

Now that I'm up and running, none of the docs I could find would tell me how to build/run a project.

It appears you to install the .NET Core SDK, and now trying to build a project gives some ".NETFramework,Version=v4.6.1" error.

What a nightmare. I almost expected this since this is a .NET/Microsoft related project.

Re:I Lost Faith in the Industry, Burned Out, but the Cult of... by AdeptusAquinas on Friday February 22, 2019 @02:50PM (#19228514)
Right now, there is a transition between net framework and net core in the MS .net world, which causes plenty of confusion to newcomers. Which is sad, because the clean, .net core way is the simplest thing in the world:

1. Install the dotnet core sdk 2. From a command line in an empty folder, run `dotnet new console -lang F#` 3. To build or run use `dotnet build` or `dotnet run`

Re:I Lost Faith in the Industry, Burned Out, but the Cult of... by turtlebits on Friday February 22, 2019 @02:58PM (#19228595)
Wow, that actually worked. Wish those were in the official docs so I wouldn't have wasted an hour trying to debug...

I followed the VSCode instructions and using "F# new project" apparently gave me a .fsproj with the wrong TargetFramework, and after changing that, then got a "Could not load file or assembly 'FSharp.Core" error.

Re:I Lost Faith in the Industry, Burned Out, but the Cult of... by AdeptusAquinas on Friday February 22, 2019 @03:08PM (#19228670)
Yeah, sorry. dotnet core to me has been an attempt by MS to not just get cross platform, but also to rewrite everything to get rid of the old kludges. Simple CLI, simple fsproj files, easy nuget, no differences on linux/osx/windows.

But there is still a lot of outdated docs out there. dotnet core has just come too fast, imo (though I'm thankful). These MS docs are accurate: https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/g.... Though it does specify the use of sln, which isnt necessary for small projects.

Re:I Lost Faith in the Industry, Burned Out, but the Cult of... by isaacabraham79 on Friday February 22, 2019 @05:26PM (#19229719)
Try here https://dotnet.microsoft.com/download. We also put some beginner videos on our you tube channel here https://m.youtube.com/compositionalit.