News for hackers. Stuff that matters.
Re:Dark’s new backend will be in F# by toolslive on Tuesday November 03, 2020 @09:55AM (#24980129)
the advantage of F# over OCaml is that your ecosystem is way larger... you can always 'snarf' c# libraries.
Re:Dark’s new backend will be in F# by pumanoir on Tuesday November 03, 2020 @10:08AM (#24980271)
Indeed but not only C# but all of .Net's. So that gives you quantity. But more importantly (at least to me) is that the quality of libraries is much higher than those of the JS (which is what I'm more familiar with) ecosystem.
Re:Dark’s new backend will be in F# by gameswithgo on Tuesday November 03, 2020 @10:15AM (#24980348)
and you can use threads
Re:Dark’s new backend will be in F# by hawk_ on Tuesday November 03, 2020 @02:04PM (#24982796)
burn
Re:Dark’s new backend will be in F# by randompwd on Tuesday November 03, 2020 @10:00AM (#24980179)
sure, but c# ecosystem is nothing compared to jvm, rails, go, js etc..
Re:Dark’s new backend will be in F# by jalude on Tuesday November 03, 2020 @10:06AM (#24980260)
Huh, I haven't had any library issues with c# for years. Although your right, the js and jvm ecosystems are larger. I don't think it is an issue.
Re:Dark’s new backend will be in F# by moron4hire on Tuesday November 03, 2020 @03:10PM (#24983452)
There is definitely a quantity vs quality issue in the JS world. I don't think it's fair to say JS' ecosystem is better than C#'s because it's bigger. There's a hell of a lot of shit code on NPM.
Re:Dark’s new backend will be in F# by eatonphil on Tuesday November 03, 2020 @10:03AM (#24980220)
Sure, but there's no equivalently mature OCaml-like language for the JVM (Scala doesn't count)
Re:Dark’s new backend will be in F# by Ivoah on Tuesday November 03, 2020 @10:10AM (#24980293)
Asking as someone with no OCaml experience but who quite enjoys Scala, why does it not count?
Re:Dark’s new backend will be in F# by eatonphil on Tuesday November 03, 2020 @10:30AM (#24980494)
They are radically different languages, even if they're from the same family. Scala is about as similar to OCaml as Rust is to OCaml. Rust and Scala are a world apart from OCaml and Standard ML in terms of language complexity.

And then F# literally has an OCaml compat mode because they are so similar (F# has a bunch of convenient syntax extensions if you don't mind not using the compat mode).

Re:Dark’s new backend will be in F# by dkarl on Tuesday November 03, 2020 @10:24AM (#24980441)
I don't know OCaml, so I can't give you a great answer, but I know that OCaml has a different type system that has some features that Scala 2 lacks, such as union types.
Re:Dark’s new backend will be in F# by yawaramin on Wednesday November 04, 2020 @11:45PM (#24995725)
OCaml doesn't have union types. It has what it calls variants, and what is generally known as Algebraic Data Types. So does Scala 2.