4 ms·
F# is a lot like OCaml. But OCaml still struggles with multiprocessing, while F# can run on the .NET infrastructure which has this solved.
by amelius 6y ago
F# is a lot like OCaml. But OCaml still struggles with multiprocessing, while F# can run on the .NET infrastructure which has this solved.
- galangalalgol 6y agoOCaml is still pretty fast and part of RHEL. How good ia linux support for F#? And how hars is it to get mono installed?
- cies 6y agoMono? Thought dotnet core now ships[0] for Linux: 0: https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian https://docs.microsoft.com/en-us/dotnet/core/install/linux-d...
- Smaug123 6y agoLinux support for .NET in general, and F# in specific, is good. You don't need Mono at all as of .NET Core a couple of years ago (and the situation has only improved going into .NET 5).
- deleted 6y ago[deleted]
- gameswithgo 6y agoLinux has been a first class target of F# and C# since .NET Core
- bmitc 6y agoDon’t use Mono. Install the .NET 5 SDK and you get F#. .NET 5 is .NET core renamed.
- mumblemumble 6y agoI really don't see F# as being a lot like OCaml in any practical way. It's like, if you're sitting in a hardware store having a hard time choosing between buying a Ryobi brand miter saw and a Ryobi brand power drill for your current project, maybe it's time to take a step back to better define what you're planning to do, and then come back to the store. Sure, since they're both Ryobis they do have a lot of things in common, but that doesn't mean you'd ever substitute one for the other. I won't list every difference, because there's a lot, but, to an approximation, the intersection of their two feature lists looks more-or-less like SML's feature list.
- sweeneyrod 6y agoThey are similar to the point of being identical relative to comparisons between either and any other language you can actually get a job using (although I have a soft spot for it, SML does not fall in this category as far as I can tell from a quick search).
- sweeneyrod 6y agoWhat are some situations where you need parallelism? I am not convinced there are many. I have never heard anyone say they are using .NET instead of JavaScript or Python in order to get parallelism.
- narag 6y agoWeb server programming is inherently multithreaded. I'm not sure if that's a convincing answer, but web performance is definitely a common rationale to use .NET or Java over Python or JS.
- sweeneyrod 6y agoInherently parallel, sure. How often does that parallelism need to be within a single process? Not that frequently in my experience. If your threads aren't sharing state they can just be processes instead. If they are sharing state that's going to cause trouble if/when you have to scale beyond one process.
- narag 6y agoProgrammers use frameworks that offer everything they need out of the box. They do need shared state for sessions. But they don't sit down and think if they're going to use threads or processes. They just choose a popular, feature-full framework. Java and .NET frameworks use threads, rationale being threads perform better. I won't go into that discussion, even if I do have an opinion. Right now, I'm just pointing to what others say.
- amelius 6y agoAny situation where you want to keep latency under control and thus asynchronous programming is not adequate.