News for hackers. Stuff that matters.
Re:PR to Merge Multicore OCaml by jez on Tuesday December 21, 2021 @06:34PM (#29643456)
This is only glancingly related to the topic of multicore but I figure I’ll venture the question anyways:

There were three big reasons pushing me towards other languages (C++, Rust) for a certain class of throughput-focused workflows:

1. Lack of multicore execution

2. Lack of control over how many bytes a datatype is (useful for many things, like ensuring something fits in a machine word or can avoid chasing a pointer in a loop)

3. Difficulty controlling where memory is allocated/copied vs moved (though some of this is less relevant when everything uses reference semantics and mutability is tracked with ref/mutable)

I’ll be glad to see (1) fading into history! Do you have any personal tips/anecdotes for memory optimizations in practice, or any suggestions for something to read/follow/search?

Re:PR to Merge Multicore OCaml by sadiq on Tuesday December 21, 2021 @07:35PM (#29644006)
For both 2 and 3 you may find https://github.com/ocaml/RFCs/blob/unboxed-types/rfcs/unboxe... very interesting. I'm hoping that progresses beyond the RFC stage.