Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dwattttt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
811.
▲
by
dwattttt
2y ago
Say "word count" one more time!
812.
▲
by
dwattttt
2y ago
Unsubstantiated (not even going to bother link to the green-account-heard-it-from-a-friend comment), the fault was added by a post-QA process
813.
▲
by
dwattttt
2y ago
I was just looking at the bcdedit options earlier today, this is doable on Windows
814.
▲
by
dwattttt
2y ago
Quoting James Mickens is always the winning move. I recommend the entire collection of his wisdom, https://mickens.seas.harvard.edu/wisdom-james-mickens
815.
▲
by
dwattttt
2y ago
You apply the same process, but your hypotheses are "bug is before/after this bisection point". Your "probability of evidence given hypothesis before/after" are where you incorporate your guess about the tests
816.
▲
by
dwattttt
2y ago
Or if you actually kept track of these things: pull out the bitlocker recovery key, even if it's on an old USB at the back of a drawer. Ask How I Know
817.
▲
by
dwattttt
2y ago
For Bayesian Inference, the example in the Wikipedia article is good (who doesn't like cookies?): https://en.m.wikipedia.org/wiki/Bayesian_inference#Examples When gathering more evidence, you'd use your new b
818.
▲
by
dwattttt
2y ago
> Not sure about Rust, but it probably also uses some Rust macro magic to do something similar. Much the same as JavaScript I understand, but no macros; the compiler turns them into Futures that can be polled
819.
▲
by
dwattttt
2y ago
It's a bit of a song and dance; you can turn a &mut T into a *mut T, and you can cast a *mut T into a *mut anything, but you can't do it in one step.
820.
▲
by
dwattttt
2y ago
In this analysis, the effort the bank puts towards defending themselves is relevant. We wouldn't blame the bank for an army attacking them, but if they left the door unlocked and the neighbours kids made off with your money you very ri
821.
▲
by
dwattttt
2y ago
I haven't seen it mentioned elsewhere in this thread, but I really appreciated my IDE adding extra information in function calls, annotating create(true, false) into create(initial_state: true, reset: false)
822.
▲
by
dwattttt
2y ago
I think what you're looking for is std::any; https://doc.rust-lang.org/std/any/index.html The example there includes a function that takes Any + Debug, tries to downcast to a String, and if that succeeds it l
823.
▲
by
dwattttt
2y ago
I don't think this or the sibling would be improved with a function that gave you an arbitrarily sized allocation where you also need to query the size of that allocation though? In all the cases you need to know what the size of the b
824.
▲
by
dwattttt
2y ago
> the program continued using the same pointer, not the realloc call result, since the old pointer did not change > In this context, it is a bug in the application This is a non-intuitive result by the normal lens C pointers are viewe
825.
▲
by
dwattttt
2y ago
> give me a buffer of semi-arbitrary size and tell me how big it is; I promise to resize it later I'm not sure how you could use this usefully. If you don't care what size you get, why would you allocate in the first place? And
826.
▲
by
dwattttt
2y ago
PE headers have a field for machine type, you're looking for Machine in FileHeader: https://learn.microsoft.com/en-us/windows/win32/debug/pe-for... and https://learn.microsoft.com/en
827.
▲
by
dwattttt
2y ago
Sticking with x86, I'm pretty sure CPUID can tell you what the topology of all the cores you can query on are in. Not that I'd tell anyone not to infer it from timing, that just sounds like fun.
828.
▲
by
dwattttt
2y ago
I think it's as naturally async as anything else here actually. If you're calling a function via IPC over shared memory, you're sending a message, signalling it's there to the other process, and waiting for a response me
829.
▲
by
dwattttt
2y ago
You mention the most reasonable trick is to just avoid hammering/read-write the same cache lines; I guess you didn't hit this as a need because your QEMU instruction pipe was fast enough, but would you batch up your events along c
830.
▲
by
dwattttt
2y ago
It can change under other (rare) circumstances. Otherwise a collision between an already-chosen base address for one module and an allocation in your process would result in a failure to load that module into your process.
831.
▲
by
dwattttt
2y ago
You _still_ need a consistent way to talk about values; IPC systems tackle the same problems under the name marshalling & de/serialisation. They just tend to take much more conservative options to deal with exactly this kind of pro
832.
▲
by
dwattttt
2y ago
> Possible undefined behavior ranges from ignoring the situation completely with unpredictable results, to behaving during translation or program execution ... As much as I'm not a fan of the status quo, the argument that changing &
833.
▲
by
dwattttt
2y ago
I think it's time we had the quantum computing talk: https://www.smbc-comics.com/comic/the-talk-3
834.
▲
by
dwattttt
3y ago
I was really hoping it would be executing Go in kernel.
835.
▲
by
dwattttt
3y ago
You should produce a key per device, and produce a backup key that is safely stored & not used anywhere. You can recover if you lose all devices via your break-glass backup key, and you limit the blast radius of "my key got stolen&
836.
▲
by
dwattttt
3y ago
The interface to the gaming system might be strictly data, but you've got power supplied to the cartridge; you can put whatever hardware you can fit inside that cartridge still
837.
▲
by
dwattttt
3y ago
More broadly: processor design has been optimised around C style antics for a long time, trying to optimise the code produced away from that could well inhibit processor tricks in such a way that the result is _slower_ than if you stuck wit
838.
▲
by
dwattttt
3y ago
> If a non-polymorphic, non-inline function may have its address taken (as a function pointer), either because it is exported out of the crate or the crate takes a function pointer to it, generate a shim that uses -Zcallconv=legacy and i
839.
▲
by
dwattttt
3y ago
From memory (and I am not a lawyer), in civil cases you are allowed to infer negatively from a refusal to provide a password, and I think in criminal cases that is not allowed. Edit: spelling
840.
▲
by
dwattttt
3y ago
> "we were trial migrating your whole file system … consistency checking it … reporting back to us whether the upgrade was 100 percent clean, then rolling it back" Actually doing the migration then undoing it is very much not a
More ›