Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
omoikane
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
omoikane
8d ago
The article mentions it's a halt-on-error pattern: https://www.sandordargo.com/blog/2026/09/16/cpp26-trivial-in... Edit: sorry, missed the UB bit.
2.
▲
by
omoikane
8d ago
> The loop must be a trivially empty iteration statement -- meaning its body is literally empty This seems to say that the loop body can not be "continue". Indeed, I just tried -std=c++26 with ";" and got an infinite
3.
▲
by
omoikane
8d ago
> Might as well go back to ye olden days and put 100% of your memory in a giant preallocated block I do that for the Playdate: statically allocate most of the large structures and tables in global variables, and don't call malloc or
4.
▲
by
omoikane
11d ago
I wonder why the publishers insist on selling thick books like that. The books I read tend to come in multiple volumes, and it's not like I would finish it all at once so I just need to carry at most one or two volumes.
5.
▲
by
omoikane
13d ago
Coincidentally, the same plant in Japanese is kuzu (クズ, or 葛), which shares the same pronunciation as the word for trash (屑). So bad code is trash.
6.
▲
by
omoikane
13d ago
Maybe because if the code wants to call the invalid opcode interrupt handler (INT6), it needs extra code to populate the flags and registers expected by that handler, whereas actually triggering an invalid opcode exception will get all thos
7.
▲
by
omoikane
14d ago
Regarding compiler deleting memset, there are multiple memory-zeroing functions that are guaranteed not to be optimized away: https://cppreference.com/c/string/byte/memset (memset_s) https://cppref
8.
▲
by
omoikane
14d ago
> Torturers don't hit people in the head The comic doesn't say hit the person in the head, it says "hit him with this $5 wrench", and did not specify what to hit. https://xkcd.com/538/
9.
▲
by
omoikane
15d ago
> https://www.bbc.com/news/world-latin-america-40090809 The playlist included "the sound of jet planes all night" and "the screams of rabbits being slaughtered". I don't think they really n
10.
▲
by
omoikane
17d ago
I was going to say, NetHack doesn't feel sparse to me, but maybe I just have not played enough NetHack. I think it's due to the fact that there is a fair bit of content, but the interface drip-feeds them very slowly, combined with
11.
▲
by
omoikane
17d ago
Another solution from a few days ago: https://news.ycombinator.com/item?id=49562657 - Solving the Jane Street reverse engineering challenge (4 days ago, 99 comments)
12.
▲
by
omoikane
18d ago
I just tried and it doesn't happen for me, maybe the problem has already been fixed? Separately, if I were seeing a captcha that I can't get past, my first reaction would be to find a different site to see if it's a site spec
13.
▲
by
omoikane
19d ago
I think this is an example of "shipping your org chart". The fix is proposed in the reply "we need one person/team to own the overall picture", but I am not sure they reached that fix by the end of the thread.
14.
▲
by
omoikane
20d ago
> This means that adding one (1) to the difficulty of a challenge makes it 1024 (one thousand twenty-four) times as hard to solve in the worst case. I don't understand the units here, wouldn't a bit versus nibble difference mak
15.
▲
by
omoikane
24d ago
I also have been using a flip phone ever since I got a cell phone. I had to upgrade it once because the old phone only supports up to 3G network or whatever, and my carrier just silently dropped all calls on that network a few years back,
16.
▲
Quine Clique
(github.com)
1 points
by
omoikane
25d ago
|
1 comments
17.
▲
by
omoikane
25d ago
Video explanation: https://www.youtube.com/watch?v=3f2wV7Odq8E A multiquine of 51 languages by Yusuke Endoh, where each quine also accepts an argument to output quine in another language.
18.
▲
by
omoikane
26d ago
In 2021, USD to JPY exchange rate ranged from ~102 to ~115, and the average was ~109. The actual exchange rate could be a bit less depending on where you make the exchange, so 100 USD to 10000 JPY doesn't seem like that much off. (For
19.
▲
by
omoikane
27d ago
> User interface and user experience improvements https://www.haiku-os.org/get-haiku/r1beta6/release-notes/#:~... Menu that does different things based on modifier keys seems novel to me, is BeOS or Haiku
20.
▲
by
omoikane
27d ago
> humans have a high ability to ignore negatives in things they're a fan of, including (and often especially) their own work I thought this is due to the "backfire effect", because humans perceive criticisms of things they
21.
▲
by
omoikane
1mo ago
This is a wonderful paper that includes many optimization tricks that are generally applicable, including various optimizations that they retrofitted into lld. But I thought there was one meta optimization that was especially interesting (
22.
▲
by
omoikane
1mo ago
Bluesky didn't require phone numbers back when it was invite only, and then there was a period of time after they allowed everyone to create accounts where users need a phone number to verify. That requirement might have been replaced
23.
▲
by
omoikane
1mo ago
There was another miscompilation discussed last month: https://news.ycombinator.com/item?id=48743462 - It's not me, it's the compiler (2026-07-01, 26 comments) https://github.com/rust-lang/rus
24.
▲
by
omoikane
1mo ago
Alan Paeth's three-shear rotation is one of my favorite algorithms, especially because it's perfectly suited for rotating pixel art. Because shearing preserves all the original pixels, it even works with dithered images, unlike s
25.
▲
by
omoikane
1mo ago
I like Existential Comic's explanation of the simulacrum concept, using football/soccer injuries as an example: https://existentialcomics.com/comic/476
26.
▲
by
omoikane
1mo ago
I like how a website for tracking balloons escalated into critical infrastructure. Reminds me of 99 Red Balloons. https://en.wikipedia.org/wiki/99_Luftballons
27.
▲
by
omoikane
1mo ago
It's iOS only, relying on iOS to exclude isSecureTextEntry things from screenshots: https://github.com/mozzius/expo-privacy-sensitive/blob/main/...
28.
▲
by
omoikane
1mo ago
The 1% Fighter
29.
▲
by
omoikane
1mo ago
> while (has_watermark(text)) slightly_rewrite... I understand what you are trying to say but I am not sure any watermark detection API would definitively return a true/false answer, I would have expected something more like a numer
30.
▲
by
omoikane
2mo ago
Maybe Bluesky is not quite the Twitter rival it set out to be, but it's got a better shot than Mastodon, according to the user count graphs here: https://bsky.jazco.dev/stats https://mastodon-analytics.com&#
More ›