HackerTrans
TopNewTrendsCommentsPastAskShowJobs

retrocat

no profile record

comments

retrocat
·3 tahun yang lalu·discuss
The research article is located here: <https://www.pnas.org/doi/full/10.1073/pnas.2101084119>; if you're interested in what "likely" means in this context, it may be beneficial to read through the article. My understanding is that the "likely" comes from it being an estimate using models, as the research article states.

> Substituting our empirically derived domestic emissions for those modeled in the RFS RIA would raise ethanol’s projected life cycle GHG emissions for 2022 to 115.7 g CO2e MJ−1—a value 24% above baseline gasoline (93.1 g CO2e MJ−1). The RIA estimate, however, includes improvements in feedstock and ethanol production efficiency that were projected to occur by 2022, such that the GHG intensity of ethanol produced at earlier time periods and over the life of the RFS to date is likely much higher [...].

My understanding is that they took the model used in the RFS RIA (when the RFS was first introduced), and plugged in what they've seen over the past few years to that model. Take that with what you will.

> And we're to assume that, without the production of fuel ethanol, the same land wouldn't be tilled and used for other crops?

With the increase in demand for corn for fuel usage, more fields are needed to plant the corn. Because the corn is for fuel, not food, food wouldn't have been planted in place of the corn had there not been fuel demand.
retrocat
·3 tahun yang lalu·discuss
> We know that moving `Arc<Db>` will not change the location of the `Db` object, but there is no way to communicate this information to rustc.

There is! `std::pin`[0] does just this (and `Arc<T>` even implements `Unpin`, so the overall struct can be `Unpin` if everything else is `Unpin`). The page even includes a self-referential struct example, though it does use `unsafe`.

[0]: https://doc.rust-lang.org/std/pin/index.html
retrocat
·4 tahun yang lalu·discuss
Are you sure this is the same code that triggers the vulnerability? Is the double `update` in the post itself unimportant (i.e., first updating with a 1-byte string, then the 4,294,967,295-byte string)? As I don't think this does that.
retrocat
·4 tahun yang lalu·discuss
I don't think that's what they're claiming at all. I think what they're claiming is that it's far easier for individuals to be corrupt if their CEO is similarly corrupt, which is a completely different claim.
retrocat
·4 tahun yang lalu·discuss
As far as I can tell, this can't actually work, because the return type of `fn next(&'a mut self)` should actually live for some lifetime `'b` that is shorter than `'a`, instead of at least as long as `'a`; mostly because `next` borrows `self` mutably.
retrocat
·5 tahun yang lalu·discuss
Because filing that counter-notice requires you to provide personal information, in case the person who filed the original DMCA wants to serve you with a legal notice.

From https://www.copyright.gov/512/:

> [...] To be effective, a counter-notice must contain substantially the following information:

> (iv) the user’s name, address, and telephone number, and a statement that the subscriber consents to the jurisdiction of Federal District Court for the judicial district in which the address is located, or if the subscriber’s address is outside of the United States, for any judicial district in which the service provider may be found, and that the subscriber will accept service of process from the person who provided notification under subsection (c)(1)(C) or an agent of such person.