4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 7y ago · link · parent
The saving sequence would be something like this (after setting up a frame pointer if needed): "vsetvl t0, x0, e8, m8; sub sp, sp, t0; vse.v v16, (sp)".
comment 7y ago · link · parent
2. One could just determine the height of the float ceiling with the greedy algorithm and run the optimization algorithm with that constraint
comment 7y ago · link · parent
It would require a minor compatibility break, significant checking work and changes to unsafe code to make it work, but it should be doable.
Array writes do need precise checking though, since otherwise you can write to arbitrary memory.
comment 7y ago · link · parent
The advantage of renting compared to buying is that you can occupy an house for a limited amount of time without being financially exposed to changes in the value of the house, without having to find a new buyer when you move out and without needing upfront capital or credit to buy it (there are of course also disadvantages to renting, so some prefer to buy instead).
comment 7y ago · link · parent
Also you should use Rc/Arc and Weak (along with RefCell/Mutex if needed) instead of the unsafe pointers. Even better, if possible, move the functions that access multiple components to the object that holds them all, and don't use any "smart pointers". Another possible design is to pass borrowed references explicitly to the methods, and add them to the trait signatures where needed.
Regarding memory access, it's probably fastest to have an hardcoded fast path for RAM and ROM, and then process the rest like now. Lookup tables might help as well (as long as all the data including them fits in cache, of course).
comment 7y ago · link · parent
The only disadvantage is that it shatters if you drop it or hit it with enough force.
comment 7y ago · link · parent
I don't see the downside of requiring everyone in your examples that already allows third party apps to do so for free (other than passing through payment processing fees) and without delay and censorship: the costs are minor or insignificant and can be included in the purchase price of the device.
The advantage is that it leads to a fair playing field for app makers, lower prices for consumers (since the money that goes to the platform maker is all visible upfront in the device price and thus easier to compete on) and doesn't stifle niches that the platform owner doesn't like for whatever reason.
comment 7y ago · link · parent
I mean, a lot of people program in a language they aren't familiar with because it has the best ecosystem for a given job or because the open source project they are modifying is written in that language.
comment 7y ago · link · parent
My only explanations are that that kind of thing happens when they can't figure out anything good to recommend.
comment 7y ago · link · parent
If it's not much better then people will not switch due to these small annoyances, and there doesn't seem to be any fundamental reason for it being much better (Intel and AMD are perfectly capable of producing top-performing x86 CPUs, and the architecture should not matter much).
comment 7y ago · link · parent
This way, the only timing signal available would be which requests take an outlier amount of time, and I doubt that's enough to break anything unless you can remotely cause the peer to hit slow disks or make network requests depending on secret data (which is a far more explicit programming choice than CPU timing differences).
comment 7y ago · link · parent
It seems to me that the lack of a parameter explicitly indicating the component and the reliance on hook ordering to match them across calls of the component function make them a bad design, but I might very well wrong and would be happy to be convinced otherwise.
comment 7y ago · link · parent
- Models: Attract Women through Honesty + The Subtle Art of not Giving a Fuck by Mark Manson
- The Ethical Slut by Dossie Easton and Janet Hardy + More than Two by Franklin Veaux and Eve Rickert + Opening Up by Tristan Taormino
comment 7y ago · link · parent
So it's quite possible (but uncertain) that women are attracted to dominance and leadership but not so much to physical violence itself, especially if the women does not think it serves any purpose, or if it shows weakness ("can't get any respect, so resorts to physical violence").
comment 7y ago · link · parent
E.g. for the mammogram:
P(cancer) = 0.8%
P(~cancer) = 1 - P(cancer) = 99.2%
P(positive_mammogram | cancer) = 90%
P(positive_mammogram | ~cancer) = 7%
P(cancer | positive_mammogram) = P(positive_mammogram | cancer) P(cancer) / (P(positive_mammogram | cancer) P(cancer) + P(positive_mammogram | ~cancer) (1 - P(cancer))) = 90% * 0.8% / (90% * 0.8% + 7% * 99.2%) = 9.39457%