News for hackers. Stuff that matters.

beyondCritics

Re:It's OK to compare floating-points for equality on Saturday April 18, 2026 @02:08PM (#47818067)
There is plenty of demand for so called "secure code", where such coder arrogance will not be tolerated. Trust me on that, I know it.
Re:It's OK to compare floating-points for equality on Saturday April 18, 2026 @12:38PM (#47817232)
If your code may be compiled, to use the Intel x87 numerical coprocessor, an important issue is the so called "excess precision": Different values on chip can collapse after being rounded and stored to their memory locations, invalidating previous comparisons. Spilling can happen unexpectedly. Note that Intel calls the x87 "legacy"
Re:War Prediction Markets Are a National-Security Threat on Saturday March 07, 2026 @06:46PM (#47292662)
In order to demonstrate something exceptional, you have to establish a baseline. This baseline is called the "null hypothesis" in classical testing.
Re:War Prediction Markets Are a National-Security Threat on Saturday March 07, 2026 @05:12PM (#47291949)
Statistical clueless amateurs found something they did not like, but of course were unable to convert their suspicions into something sound. They do not even think about it. Nevertheless a big sensation was anounced. I am tired of this.
Re:The path to ubiquitous AI (17k tokens/sec) on Friday February 20, 2026 @07:40AM (#47087290)
Just HI slop. Ask any decent model, it can explain what's wrong this this description.
They must love dogs really deeply to go to such length to rediscover them.
Re:Partial 8-Piece Tablebase on Friday February 13, 2026 @11:19AM (#47004419)
>However when “few enough” pieces remain on the board (in the endgame), the number of possible game states is small enough that it’s possible to brute force solve the game from each state by enumerating all possible moves and resulting states so as to find the absolute optimal move for any given board position

You can basically never do that, even in the endgame, since you get always exponential blow up! Furthermore with less pieces on the board, they hamper each others movement less, therefore the branching factor really goes down only slightly. If you want to compute all mate-in-n positions, you discover the theoretical values in tiers, by unmoving each tier twice: If you know all mate-in-0,...,mate-in-n positions, unmove the mate-in-n set for the defender and filter out results, where he can avoid moving into the union of the known tiers. Then unmove for the attacker, to find mate-in-(n+1). Repeat until convergence. Repeat the whole process for the left over positions, to find more theoretical values.

They are giving their stuff away for free, hence they can do whatever they want. It goes without saying, that spiritual teachings are not there to create quarrel and division.
Re:A Cheat-Sheet for Helix on Thursday December 18, 2025 @10:43AM (#46314079)
Beautiful cheat sheet for the modal editor helix
Re:My dad could still be alive, but he's not on Wednesday November 12, 2025 @10:27PM (#45910203)
It is terrible to lose a relative in young age. But at least 80% percent of all heart diseases are known to be fully avoidable. The risk factors are known for ages and as matter of fact every adult is fully responsible to care for his own health. The right thing to do, is to watch out for a healthy diet.
Re:My tutorial and take on C++20 coroutines (2021) on Friday November 07, 2025 @07:50AM (#45845832)
>... I sadly found the explanation of coroutines utterly incomprehensible. Same for almost every other explanation I found on the web.

Nice to see a mirror of my experience.

For the records: I'm taking it very seriously and had this book in mind: Elizondo, L. (2024). Imminent: Inside the Pentagon's hunt for UFOs. William Morrow. The tone is very dark though.
For the informed nerd (e.g. read Elizondo first or Greer, Bledsoe) it should by now be established, that we have a serious UAP problem. Hence it's a good thing that all the incidents that were previously ridiculed and downplayed are now one by one reconsidered.
Re:System.LongBool on Sunday October 26, 2025 @06:15PM (#45715613)
Turns out that old versions of Visual C++ used their own typedef of bool as int: https://stackoverflow.com/questions/4897844/is-sizeofbool-de...
Re:The Blender Question Everyone Gets Wrong [video] on Monday October 13, 2025 @02:53PM (#45571992)
IT professional were asked to think out of the box. Big mistake...
There is also nice discussion of the beautiful and practically relevant "Saavedra position", which does have an under promotion to a rook. https://timkr.home.xs4all.nl/chess/saavedra.htm
Tim Krabbés blog is recommended for this type of question and in general: https://timkr.home.xs4all.nl/chess2/minor.htm
Re:When Bruce Lee trained with Kareem Abdul-Jabbar on Friday September 26, 2025 @05:00PM (#45390975)
>Bruce helped the young athlete understand his movements in a way that seemed to decelerate time. “Bruce showed me how to harness some of what was raging inside me and summon it completely at my will. The Chinese call it chi; the Japanese, ki; the Indians, prana—it is the life force,” he said. “I was quite amazed to find, after working with Bruce, that when I really had my presence of mind, when I did control my life force, that’s what I saw, things coming at me in slow motion with plenty of time to get out of the way.

Seemingly we are learning here something new about Bruce Lee, that outside observers can't understand, most notably western ones. This decelaration of time also happened to me two times spontaneously, when I was attacked on surprise, hence I believe this verbatim. In both cases, that got me plenty of time, to decide what to do and was able to save myself without a scratch. However it never occurred to me,that that had something to do with my Chi force...

Re:0.9999 ≊ 1 on Monday June 02, 2025 @12:51PM (#44160752)
The explanation is, that the number is _not_ the infinite string of characters, but the sum of the scaled digits of the string. This sum is defined as the limit of the partial sums. In Germany, you can understand this in high school.
Re:20 years to give away virtually all my wealth on Thursday May 08, 2025 @12:16PM (#43927680)
I am not sure this is serious though ...
https://m.youtube.com/watch?v=qJZ1Ez28C-A I had learned about the double slit experiment in school, but in my mind it was something of a theoretical construct. This veritasium video demonstrates, that quantum waves are very real and tangible. This is how physics should be.
Re:Boris Spassky: 1937–2025 on Wednesday March 05, 2025 @08:54AM (#43266381)
> It's one of the single biggest misconceptions ever, it gets repeated endlessly

FM Roese here (best DWZ 2399). I agree, figuring or even conjecturing that Fischer overlooked 30.g3 is totally insane. However he also did not saw the theoretical draw, this strikes me even more off. He never opened up about his idea, so in all likelihood he calculated something very stupid.

> if you plug it into an engine, it shows an equal evaluation

They criticized this argument rightly, but many basically repeated your mistake in the process of doing so. All engines use some evolved adaption of iterative refinement, be it either "Iterative deepening" (of an alpha beta search) [1] or "UCT" [2]. If you post computer evaluations you should at the very least give the reported nominal search depth and the engine name and version, otherwise you are just asking for trouble. On computer chess fora [0] they often post the whole log file bluntly.

[0] https://www.talkchess.com/

[1] https://www.chessprogramming.org/Iterative_Deepening

[2] https://www.chessprogramming.org/UCT

Facility score may IMHO be understood as some statistical measure of tactical involvement. It has really nothing to do with the established and important concept of weakness in chess, which looks at significant static features of a position. For example in the position from figure 1, white's pawns on the queen side are all weak, especially c4. Also the black squares around the white king are weak. After 1...exd4 these weaknesses are pronounced sharply. Considering fragility score, I see nothing that points towards these weaknesses. a4 and b6 are not attacked, hence ignored. c4 is attacked once and defended once, but there is no trajectory over it. Weak squares are not considered. If we look at the knight D4, it's BC score may tell us, that after taking it with a pawn, which can be done in two different ways, the bishop e3 is hanging, hence we gain a tempo, which is significant, also f3 is weaker (noise) and bishop e6 is not under pressure any longer. Hardly something which convinces to identify the key moment, but may be useful in a statistical sense. Nevertheless it appears to be an oversold complexity measure.
Re:I ask this chess puzzle to every new LLM on Sunday January 26, 2025 @06:46AM (#42829495)
1..c1Q?? 2.Ba3+ loses on the spot, hence it is deduced easily that 1..c1N+! must be the best try. Consulting an online table base [1] shows that the resulting position is a ”blessed draw”: White can still mate, but not in time to evade a 50 move draw claim.

[1] https://syzygy-tables.info/?fen=8/6B1/8/8/B7/8/K1pk4/8_b_-_-...

Re:Nearly All Binary Searches and Mergesorts Are Broken on Saturday January 11, 2025 @09:04AM (#42665941)
This reasoning is correct but still has to assume that both indices are non negative, which is reasonable.
Re:Nearly All Binary Searches and Mergesorts Are Broken on Saturday January 11, 2025 @07:14AM (#42665365)
> mid = ((unsigned int)low + (unsigned int)high)) >> 1;

Also not correct if the sum overflows.

Re:My Favorite Book on AI on Monday January 06, 2025 @06:47PM (#42617489)
To put it mildly.

Older »