HackerTrans
TopNewTrendsCommentsPastAskShowJobs

nulltrace

86 karmajoined 4 tháng trước

comments

nulltrace
·4 ngày trước·discuss
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 ngày trước·discuss
[dead]
nulltrace
·tháng trước·discuss
[dead]
nulltrace
·tháng trước·discuss
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 tháng trước·discuss
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 tháng trước·discuss
Being a generalist isn't easy.
nulltrace
·2 tháng trước·discuss
[dead]
nulltrace
·2 tháng trước·discuss
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 tháng trước·discuss
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 tháng trước·discuss
designed, but never tested
nulltrace
·2 tháng trước·discuss
We went through the same switch. Half our alerts had been firing for a while and nobody ever acted on them.
nulltrace
·2 tháng trước·discuss
Firefox at least randomizes extension IDs per install. Chrome hands all of that to extension devs, basically a "your problem now".
nulltrace
·2 tháng trước·discuss
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 tháng trước·discuss
Common mistake is trusting the repo instead of the workflow. Then any workflow inherits the same cloud access.
nulltrace
·3 tháng trước·discuss
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 tháng trước·discuss
We added a preflight curl against registry.npmjs.org before the install step in CI. Not surprising they went down together.
nulltrace
·3 tháng trước·discuss
Downtime is one thing. Silently reverting commits on your default branch is something else entirely.
nulltrace
·3 tháng trước·discuss
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 tháng trước·discuss
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 tháng trước·discuss
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.