Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 9mo ago · link · parent

Email from Epstein to Epstein, with some details that stretch the imagination.

comment 9mo ago · link · parent

It’s also not four weeks, they’ve been deprecated api models for some time now.

comment 9mo ago · link · parent

Everyone keeps saying that but I’ve found it to be incredibly weak in the real world every single time I’ve reached for it. I think it’s benchmaxxed to an extent.

comment 9mo ago · link · parent

I remembered it being higher, but you are correct. All “technical help” (coding + data analysis + math) is 7.5%, with coding only being 4.2% as of June 2025 [0]. Note that there is a separate (sub)category of seeking information -> specific information that’s at 18.3%, I presume this could include design and architecture questions that don’t involve code, but I could be wrong.

[0]: https://www.nber.org/system/files/working_papers/w34255/w342...

comment 9mo ago · link · parent

Not that I’m aware. Models can be fairly seamlessly switched even mid-conversation, so this is unlikely to affect history.

comment 9mo ago · link · parent

You can’t ask GPT to assess the situation. That’s not the kind of question you can count on a an LLM to accurately answer.

Playing with the system prompts, temperature, and max token output dials absolutely lets you make enough headway (with the 5 series) in this regard to demonstrably render its self-analysis incorrect.

comment 9mo ago · link · parent

Not true. People can rationally know what they want but still be tempted by the poorer alternative.

If you ask me if I want to eat healthy and clean and I respond on the affirmative, it’s not a “gotcha” if you bait me with a greasy cheeseburger and then say “you failed the A/B test, demonstrating we know what you actually want more than you.”

comment 10mo ago · link · parent

Being only slightly more performant than an interpreted GC-only language is hard to believe (even though typescript is just a spec and you probably meant slightly more performant than v8).

comment 10mo ago · link · parent

BSG had notably muted sounds from interstellar explosions.

comment 10mo ago · link · parent

Yes, as in there’s no reason Linux can’t clean up its game the same way.

comment 10mo ago · link · parent

On Windows this was always easier because, for some reason, most everyone respected %appdata% compared to XDG_CONFIG_HOME, but also because hidden files wasn’t just a naming convention but an actual separate metadata flag.

252.

Portable Cartesian brace expansion in your shell(neosmart.net ↗)

1 points · by ComputerGuru · 10mo ago · discuss

comment 10mo ago · link · parent

> even though most people would agree that I'm not killing immorally.

They’d only agree in the abstract. As soon as you name the oppressive regime you’re fighting against, suddenly a huge chunk of those people will come up with reasons to no longer support you.

comment 10mo ago · link · parent

I guess that depends on the definition of corrupted. It just describes what to do when the WAL is corrupt, but doesn’t say what conditions are considered corrupt. (We use ZFS so I haven’t run into torn writes.)

comment 10mo ago · link · parent

If you lose the WAL you lose the data since the last merge but there’s no risk of corruption. The WAL handles missed syncs fine, too, missing losing just that window of data.

I don’t know if or how Postgres records the transaction number in the index to be able to notice if it’s out of date. If it does, I don’t know of any solution to “catch up” the index besides recreating it, which would be ok if that’s the only issue but from my experience with out-of-date indexes (libc or icu updates, where Postgres doesn’t know if anything IS broken and just reports that it could be), there’s no guarantee you’d even notice and your app could be running completely broken until you rebuild.

comment 10mo ago · link · parent

Minor correction: you don’t even have to guarantee the data is monotonic, it just performs best when it mostly is (good example is when handling incoming timestamps data on the server so messages/rexords are only generally monotonic but may be processed out of order).

How well do they work for UUIDv7? You’d probably have to tune (increase?) pages_per_range, but even though each index entry is 16 bytes you have to consider the btree index on the same is also similarly affected (or worse).

comment 10mo ago · link · parent

Virtual columns are basically one or two minor patches from being fully done. Pg18 brought us most of the way there.

Hash indices have long been crippled; they shipped almost unusable but every few years get a good QoL update. I think automatic unique constraints are the big thing left there.

comment 10mo ago · link · parent

Sibling comment mentions less space but also your alternative doesn’t (naively) handle supporting values that differ but hash to the same value.

Of course the hash index also outperforms a unique (btree) index on top of separately calculating the hash, in addition to the storage overhead, row bloat, lack of guarantees regarding the hash unless you expose it to Postgres as a user-defined function AND add a check constraint.

comment 10mo ago · link · parent

Maybe? I wasn’t under the impression these could be reliably lost or out of sync without risking data loss?

comment 10mo ago · link · parent

The no unique constraint using hash index thing is something I always run into. Am I missing something or is it just glue code missing to translate that syntax to a exclusion constraint with a hash index, allowing foreign keys to reference the column in the process, and possibly also fixing the ON CONFLICT approach in one go?

comment 10mo ago · link · parent

Another option would be a good way of placing indexes on a different physical disk. You could use fast, ephemeral storage like you can for a WAL without amplifying the writes to the same device that is your expensive bottleneck. You could rebuild on data loss.

But it would add complexity to detect out-of-sync indexes and tables.

comment 10mo ago · link · parent

I tried it last night (generally cloudless sky). With the naked eye it just looked like light pollution. With long exposure it looked like a weirdly lit picture. In neither case did I see any hint of green or red.

I’m not in the city, but you’d have to actually be two states away to escape its light (literally not figuratively, according to dark sky maps).

:(

comment 10mo ago · link · parent

I have, on my iPhone, RCS messages from businesses that don’t show up as a green bubble, have (somewhat) interactive components, and exhibit non-standard (also non-intuitive) behavior I didn’t expect of either an RCS or an iMessage.

So I guess they did implement all that.

(Not that they are particularly nicely implemented - the layout and padding is all wrong, alignment is off, and it looks distinctly non-native… but that’s par for the course on iOS 26.)

comment 10mo ago · link · parent

Do you need long exposure to make it visible with a camera? How does that work in the presence of light pollution?

comment 10mo ago · link · parent

Of course they do. That’s how tariffs work but people somehow have been deluded into thinking otherwise. Everyone that’s ever lived in a non-western country with import duties knows that.

comment 10mo ago · link · parent

Thanks for the correction but they're tooting their own horn either way.

comment 10mo ago · link · parent

I'm not a frontend dev but I came up with this and use it a lot in my userscripts. It's not the most efficient (it can certainly be refactored to create a MutationObserver singleton and then have each call hook into that) but it works well enough for my needs and lets me basically use an old-school to dealing with reactive sites (so long as you are fine with using async):

    function awaitElement(selector) {
        return awaitPredicate(selector, _ => true);
    }

    function awaitPredicate(selector, predicate) {
        return new Promise((resolve, _reject) => {
            for (const el of document.querySelectorAll(selector)) {
                if (predicate(el)) {
                    resolve(el);
                    return;
                }
            }

            // Create a MutationObserver to listen for changes
            const observer = new MutationObserver((_mutations, obs) => {
                // You could search just inside _mutations instead of the entire DOM.
                // Efficiency will depend primarily on how precise your selector is.
                for (const el of document.querySelectorAll(selector)) {
                    if (predicate(el)) {
                        resolve(el);
                        obs.disconnect(); // Don't forget to disconnect the observer!
                        break;
                    }
                }
            });

            // Start observing the document
            observer.observe(document.documentElement, {
                childList: true,
                subtree: true,
                attributes: false,
                characterData: false,
            });
        });
    }
1
8910
277