News for hackers. Stuff that matters.
Re:OxCaml - a set of extensions to the OCaml programming lan... by rauljara on Friday June 13, 2025 @12:07PM (#44269790)
GC compactions were indeed a problem for a number of systems. The trading systems in general had a policy of not allocating after startup. JS has a library, called "Zero" that provides a host of non-allocating ways of doing things.
Re:OxCaml - a set of extensions to the OCaml programming lan... by jitl on Friday June 13, 2025 @12:51PM (#44270160)
Couldn’t find this after 6 seconds of googling, link?
Re:OxCaml - a set of extensions to the OCaml programming lan... by jallmann on Friday June 13, 2025 @12:57PM (#44270208)
The linked podcast episode mentions it.
Re:OxCaml - a set of extensions to the OCaml programming lan... by notnullorvoid on Friday June 13, 2025 @02:37PM (#44271011)
There's no mention of a library called zero, or even JavaScript.
Re:OxCaml - a set of extensions to the OCaml programming lan... by garbthetill on Friday June 13, 2025 @03:00PM (#44271246)
Im assuming the JS refers to Janes street
Re:OxCaml - a set of extensions to the OCaml programming lan... by notnullorvoid on Friday June 13, 2025 @05:19PM (#44272361)
That makes sense, I guess I've got web tunnel vision.
Re:OxCaml - a set of extensions to the OCaml programming lan... by sheepscreek on Friday June 13, 2025 @09:41PM (#44273640)
I was bit by the same spider that gave you web tunnel vision. In any case, I find OCaml too esoteric for my taste. F# is softer and feels more..modern perhaps? But I don’t think GC can be avoided in dotnet.
Re:OxCaml - a set of extensions to the OCaml programming lan... by debugnik on Saturday June 14, 2025 @02:57AM (#44274705)
You can avoid GC in hot loops in F# with value-types, explicit inlining, and mutability.

Mutability may not result in very idiomatic code however, although it can often be wrapped with a functional API (e.g. parser combinators).

Re:OxCaml - a set of extensions to the OCaml programming lan... by jallmann on Friday June 13, 2025 @03:49PM (#44271663)
> This is what I like to call a dialect of OCaml. We speak in sometimes and sometimes we gently say it’s zero alloc OCaml. And the most notable thing about it, it tries to avoid touching the garbage collector ...