Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 5y ago · link · parent

There's basically no evidence either way, although the outbreak being in a city with a class 4 bio lab actively studying sars viruses does on the surface seem to make the lab leak more probable. Bit of a coincidence.

What really makes me think though is the way China is being uncooperative. You'd think if they were innocent they wouldn't need to limit access to data and prevent investigation of the Wuhan lab. Maybe that's just in their nature as a totalitarian regime, but it's not doing them any favors here.

comment 5y ago · link · parent

Woah, you've gone pretty far off the deep end.

You'd do well to remember there are two sides to any conflict (as my parents drilled into us whenever my brother and I would blame each other).

In my opinion you can see Israel exercising serious restraint, evacuating people from a target first when possible, firing warning shots before the real attack. Hamas on the other hand is indiscriminately firing over 3000 rockets at Israel civilians. That's like what the Nazis did to London with their V2 rockets. Now there is a big power imbalance here, and I feel for the Palestinians, but they're hardly the good guys here. That's terrorism, plain and simple. No country would tolerate that.

comment 5y ago · link · parent

What data structures can't be implemented efficiently? Or what applications can't be architected differently to utilize CRDTs?

comment 5y ago · link · parent

> No you can't, not without breaking the rules of the system, because as you say, that would lead to an actually inconsistent system.

If you want to redefine eventually consistent to prohibit that behavior then you've just reclassified most real life AP systems as eventually inconsistent.

Eventually consistent systems allow stale reads of older data plus deleted data for an undefined period of time. If you turn around and issue a write based on that you get inconsistency. Eventually consistent systems do not prohibit this.

> Nonsense. CPUs only work on very limited data structures (sequences of bits), but that's not a concern in practice because we can build up more complicated datastructures on top of them. The same is true for CRDTs.

You're talking like there are no downsides to CRDTs. There are huge downsides to them, which is why they're rarely used in practice. Your analysis is only valid in theory.

comment 5y ago · link · parent

I have some doubts about that, but even if we grant it's possible, most real life AP systems do not make that guarantee.

comment 5y ago · link · parent

I strongly disagree. Lockdowns are not cost free, but they do save lives. Infection raging out of control also changes behavior and also has economic downsides.

I really would like to see a good numerical analysis of the costs and benefits of lockdown policies - I have yet to see one that's not seriously flawed.

comment 5y ago · link · parent

I'm not exactly sure what your point is. Inconsistent systems are not always horrible?

Mostly they behave well. It's really that they have edge cases that are unintuitive.

In your example of a user is switching between A and B all the time, imagine their confusion as their changes keep getting lost and reappearing. Now imagine they make other changes based on that situation.

This can also happen with different users communicating via a side channel.

comment 5y ago · link · parent

Yeah, that wasn't the best choice of wording. Much prefer how you phrased it.

It's really just about carefully defining the behavior of the system in the face of failures. Typically that means in a CP you tolerate some failures, but eventually you lose the majority and (perhaps only on one side of a network partition) and you have to sacrifice write availability at the minimum to maintain consistency - and reads might now be stale.

comment 5y ago · link · parent

Yeah, these all good points. The world is always more complex if you dig deeper. It does very much depend on your use case, and it can vary for different types of data.

comment 5y ago · link · parent

Eventually consistent generally means things can be all over the place. You can temporarily see extremely weird and unintuitive things and then modify data based on that incorrect world view. That means eventually consistent turns into permanently inconsistent in unpredictable ways.

CRDTs are interesting, but over hyped. They only work for very simple situations and very limited data structures.

comment 5y ago · link · parent

You can make partition tolerance arbitrarily low in practice with enough work and resources. But you can never eliminate it. Note it is not just network failures here, because a dead machine and an inaccessible machine are both unavailable.

So in theory you have to choose in the event of P do you sacrifice A or C. That's CAP in a nutshell. You have to plan for P so choose your failure mode in that case.

And this is where people went wrong. They figured you can't sacrifice availability, so then you can't have consistency. If you can't have consistency in failure modes, you may as well not have it at all.

That's really dumb, because in reality you're always going to have some downtime. Most use cases can afford a little downtime, rather just work to keep it to acceptable levels. By sacrificing consistency you enter a realm where logic and cause and effect no longer apply - it's hell to program with that model - and the resulting bugs will cost you availability anyway.

CP should be the default choice.

