HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kd5bjo

4,162 karmajoined vor 19 Jahren

comments

kd5bjo
·vor 6 Tagen·discuss
Who said anything about GDPR? If someone reveals to you that they are in some kind of protected class, then there’s a risk that anything you do they don’t like could see you tagged for discrimination even if it’s how you’d treat any customer in the same situation.
kd5bjo
·vor 3 Monaten·discuss
That's also an option available to you: Mutex::new() is const, so there's no trouble putting one in a static variable. If the inner value can't be const-constructed, you'll need a way to prevent access before it's initialized; for that, you can use a OnceLock or just Box::leak() the Mutex once it's constructed and pass around a simple reference.
kd5bjo
·vor 7 Monaten·discuss
There's some precedent for this: Back in the 40s, the movie studios were forced to sell their stake in theaters due to antitrust issues around exclusivity. Streaming services owning studios feels like the essentially the same situation.

https://en.wikipedia.org/wiki/United_States_v._Paramount_Pic....
kd5bjo
·vor 10 Monaten·discuss
The law says that toys have to look like this, but there's often no restriction against painting an orange tip onto an actual firearm.
kd5bjo
·vor 7 Jahren·discuss
It doesn’t ensure that there’s a null terminator in the resultant string. This may potentially lead to a later overrun when the copied string is read back.

(See also https://linux.die.net/man/3/strncpy )
kd5bjo
·vor 8 Jahren·discuss
If giving unrestricted database file access is “living on the edge,” maybe https://www.sqlite.org/appfileformat.html should be updated to reflect that?