logoalt Hacker News

eatonphil • yesterday at 6:54 PM • 1 reply • view on HN

Hey folks, this is my project. I really liked OxCaml's zero_alloc feature [0], something you don't get in Rust or Zig or Go*, and have been trying to get a handle on allocations in The Consensus's code search engine.

It's an extremely early project but it's been helping me out a bunch already. Would love to hear your bug reports or requests if you try running it on your codebase.

[0] https://theconsensus.dev/p/2026/06/27/the-feature-in-oxcaml-...

* I think you can get this in Clang and maybe GCC with `__attribute__((nonallocating))` though.


Replies

MrBuddyCasino • yesterday at 9:39 PM

Rust has a mode where no allocator is available.

➕ show 1 reply