News for hackers. Stuff that matters.
Re:OxCaml - a set of extensions to the OCaml programming lan... by pjmlp on Saturday June 14, 2025 @02:00AM (#44274522)
The problem is not a GC language per se, people keep putting all GC languages in the same basket.

The real issue is being a GC language, without support for explicit manipulation of stack and value types.

Want a GC language, with productivity of GC languages, with the knobs to do low level systems coding?

Cedar, Oberon language family, Modula-3, D, Nim, Eiffel, C#, F#, Swift, Go.

Re:OxCaml - a set of extensions to the OCaml programming lan... by jaennaet on Saturday June 14, 2025 @03:24AM (#44274800)
Does Go have much in the way of GC knobs? It didn't some years ago, but I haven't kept up on latest developments
Re:OxCaml - a set of extensions to the OCaml programming lan... by pjmlp on Saturday June 14, 2025 @04:02AM (#44274953)
The knobs aren't on the GC necessarily, rather language features.

With a Go compiler toolchain you have stack and global memory static allocation, use of compiler flags to track down when references escape, manually allocate via OS bindings, there is the unsafe package, and use slices it, an assembler is part of the toolchain learn to use it, and regardless of CGO is not Go memes, it is another tool to reach for if Assembly isn't your thing.

Re:OxCaml - a set of extensions to the OCaml programming lan... by jaennaet on Saturday June 14, 2025 @04:08AM (#44274971)
Ohh right yes, now I get what you mean. My brain just immediately went for "GC knobs" when you mentioned "knobs"
Re:OxCaml - a set of extensions to the OCaml programming lan... by pjmlp on Saturday June 14, 2025 @04:40AM (#44275104)
All the best and get well.
Re:OxCaml - a set of extensions to the OCaml programming lan... by LAC-Tech on Sunday June 15, 2025 @10:13PM (#44286165)
.NET AOT compiles comically slowly. It makes C++ look like Ocaml. I have no idea how anyone uses it for anything serious.