In order to remove the “unsafe” keyword from Rust, I wonder if the key is to let programs know they have a limited amount of memory rather than an unlimited one
If so, crt0.S (?) would essentially become a memory manager of sorts. All it would do is allocate memory when the program asks for it and deallocate when something goes out of scope or the program exits
And speaking of memory management, did a deep dive into how new and delete works in cpp (start from operator new vs placement new)
=> More informations about this toot | View the thread | More toots from Logical_Error@fosstodon.org
text/gemini
This content has been proxied by September (ba2dc).