comment 5y ago · link · parent

I think you don't know your Russian history. That territory has usually been controlled by an aggressive, expansionist regime. How did you think it got to be the largest country on earth?

It's very strongly related to the geography of the region.

comment 5y ago · link · parent

Is obviously a non linear effect that increases as a function of the age difference. There's no step function at any magical age.

I feel like I shouldn't have to clarify that.

Also if you're a 50 year old man with high status you'll fare substantially better than a 20 year old man with low status with 30 year old women.

I've personally been outcompeted by balding, portly middle aged men with women my own age when I was in my twenties. Not that anecdotes mean much, but it's pretty universally true about humans. It even holds with primates and other social animals in general, not just humans.

comment 5y ago · link · parent

That's not true actually. Fertility declines while birth defects increase.

While it's more dramatic in women, it happens for men too.

comment 5y ago · link · parent

This omits the rather obvious problem that men are much more likely to date younger women. So the dating pool might be largest for men around 50 because of all the single women over 50 - but most of those men won't consider them.

People might be quick to point out anecdotes to the contrary - as there are always exceptions, but it's still generally true. It has been that way probably for all human history as women are more attracted to status in general and men to youth and beauty (proxies for virility.)

Which leads me to think it must be really lonely being a single women over 50. Also if you're a man of that age into older women, you've basically got the market to yourself.

comment 5y ago · link · parent

This looks easy to use, I starred it to have a look at next year when I think I'll have a need for a rust raft library.

comment 5y ago · link · parent

It's meant to be a currency not a savings account. It's not called cryptosavings - although perhaps it should be. Bitcoin is sort of like digital gold, but totally sucks as a currency or way of transacting.

If it is inflationary like doge you have the incentive to spend it instead of hoard it.

comment 5y ago · link · parent

Those properties mean it could actually work as a currency, unlike bitcoin.

It also can handle higher transaction volume with cheaper fees.

I don't think it'd be a good currency, but it's funny to compare it with bitcoin which was marketed as such but is totally a failure for that use case.

comment 5y ago · link · parent

To me oxidized metal is a metal, but then that's why I'm not an expert in that field by any stretch of the imagination.

comment 5y ago · link · parent

Nothing is black and white, I still find it hard to believe that could ever be a non minority view though.

comment 5y ago · link · parent

> However a considerable minority (maybe even a majority in business circles) in Taiwan see themselves as Chinese and are not at all sympathetic to US containment policies on China.

That's an odd position for anyone living in Taiwan to take, seeing as how their democracy and country exist only because China does not yet have the military strength to change that. I find it highly probable that they cease to exist as a separate entity within the next two decades.

comment 5y ago · link · parent

Outside of nuclear reactions, elements are not created or destroyed.

What happens in old batteries is the physical structure of the lithium metal is damaged so it does not function as well as a battery, but you can separate out the lithium from the old battery, melt it down and reform it into a new battery (or whatever else you want to do with lithium.)

comment 5y ago · link · parent

Yeah, who are we kidding. It's almost exclusively men doing that. Like 95% or more.

comment 5y ago · link · parent

Although if we could get them laid and married off they probably wouldn't be terrorists anymore.

Not really a family man career.

comment 5y ago · link · parent

No, it's huge if its true. Also it means it's much more efficient because you're not losing all that energy to waste heat.

comment 5y ago · link · parent

Solid. Everything except hydrogen and helium would be in a solid state I think.

comment 5y ago · link · parent

If you can't pay back the loan, you don't have to, so that shouldn't be a problem with this specific strategy.

comment 5y ago · link · parent

There is a HUGE difference in metals concentration in planetary crust and an asteroid that's mostly that element. Also a huge difference in gravity if you want the materials offworld.

You don't have to colonize them, but mining asteroids makes tons of sense.

comment 5y ago · link · parent

A lot of impressive tricks here to get a memcached fast path into the kernel using ebpf.

They focused only on short keys and values, only on UDP, used a simple hash table with no collision algorithm, and still had to split the code into 7 ebpf programs.

Quite an achievement though, I didn't think it was possible.

Also it seems udp memcached is not popular and hasn't been optimized well - it uses a single socket and spends a lot of time fighting for the kernel lock on that socket. Both the authors and Facebook patched memcached to get around that bottleneck. It's surprising that hasn't yet found its way upstream.

1
767778
184