Re:I've been designing a language since 2009 – friends and I...
by levodelellis on Sunday August 14, 2022 @10:01PM
(#32465069)
> if you implicitly claim to have solved some huge, difficult research problem but provide no real details
You do realize you can download the compiler and confirm for yourself that it's all working right this very moment?
There's probably a few aliasing bugs since I add new features. types and haven't tried to break my code or find difficult to run into bugs
Just as some basic questions you might want to answer:
1. If I allocate some memory and store a reference to it in a struct or object, how do you track ownership for that memory? Can I alias it? Store references to it in multiple structs? How do you know that it's safe to free that memory without reference counting?
2. Am I allowed to allocate memory in a function and return a reference to that memory? How do you ensure that memory lives long enough for those references to be valid?
3. Are multiple aliases allowed to overlap with each other? If so, how do you prevent (e.g.,) type confusion from one mutiple alias changing the data out from under the other?