HNHacker News
TopNewBestAskShowJobs

anon4

1,880 karma · joined November 17, 2013

submissionscomments
anon4··on “Fiercely resist any further broadening of the scope of the C UB problem”
Or they'll force the compiler writers' hand. See: EGCS.
anon4··on Job hopping helped Silicon Valley thrive. Why do other states restrict it?
"consensual slavery" is a tautology more ridiculous than anything the Soviet Union ever wrote in their propaganda. Nobody would sell themselves into slavery if they had a choice.

Which kind of brings up an interesting angle - if every company is asking for an NCA, can't you argue that you signed it under duress, i.e. you didn't have a choice in the matter, and therefore that part of the contract is invalid?

anon4··on Sample workflow for LP digitization
No, he means like if you write the flac to a flash drive. Just write it to a digital medium, rather than go to the trouble of pressing discs.
anon4··on The 3DS Cryptosystem
Still, it held off for 4 years. That's pretty much the usual lifetime of a console generation, so I'd say the system was a success.
anon4··on Efficient Integer Overflow Checking in LLVM
It's no worse than checking return codes though. And I really don't want integer overflow check to be turned on for all integers. I'm writing stuff that has to run, even if it occasionally produces a wrong answer. Having hidden checks inserted by the compiler that just crash the program would be really bad. Yes, I should check the inputs, but if I ever forget to check one, it's better that some ranges of input data produce nonsense results rather than crashes.
anon4··on Being tired isn’t a badge of honor – Signal v. Noise
This fact should be drilled into the heads of managers everywhere - Henry Ford, one of America's great entrepreneurs and businessmen, set his workers' shifts to 8 hours not out of some love or sympathy, but because 8 hours is the maximum work you can extract from a human being in a day. It's not some average or medium amount, it's the maximum sustained amount. If they could do 9, he would have had them do 9.
anon4··on My Biggest Regret as a Programmer
Lol, that poem. That poem is meant to be taken literally, the poet wrote it for his friend who wouldn't shut up about nature hikes.

You had a much better saying at your disposal "The grass is always greener on the other side". Alas, you chose not to use it and now we don't know how your comment would have turned out, had it made sense.

anon4··on A static_cast is not always just a pointer adjustment
Jesus Fucking Christ, now we're exploiting undefined behaviour to remove one compare instruction? You don't even need the jump, just use a conditional move. Just..

    test rax, rax
    add rax, $offset
    cmovz rax, 0

Or keep the damn jump and expect the cpu to profile it correctly.

Sorry for sounding angry, but this kind of thing isn't what makes my programs faster, this kind of thing is what makes it harder to write correct programs.

Edit: clang does exactly this at -O1: https://godbolt.org/g/o6gh0M

anon4··on Concurrency in Rust
Malloc never fails, but you might die if you touch the memory. In general, modern OSes don't have a good story about exhausting available memory beyond "let's kill a bunch of processes to free up memory".
anon4··on People with names that break computers
It's a way to mitigate sql injection attacks when you don't want to pay for a rewrite of the data layer to not communicate with the database by blindly mashing strings together.

And don't get me started if your name can't be written in US-ASCII, i.e. if it has weird squiggles above or below the characters or if it's written in gasp cyrillic.

anon4··on BMW, Audi and Toyota cars can be unlocked and started with hacked radios
Or do what the Japanese do: every bike has a serial number etched into the frame and is registered to you (similar to a car). If your bike is ever stolen, the police can trivially find it by the serial number and return it.
anon4··on The Right to Privacy (1890)
You will never get people to stop discriminating against those who they deem "disgusting" or "deviant" in some way, so the best thing is to keep matters private as much as possible. It's just not in some people's nature to live and let live - they are absolutely sure they know what's right and wrong. Or just look at donglegate - two guys make a joke between themselves, which is deemed offensive to women and both lose their jobs. In such a political climate it is absolutely not safe to share any personal details anywhere public. People have lost their livelihoods for posting that they don't like their jobs or their manager on facebook and forgetting to make the post private.

So no, I am absolutely not OK with allowing the sharing of my private life. I'm not OK with people knowing what dark jokes I've said about Nazis, I'm not OK with people knowing how I've cursed a minority in a moment of anger, I'm not OK with anyone knowing what I wrote in my diary.

I know that you can't stop the flow of information and that you're responsible for protecting yourself, but we should have some law to offer recompense to the party whose private life was exposed.

I guess this post was provoked by the recent Hogan vs Gawker case. I'm a bit divided on that - on the one hand it obviously damaged his reputation and career, and Gawker are responsible for that. You could argue that that is accidental damages, i.e. they didn't know the extent of the effect their actions would have. I guess it might make sense to offer insurance against that for the press - to cover court fees and damages arising from damaging a public figure during reporting. On the other hand, this is now posted, public, known and there is no silencing it. I would never ask Gawker to take down the sex tape, as that would both interfere with the freedom of the press and be absolutely ineffective in stopping the spreading of information. So my compromise is to both have Gawker pay, but not take down the video. I think this should make both equally unsatisfied, so it's the best compromise.

Could this then be a general compromise? If you share private details of someone doing something lawful, which damages his/her life, you are responsible and have to recompense him/her in some way (i.e. the court decides on how much you owe), but given the reality of the internet, the information can't be taken down.

