4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 6y ago · link · parent
Are Helm charts easier to use or more prevalent than distribution packages?
842.
Italy PM Conte: 'We are closing down all non-essential businesses.'(translate.google.com ↗)
1 points · by devit · 6y ago · discuss
comment 6y ago · link · parent
But this can mostly be fixed by law, with a law that retroactively changes all rent, leasing, mortgage, employment contracts and in general any contract that involves periodic or future payments to be stopped at will, subject to no longer enjoying the service or product.
Then they can just stop paying rent and paying employees and cancel all supply deliveries, since they no longer need those, and they will not lose any money.
Then add a temporary UBI and a ban on actually evicting from rented spaces (since the economy is shut down, and thus there would be no other tenants) so that people can still have a home and food.
comment 6y ago · link · parent
As far as I can tell, what to do long-term is still up to debate, and continuing the lockdown only for higher-risk/older people is certainly an option.
Note however that jumping straight to such a differentiated lockdown seems much less likely to work, because behavior changes are easier in a total lockdown with full media and discourse focusing on it, as well as much easier enforcement since you don't have to distinguish the high-risk people.
comment 6y ago · link · parent
All you need is to pass a law and enforce it with police and military, it's not hard.
Since there is a good reason for the law, there won't be widespread resistance, and in fact on balance citizen are likely to help enforcement rather than hinder it.
comment 6y ago · link · parent
The correct analogue in Rust are the Rc and Arc types, and the "make_mut" method that clones the data if and only if there is more than a reference.
Also the claim that "Rust’s COW implements the Send and Sync traits, which due to Rust safety requirements, means the implementation is designed to be used in multi-threaded applications" is technically true, but highly misleading, since Cow of course doesn't have interior mutability, and so can't be modified if shared between multiple threads (unless put in a Mutex or equivalent container) and it's Send and Sync because all "simple" types do, and not because it's "designed" to be so.
Overall, the author doesn't seem very knowledgeable about Rust.
comment 6y ago · link · parent
EDIT: actually the paper doesn't seem to conclude that 3 days is enough, and instead than an unknown number of days, but at least 3, is required, at least relative to their detection method
comment 6y ago · link · parent
Currently people are, in part, still going to work even at non-essential jobs, non-essential shops are still open and enforcement is very limited.
comment 6y ago · link · parent
Wouldn't that make torture potentially effective in cases without those issues, such as torturing someone to get them to reveal a password to an encrypted device that you know they use daily?
comment 6y ago · link · parent
Obviously it's also more reliable in the context of other evaluations by the same reviewer which the platform has easy access to, i.e. if someone always gives 5 stars, then a 4 star review from him is much worse than one from someone who never gives 5 stars.
comment 6y ago · link · parent
Of course, it's not necessarily an effective use of time.
comment 6y ago · link · parent
However, in the particular case of moving, a friend might not want an untrusted stranger handling their belongings, so you would need their consent and they might not give it.
comment 6y ago · link · parent
The PREEMPT_RT patch solves this by reimplementing all kernel spinlocks as mutexes with priority inheritance that are fully preemptible and all interrupt handlers as preemptable threads.
The result is that if you have a bunch of real-time process/thread that do not make system calls, it's guaranteed that in a bounded amount time the highest priority set will be running.
If you do however make system calls (or even if you cause page faults because you didn't call mlockall() and accessed non-mlocked memory), with the exception of some system calls that provide better guarantees, then you can still have kernel spinlock contention with other threads that may hold the same spinlock for an unbounded amount of time, so the system is more limited than dedicated real-time OSes that are careful about this.
comment 6y ago · link · parent
In poorly performing languages like Python and Ruby calling a method on a value (like sum() or even the += operator) essentially means looking up the method name in a hash table, and then doing a dynamic function call on the resulting function pointer, so this sort of optimizations cannot be done in an ahead-of-time compiler unless all objects are created locally and thus have known method dictionaries (and even then, it depends on whether they are available to the compiler in IR form, whether the lookup code is inlined and whether the code can actually be simplified).
comment 6y ago · link · parent
Before Rust, everyone simply assumed that it was impossible to create such a programming language since it would have otherwise been what everyone used, and now that it turns out that it's possible, it's clear that it's the best solution and what should be used in the future whenever possible.