ziviz

joined 1 year ago
[–] [email protected] 10 points 7 months ago (2 children)

Yay... Capitalism...

[–] [email protected] 5 points 8 months ago

Compounded by sites like RSSing that frame or scrape other websites. Another hit, but literally the same thing verbatim as another.

[–] [email protected] 8 points 9 months ago

And for the fandubs, there should be an additional paragraph as a hat explaining some concept or pun that just does not translate well.

[–] [email protected] 2 points 10 months ago

Huh... That makes sense. Til. Ran some tests but speed is pretty similar. Only 4% faster using bitmath or 300 milliseconds difference after 10mil runs.

[–] [email protected] 7 points 11 months ago (1 children)

The short answer is Rust was built with safety in mind. The longer answer is C was built mostly to abstract from assembly without much thought to safety. In C, if you want to use an array, you must manually request a chunk of memory, check to make sure you are writing within the bounds of your array, and free up the memory used by your array when completely done using it. If you do not do those steps correctly, you could write to a null pointer, cause a buffer overflow error, a use-after-free error, or memory leak depending on what step was forgotten or done out of order. In Rust, the compiler keeps track of when variables are used through a borrowing system. With this borrowing system the Rust compiler requests and frees memory safely. It also checks array bounds at run-time without a programmer explicitly needing to code it in. Several high-level languages have alot of these safety features too. C# for example, can make sure objects are not freed until they fall out of scope, but it does this at run-time with a garbage collector where Rust borrower rules are done at compile-time.

view more: ‹ prev next ›