Better HN
topnewbestaskshowjobs
Log inSign up

AlotOfReading

15,556 karma · joined Jun 8, 2017 (9y ago) · 4,714 submissions

Submissions

comment 1mo ago · link · parent

You could choose to detect small keys, but my understanding is that implementations entirely eliminate the issue by only searching factors with leading bits set (i.e. large numbers).

comment 1mo ago · link · parent

Definitely not. Their CPS requires that these keys be generated by an HSM and no HSM would ever generate these, so there's little reason to believe they're following any of their other controls.

comment 1mo ago · link · parent

The US also has laws imposing restrictions on institutions outside their borders/jurisdiction. FATCA for example.

comment 1mo ago · link · parent

The one hashing scheme should be technically better.

That said, I suspect you could avoid the coprime partitions and the issues they cause with semi-correlated permutations over block partitions and avoid hash collisions in the process.

comment 1mo ago · link · parent

This is a general point rather than an argument supporting the GP comment, but it can be shockingly hard to know what the correct response to particular situations is, or predict how a system will respond. For example, one system I know had difficulty differentiating people laying on the road from unmapped speedbumps (particularly at night), but was very good at recognizing them standing up. Someone spent a lot of time testing with dummies until perception improved. Another had no idea how to handle people in fursuits and halloween costumes, because it was incorrectly applying animal behavioral models to pedestrians.

comment 1mo ago · link · parent

Waymo has been winter driving in Tahoe since 2016 or so. Hard to find icier conditions with bigger hills.

comment 1mo ago · link · parent

Why are SLAs the bar for performance? Every additional second of execution time accumulates in the annual cloud bill, and using too much memory means I need a bigger box.

For example, the C++ replacement for a Java program bottlenecking my CI takes 1/3rd as long (with less variance) and runs on a smaller instance.

comment 1mo ago · link · parent

As someone who lives in a country with wolves and other apex canids (to the point where we have legal hunting seasons for them), I really don't understand the supposed "consequences" here. Canid populations just aren't an issue. There are no children living in fear (rather, we have to keep kids from trying to approach the cute animals...), nor are the occasional depredation events more than a minor annoyance. If a wolf or big cat in particular eats your lifestock, you file a form with the government for market-value compensation and complain about the hassle at the bar.

comment 1mo ago · link · parent

I'm not sure we read the same story. By the time of the inciting incident, the technocrat cyborgs (Titans) have been enslaved by the machine leader, which has no humans in charge of it.

comment 1mo ago · link · parent

I'm pointing out that Japanese companies can do that because they're organized and managed like Japanese companies. Tesla is not, and in fact lacks pretty much all the organizing characteristics and long term planning that enables keiretsu to function.

comment 1mo ago · link · parent

A.k.a the circular economy, or HP's modern business model. One of the difficulties has always been that if your materials are truly fungible commodities, why would anyone pay your premium instead of buying from a dozen other suppliers. HP makes it work with technical moats, but that doesn't apply here.

comment 1mo ago · link · parent

What about Tesla's management style would you call Japanese?

comment 1mo ago · link · parent

This exact same problem exists on mountains, which is why there are no permanent settlements above 5,100m. The Apollo pressure mentioned above (1/3rd atm) is roughly equivalent to an elevation of 8,500m, well into the "death zone" for a normal atmospheric mix.

comment 1mo ago · link · parent

The primary mechanism for redress of constitutional right violations under current law are monetary damages under FTCA, especially now that universal injunctions are dead. There's no actual counterbalance.

comment 1mo ago · link · parent

I wouldn't use this as a guide.

The beeswax I get from a local apiarist looks nothing like that under a blacklight, and in fact is quite (pale) orange. Carnuba wax mixtures fluoresce yellow. My box of paraffin fluoresces blue brightly enough to be visible in full sunlight, much brighter than the image. Rosin fluoresces bright, radioactive orange in case you're wondering.

comment 1mo ago · link · parent

The Mongolian version, aaruul, comes in a whole range of textures from reasonably chewable to a hardness that dissolves in your mouth over the course of an hour or so. It makes for great travel food.

I don't know why nepali version is dried so much, but it becomes impossible to rehydrate and hence, unusable.

comment 1mo ago · link · parent

