Re:The Curious Case of a Memory Leak in a Zig Program
by kps on Sunday March 19, 2023 @12:07PM
(#35220363)
Zig is a low-level language. You might not have an MMU. You might not have a kernel. You might be the kernel.
Re:The Curious Case of a Memory Leak in a Zig Program
by charcircuit on Sunday March 19, 2023 @03:20PM
(#35222496)
Maybe if we went back a few decades. But in 2023 what are you doing wasting your time with such an old or weak chip for.
Re:The Curious Case of a Memory Leak in a Zig Program
by gpanders on Sunday March 19, 2023 @09:00PM
(#35225813)
No it is not for many applications. The entire embedded software engineering field is an example.
Re:The Curious Case of a Memory Leak in a Zig Program
by charcircuit on Sunday March 19, 2023 @11:43PM
(#35227013)
>The entire embedded software engineering field is an example.
This is simply false. Most devices are moving in this direction. Practically all phones people use are using a kernel that supports virtual memory. TVs now come with Linux too. All sorts of random devices use Linux now that powerful and cheap chips exist.
Just let the kernel handle it. The virtual memory abstraction the kernel has makes your program's implementation simpler.