News for hackers. Stuff that matters.
Re:OCaml's Wings for Machine Learning by hardwaregeek on Wednesday April 30, 2025 @12:49PM (#43847841)
I'd disagree about syntax. It really does matter. So much of Rust's success is tricking people into writing a functional style while having it look like an imperative language. OCaml syntax isn't bad per se but it's unfamiliar and that's enough to discourage users.
Re:OCaml's Wings for Machine Learning by myaccountonhn on Wednesday April 30, 2025 @05:39PM (#43850988)
I think you're right, and I hate it. Just look at Gleam as an example where adopting a more C like syntax got them a ton more adoption almost over night.

I love Ocaml (and Haskell-esque) syntax, but I must admit it can be detrimental to getting adopted.

I think another issue was bad tooling for a long time. Now with Dune it's great though, with very fast compile speeds.

Hopefully OCaml slowly gets the recognition it deserves, because it really is a great language.

Re:OCaml's Wings for Machine Learning by sesm on Wednesday April 30, 2025 @07:47PM (#43852007)
Rust refs are not OCaml refs though. Rust just places more guardrails around update-in-place model, instead of using controlled references to immutable data like OCaml (and Clojure).