• 0 Posts
  • 9 Comments
Joined 1 year ago
cake
Cake day: June 30th, 2023

help-circle
  • Because you would be using std::shared_ptr<> rather than a raw pointer, which will automatically deallocate the memory when a shared point leaves the scope in the last place that it’s used in. Along with std::atmoic<shared_ptr> implements static functions that can let you acquire locks and behave like having a mutex.

    Now this isn’t enforced at the compiler level, mostly due to backwards compatibility reasons, but if you’re writing modern c++ properly you wouldn’t run into memory safety issues. If you consider that stretching the definition then I guess I am.

    Granted rust does a much better job of enforcing these things as it’s unburdened by decades of history and backwards compatibility.







  • At the (SQL) database level, if you are using null in any sane way, it means “this value exists but is unknown”.

    Null at the SQL means that the value isn’t there, idk where you’re getting that from. SQL doesn’t have anything like JS’s undefined, there’s no other way to represent a missing value in sql other than null (you could technically decide on certain values for certain types, like an empty string, but that’s not something SQL defines).



  • Hi, could you perhaps elaborate a bit on the racist history of the bell curve? I’m well aware of the racist history of IQ, but I don’t even have an inkling of what that’s referring to in the context of the bell curve. It’s just the graph of a normal distribution, is this referring to some weird application of it to some racist shit?

    PS: I know you’ve attached a video with info on it and me asking might be kinda dumb. However, I saw it’s 2+hrs and I don’t have the time to watch it right now but I’m still interested.