News for hackers. Stuff that matters.
Re:Multicore OCaml: May 2021 by hyperhopper on Saturday June 12, 2021 @12:06AM (#27481443)
I love ML based languages, but it's definitely hard to get excited about new features when even just installing ocaml on windows starts with reading a chart of what tradeoffs you're going to have to make.

https://github.com/ocaml/ocaml/blob/trunk/README.win32.adoc

Re:Multicore OCaml: May 2021 by x0re4x on Saturday June 12, 2021 @12:16AM (#27481481)
Try F#. It's not exactly ocaml, but close enough if you want to stay on windows.
Re:Multicore OCaml: May 2021 by rejectedandsad on Saturday June 12, 2021 @01:14AM (#27481731)
I’d even argue F# might be better than OCaml thanks to the better library support, availability on Win/Mac/Linux and pre-existing multi core support.
Re:Multicore OCaml: May 2021 by hyperhopper on Saturday June 12, 2021 @03:09AM (#27482303)
I love F#! I have used it professionally for years!

Unfortunately, it has the same problem, but for Linux instead; dot net core is not the same as dot net.

Re:Multicore OCaml: May 2021 by phillipcarter on Wednesday June 16, 2021 @11:23AM (#27529552)
Which issues did you run into? .NET 5 is the same across all operating systems, modulo access to winforms/wpf if you're on windows only.
Re:Multicore OCaml: May 2021 by Scarbutt on Saturday June 12, 2021 @12:17AM (#27481485)
Or Scala3
Re:Multicore OCaml: May 2021 by vrotaru on Saturday June 12, 2021 @12:20AM (#27481503)
Well, installing OCaml from sources was always considered the hard way.

Now there is https://fdopen.github.io/opam-repository-mingw/installation/

Basically you just need Cygwin and you are good. It worked for me when I last tried it.

Re:Multicore OCaml: May 2021 by heavyset_go on Saturday June 12, 2021 @12:32AM (#27481559)
Are binaries compiled with Cygwin Ocaml portable? As in, can they be distributed to other Windows systems that don't have Cygwin installed?
Re:Multicore OCaml: May 2021 by vrotaru on Saturday June 12, 2021 @12:38AM (#27481581)
The documentation say yes.

With a caveat. If you depend on some cygwin libs for your ocaml program you need them on the other machine too.

Maybe you can copy them over as well. Or not. Not a win dev, sorry.

Re:Multicore OCaml: May 2021 by heavyset_go on Saturday June 12, 2021 @06:08PM (#27487815)
Cool, thanks.
Re:Multicore OCaml: May 2021 by solmag on Saturday June 12, 2021 @12:27AM (#27481529)
I use WSL2 with Ocaml, works fine.
Re:Multicore OCaml: May 2021 by jcelerier on Saturday June 12, 2021 @01:10AM (#27481712)
Is installing OCaml on a Linux VM with shared folders really installing "on windows", that like saying that windows app are installed "on a Mac" when they need Parallels to run
Re:Multicore OCaml: May 2021 by lou1306 on Saturday June 12, 2021 @04:23AM (#27482701)
WSL is a Windows component, so I'd say "yes"? Parallels, instead, is 3rd party software.
Re:Multicore OCaml: May 2021 by hydroxonium on Saturday June 12, 2021 @12:40AM (#27481584)
I use WSL2 as much as possible. It's great.