• 0 Posts
  • 28 Comments
Joined 3 years ago
cake
Cake day: June 9th, 2023

help-circle






  • The borrow checker is a feature of Rust’s compiler which places strict constraints on ownership of data to guarantee memory safety. It adds a lot of friction to writing Rust code if you’re not experienced with the language (or sometimes even if you are). OP refers to the “language restriction of Rust”, seemingly talking about the borrow checker, but has never even heard of it. It’s kind of like someone claiming they didn’t vibecoded their C++ project but having no idea what the STL is.




  • I don’t disagree that the language is a great way to build an understanding of object lifecycles, but in my experience C++ ctors and dtors are also the biggest source of confusing footguns I’ve ever encountered in any programming language.

    Separately, template metaprogramming is a whole different beast. It’s an extremely powerful tool, but to me it also feels like finding the correct incantation to get it to do exactly what you need for more complex scenarios. It can be really fun if you know what you’re doing, but it also tends to make me very upset at the compiler when my incantations are a bit off.




  • As other commentors have pointed out, it’s vital that justice is applied as uniformly as possible in the interest of maintaining a fair and truly just system. Defense attorneys are an important check on the state and ensure (at least in theory) that it has met its burden in proving guilt before a person can be convicted, however heinous their alleged crimes may be. Without this adversarial dynamic prosecutors would be free to paint whatever narrative they please, whether rooted in reality or not, and any semblance of actual justice would go completely out the window.


  • You would need to spin the first gear 1 trillion times per second from now until the last proton in the universe decays, then do that about 1068 more times. 1068 is roughly equal to 52!, the number of unique ways a deck of cards can be shuffled. There’s a somewhat famous description of how large this number is (paraphrased for brevity):

    Start a timer that will count down the number of seconds from 52! to 0. Every billion years, take a step along the equator. Every time you go around the world, remove one drop of water from the Pacific Ocean. Every time you empty the ocean, take one sheet of paper and place it flat on the ground. Every time the stack of paper reaches from the Earth to the Sun, take a step up Mount Everest. Once you’ve reached the summit 80 times, the timer will have reached 0.






  • Interpreting a PR which changes “he” to “they” as pushing political ideology is not an apolitical stance. I don’t know a ton about him and I’m not convinced this makes him a “fascist” by association, but the fact that he seems to be ideologically aligned with the ones in power on America is troubling at the very least.