News for hackers. Stuff that matters.
Re:Moving from TypeScript to Rust / WebAssembly by lmm on Thursday July 09, 2020 @01:47AM (#23777282)
ML family languages are so much more productive that that probably outweighs the costs of manual memory management. Rust will always be less productive than Haskell or Scala, but a language with a decent type system is going to have a huge advantage over JavaScript.
Re:Moving from TypeScript to Rust / WebAssembly by tigershark on Thursday July 09, 2020 @02:02AM (#23777369)
...Haskell and scala are not part of the ML family. OCAML and F# are languages belonging to the ML family.
Re:Moving from TypeScript to Rust / WebAssembly by lmm on Thursday July 09, 2020 @02:23AM (#23777491)
By what definition? Haskell and Scala both have the complete ML featureset (in particular they have sum types and full pattern matching; they're also part of the small group of languages that has typeclasses, which were originally invented for Standard ML) and are on record as being heavily influenced by ML languages (via Miranda in the case of Haskell).
Re:Moving from TypeScript to Rust / WebAssembly by tigershark on Thursday July 09, 2020 @03:51AM (#23777929)
https://en.m.wikipedia.org/wiki/ML_(programming_language)

“Today there are several languages in the ML family; the three most prominent are Standard ML (SML), OCaml and F#. Ideas from ML have influenced numerous other languages, like Haskell, Cyclone, Nemerle, ATS,[citation needed] and Elm.[3]”

If you know F#, OCAML, Haskell and scala you can see that the first two have an extremely similar syntax to ML while for the last two the syntax is very different.

Re:Moving from TypeScript to Rust / WebAssembly by lmm on Thursday July 09, 2020 @05:38AM (#23778464)
If you actually click down to [3] in your own link it says '"these languages" is referring to Haskell, OCaml, SML, and F#'.