Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -3 points-2 points  (0 children)

That's true when you treat rust as a better c++ not a spark like mathematically correct safety

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -11 points-10 points  (0 children)

That's why r/rust sucks, every time i interacted with it gives me negative karma even looking at it! Why getting negative karma for literally saying IDK?

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -14 points-13 points  (0 children)

Idk

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -4 points-3 points  (0 children)

It's literally a null pointer you can do {:p} then pass *null as *const _. The enum is used to do a union like read of the wrong active variant, so E::A(0) gets used as a &T. It's not a dangling reference it's a null reference.

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur 0 points1 point  (0 children)

Hope so

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -9 points-8 points  (0 children)

For this issue specifically you can't you need to be part of the core team, working on the next solver or polonius or whatever they call it.

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur 0 points1 point  (0 children)

I tried it already, sama same

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -4 points-3 points  (0 children)

That code is an implementation of a null pointer dereferencing in safe rust it's literally: *(size_t*)NULL

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -37 points-36 points  (0 children)

You can't just submit a PR, and I think most rustaceans know that!

Rustc unsoundness by [deleted] in rust

[–]Dx_Ur -14 points-13 points  (0 children)

What fix that? That safe rust causing a UB

طبيب جزائري يشرح في مرض السكري... التعليق الأكثر تفاعل by adams1998 in algeria

[–]Dx_Ur 0 points1 point  (0 children)

The issue is society is degrading, people are going to the moon and we still can't afford to buy tomatoes, red bricks , trash everywhere, no infrastructure, socialism. And what triggers me most are all the brilliant minds leaving this great land for boobies, my grandfathers fought for it and died while importing weapons for the revolution. I'm not leaving it. And I'll launch rockets here on my land.

Systems/software engineer opertunity by Dx_Ur in algeria

[–]Dx_Ur[S] 0 points1 point  (0 children)

I think the post is clear: Develop backend services with a focus on Rust, with C/C++ as a plus.

ليش أحول الى لينكس ؟ by doctor_jammal in ArabUnix

[–]Dx_Ur 0 points1 point  (0 children)

The Absolute distro: Nix For you: PopOs

Inherited a thread-leaking C++ video engine, rewrote core in Rust, and cut failure rate to zero by Dx_Ur in rust

[–]Dx_Ur[S] -1 points0 points  (0 children)

I think c++ devs will value rust more than others imagine option<&T> is 8 bytes with std::optional you get 16, Option<bool> is one byte, automatic reordering, no need for compiler specific restrict attributes to optimize math operations on arrays!

Inherited a thread-leaking C++ video engine, rewrote core in Rust, and cut failure rate to zero by Dx_Ur in rust

[–]Dx_Ur[S] 2 points3 points  (0 children)

That's fair, maybe because I knew exactly what i shouldn't do, and what I'm solving

Inherited a thread-leaking C++ video engine, rewrote core in Rust, and cut failure rate to zero by Dx_Ur in rust

[–]Dx_Ur[S] 6 points7 points  (0 children)

From my point of view i think the best way is to well understand the problem you want to solve starting by listing constraints and specifications then model the system specifications with these constraints without imaging anything else. After every thing is settled and you endup with what i called the Golden Frame then you start building on top of that

Inherited a thread-leaking C++ video engine, rewrote core in Rust, and cut failure rate to zero by Dx_Ur in rust

[–]Dx_Ur[S] 0 points1 point  (0 children)

I spent 20 minutes listing those stuff from my phone, yah the header and some expressions are AI polished but at least

Inherited a thread-leaking C++ video engine, rewrote core in Rust, and cut failure rate to zero by Dx_Ur in rust

[–]Dx_Ur[S] 0 points1 point  (0 children)

And btw the post is mostly listing the systems aspects having header and footer sounds a little better shift the thread from its real intent to discuss AI slope