69,262 karma · joined Apr 25, 2009 (17y ago) · 21,100 submissions
comment 3d ago · link · parent
The problem is not the stockpile, it's negligence in maintaining the stockpile.
> Why not give benefit of doubt?
Because the article?
> It appears that this lead azide has not been stored well.
Proper inspection and maintenance of stock is important to any inventory which is not immune to decay, which is most of them.
comment 1w ago · link · parent
An other fun one is that some of the transition schemes were... imaginative, let's say. Famously Sweden didn't want a hard break so in 1699 they decided that they would just skip leap days until they were on Gregorian. So they skipped the one in 1700, then promptly forgot the 1704 and 1708 ones because they were busy with the Great Northern War, as a result the scheme was cancelled by reverting to the Julian calendar, which they did by adding a second leap day in 1712 (which thus had a February 30th, and 367 days). Sweden ended up doing the switch at once in 1753.
That's calendaring rather than timezoning tho. Timezones really only became a factor once timekeeping was precise enough and times had to be communicated and synchronised across vast distances, which really came about with the railways (first formal "time zone" was the Railway Time of England's Great Western Railway). Before that, cities and villages oft had their individual time based on apparent solar time at the location (aka a sundial). For instance Paris Mean Time was 9 minutes and 21 seconds ahead of London.
comment 1w ago · link · parent
> Yeah I had a really hard time making the jiff-diesel and jiff-sqlx crates. Part of the problem is the very poor datetime support in the underlying databases. The other part of the problem is that I'm not a user of either diesel or sqlx, so there are some unknown unknowns for me.
https://www.reddit.com/r/rust/comments/1xx7v4v/comment/19sp2...
So I’m sure they’d be glad for assistance.
comment 1w ago · link · parent
comment 1w ago · link · parent
Temporal does improve some things (it has more strict zoning / less defaults, and improves serialization through RFC 9557), but some of the divergences are not necessarily improvements and rather divergences of opinion (e.g. java.time wilfully made non-ISO calendars second-class, Temporal makes them first class more like Joda, and it's one of the things Colebourne — the lead author of Joda and java.time — strongly disagrees with[1], but the Temporal authors have pretty compelling reasons for it[2]).
[1] https://blog.joda.org/2009/11/why-jsr-310-isn-joda-time_4941... https://github.com/tc39/proposal-temporal/issues/5 https://github.com/tc39/proposal-temporal/issues/1454
[2] https://tc39.es/proposal-temporal/docs/calendar-review#why-a...
comment 1w ago · link · parent
Hopefully Safari will soon have temporal implemented and we can leave that behind (it's in 27.3b so not out of the question).
> Chrono actually is comparatively nice
burntsushi has written pretty extensively about:
1. comparisons to existing datetime libraries (https://docs.rs/jiff/latest/jiff/_documentation/comparison/i...), chrono's original author also commented (https://github.com/BurntSushi/jiff/issues/63)
2. why they felt it was a good idea to write a new library (https://docs.rs/jiff/latest/jiff/_documentation/design/index...)
3. why they didn't wish to contribute to either chrono or time (https://docs.rs/jiff/latest/jiff/_documentation/design/index...)
And as randomblock linked, chrono is deprecating itself.
comment 1w ago · link · parent
But that's the point see? You have to catch panics because it's easy, straightforward and "common" to trigger panics.
If it were not, you wouldn't, because the buggy user-provided code would not be triggering panics, in the same way you're not catching `std::process::abort` or segfaults or whatnot.
comment 1w ago · link · parent
I don’t think that an unwind-less rust would have fit within the weirdness budget 10 years ago, today it would definitely be something to consider. Although it would have an unwind effect to contend with.
comment 1w ago · link · parent
When users are complaining that your shuffle is hot garbage, it's just engineering.
> It's not like one is gambling with money on what song is played next.
Which... is rather the point? If one was doing that, your scheme would be fine.
comment 1w ago · link · parent
Hell even actual shuffling is not necessarily enough to "feel" right for human psyche, famously despite the ipod doing actual shuffling[0] users complained because tracks of the same artist / album could still cluster over shuffling an entire library, so they implemented "smart shuffle" to skew the shuffle and break up clusters. An other option is to weight the random pick by how far back a track was last played, or how little it's been played overall. This has the advantage of favouring less played tracks across listening sessions.
[0] and frankly if the ipod was able to do actual shuffling back in 2005 the memory footprint is just a lazy excuse
comment 2w ago · link · parent
The first easy number is the sheer amount of energy, diesel has an energy density of 10.7kWh/L, so a 30gal tank holds 1460kWh. By comparison a silverado EV (probably the best currently available EV tower short of a semi) has a 215kWh battery.
The second more complicated number and why diesel is so good at towing (and other high-power applications) is that diesel gets more efficient when loaded, by a factor of 2-ish: an unloaded diesel might only use ~20% of the fuel it burns to actually move stuff, or on a 30gal you get around 300kWh out of your 1460kWh tank, but that will climb to 35~40% as the load increases if kept in the efficiency range, so towing you might have 500~550kWh out of 1460kWh available to actually move your load.
There's no such thing on an EV, there's some variation but load isn't really a factor, pretty much just the band, so your Silverado gets 205kWh usable at the wheels unloaded and the same loaded. Therefore all the towing losses (rolling resistance and drag) come straight out of your range.
And short of a breakthrough on batteries it's difficult to add more battery capacity, the battery already accounts for a third of a silverado's weight and a significant fraction of its internal volume. Getting a 500kWh battery in a truck is currently impossible: that's the sort of capacity you find on semis (european EV semis cluster around 550~650).
And then of course you have the charge concern, charging a 500kWh battery in half an hour requires a megawatt charger running at more than 1MW, and the ability to ingest that in your pack (on 800V battery tech that's 1250 amps, which is within MCS specs but the vehicle side is pretty damn rough).
comment 2w ago · link · parent
That's the point of V2H (or a residential battery, which it emulates). Although you still want a UPS for computers: I doubt "without any interruption" is at the scale of a UPS, and possibly not at the scale a desktop computer will require. Notably it depends how the grids cuts off, if it cuts off in one shot (like throwing the breaker) the failover should be almost instantaneous, but if it fluctuates before failing the battery might need a lot longer to engage.
comment 2w ago · link · parent
> Most of the disasters I'm aware of people either get their power back in a short enough amount of time that they can use a normal generator for the gap
TBF an EV car has an absolutely massive battery relative to the electric consumption of a house, unless you're using resistive heating all around. Especially if you ration use.