Better HN
topnewbestaskshowjobs
Log inSign up

onn

3 karma · joined Jan 21, 2015 (11y ago) · 4 submissions

Submissions

comment 11y ago · link · parent

op here; obviously I use AntiRSI. But I also go to the gym, and run. Not doing some of those, I pay for it later with back pains, or pain in my hands. Nothing too serious, but if I want to do this for the rest of my life, have to stay healthy.

2.

I wrote AntiRSI 12.5 years ago, how do you stay healthy behind the computer?(leverlabs.io ↗)

1 points · by onn · 11y ago · 1 comment

comment 11y ago · link · parent

I always cringe a bit inside, when reading articles like this.

nodelay and cork are different, indeed, but opposites? They both try to achieve the same effect, put more data in before sending a packet.

> [...] This mechanism is ensured by Nagle’s algorithm, and 200ms [...]

Absolutely not. Nagle's algorithm does not have any delay or timer build in. It simply holds back non-full packets, when there is data in flight (not acked). The second half of the problem is delayed acks, but this is not mentioned in the article, instead it goes on saying

> [...] but Nagle is not relevant to the modern Internet [...]

which is indeed popular belief, but a very superficial analysis that holds no water if you study it further.

The feeling I always get from articles like this is they border on "technical religion". It sounds correct, it is technical, it isn't even false, but it doesn't paint a clear picture, instead it mystifies things further.

The problems nginx had:

1. nagle and http keepalive don't play nice together, the last bit of data might be artificially delayed, especially when delayed acks come into play. nodelay seems needed here. (It is not though, see that Minshall bit.)

2. how to send headers and use sendfile for the body, and fill the first packet with more then just the headers? nopush (tcp_cork) is a solution.

comment 11y ago · link · parent

I was the original reported of https://github.com/jashkenas/coffeescript/issues/238 . And the short answer is: not that easy. Coffeescript wants to keep the semantics of javascript, but it wants to not have the noise of "var x = ..." all the time.