← Home ← Back to /g/

Thread 106987788

15 posts 4 images /g/
Anonymous No.106987788 [Report] >>106987861 >>106987877 >>106988520 >>106988573 >>106989308
here is your memory safe language bro.

why can't we just stick with c++20 ?
safe enough without being a pita
Anonymous No.106987861 [Report] >>106987935
>>106987788 (OP)
Generics are gay and retarded and look horrible in every language that supports them
Just overload the function like a normal person
Anonymous No.106987865 [Report] >>106988156 >>106988258
We already solver the problem with memory safety. What we have now is not memory safety but rather memory safety in high level languages where no one is able to understand a single line of what is being written.

I tried Rust and i got filtered by it so im sticking with C plus classes
Anonymous No.106987877 [Report] >>106987935
>>106987788 (OP)
memory safety is a meme
you want to make the memory as unsafe as possible to performancemaxx
Anonymous No.106987935 [Report]
>>106987861
that code compiles, but it results in completely undefined behavior. in safe rust btw.
it highlights a core flaw in the type system
>>106987877
that's true. more than half of c's speed is from UB, ironically
Anonymous No.106988156 [Report] >>106988258
>>106987865
Working on it. ;)
Anonymous No.106988258 [Report]
>>106987865
>>106988156
My programming language is not only memory safe (without requiring lifetime annotations), but also is resource safe, you can enforce the correct use of an API with minimal annotations, think of this as an effect system or design by contract but using a more semantic approach and without runtime overhead.
Anonymous No.106988520 [Report]
>>106987788 (OP)
Holy shit
who can look at that syntax without killing himself
Anonymous No.106988573 [Report]
>>106987788 (OP)
>why can't we just stick with c++20 ?
This was your opportunity to suggest a solution (like linear types) instead of introducing another problem
Anonymous No.106988613 [Report]
A & what a<T> what
Anonymous No.106989308 [Report] >>106989533 >>106989561
>>106987788 (OP)
So what does this program do? I'm a no coder, but I'm 140 IQ intellectual. Any explainers?
Anonymous No.106989533 [Report]
>>106989308
Bump
Anonymous No.106989561 [Report] >>106992010
>>106989308
Use-after-free exploit in safe Rust. Something that shouldn't really compile but apparently does?
Anonymous No.106992010 [Report]
>>106989561
lmao
Anonymous No.106992029 [Report]
is it really that hard to not go out of bounds on an array? why can't zoomers into arrays?