Readit News logoReadit News
lkuty commented on Why tail-recursive functions are loops   kmicinski.com/functional-... · Posted by u/speckx
mehulashah · 14 days ago
Tail recursion is beautifully deep and simple. It (and as a corollary CPS) makes clear what state matters to your loop (and function) and avoids extraneous variables in loops as well as implicit unneeded state in functions. It also makes it easier to show the correctness of your loops. Sure, there are other functional language constructs like fold and map, if your problem is amenable to them. Tail recursion is more general and simpler.
lkuty · 13 days ago
And a must-have in Erlang/OTP (and Elixir of course) where you can "loop" passing the altered state as a parameter. I love it. And wish that all languages implement TCO. That's one of the reason I also like Scheme.
lkuty commented on Interactive Programming in C (2014)   nullprogram.com/blog/2014... · Posted by u/ofalkaed
lkuty · a month ago
Tsoding made a video about hot code reloading in C (https://www.youtube.com/watch?v=Y57ruDOwH1g) and also used the same concept in "My Own 3b1b Animation Engine but in C" (https://www.youtube.com/watch?v=RVwuYgXNUCM).
lkuty commented on Molecule produced by gut bacteria causes atherosclerosis   english.elpais.com/health... · Posted by u/raphar
lkuty · a month ago
I wonder how this study can be reconciled with the carnivorous diet, which is apparently high in good fats and good cholesterol. There is also the notion of structured water and a deficient exclusion zone which could explain the presence of plaque in the vessels according to Thomas Cowan, for example. So, I'm not sure that the factors that prevent plaque formation are those indicated. Nutrition is a complex matter.
lkuty commented on LIGO detects most massive black hole merger to date   caltech.edu/about/news/li... · Posted by u/Eduard
photon_lines · a month ago
Correct. If you're curious about the 'essence' of what black holes are I actually just did a write-up on them which you can find here: https://photonlines.substack.com/p/an-intuitive-guide-to-bla...
lkuty · a month ago
Thanks. Little typo "Let’s inflate Earth once again to its regular size and see what impact placing a 10 kg weight on it has." Should be 1kg.
lkuty commented on Compiler for the B Programming Language   github.com/tsoding/b... · Posted by u/ycuser2
int_19h · 2 months ago
Avoiding references means avoiding the borrow checker, and I don't think you can use much of stdlib if you avoid references...
lkuty · 2 months ago
At the beginning of one of his videos on Crust, he's trying to avoid stdlib exactly for that reason.
lkuty commented on Writing a Truth Oracle in Lisp   lambda-cove.net/posts/tru... · Posted by u/io12
typesarecool · 2 months ago
Looks like all the CSS is

/* Drop caps / .first-paragraph { position: relative; padding-top: 0.2em;

  &::first-letter {
    /* font-weight: bold; */
    font-size: 4em;
    float: left;
    margin: 0.15em 0.05em 0 0;
    font-family: 'EBGaramond-InitialsF2', serif;
    font-display: block;
    line-height: 0.83em;        /* Fix alignment in Chrome */
  }
  &::before {
    margin: 0.15em 0.05em 0 0;
    font-size: 4em;
    font-family: 'EBGaramond-InitialsF1', serif;
    content: attr(data-first-letter);
    color: gray;
    position: absolute;
    left: 0;
    top: 0.28em;
  }
}

lkuty · 2 months ago
lkuty commented on 4-7-8 Breathing   breathbelly.com/exercises... · Posted by u/cheekyturtles
ulnarkressty · 3 months ago
Every time I try breathwork (be it box or x-y-z) I feel that the intervals are too long - by the time I finish breathing out my brain goes into panic mode and the next breath is not enough to compensate. I find them the exact opposite of relaxing.
lkuty · 3 months ago
I like to start breathing using my own rythm and then after a while the intervals widen naturally and I could then synchronize my breathing with one of the well known patterns but usuallly I don't. If I try to start with e.g. 4-7-8 I have the same problem of going into panic mode and then I am not relaxed at all and heart pulses go up instead of going down.
lkuty commented on A man who visited every country in the world without boarding a plane (2023)   theguardian.com/travel/20... · Posted by u/thunderbong
wiether · 3 months ago
I have a paperback version on amazon.fr so it actually exists ; not sure why it's not offered on the .com

https://www.amazon.fr/dp/1472149777/

lkuty · 3 months ago
Thanks. It is noted as "This title will be released on April 23, 2026." on Amazon.de which explains the long delay on Amazon.fr. However the hardback version looks available now. EDIT: well it is not yet published on paper.
lkuty commented on A man who visited every country in the world without boarding a plane (2023)   theguardian.com/travel/20... · Posted by u/thunderbong
decimalenough · 3 months ago
His book just came out:

https://www.amazon.com/Impossible-Journey-incredible-through... (not an affiliate link)

And there's a documentary apparently coming out soon.

I followed his journey live on https://www.onceuponasaga.dk/ and it was a weird mix of inspirational and very sad. He was clearly struggling with severe depression towards the end of it, but he could not bring himself to stop, so there he was, squatting in a filthy boat for weeks on end with cockroaches crawling over his toothbrush, while he waited for the country's sole oceangoing cargo ship to be repaired so he could get the hell out of there.

https://www.onceuponasaga.dk/blog/489-most-definitely-possib...

lkuty · 3 months ago
Sad that it is only available as a Kindle Edition, not a paperback.
lkuty commented on Java at 30: Interview with James Gosling   thenewstack.io/java-at-30... · Posted by u/chhum
lkuty · 3 months ago
I am wondering what was the role of Guy L. Steele in the creation of Java if he had any. From the article, it looks like it was Gosling alone. I did not cheat by checking on Wikipedia

u/lkuty

KarmaCake day201January 6, 2010View Original