HackerTrans
热门最新趋势评论往期问答秀出招聘

nulltrace

86 声望加入于 4个月前

评论

nulltrace
·4天前·讨论
That loop reads like a bug to anyone who hasn't memorized the wrapping rules. while (i-- > 0) on a signed index does the same thing.
nulltrace
·27天前·讨论
[dead]
nulltrace
·上个月·讨论
[dead]
nulltrace
·2个月前·讨论
The SKIP LOCKED pattern is fine until the worker count climbs. Then vacuum can't keep up. Dead tuples pile up, visibility map turns to swiss cheese. Queue table is tiny on disk but the planner thinks it's huge and stops using the index. It gets ugly fast.
nulltrace
·2个月前·讨论
Compiler mode won't catch the `extern "C"` thing though. Both sides compile happily, link blows up on mangled names. What I do is just keep a throwaway .cpp in tests that #includes the header and calls a few of the public functions. Dumb but it's basically the only thing that ever catches that case before some downstream user does.
nulltrace
·2个月前·讨论
Being a generalist isn't easy.
nulltrace
·2个月前·讨论
[dead]
nulltrace
·2个月前·讨论
Most IAM policies start as "whatever made the deploy pass." Need rds:CreateDBInstance? Fine, rds:* it is. Ship it. Months later that same role can wipe the cluster and nobody remembers why it ever had that permission.

Separate accounts help, but only if someone actually goes back and cleans it up, which… yeah, doesn't really happen.
nulltrace
·2个月前·讨论
There's a GitHub issue for the freeze thing. Their security scanner passes the full dep list as CLI arguments, large monorepo on Linux and you blow past ARG_MAX. Spawn silently hangs, no error, --ignore-scripts doesn't help because the scanner is separate from postinstall. Been broken since 1.3.5 at least.
nulltrace
·2个月前·讨论
designed, but never tested
nulltrace
·2个月前·讨论
We went through the same switch. Half our alerts had been firing for a while and nobody ever acted on them.
nulltrace
·2个月前·讨论
Firefox at least randomizes extension IDs per install. Chrome hands all of that to extension devs, basically a "your problem now".
nulltrace
·2个月前·讨论
Stale training data is part of it. But even a current model can't tell what setup.py is going to run on your box. Nothing actually inspects the package before it executes. You'd want something that pulls the metadata and checks what hooks are in there before anything runs.
nulltrace
·3个月前·讨论
Common mistake is trusting the repo instead of the workflow. Then any workflow inherits the same cloud access.
nulltrace
·3个月前·讨论
Browsers already treat the same SVG differently depending on how you embed it. <img> strips scripts and external resource loads. <object> and inline don't. People test with img tags, looks fine, then someone switches the embed method and everything opens up.
nulltrace
·3个月前·讨论
We added a preflight curl against registry.npmjs.org before the install step in CI. Not surprising they went down together.
nulltrace
·3个月前·讨论
Downtime is one thing. Silently reverting commits on your default branch is something else entirely.
nulltrace
·3个月前·讨论
Preview deploys are even worse. Every PR spins one up with the same env vars and nobody ever cleans them up. You rotate the key, redeploy prod, and there are still like 200 zombie previews sitting there with the old value.
nulltrace
·3个月前·讨论
Catching accidental drift is still worth a lot. It's basically the same idea as performance regression tests in CI, nobody writes those because they expect sabotage. It's for the boring stuff, like "oops, we bumped a dep and throughput dropped 15%".

If someone actually goes out of their way to bypass the check, that's a pretty different situation legally compared to just quietly shipping a cheaper quant anyway.
nulltrace
·3个月前·讨论
Right, metaclass is a ways off. But even without it, just the core reflection is going to save a ton of boilerplate. Half the template tricks I've written for message parsing were basically hand-rolling what `^T` will just give you.