15,561 karma · joined Jun 8, 2017 (9y ago) · 4,715 submissions
comment 6mo ago · link · parent
Anyway, essentially yes. My previous comment didn't mention all of the context. The join enforces that the result set is the intersection of the individual column sets, so it gets increasingly sparse as individual columns are computed. So I just maintain a bit tree that says which columns could populate the result set and skip computing the other lanes, which depends on the vector width and benefits from knowing it at compile time.
comment 6mo ago · link · parent
But you can use it for lots of things. Whenever I'm frustrated with graph based tools being slow (like build systems), I run the graph through a datalog engine for comparison. It's usually much, much faster.
comment 6mo ago · link · parent
Such as?
I have a database that has big columns that get functions applied to them to compute the result set. This is a perfect case for length agnostic instructions, except out ends up horribly memory bound. A nice optimization is to only compute those lanes containing rows that might actually be in the result set by keeping track of a sparse record that depends on the lane size. But the cnt instructions are optional, and this also inhibits compiler optimizations in that lookup.comment 6mo ago · link · parent
Frankly, the length agnostic stuff is a mistake that I hope hardware designers will eventually see the light on, like delay slots.
comment 6mo ago · link · parent
What those blog posts are talking about is a different strategy called remote assistance where the vehicle remains the only thing in the control loop, but a human provides guidance to help the computer navigate itself. This makes the latency and stability of the connection much less important for maintaining safety.
It's not unheard of for companies in the industry that use remote assistance to also have an local option for remote control (for things like lot operations and vehicle rescue events), but that's not part of routine on-road operations and it's usually limited to a <5mph limp mode where the operator is physically present.
comment 6mo ago · link · parent
[0] https://pbs.twimg.com/media/GuE3ie2WcAAyeWs?format=jpg&name=...
[1] https://imageio.forbes.com/specials-images/imageserve/6828f0...
comment 6mo ago · link · parent
Undefined behavior is everything else. C and C++ are relatively unique in that their standards explicitly say "combining these constructs in this way is undefined", and we call those cases explicit UB. There's also a larger universe of implicit UB that standards omit. Most (all?) languages have implicit UB, even if they lack the explicit stuff. What happens when you get ENOMEM is a common one.
Rust does something similar to C/C++ and lists a bunch of UB that's only possible with incorrect code in unsafe blocks. Correct code placed in an unsafe block remains defined, as does code without unsafe (up to compiler/language bugs).
comment 6mo ago · link · parent
comment 6mo ago · link · parent
And when I checked 3 different compilers, each of them chose a different way to use FMAs.
Even with integer math, you can get different numerical results via UB (e.g. expressions with signed overflow one way and not another).
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
Gating access to medical care is the job of the patient's PCP and or other doctor. If the care is truly, meaningfully rationed (like transplant organs and blood banks), there are triaged priority lists managed by medical organizations.
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
The calculus for the victims doesn't seem to change much whether the same people are using a "new" name or an old one to hold their systems hostage.
comment 6mo ago · link · parent
comment 6mo ago · link · parent
If you want 100% coverage, you just autogenerate the test cases. LLMs can't properly check MISRA requirements, so they're really just a layer on top existing automated checkers. Same for complexity metrics, it doesn't get merged if it violates that (or it's a vendor dependency you won't touch anyway).
If you care about the spirit of the rules, they're not that big a difference. If you don't care, there are already ways to do this. In either case they're an incremental change, not what I'd call a godsend.
comment 7mo ago · link · parent
comment 7mo ago · link · parent
That said, I've found that most corporate environments are unintentionally hostile to this kind of optimization work. It's hard to justify until the work is already done. That means you often need people with the skills, means, and motivation to do this that are outside normal corporate constraints. There aren't many of those.