919 karma · joined Nov 10, 2020 (6y ago) · 894 submissions
comment 3y ago · link · parent
It depends a bit on the drug to be fair. Like you cant "occasionaly" smoke cigarettes, either you are addicted or not. You can occasionaly drink a beer and not become an alcoholic.
The people who become alcoholics almost always have some personal problems / mental health issues as a trigger.
But the world wide drug policy doesnt make any sense, because even a "evil" and highly addictive drug like cocaine is actually less addicting than smoking.
comment 3y ago · link · parent
And this is a small submarine mostly made of carbon fiber. Thats probably even hard to distinguish from a big fish with sonar. And if this thing is on the ground then sonar doesnt help.
I think if this thing has no ping device on board (to make active sound), then they probably never find it. Assuming its still under water of course.
comment 3y ago · link · parent
I mean, shitting on disabled people is way more hateful than shitting on wealthy people.
For men vs. women, left vs. right it's concerning, but it fits the narrative of the mainstream media...
comment 3y ago · link · parent
So I think as a programmer you don't have to worry, but the other implications will probably be hughe.
comment 4y ago · link · parent
He probably should just have sued them to pay for all the music and to not put his name on the OST...
And why in the world would you trust that marty guy after talking with him on the phone. That just ... Also it would probably helped his reputation, to write some of this (the part about the OST) earlier in the doom reddit as response to marty.
comment 4y ago · link · parent
https://news.ycombinator.com/best
you get a different ordering of articles.
comment 4y ago · link · parent
Then you run it and when it dies address sanitizer tells you where the memory corruption occured. If the issue is pointer casting you 100% find it.
Then you can try to fix it. Most likely its s.th. like this:
Say you have a "long*" and the code assumes "ok a long has 4 bytes". Then casts the long* to a char* and does some fancy low level algorithm c programmers love.
But now you compile on debian 11 and suddenly a long is 8 bytes. And then ... it dies a horrible death.
comment 4y ago · link · parent
Think about playing rock paper scissors agains an opponent who always chooses rock. If you still play the optimal strategy (choosing randomly) you gain nothing...
comment 4y ago · link · parent
C++ made it so ugly. Especially if you wanna implement a custom range.
I can recommend this article by Andrei Alexandrescu, if you are interested in the idea of ranges.