News for hackers. Stuff that matters.
Re:TinyKVM: Fast sandbox that runs on top of Varnish by fwsgonzo on Friday March 14, 2025 @06:57AM (#43361373)
There's many ways to go about it, but essentially yes, brk and mmap and a few others just to get into main() for some common run-times.

But you can do whatever you want. For example in libriscv I override the global allocator in my guest programs to use a host-managed heap. That way heap usage has native performance in interpreter mode, while also allowing me full control of the heap from the outside. I wrote about this here: https://medium.com/@fwsgonzo/using-c-as-a-scripting-language...

There are no comments on this comment yet.