Traister101

joined 1 year ago
[–] Traister101 10 points 8 months ago* (last edited 8 months ago) (12 children)

Yes Rust is harder to write than C, that's basically by design as it's due to the statically guaranteed memory safety. That's pretty magical. C doesn't have that and neither does C++ even with smart pointers and such. Rusts unsafe keyword is poorly named, what it actually does is tell the compiler that you the programmer guarantee Rusts rules are upheld within the unsafe block.

For example

Access or modify a mutable static variable

That is a global, that's incredibly hard to impossible to statically prove it's safely done, so you have to do it in an unsafe block. So you violating Rusts rules within an unsafe block is actually using the unsafe block wrong. That's not what it's for

[–] Traister101 31 points 8 months ago (21 children)

Unsafe Rust really just let's you play with pointers

This is the entirety of what Unsafe Rust allows

  • Dereference a raw pointer
  • Call an unsafe function or method
  • Access or modify a mutable static variable
  • Implement an unsafe trait
  • Access fields of unions
[–] Traister101 2 points 8 months ago (1 children)

Instance of Vim? Swap buffers fool

[–] Traister101 5 points 8 months ago

And yet you guys are attempting to follow in our footsteps with new construction. Also the US was also too old to be built with cars in mind, we bulldozed our cities for the car (ಥ_ʖಥ)

[–] Traister101 3 points 8 months ago

Sure, they won't sell it to Russia at least

[–] Traister101 1 points 8 months ago

Seconded on the anime being great. In fact it's so great the FMAB people on MAL either haven't or were unable to push it down from FIRST in top anime

[–] Traister101 -1 points 8 months ago

Brave (yes I'm aware ya'll don't need to yap at me).

Yep seriously Brave all on its own blocks YouTube ads and no performance issues (likely thanks to being Chromium based).

To address some complaints about Brave you can uh turn that stuff off. I don't like Crypto so I... have all of that junk disabled. Doesn't bug me whatsoever. Opt in ads (for their stupid crypto coin) are disabled by default (or least where when I installed). And the CEO is a bad person (surprising I know)

[–] Traister101 0 points 8 months ago (1 children)

Like? So far they've just wasted billions of dollars and "rapidly disassembled" rockets using tax payer dollars

[–] Traister101 14 points 8 months ago (1 children)

When it's easier to think about a system in terms of objects. The classic example is video game Entities/Game Objects. GUI stuff has also been very pleasant with OOP as buttons and the like are all easily conceptualized and worked with when seen as objects.

[–] Traister101 3 points 8 months ago (1 children)

The Ubel one for you fellow lazy people. It is NSFW

[–] Traister101 6 points 8 months ago (1 children)
  1. What? Tesla doesn't have their own batteries they buy them from Panasonic.
  2. Yes, cars are bad and EVs only improve emissions while worsening infrastructure wear.
[–] Traister101 14 points 8 months ago

Twitter is also bad

view more: ‹ prev next ›