anon4··on The Origin of QWERTY
Most cyrillic-writing countries have both a "typewriter" and "phonetic" keyboard variants. The typewriter one is a direct translation from the layout used on typewriters, which usually is well thought out. The phonetic one just assigns keys to their phonetic latin equivalents or when there's no equivalent, to a letter that kind of looks like it, or is just free. Since cyrillic has more letters than latin, you lose the `, [, and ] keys (at least in Bulgarian phonetic). All keyboards sold here have two letters on each key - one for the US layout and one for the typewriter layout. And still the majority of people prefer to just use the phonetic layout simply because it works with their existing muscle memory. For a while the most popular Windows 95 and XP program was FlexType - it let you type cyrillic letters using the phonetic layout back when Windows only had the typewriter layout available.
anon4··on Sources of ICQ desktop client by mail.ru
We moved to Skype because of the end-to-end encryption, the group chats feature, the ability to talk and the network effect from others using it and us not wanting to use two clients at once. Oh, and with Skype file transfers would just work, while no ICQ client would ever let me initiate a file transfer to another person, or if it did, it would go though servers on the other end of the world.
anon4··on Mystery 'Dude' Rattles Turkish Stock Traders With Massive Bets
Can you be prevented from buying more stock if you say you do intend to acquire? As in, can the company tell you flat-out to stop buying, because of course they can always raise the price or sell to someone else, etc.
anon4··on Why real-world governments don’t have the consent of the governed
Basically, maybe.
anon4··on MAME is now Free and Open Source Software
Capcom have already re-re-...-re-released Street Fighter II for every platform, I don't think anyone will buy Street Fighter II Original Arcade Edition.
anon4··on Show HN: Sway, a tiling window manager and compositor for Wayland
Mostly usable unless you use nVidia or AMD with the binary drivers. AMD are going to be supported in the near future via their open-source amdgpu driver (for GPUs from 2015 onward) and nVidia will show up with a new driver that will support Wayland, any day now, we "promise".
anon4··on I’ve Had a Cyberstalker Since I Was 12
Huh. I would have thought that the woman in question is assertive and putting an asshole in his place, but now that you've told me society at large thinks of her as a bitch, I'll make sure to fall in line.
anon4··on Kofi Annan on Why It's Time to Legalize Drugs
> But I hope you're going to start with the really destructive ones, like Alcohol and Nicotine before you start looking at the less harmful ones such as cannabis.

Well, to be fair, I wouldn't mind executing alcoholics and smokers. But you can have the best of both worlds - provide help and healthcare to ones who have fallen in drug use and execute the ones who can't complete rehab.

anon4··on Kofi Annan on Why It's Time to Legalize Drugs
They could always open a bank or become a hedge fund manager...
anon4··on Kofi Annan on Why It's Time to Legalize Drugs
Who will the drug dealers sell it to?
anon4··on Kofi Annan on Why It's Time to Legalize Drugs
What about the fact that drugs are incompatible with the lifestyle we want our society to have? Isn't it better instead of legalizing them to find the root cause which is forcing these people to seek escapism from reality in psychoactive substances?

I don't want to live in a society of drug addicts, I want to live among people of sound mind, body and spirit, who conduct themselves honestly and honourable among their peers.

anon4··on The collective insanity of the publishing industry
> My parents, Ayn Rand and God

That's the proper way to write it. If you want the other meaning, it's "My parents - Ayn Rand and God". You English people really should learn proper punctuation - most of the world has been using these things called dashes, colons, etc. for quite a while now. They help immensely to disambiguate.

anon4··on The collective insanity of the publishing industry
Because you're an idiot? Alternatively, because you want to socialise with rich people. In all cases, the better alternative is to buy fish and vegetables for 6$ and cook them yourself for a healthy and nutritious meal.
anon4··on The New Web Typography
And you can choose to not be an asshole and not get downvoted, but you'll just have to take what you deserve.
anon4··on Play nice - How the internet is trying to design out toxic behaviour
Wao. Much hate. Such speech.

I mean, the threat is empty because there are no people like that. Everybody hates and everybody has some choice words to say in moments of anger but nobody will just go out and hurt another over a few words on the internet. And if you would, you're an unstable inhuman psychopath who can no longer be considered a person. You would have gone and killed people no matter what age you live in and no matter what words are said to you, because you are fundamentally not a person. Animals like you are why the second amendment exists.

In closing, What the fuck did you just fucking say about me, you little bitch? I’ll have you know I graduated top of my class in the Navy Seals, and I’ve been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I’m the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You’re fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that’s just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little “clever” comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn’t, you didn’t, and now you’re paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You’re fucking dead, kiddo

anon4··on GCC 6: -Wmisleading-indentation vs. “goto fail;”
Interesting. I would have assumed that this kind of check should be done by static analysers.
anon4··on So You Wanna Go Fast?
I haven't written Go, but from what I've heard it lets you mix in platform-specific assembly. Can't you use that to put in memory barriers and/or issue the specific load/store instructions you need?
anon4··on So You Wanna Go Fast?
It's a verbal tick, a meaningless bit at the start of the sentence because the person feels uncomfortable starting the sentence right off and wants a bit of lead-in, or as a short pause for rhythm. Same thing with "basically" - I've seen people start basically every single sentence with "basically" when they're even a bit stressed.
Page 1 of 34Next →