Better HN
topnewbestaskshowjobs
Log inSign up

randomNumber7

919 karma · joined Nov 10, 2020 (6y ago) · 894 submissions

Submissions

comment 3y ago · link · parent

A bit off topic, but if you are into this kind of literature i can really recomend Sigmund Freud.

"Die Traumdeutung" (Interpretation of dreams) is one of the best books I've read. Its really philosophical masterpiece. I mean the ~500 site book, not the small one.

comment 3y ago · link · parent

Yes, but often the root issue of addiction is mental health issues (and not only the drug itself). There are many people who occasionaly take drugs without strong addiction.

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

Imagine someone falling onto that monitor at 4000 meters. When the operator accidently moves because of the joystick. If it wouldnt be so sad, it could be funny actually.

comment 3y ago · link · parent

If you look at the pictures linked in the arstechnica article, you can see they used screws in the _carbon_ _fiber_ _hull_ to fix a monitor and lights.

They are really up there with boeing to compete for a price in malicious stupidity.

comment 3y ago · link · parent

Even if it would be intact and somehow floating at 3000 meters it would be probably very hard to find it. Just think about submarine warfare, even the big military ones can be pretty stealthy.

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

A computer with limited amount of memory is also theoretically not turing complete. So it might still mean that a transformer with floats comes close.

comment 3y ago · link · parent

Yes, but some technologies make it easier (or harder) to keep everything clean.

Like in my opinion you can write clean code in C, but since you dont even have a string type it shepherds you into doing nasty stuff with char*... etc.

comment 3y ago · link · parent

It's like goto, but you can jump over function boundaries. Checking out the other comments here its not considered harmful...

comment 3y ago · link · parent

The focus on setjmp/longjmp is strange. In my book you should have _very_ good reasons to use that.

Of course you want it in there in case you need it, but writing so much about them when you say "standard library in practice" is a bit suspect.

comment 3y ago · link · parent

I'm very good in C++. If you offer enough $$$ i might work for you (prefereably remote).

But in all honesty. I would rather like a non C++ job, because i have ~30 years of work before me, and i don't want to end up like those dinosaur Cobol or C programmers today.

comment 3y ago · link · parent

I don't understand why so many distros ship vi instead of vim. Vim was realeased as an improvement in 1991!!!

comment 3y ago · link · parent

It's pretty shocking at first, but after thinking about it for a while it would also be bad if the same sentence gets the same score for all groups.

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

Then maybe you should read about the history of China (and Taiwan). And how it happened that Taiwan seperated from China.

comment 3y ago · link · parent

Talking with a chatbot, so that it produces code could still be considered programming imo. So even if it works perfectly, you still need programmers, the job will just be different.

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

I get your point, but assert is usually removed in release builds. Abort would probably be better if you want to crash the program.

comment 4y ago · link · parent

The D Programming language actually uses assert(0) in that way. Except its not undefined behaviour if the code is reached in release builds. The compiler will put in a special assembly instruction which chrashes the programm.

comment 4y ago · link · parent

But John Carmack is such a great programmer. How can these people be assholes? /s

comment 4y ago · link · parent

Even good lawyers would have trouble bending the obvious. He had no contract to produce the OST (first) and he could have publicly claimed, that he only produced the game music and was not involved in that final mix of the OST.

comment 4y ago · link · parent

A lot of assholery going on at ID management, but mick did a lot of mistakes himself.

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

I find it strange that there is no link in the navigation bar to open the "best" category. Only "new" and "past" is shown, but when you open

https://news.ycombinator.com/best

you get a different ordering of articles.

comment 4y ago · link · parent

I really like Yasser Seirawan's lectures on youtube. Its amazing how he can talk about a chess game and make it appear exciting.

comment 4y ago · link · parent

gutenberg.org is dns blocked in germany. It's easy to get around this (when you know it), but some governments work actively against it....

comment 4y ago · link · parent

You can also bypass YouTube ads with an adblocker (like uBlock Origin)

;)

comment 4y ago · link · parent

I would compile it with adress sanitizer. Its very easy and already included into gcc. You basically only need to add -fsanitize=address to compiler and linker flags and -static-libasan.

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

There is some misconception about the optimal strategy in the article. You can only win in poker if you recognize how your opponent deviates from the optimal strategy and then play a strategy to exploit him. You have to play an exploitable strategy yourself to exploit someone else.

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

I played around with ranges in dlang. The idea of C++ ranges kind of originates from there. In D it's very easy to use and the standard library lets you write beautiful code with it.

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.

https://www.informit.com/articles/printerfriendly/1407357

comment 4y ago · link · parent

Some of my favourite movies. They are now in good quality on youtube, but only in russian.

If anyone knows where to get the german (or english) synchro in decent quality pls tell me. I bought them on dvd but the quality is so bad that it hurts the art

comment 4y ago · link · parent

Still use windows for gaming :(

It annoys me so much. Ads at the os level.

Once in a while it boots to that screen where it tries to fool me into makeing a microsucks account.

comment 4y ago · link · parent

Fact checking is stupid, but if you are serious about it you should fact check religions.

comment 4y ago · link · parent

There is a physical part of depression, even if the root cause comes from the psyche.

This makes it hard to get out (vicious cycle). Thats why even a psychologist will use medicaments when treating someone with a serious depression.

1
2627282930