Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
byroot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
391.
▲
by
byroot
10y ago
> Polish farmers are forced to produce less milk than they have ability to - milk producers are given fines if they create to much milk, which is ridiculous. It's the exact same thing in France. It's not uncommon for farmers to
392.
▲
by
byroot
10y ago
And what do you do if an error happen in the middle of your iteration while the server already answered with 200 OK and sent half of the response? Your only option in those case with PHP is to truncate the response which IMO is the ridiculo
393.
▲
by
byroot
10y ago
You don't even have to bother loading it in memory. Just use `sendfile(2)` and let the kernel do all the work for you. You can't really do faster than that.
394.
▲
by
byroot
10y ago
Even with those it was still worth it. A couple people maintaining the CI is nothing if you can make the build of the 350 other developers twice as fast. Also it's not like hosted CI is without maintenance, if you want it to not be tot
395.
▲
by
byroot
10y ago
> wouldn't just running processes be just as fast The applications we test with this system have dependencies, both system packages and datastores. Containers allow us to isolate the test process with all the dependant datastores (M
396.
▲
by
byroot
10y ago
Initially we were using an hosted CI (which I won't name), but it had tons of problems we couldn't fix, and we were against the wall in term of performance. To put it simply when you run a distributed CI your performance is:
397.
▲
by
byroot
10y ago
You have to design for those failures. In our case we spawn 200 containers for one build, if 9% of those crashes, we still have a satisfactory experience. In the end, at this scale even with four or five nines of reliability, you'd sti
398.
▲
by
byroot
10y ago
Yes, on a pool of c4.8xlarge EC2 instances with up to 16 containers per instance. But very little of our failures are accountable to AWS, restarting the Docker daemon "fix" most of them.
399.
▲
by
byroot
10y ago
> the docker daemon was riddled with locks which resulted in frequent dead-locking scenarios under load as well as poor performance I second this. We use Docker in a similar scenario for a distributed CI. So we spawn between 70k and 90k
400.
▲
by
byroot
10y ago
> if AFTER paying taxes (for example in an European country) they want to bring back some of that already taxed money to the US, they have to pay an additional ~40% in taxes. Except this isn't what is happening. In Europe at least t
401.
▲
by
byroot
10y ago
Even besides that early governmental founding. Companies aren't created nor exist in a vacuum. Tax payer's money payed for most of the infrastructures, research and education those companies requires to operate. How can you run a
402.
▲
by
byroot
10y ago
Even if redis was GPL licensed you still could do that. Linux is GPL and there is proprietary driver modules.
403.
▲
by
byroot
11y ago
About 2 years ago I got a new number and I started receiving facebook notifications from the previous owner as SMS with autologin links in them.
404.
▲
by
byroot
11y ago
> Ruby doesn't have built in concurrency like Go does Seriously. Pretty much all languages have support for concurrency via threads. Ruby even have the equivalent of channels since a decade: http://ruby-doc.org/core-
405.
▲
by
byroot
11y ago
Once it's running yes. But if you close Spotify, pressing the play key will start iTunes. It's quite infuriating.
406.
▲
by
byroot
11y ago
No the fundamental issue is that an application should not require any external service to boot. It has nothing to do with Ruby, or Rails or even Redis. It's just a design flaw of the application, that you often learn the hard way.
407.
▲
by
byroot
11y ago
No, you also have SNI (Server Name Indication), it totally solve this problem. The only downside is that IE on Windows XP doesn't support it. But for a free service it's good enough.
408.
▲
by
byroot
11y ago
It's relevant because OP find this rant unacceptable. It's a judgement based on his own culture, not Linus'. In many cultures, mine included, such rants are ok.
409.
▲
by
byroot
11y ago
I'm not the OP, and I think he makes a bad job at expressing his opinion being so confrontational and dismissive. That being said I agree with his core point. There is tons of things totally unacceptable in the US society that are just
410.
▲
by
byroot
11y ago
> To find a better thesis, we might ask, what's the difference between my dentist and WeCodeLikeNoOneElse, Inc? The difference is that your dentist job is way easier to define, .e.g "Take care of that cavity" When you outs
411.
▲
by
byroot
11y ago
I insist, it's mostly solved: http://tmm1.net/ruby21-method-cache/
412.
▲
by
byroot
11y ago
It was merged for MRI 2.1: https://bugs.ruby-lang.org/issues/8426
413.
▲
by
byroot
11y ago
> Should Money.new(20, 'USD') == Money.new(2000, 'US Cents')? Like someone else pointed out in this thread, designing APIs require consistency and good taste. If I had to implement this API you code above would evalua
414.
▲
by
byroot
11y ago
It is. By redefining the equality method (operators are just regular methods really), you abstract away how this kind of object need to be compared with it's peers. The fact that it's an operator or a method doesn't change
415.
▲
by
byroot
11y ago
That's because you are among the people who don't like abstractions. I disagree with that opinion, but that's fine, Ruby is just definitely not for you. Don't try to change or complain about Ruby, you are likely more ha
416.
▲
by
byroot
11y ago
Anytime you have some value type. Say a `Money` class for instance. The default `==` from Object compare identity, so unless you define it `Money.new(20, 'USD') != Money.new(20, 'USD')`.
417.
▲
by
byroot
11y ago
> Why not finance helping quadriplegics from increased VAT? Because VAT, beside being a very effective tax (it's the biggest source of income of most countries), is the most unfair one. Say a country have a 20% VAT Low income househ
418.
▲
Stripe – Outage postmortem
(support.stripe.com)
208 points
by
byroot
11y ago
|
125 comments
419.
▲
Stripe – Outage postmortem
(support.stripe.com)
4 points
by
byroot
11y ago
|
0 comments
420.
▲
by
byroot
11y ago
> automated testing won't catch a hardware failure, or someone tripping over the power cord While it's never 100%, you can still test quite a lot of those conditions. We developed a TCP proxy[0] that allows us to test such case
More ›