News for hackers. Stuff that matters.
Re:OCaml 5.0 Multicore is out by Decabytes on Friday December 16, 2022 @11:46AM (#34016741)
I'm curious about what design decisions lead to OCaml not having Multi-threading when version 1.0 came out. Majorly impressive work getting something as complex as that added on afterwards. Kudos to everyone involved!
Re:OCaml 5.0 Multicore is out by dljsjr on Friday December 16, 2022 @11:52AM (#34016842)
Caml 1.0 was released in '85 and OCaml (the O is for Object Orientation) was 1996. Multithreading wasn't a high priority for anybody back then. The JVM didn't even have threads until 1997 and those threads were green threads, OS threads came to Java later.
Re:OCaml 5.0 Multicore is out by pasc1878 on Friday December 16, 2022 @12:45PM (#34017680)
However this is all Unix and academia based. If you wrote code for Windows and OS/2 in the commercial world you were using threads sine '89 and thus did not want to use the languages that did not use threads e.g. python, OCaml
Re:OCaml 5.0 Multicore is out by cmrdporcupine on Friday December 16, 2022 @02:49PM (#34019306)
In the late 80s and early 90s we wrote things with threads but they were primarily a kind of convenience to get multitasking behaviour and not any kind of performance boost.

Multicore / multiprocessor systems were not a mainstream thing in consumer hardware until the 21st century.

Re:OCaml 5.0 Multicore is out by int_19h on Friday December 16, 2022 @07:49PM (#34022844)
It would be pretty difficult to write threaded code for Windows in 1989, since it didn't support threads until WinNT 3.1 (1993).

But even in late 90s it was still common for desktop Win9x apps to use the main window message loop for async processing (Win32 API itself heavily encouraged it at the time - e.g. that's how OS timers work) in lieu of threads.

Re:OCaml 5.0 Multicore is out by jeltz on Wednesday December 21, 2022 @12:20PM (#34083478)
That was much later, in the mid 90s. But who did have threads in the mid 80s was Erlang which back then only existed in Ericsson's research lab. Ericsson had anpther internal language which Erlang drev inspiration from which also had support for concurrency.
Re:OCaml 5.0 Multicore is out by Mikeb85 on Friday December 16, 2022 @02:30PM (#34019011)
> I'm curious about what design decisions lead to OCaml not having Multi-threading when version 1.0 came out

You do know that C still doesn't have multithreading in the language spec, right?

It was common on languages of that era. Also Ocaml has had libraries for multithreading for many years, just like C has POSIX threads and things...

Re:OCaml 5.0 Multicore is out by c-cube on Friday December 16, 2022 @02:41PM (#34019197)
I thought C11 had threads and atomic and concurrency primitives?
Re:OCaml 5.0 Multicore is out by Mikeb85 on Friday December 16, 2022 @03:32PM (#34019922)
Ah yeah my bad. Still like 30+ years after it's creation though. And the vast majority of C software out there doesn't use C11 anyway.