News for hackers. Stuff that matters.

setr

Re:Much Ado About None: Sentinel Values in Python on Saturday October 31, 2026 @11:37PM (#50322494)
You run into this issue any time you do a LEFT JOIN in sql and the field you care about is nullable.

The right side value could be null because it was missing, or because it was literally null. You resolve by checking the join key, and if that is itself nullable, you’re forced to introduce a sentinel

Re: on Friday October 30, 2026 @06:10PM (#50310803)
27..? It’s literally the lowest out of everything on page 4 at the moment
Re:Apple introduces the new 14‑inch MacBook Pro with M6 on Tuesday October 27, 2026 @03:20PM (#50264363)
I think it’s also because these UI changes are always designed to improve first-impression and first-usage. They are outright hostile to anyone who wants to go fast and get faster — the power user. At minimum the re-arrangement resets any gains you had, and at maximum its irrecoverable because the UI is now fundamentally designed to slow you down.

This eventually becomes awkwardly precise complaints about information density and general change; but the underlying issue is I want to go fast and the system says no

Re:Amazon's "Digital Pacifier" for Toddlers on Monday October 26, 2026 @11:17AM (#50245234)
It’s the same as games; people not paying that much attention to it see the ugly side and assume it’s the whole medium. With children shows, it’s the fucking songs. They’re mindless, addictive, and usually revolting to look at; and it will hook in like nothing else.

Bheem, cory carson, rogers, Pixar, etc is like unquestionably to lead to less degenerate behavior than something like cocomelon (though I get some pushback on shutdowns for those too, I get the same pushback on any other toy).

In games, the equivalent would be social spaces (minecraft, Fortnite) and competitive multiplayer; they can be consumed for far longer than they hold any value. But I fully intend to let them play paper Mario, pikmin, puzzle games, point and clicks, etc.

It’s mentally lazy to throw out the baby with the bathwater

Re:Remove pgrust: the entry is cheating on Friday October 23, 2026 @01:21PM (#50212402)
I mean, if the now-released open source variant performs roughly the same, and has no weird behavior in it… the matter is resolved, no?

They’ve already submitted the best possible corrective step for any sus behavior they previously did.

It doesn’t even really matter if the preview binary was in fact cheating, if the beta binary meets the benchmark results always. It’d be like cheating on a test you were gonna score 100% on anyways.

Believe it or not, some people live fulfilling lives without viewing any television.

You can live without watching whatever the latest show is.

That doesn’t say anything about anyone’s opinion on managing. The section in question switches to “I” extensively
The poster can be presumed American.. but what does that have to do with the mistake made?
Yes? What happens if you don’t ping in 20, 50, 100 years? At some point between 0 and infinity, it’s probably safe to assume you’re not coming back.

You can argue where to draw the line, but arguing that there shouldn’t be a line at all is absurd

Science moves forward one death at a time

So at least two systems run better with the implicit time limit.

Re:US Suspends Visa Program for Tech Firms Including Microsoft on Thursday October 08, 2026 @02:14PM (#50009685)
Ethereum has “code is law”, but we can still have a notion of the code being exploited, because it is the intent that’s been exploited
Re:Margaret Hamilton has died on Thursday October 08, 2026 @10:43AM (#50006398)
That’s the missing bit in the original post; if exactly 7 tasks was intended to ever be possible to run (as in, it logically doesn’t make sense for an 8th to exist), and they tossed in a scheduler anyways, then that’s man-rated thinking.

I had read the setup as the 8th task being user error (you have 20 things to do, I can only run 7 at a time, and it’s an user error to submit the 8th task while the 7 are running)

Re:Margaret Hamilton has died on Thursday October 08, 2026 @02:46AM (#50002524)
I mean, the implementation can be incomprehensibly impressive, but as an example of “man-rated” — being sufficiently robust — rejecting the request would be sufficient and I suspect this was an obvious place to have some kind of handling for. If there were no handler of any kind in this position, it’d be unforgivable in modern, far less robust software.

The kind of example for man-rated I was expecting would be dealing with really nutty edge cases (perhaps like correctly operating under arbitrary bitflips) or the LISP recovery system from Deep Space 1.

Handling an expected error condition under normal operation is not, in my mind, a good example of man-rated robustness. It might be a good example of other things.

Re:Margaret Hamilton has died on Wednesday October 07, 2026 @10:03PM (#50001166)
That does not seem like particularly notable example of foresight & robustness, given that it’s such a low number of maximum tasks, and such a fundamental & frequently used element of its operation.

Like it wouldn’t even be describable as a “rescue itself” if the response was simply “No. Too many jobs running. Please kill one to continue”

Re:Denmark Data Breach Exposes 8.8M People's Personal Data on Monday October 05, 2026 @11:55PM (#49973962)
I’ve had 3 notices from 3 months related businesses in the last couple months that my data has been leaked.

So like, I guess I’m just a dead man walking? We might as well just post all this info publicly at this point, and skip all the circus around it.

Re:Suits Are Better Tech Than Modern Clothes on Thursday October 01, 2026 @02:14AM (#49918287)
I would like to note that suit pants are ridiculously comfortable, and generally a fitted suit is far more comfortable than nearly anything else I wear daily. I don’t understand what crimes society has committed to achieve the outcomes of modern fashion.
Re:Solving Factorio Quality on Wednesday September 30, 2026 @05:00AM (#49906229)
I very much doubt the fun was found in the physical act of placing units. Instead I’d wager it was in the immediacy of the chaos, and correction of it, as you dealt with the smaller problems — and the micro-optimizations you could apply being involved with every minor detail of the system.

When you switch to blueprints, you move up the abstraction chain; there’s still some optimization in constructing blueprints but largely you’re now just plumbing… chaining together higher level components, simply ensuring inputs == output, and all the microoptimizations are hard to justify because they disrupt your blueprints. The patterns and structures have reduced to only what you’ve specified in your library (where previously you were discovering them out of the many operators the game provides).

But the literal act of placing objects wasn’t the point, yet that’s all the game has become.

Re:There is more to code review than (automatable) detection on Monday September 28, 2026 @04:18AM (#49875027)
I mean, do that too, but end of the day PRs are your final chance to catch the mistakes before they start cementing, and is your best opportunity to identify misunderstandings (you can smell the confusion in their changes and address it directly).

But also, I must defend against the hordes of unwashed masses and maintain the sanctity of my domain. End of the day, a codebase I own is a codebase I own, and others cannot be allowed to poison the well, intentionally or not. That’s how you get cholera

Re:There is more to code review than (automatable) detection on Sunday September 27, 2026 @10:18PM (#49872816)
I consider PRs to be primarily a defense of the architecture, and to a lesser degree a general sanity check. It’s also a useful opportunity to enforce automations are being run
Re:Platform-Independent SIMD in Go on Friday September 25, 2026 @02:48PM (#49848407)
I definitely was so... thanks!
Re:Opus 5.5 is good at explainer videos on Friday September 25, 2026 @12:33AM (#49840222)
LLMs will generate. Taste continues to dictate what to keep/discard. (Note that taste can get you to good, but good won’t get you to money on its own)
Re:The Trouble with 'Ntile()' on Wednesday September 23, 2026 @02:18AM (#49812336)
I’m pretty sure NTILE is just a generally cursed function. SQL NTILE also requires everything to be loaded in memory because of the odd rule that larger buckets precede smaller buckets, so it’s unusable on anything decently sized.

Not being able to specify how ties are handled (and choosing, as far as I can tell, a fairly useless definition) fits the bill.

Re:Data-Only Attacks Are Easier Than You Think on Wednesday September 23, 2026 @01:35AM (#49812045)
Is that really the name for it? It sounds revolting

Can’t we just use prim and proper terms like provenance

If they were actually useful though, demand shouldn’t stay the same — more niches should be getting filled. If they’re just clones of each other, then yes
Re:I stopped drinking the AI Kool-Aid on Sunday September 20, 2026 @08:24PM (#49781599)
Sometimes in business you ultimately and unavoidably have to eat shit, so it is what it is. But you should strive to be someone who doesn’t have to eat shit, and until then, if you still gotta eat shit, then try not to make a habit of it.
With query hints finally being added it’d probably be doable as an extension
Re:No Man's Sky Cosmos on Wednesday September 09, 2026 @06:00PM (#49635066)
The problem is setups like in slay the spire, if we imagine there was no path selection, you can run into scenarios that are functionally unwinnable (I recall someone finding a seed in StS that was literally unwinnable, but ignoring that). Eg Act1 elites that counter your build, but too early for you to consistently have secondary options/workarounds.

Obviously people have high consistent wins in StS1/2 so it’s not like they’re guaranteed unwinnable, but for the average human (mostly just boils down to “path to do act1 elites until after you probably have a counter to all of them)

Your options are:

1. All scenarios are easy enough that you can get away with just about anything sensible

2. You don’t have any counter mechanics, which is basically the same as 1, and is difficult to do anything interesting with

3. You announce up-front what you’re going to deal with, so the onus is now on the player to find a solution in the meantime

4. You give the player a NOPE utility

In a roguelike, I think 4 is the better design, but 3 is also reasonable. 1 & 2 just makes things less interesting.

Re:No Man's Sky Cosmos on Wednesday September 09, 2026 @04:53PM (#49634106)
Roguelikes are the ultimate in procgen technology, and should be the basis of any design. (DF is the ultimate simulation but uses procgen as a tool to achieve it; a different vein than NMS trying to explore the procgen and its direct outcomes itself)

1. Any imaginary world needs to be internally consistent to be interesting. Procgen does not void this rule; randomization needs to be gated to that internal consistency.

2. A world can be composed of multiple environments, and each environment can a different definition of internal consistency. Dungeon Crawl Stone Soup does this very openly and to fairly good effect, but pretty much any decent procgen game will inevitably end up with the same choice, because it's what enables you to play with various procgen systems/rules while still having a coherent overall game.

3. Generalizing 2, procgen systems generally do not start from nothing; You embed reasonably well-defined bases (races, weapon forms, etc) and then apply randomization on top of those bases to form the final element. Meaningful fundamental variation in those bases leads to guaranteed meaningful variation in the end result.

4. Games are fundamentally interactive systems. Generating a thousand variations without actually changing interaction is equivalent to generating exactly one variation. A blue orc vs a red orc is a not real variant, unless you make it so by attaching effects / statuses / capabilities. The color distinction is then a signal into the more abstracted changes that have occurred. This is where NMS falls over -- the images have changed, but the interaction has not.

5. A corollary to point 4, changing numbers without changing interaction is equivalent to doing nothing. If a meaningful damage threshold is functionally every 10 points of damage, then generating numbers 0-9, 11-19, etc is equivalent to generating just the numbers 0 and 10. This is where borderlands falls over -- a million variations in guns, but the vast majority of those variations are just numeric differences that don't change anything in practice.

6. If the procgen applies to equipment/builds, you pretty much need permadeath as a driver for exploring a procgen game and its systems, because you need players to explore for a local optima. Exploring the space for a global optima in a procgen game inevitably devolves into a gambling simulator, because players optimize out the fun, and the optimal play is to the kill unit XYZ repeatedly for the 0.5% drop. Games like Terraria fall into this trap (though Terraria resolves it mostly by making unit XYZ be trivially summon-able bosses)

7. Procgen can never guarantee interesting results; You inevitably need a system of vaults/artifacts -- hardcoded quality items -- to guarantee periodic interesting locations/items. Ideally more notable than average generation, but less than strictly optimal so as to not overpower the other systems -- an issue I've had with games like Diablo 3, where finding an item-set was vastly more powerful than anything else that I acquired for the next 5+ hours, eliminating the entire looting system (and even character skill system, since it forced my build too)

8. Decent Procgen is inevitably rule-based, with possibly multiple chained-rules each doing their own rolls, to ensure coherency. Ideally the rule-chain is roughly discoverable from the end results (by virtue of following internally consistent and apparent rules) -- an end-result that cannot be explained is indistinguishable from pure-random, and pure-random in incoherent. See any Tabletop RPG generation tables.

9. Hell, just start any procgen design from tabletop RPG tables.

10. The number of variations that can be produced is meaningless. This is only for marketing.

11. A procedural system that generates exactly once is fairly pointless. Permadeath.

12. A procedural system is inherently unfair, because you cannot guarantee difficulty, proper placement, unit composition, etc without removing the procedural systems outright. Embrace the unfairness, and design around it. Permadeath.

13. A procedural system is inherently unfair; you need to give some guaranteed items with guaranteed results to navigate an uncertain world (e.g. escape tools).

14. It's always good to enable some control by the player over the procedural generation. Choice of environments, chances at additional loot, etc. You want the player to engage with procgen rules, because they're interesting (and if they're not, what are you doing?), and the easiest way is to give them tools to manipulate it to their advantage. Also permadeath.

Re:The Dataflow Model Revisited on Tuesday September 08, 2026 @03:02PM (#49615106)
I’m not sure you have to squint; an mview is just a cached query. The only difference between an mview and a cache is the “incremental” part of the equation.

That is, my only disagreement is the lack of gusto

Re:Poisson Disk Sampling on Wednesday September 02, 2026 @04:24PM (#49541969)
TFA links to PixelPie as a GPU implementation https://www.cs.umd.edu/gvil/projects/pixelpie.shtml

Older »