Comment by reactordev
4 days ago
But can I still write a library in C3 and export the symbols to use in bindings?
The only thing stopping me from just going full C the rest of my career is cstrings and dangling pointers to raw memory that isn’t cleaned up when the process ends.
Maybe I misunderstand but if the process ends its entire virtual address space is gone no? Did you mean subprocess or something different?
On some OS’s
If it isn't cleaned up by process exit, it's not really a process, is it? Just another co-routine running in the bare metal kernel or whatever.
Which one specifically does ending a process not clean up the memory?
14 replies →
> But can I still write a library in C3 and export the symbols to use in bindings?
Yes, it has the same ABI.
> dangling pointers to raw memory that [are not] cleaned
How do you feel about building special constructs to automatically handle these ?
I totally can but my gripe is about not wanting to.
c3 has a @pool annotation that makes a block use an arena to allocate, that should help since all memory is freed upon exiting the block.
1 reply →