4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 7y ago · link · parent
So it seems perfectly possible (and in fact highly likely) that this result does not hold if players play optimally, especially if deck selection is included in the strategy.
comment 7y ago · link · parent
Accessing it will indeed panic if someone else has an active mutable reference to the contents of the refcell, but the idea is that you should only keep that for the section of code that actually modifies the object.
The reason this feature exists is that it prevents code observing partially modified objects that could be temporarily missing required invariants (in addition to preventing mutating object with references to parts of them which can result in dangling pointers and thus memory unsafety).
You can also use Cell as the parent argues with the benefit of never failing, but then you don't get protection from recursive calls exposing violated invariants and you need to change the implementation of Element itself.
comment 7y ago · link · parent
* after the next 2 intersections, turn right
* after the next intersection, turn right
* turn right at the next intersection
* TURN RIGHT NOW
* you missed the turn right, ....
Other huge annoyances:
- Not telling you which lane it is optimal to stay on on multilane roads
- Not telling you which road signs to follow outside urban centers via voice
- Not telling you about speed limit changes
In general, I find the guidance to be barely usable instead of being excellent as it could be
comment 7y ago · link · parent
Even if the profit is no longer negative, it should be near zero since there is not much moat, and it's not even clear whether Uber would be able to compete at all against Waymo (better tech) or even carmakers who own the cars.
The only thing Uber has is brand recognition, but Google Maps actually has even more brand recognition and that's where Waymo is going to be unless antitrust prevents it somehow.
comment 7y ago · link · parent
So I think the reason for "CloudFlare workers" not being available ten years ago has to be found somewhere else.
comment 7y ago · link · parent
Just run it as a systemd service or a Docker/Kubernetes-managed container on one of the VMs that run the rest of the application.
Also no need to use all those AWS-proprietary services, just use an existing task queue system based on PostgreSQL/RabbitMQ/etc.
comment 7y ago · link · parent
It would indeed be nice to do that automatically based on foreign keys; I suppose one could write a PostgreSQL extension for that (or maybe one exists?).
Of course you still need the ability to perform joins that are not implied by the database structure.
comment 7y ago · link · parent
comment 7y ago · link · parent
Also, replacing trust in centralized banks with trust in mostly-centralized crypto software developers and mostly-centralized majority of miners.
comment 7y ago · link · parent
Then no one will ever be homeless.
That's the only non-state solution that guarantees this outcome (well, barring major catastrophes that destroy the home and cause the insurance to not be effective at replacing it).
comment 7y ago · link · parent
It's ridiculous that a supposedly sandboxed text editor would have access to all your photos, for instance.
Apps should only have access to their own private storage and to data that the user has explicitly picked from a file picker or similar UI, which is what this update does AFAICT.
It seems a serious mistake though to not affect apps installed on upgrade and to disallow access instead of just providing a virtual private copy of the external storage for each app (though the latter is not clear from the article).