Hacker News
points by eatonphil 10 hours ago | 0 comments
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.

[–] MrBuddyCasino 7 hours ago
Rust has a mode where no allocator is available.
[–] eatonphil 7 hours ago
No allocator available isn't the same as being able to enforce no allocations.
[–] dlahoda 6 hours ago
that option in rust allows to set own allocator, which may be disabled after initial allocation, may be per thread.