Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>You have more control here than you have even in C: To allocate bytes, you have to call alloc() on a specific kind of allocator

You can write your own allocator in C. You don't have to use malloc.



you could fully redesign libc to be modern and toss out the null terminated string concept and use fat pointers and slices. But at that point why not consider moving onto a more modern language with things like explicit type conversions, modern PEG type grammar, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: