News for hackers. Stuff that matters.
Re:OCaml's Wings for Machine Learning by behnamoh on Wednesday April 30, 2025 @11:46AM (#43846866)
> Its unfortunate the cleaned up syntax never took off, and that OCaml dropped the ball on multicore for over a decade.

It just shows the mindset of its devs was a little behind the realities of the industry, or they simply didn't care about concurrency.

In comparison, I like how Python always tries to be on top of things by exploring new PEPs.

Re:OCaml's Wings for Machine Learning by sidkshatriya on Wednesday April 30, 2025 @12:11PM (#43847228)
> It just shows the mindset of its devs was a little behind the realities of the industry, or they simply didn't care about concurrency.

OCaml cared about concurrency (e.g. Lwt, Async are old libraries that provide concurrency -- they didn't need multicore Ocaml). OCaml didn't care so much about true _parallelism_ in threads until recently. Parallelism was to be obtained via processes and not threads in pre OCaml 5.0. True parallelism in threads is available in OCaml >= 5.0

Python is actually trying to go multicore too ! OCaml however beat it to the punch. The strengths of Python are elsewhere though, a topic for another day.

Re:OCaml's Wings for Machine Learning by jimbokun on Wednesday April 30, 2025 @02:06PM (#43848804)
> Python is actually trying to go multicore too ! OCaml however beat it to the punch.

This is debating the relative finishing places of the two runners finishing last in the marathon after most of the other runners have already gone home and had their dinner.

Re:OCaml's Wings for Machine Learning by neonsunset on Wednesday April 30, 2025 @03:15PM (#43849523)
If you care about efficient parallelism, F# might give you much better experience and results.
Re:OCaml's Wings for Machine Learning by jimbokun on Wednesday April 30, 2025 @03:48PM (#43849835)
As well as many, many other programming languages!
Re:OCaml's Wings for Machine Learning by toolslive on Wednesday April 30, 2025 @11:58AM (#43847032)
I'm going to be sarcastic _and_ on topic (you baited me): yeah, like how python completely solved concurrency & parallelism.
Re:OCaml's Wings for Machine Learning by ackfoobar on Wednesday April 30, 2025 @12:31PM (#43847544)
To be pedantic, concurrency in OCaml has been fine with lwt. Single threaded concurrency, not unlike how JS does it.
Re:OCaml's Wings for Machine Learning by abathologist on Wednesday April 30, 2025 @04:42PM (#43850458)
OCaml has had great concurrency support for years and years. Multicore is only a question of shared memory parallelism.