isti115

joined 2 years ago
 

I wasn't able to find any up-to-date information about tail call optimization support in Ruby, so I decided to post this hoping that it will pop up next time someone might also be searching for this topic...

What I was able to figure out is that TCO can be enabled in Ruby 3.4 via a compile option like so:

RubyVM::InstructionSequence.compile_option = {tailcall_optimization: true}

def tailSumUntil(n, m)
  n == 0 ? m : tailSumUntil(n - 1, n + m)
end

tailSumUntil(100_000_000, 0)
# => 5000000050000000
 

So, 10am PT instead of 8am PT. Here's a countdown, hopefully I managed to set it to the correct time: https://www.timeanddate.com/countdown/generic?iso=20250409T10&p0=137&msg=Framework+Laptop+12+Pre-order

1
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

I just logged in today and found that all stories seem to be gone from my path and the practice hub as well. πŸ™ I really hope that this is only something temporary!


Edit: I just checked after about ~10 hours and they seem to have returned!

 

I remember that way back around 2015 the double XP boost used to stack, so you could get a 4x multiplier, but I don't think that I've ever got a triple.

 

It seems that they have accidentally posted the announcement earlier than intended, but it will probably show up later during the day.

 

There are plenty of utilities (GUI, such as filelight and TUI, such as dua as well) for analyzing disk usage by space, but I would like to view my folders based on the count of files, as I'm making backups, and folders with lots of small files (e.g. node_modules) take very long to move around, so I guess that I'd be better of compressing those into a single file before archiving, as it's already highly unlikely that I'll need to access them anyway. Thanks for any pointers in advance!

[–] [email protected] 2 points 2 years ago (1 children)

Thanks! πŸ˜€ I've been meaning to post about that as well in order to keep feeding Lemmy with content, but couldn't find either an active alternative to ErgoMechKeyboards or Battlestations. πŸ€”

[–] [email protected] 3 points 2 years ago* (last edited 2 years ago)

Well, I'd suggest asking around your nearest toddler, that's how I managed to borrow this one. πŸ˜€ Probably it has been inherited through several generations, that might explain it's wisdom!

[–] [email protected] 7 points 2 years ago* (last edited 2 years ago)

Thanks for the advice, but lo and behold, the issue was actually caused by a newly introduced generic parameter not being defined after a dependency update. πŸ™ƒ Oh, the wonders of the JS/TS ecosystem...

[–] [email protected] 3 points 2 years ago

Whoa, I just checked out some images, that one is on another level as well for sure. πŸ˜€ If he's as good at fighting bugs as criminals, you're in good ~~hands~~ wings!

213
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

If the rolling wooden variant still turns out not to be enough, I might need to source a real live duck. πŸ¦† Not sure how patient that would be at listening to me explaining code though. πŸ€”

[–] [email protected] 2 points 2 years ago (1 children)

Let me preface this by clarifying that I don't claim to have the one and only right explanation that everyone should accept, I'd just like to point out that this theory also exists: https://hermeneutics.stackexchange.com/a/43799

[–] [email protected] 6 points 2 years ago* (last edited 2 years ago)

Yepp, "Lateral with Tom Scott, Episode 58: Straight-line sports" in case anyone's looking for it. https://lateralcast.com/

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

If you are not afraid to experiment with some more advanced tools, AOSPMods has options to set the number of quick settings rows and columns, which worked well for me. (I was initially annoyed by this change as well, but I eventually got used to it.)