Better HN
topnewbestaskshowjobs
Log inSign up

asheldon

33 karma · joined Mar 27, 2014 (12y ago) · 17 submissions

Submissions

comment 11mo ago · link · parent

When exists? was removed, it was roughly an order of magnitude more popular in Ruby code on Github than exist?. I don't think you can argue from the position of improved readability when, given the choice, it was what the majority of people expected, wrote, and had to change. This change in Ruby is pretty difficult to defend. It didn't really do much but break people without giving them anything in return. It didn't improve maintainability of Ruby itself, it didn't make maintaining Ruby code easier, it didn't advance any secondary goals to improve Ruby.

10 years is not an especially long time period for a software project to be maintained. There's a reason the Linux project is so emphatic that it never breaks user space.

comment 5y ago · link · parent

I agree. It would be simpler to shuffle the list of people, then split the list in half.

Here's a proof this algorithm doesn't work by counter-example (N=6)

Consider a list of 6 elements. Elements 5 and 6 must be in the same bucket 50% of the time and different buckets 50% of the time. For this to be true, after we place the first 4 elements into their buckets according to this algorithm, there must be space left in both buckets 50% of the time and in only one bucket 50% of the time.

Sequences of the first 4 coin flips where neither bucket is filled, followed by possible ending sequences, and the odds of the prefix.

AABB(AB, BA) = 1/16th

ABAB(AB, BA) = 1/16th

ABBA(AB, BA) = 1/16th

BBAA(AB, BA) = 1/16th

BABA(AB, BA) = 1/16th

BAAB(AB, BA) = 1/16th

Total: 3/8ths

Sequences of the first 3-4 coin flips where one bucket is filled, followed by possible ending sequences, and the odds of the prefix:

AAA(BBB) = 1/8th

BBB(AAA) = 1/8th

AABA(BB) = 1/16th

ABAA(AA) = 1/16th

ABBB(AA) = 1/16th

BBAB(AA) = 1/16th

BABB(AA) = 1/16th

BAAA(BB) = 1/16th

Total: 5/8ths

Since one bucket is filled 5/8ths of the time after 4 elements are processed according to this algorithm, the final two elements will be in the same bucket 5/8ths of the time, not the expected 4/8ths of the time.

comment 5y ago · link · parent

What games do you play these days?

I have the opposite experience - I feel buried in 60+ hour games I want to play and feel like games could be shorter.

comment 6y ago · link · parent

Graviton is GA for EKS as well.

https://aws.amazon.com/blogs/containers/eks-on-graviton-gene...

comment 6y ago · link · parent

This is not true for inter-az bandwidth.

https://www.lastweekinaws.com/blog/aws-cross-az-data-transfe...

comment 8y ago · link · parent

The ability to depend on library versions that do not exist is a misfeature. It should not be possible for someone to build a new version of their software and cause your software to cease building or running.

This doesn't just result in non-reproducible builds, but it results in them at unpredictable times and, if you have servicing branches of your code, backward through time. This is not a good property if you need to know what you are building today is the same as what you built yesterday, modulo intentional changes, or even that it will build or run.

comment 8y ago · link · parent

They haven't said it, but probably because it's not a criterion cities can do anything about.

Having HQ2 far away from Seattle reduces business risk from e.g. major earthquakes.

comment 8y ago · link · parent

AWS provides the ability to guarantee you don't share physical hardware with other customers with "EC2 Dedicated Instances" (https://aws.amazon.com/ec2/purchasing-options/dedicated-inst...). I'm not familiar enough with other cloud provider offerings to say if they do or do not have similar features.

comment 9y ago · link · parent

Generously assuming a cashier can check one item a second for an hour, he can check only 3600 items. "Tens of thousands" seems off by at least an order of magnitude.

comment 10y ago · link · parent

"all the way the NYC Supreme Court"

In New York, the "Supreme Court" is the trial-level court. Above that is the "Supreme Court, Appellate Division" and above that is the "Court of Appeals".

comment 10y ago · link · parent

"there was no way to cancel at the 1 year mark"

From personal experience, if you cancel "now", it simply doesn't renew at the one year mark. You still get the prime benefits you already paid for until then.

comment 11y ago · link · parent

Yes. I did this yesterday. It takes a little longer at the TSA checkpoint, that's about it (sample size=1).

comment 11y ago · link · parent

Enormity means great evil.

comment 11y ago · link · parent

That's why she wasn't spied on.

http://www.reuters.com/article/2014/12/11/us-germany-usa-spy...