You can just break them into two roughly equal halves and use your teeth to scoop out the flesh. No need for either a knife, a spoon or any kind of preprocessing. I've been eating them that way for decades.
I see 10 9s so I suppose the claim is 9,999,999,999 people out of 10,000,000,000 won't notice so with 8,000,000,000 people on Earth I think it's 0.8 people not 80.
Good post but the whole "buy time to see your child graduate, get married or give birth" trope is quite frankly very annoying.
Older people have more going on, and more reasons to live, than whatever the next generations are up to. Even if we have children.
I had curative (hopefully, presumably) kidney cancer surgery 11 years ago. So far I've enjoyed travelling, socializing, working, coding, chess and other hobbies in the extra time I've been granted and I hope for decades more time to enjoy life. I don't have children. never aspired to it.
I also travel, socialize, work, code, play video games, solve puzzles, etc. Love all that shit.
I'd be sad to "miss" some novels, or to never see the Ocarina remake, etc. Or just the time I spend piddling around with things.
But I think if I was about to die and an advance bought me a few months of moderate quality life, it'd mostly be about seeing my kids cross milestones. I don't imagine I'd spend nearly as much time cranking through those things.
Understood. No doubt I would be similarly inclined if I'd gone down that path in life. My beef is that I feel this is a trope that gets rolled out without question, and it doesn't even bother paying lip service to the diversity of human experience.
I feel similarly whenever I hear about someone expressing empathy with someone, but apparently only after realizing they are someone's daughter/brother/sister/mother whatever type of relative. What's that about? I feel empathy for any innocent victim, they're human, they're living a life, maybe a very enjoyable life even if they don't have a single relative.
I like to program in a C++ subset that's basically C plus a sprinkling of ergonomic quality of life C++ features eg references and generic containers. I think of it as C+.
(Edit: No disrespect meant. I just thought such completely different language concepts potentially sharing the same name was kind of amusing)
no worry, name is intentional, it's C + packages, language itself is tiny, strictly bounded by the C ABI, and doesn't include most of the features you'd expect in a language, even standard library is just a external package, so it's not a subset of C++ at all
Almost everyone that uses C++ uses a subset of C++ and it's always a different subset. (That's fine, that's because it's a "big tent" language philosophy)
*Main comment should say 'something so niche' not 'something so nice'
There are certain parts of the world that really have little to no bearing on the rest of it. NZ is perhaps Exhibit A of this; Iceland is perhaps Exhibit B. Nothing that happens in NZ even affects AU, let alone anywhere else. That makes it a great place to live if you have the money and like the peace and solitude, but if NZ ceased to exist the rest of the world wouldn’t notice. Both Australia and NZ fail to recognise this often and both suffer from extreme FOMO on the world stage (Australia more than NZ, but Australia is also a much larger player internationally - what with ore exports etc).
This is an AI slop article about an extremely niche market that would struggle to support itself in even the world’s largest music markets, and it’s written as if New Zealanders have lost something valuable.
Nobody needs to know nor does anybody care which local music producers signed with which label, yeah? Like, that isn’t a news market that can support itself. Ditto for a news market that’s focussed on last night’s hipster band playing at the local grease hall. And if it wasn’t AI slop I’m sure an actual person from Wellington wouldn’t write it as if it was, which is half my point.
NZ’s economy is atrocious and crime and drugs and poverty and a massive brain drain over the past 10 years are huge problems and writing about them might be interesting if it were done by a person who actually did research and understood the problems. AI slop ain’t it.
Soccer is a legitimate name for the sport. Football is properly the name of a whole group of sports OR in a local context the locally most popular type of football.
It's very weird for one type of football to try to claim the name all for itself globally.
Lots of people call it that. The Australian national team are called the Socceroos. The best, most authoritative magazine about the sport is called "World Soccer", published in the UK, where the name soccer originated. Even if the name soccer was used only in the USA, it would be a legitimate name. Different cultures use different names for things.
(Not the person you're asking, but...) I don't want to adversely affect the person behind me, but I also accept the right of the person in front of me to recline if they want to. It's not easy being me.
Yeah, I don't understand this - pretty much every long haul flight I've ever been on has been like this: meal service finishes, lights dim a bit, everyone reclines, lights go out, people either doze off or watch the IFE.
To be fair, I have actually once seen someone not recline, but they had four or five visits from cabin crew before the lights went off making sure they were okay, or if they wanted to be moved, or if there was a fault with their seat. Like, even the crew thought it was an unusual occurrence.
Yet every thread that touches on this on HN, there are people saying "I never recline, what about the person behind me?". And then they complain about being uncomfortable!
Stuck it out to the end against my better judgement. Got 89/100 due to difficulties at the "Grandmaster" stage (12/20).
I thought it was going to be tougher because the very first word on my run was "Yield" and none of the options seemed convincing to me. I went with something that was at least fairly adjacent to the "something produced by" (as opposed to "submit to") meaning and this did successfully yield (he he) my first point.
The Z80 does have a DAA (decimal adjust arithmetic) instruction to facilitate BCD arithmetic. I don't think I ever used it in my Z80 years and I'm not familiar with the details. Sadly I have much less experience with the 6502, I didn't even know it had a BCD mode.
Intel 8080 already had DAA, so it could add BCD numbers. Because there was no BCD subtraction, that had to be done by an indirect method, e.g. by doing a nines' complement before a BCD addition.
Zilog Z80 improved this, so that on it DAA could also be used after a subtraction, when it would correctly adjust the result for implementing BCD subtraction.
This was one of the Z80 improvements that were considered important at the time of its launch.
While I have never considered worthwhile to do BCD arithmetic instead of converting the decimal numbers to binary numbers, the DAA instruction on all Intel 8080 successors, including on IBM PC compatible computers, was very convenient for converting binary numbers to their ASCII character string hexadecimal representation, for printing or display purposes (because the decimal adjusting happens to add the correct ASCII offset between '0' ... '9' and 'A' ... 'F', so the conversion to ASCII can be done branchless).
Slight correction, the correct offset is 7, and DAA only adds 6. But the trick is also adding the carry bit. This works on the 6502 in decimal mode too, e.g. https://news.ycombinator.com/item?id=6342286
On the Z80 and 8086, the code can be made one byte shorter by taking advantage of adjust-after-subtraction, which the 8080 didn't have (and on 6502 worked differently):
CP 10 / CMP AL,10 ;set carry if valid decimal digit
SBC A,69H / SBB AL,69H ;0..9 => 96h..9Fh (auxC=1), 10..15 => A1h..A6h (auxC=0)
DAA / DAS ;subtract 66h if auxC set, 60h if clear
That. I blatantly "stole" those from Z80 since they are elegant and effective. I have BF (flag) that gets set in ALU when the result is > 9, then DAA/DAS that add 6 or 10 (the latter wraps around as -6 since registers are 4-bit wide).
12'b0000_0000_001?: begin : instr_daas // DAA, DAS
if (flags[BF_BIT])
rx[0] <= rx[0] + (op_is_daa ? 4'd6 : 4'd10);
flags[CF_BIT] <= flags[BF_BIT];
state <= FETCH;
end : instr_daas
The wording is very unambiguous, it means something very specific in chess. In every legal chess position either White is checkmated or Black is checkmated or (by far the most common except in film and TV!) neither side is checkmated. So the wording is crystal clear, you should be able to freely place the White king on any of the unoccupied 59 squares and the position will be one of those in which White is checkmated.
A real shame, this totally ruined the puzzle for me as it seemed so unlikely that all five Black pieces would be mutually protected. I should have forced myself to ignore the faulty clause and try to solve without it. The bad clause is also completely unnecessary - one of those cases where deleting text (or code!) is an improvement with no downside!
I'd argue that if you remove the clause you still have the same issue. The problem statement says, “so that there is no square not under their attack”, which in my reading includes the squares occupied by the pieces, and a piece cannot attack itself.
reply