News for hackers. Stuff that matters.
Re:Rust as a gateway drug to Haskell by agumonkey on Wednesday June 14, 2017 @05:07AM (#14551487)
Some people also complain about a tiny set of syntactic issues. Other than that I like both ml and ocaml.
Re:Rust as a gateway drug to Haskell by pjmlp on Wednesday June 14, 2017 @05:36AM (#14551577)
Having learned ML languages via Caml Light, I never understood what those complaints are about.

Maybe the only thing I would complain would be the separation between integer and floating point math.

Re:Rust as a gateway drug to Haskell by agumonkey on Wednesday June 14, 2017 @06:45AM (#14551819)
not even the monomorphism, I forgot but there's a few warts at the syntactic level only.
Re:Rust as a gateway drug to Haskell by k__ on Wednesday June 14, 2017 @06:58AM (#14551853)
A few months ago I read monomorphism is the way to go performance wise.

Something about people writing fast code with Flow/TypeScript than with plain JavaScript because the typing leads to less polymorphic code which is easier to optimize for the compiler.

Re:Rust as a gateway drug to Haskell by tom_mellior on Wednesday June 14, 2017 @09:56AM (#14552699)
In this context, "monomorphism" just meant that OCaml requires you to write "+" to add integers and "+." to add floats (and yet other things to add bignums or whatever).

This has nothing to do with performance per se. It doesn't make OCaml code faster than languages that allow you to write "+" for both int+int and float+float. The compiler knows anyway.

Re:Rust as a gateway drug to Haskell by k__ on Wednesday June 14, 2017 @06:59AM (#14551859)
But that's what most devs do, right? If it doesn't look like C it's ugly, haha.

Anyway, Reason seems to have a bit nicer syntax than OCaml, I think.

Re:Rust as a gateway drug to Haskell by firethief on Wednesday June 14, 2017 @02:48PM (#14555000)
Reason seeks to destandardize syntax, a fascinating experiment I'd prefer to watch in a language not already held back by community fragmentation.