HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bori

no profile record

comments

bori
·4 tahun yang lalu·discuss
I'm looking at the C maxArray example and see that the for loop:

  for (i = 0; i < 65536; i++)
gets compiled as

  .L2:
          add     rax, 8
          cmp     rax, 524288
          jne     .L4
Is there any fundamental reason why the loop increments with 8 instead of 1? Or is this completely arbitrary? Thanks.
bori
·5 tahun yang lalu·discuss
Theoretically, the version "number" in this case is technically not a number, because you wouldn't do any math operations with it, it's more like a string. So 3.1415926535897932384626433832795 and 3.14159265358979323846264338327950 are two different strings.

Practically, since TeX will have no new features as they only fix bugs now and the last bugfix release 3.14159265 was 7 years ago, I think we'll actually never get there.
bori
·5 tahun yang lalu·discuss
> Stress isn’t good or bad. It’s a tool. In small doses it’s good, but too much of a good thing becomes a bad thing pretty quickly.

Actually, I think this is a wrong rule of thumb. In my experience, there is more of a "barbell dynamics" (Taleb):

I can take a lot of stress at once, but then I need some time to recover. I find this perfectly healthy and it grows me as a human being. On the other hand, when I'm under constant stress with no relief in sight, that's the real killer.
bori
·6 tahun yang lalu·discuss
I think it is useful to not over-optimize your life. You want to be prepared for the 5%. That's why I bought a car recently, even though I advocated for the OP's philosophy before and rented where I could.

"Don't cross a river because it is 4 feet deep on average."
bori
·6 tahun yang lalu·discuss
I like that they completely dodged the term "microservice" in the whole post.
bori
·6 tahun yang lalu·discuss
Vikings bury axes in Arctic ice for 1k years