That's trivially untrue. Nothing about turing machines or lambda calculus requires temporal unsafety. Even this example wouldn't exist if the compiler rejected covariant lifetimes. You already know this of course, so I'm not going to keep beating that dead horse.

The obvious follow-up is to find a minimal set of rules that allow us to express what we want without permitting temporal unsafety. The borrow checker is one set of fairly minimal rules that works pretty damn well. Alternatively you could define away the unsafety by giving it semantics, like fil-C does.

comment 1mo ago · link · parent

I'm only talking about modern C++, not C++98. C++'s footguns include smart pointers. For example, is the following code safe?

    std::unique_ptr<int> p(foo());
    std::print("{}\n", *p);
The answer depends on how foo() is implemented. You can't reason about it locally, and strictly speaking it's not possible to determine at compile time. Now, I should be declaring this gsl::not_null<std::unique_ptr<int>> to comply with the core guidelines, but I think we can agree that optional support libraries aren't relevant to this discussion.

comment 1mo ago · link · parent

It's not enough for memory safety issues to be "rare". To meet your obligations under the standard and have defined behavior (i.e. rust's basic guarantee), memory safety issues can't exist at all.

comment 1mo ago · link · parent

And yet applications written in modern C++ are constantly discovering new memory safety issues. Sean Baxter wrote a whole manifesto talking about the shortcomings of the existing C++ model [0].

[0] https://safecpp.org/draft.html

comment 1mo ago · link · parent

https://github.com/keepassxreboot/keepassxc/issues/10407#iss...

comment 1mo ago · link · parent

If it were transmit only, you could put it behind a data diode and buggy report code wouldn't matter. Even better, validating the code is a lot easier if it doesn't accept attacker input.

comment 1mo ago · link · parent

SSH doesn't prevent key sharing (and hence, phishing), so it's fundamentally different in the context of this discussion.

comment 1mo ago · link · parent

    YubiKeys have been a thing at Google and other major tech companies for almost two decades now and the effects are well-studied.
My experience is that yubikeys have a tendency to get lost, get cleared, get mixed up (which of my 4 identical yubikeys has the right passkey?), stop working reliably from random USB issues, etc. And worse, yubikeys are awful to use. Like am I seriously supposed to take off my phone case every time I want to plug in a yubikey to the USB-C port (which may or may not be working depending on whether moisture has condensed in the port) so I can use the one mobile browser that supports them to retrieve a passkey every time I want to log in?

No, fuck that. Just let me use an SSH cert at that point. The existence of phishing is a comparatively minor evil.

comment 1mo ago · link · parent

Under NLL, reference lifetime is defined by the places where the reference is used, and noaccess types can't be used. So then reference lifetime has to devolve to the spans where the reference is live, which is only defined lexically.

So for example:

    let mut data = vec!['a', 'b', 'c'];
    let b: &noaccess [char] = &data[..];
    data.push('d'); // Does this error?
Hence the question

comment 1mo ago · link · parent

    I've occasionally contemplated whether Rust would benefit from another flavor of reference: no-access. 
Most of the uses for this I can think of are best solved by opaque pointers for FFI. Having a rust-native reference just seems incongruous. Like, does it have size and alignment info? How would it interact with NLL? The only way I can imagine it working is if it extended referent lifetime throughout the lexical lifetime of the reference, but that defeats the purpose of NLL.

Rust solves a similar problem in closures with unique immutable references, but they're not quite the same.

comment 1mo ago · link · parent

Can't say I have a lot of experience sleeping on mammoth pelt.

A slightly more modern way to deal with cold sand is to bury some coals beneath the pelt, after using them to cook your dinner or whatever.

comment 1mo ago · link · parent

You need more insulation than you'd expect. The coldest campsites I've ever had have all been on sand.

comment 1mo ago · link · parent

Because if Bill Gates is paying $150k for bananas, my expected value as a shopkeeper is maximized by not selling you my limited stock of bananas at $0.50/each and instead waiting for the remote possibility that Bill Gates walks into the store instead. It's not socially optimal for bananas to rot on store shelves when there are willing customers at a lower price point, but this happens all the time in dynamically priced markets.

This comes up frequently in housing, for example.

comment 1mo ago · link · parent

Tourist UPI only permits P2M payments, and most normal transactions (as well as refunds) are conducted P2P.
12345
158