<adam12>
weaksauce: I was chuckling because i'm doing lazy-mode on gemdocs.org. The bare minimum all the time. So the first bare minimum was just returning Dir.glob("*") for the list of gems.
<adam12>
weaksauce: Which worked out well so far, but I was just looking and it's now like 800kb of HTML to render the list of gems.
<adam12>
I knew I was gonna have a lot, but I'm not sure I actually accepted it.
<adam12>
It's 5173 currently.
goepsilongo has quit [Ping timeout: 240 seconds]
<adam12>
With 42 GB of docs, uncompressed.
markong has quit [Ping timeout: 256 seconds]
goepsilongo has joined #ruby
<weaksauce>
dang that's a lot
e2 has quit [Quit: Stable ZNC provider #bnc4you]
<adam12>
I'm guessing I'll need a database soon. Not sure I want to have 5000+ array elements from Dir.glob.
TCZ has joined #ruby
fowl has quit [Quit: Ping timeout (120 seconds)]
fowl has joined #ruby
e2 has joined #ruby
mahlon has quit [Ping timeout: 272 seconds]
<ox1eef>
5k is just a couple of seconds to iterate through
<adam12>
ox1eef: Mostly interested in memory use and GC churn. But I haven't measured anything.
<ox1eef>
there would be quite a lot of disk io presumably as well, but it's not an unmanageable amount id say.
ua_ has quit [Excess Flood]
ua_ has joined #ruby
Rounin has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Leaving]
e2 has quit [Ping timeout: 245 seconds]
donofrio has quit [Ping timeout: 256 seconds]
bluedust has joined #ruby
e2 has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
RedNifre has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 250 seconds]
Starfoxxes has quit [Ping timeout: 260 seconds]
Starfoxxes has joined #ruby
RedNifre has joined #ruby
gr33n7007h has joined #ruby
Guest6792 has joined #ruby
mahlon has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.4]
gr33n7007h has joined #ruby
oxfuxxx has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
bluedust has quit [Remote host closed the connection]
bluedust has joined #ruby
infinityfye has joined #ruby
teclator has joined #ruby
apotheon has quit [Ping timeout: 256 seconds]
apotheon has joined #ruby
Rounin has joined #ruby
taupiqueur has joined #ruby
taupiqueur has quit [Quit: taupiqueur]
dangerousdave has joined #ruby
fef has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rapha>
Is there one for Ruby 3.0 or maybe in the pipeline for 3.2? Would be interested in both a reference and something to gift to a beginner.
<rapha>
I only know about "Beginning Ruby 3", but not sure what to think of it.
taupiqueur has quit [Ping timeout: 240 seconds]
fef has quit [Ping timeout: 240 seconds]
<rapha>
RedNifre: just wait until he discovers #each_with_index and then #map at some point :D
<rapha>
but yeah, i can appreciate the feeling of finding things too "obfuscated" while learning something new. he might be the kind of person who could enjoy learning some simple C-embedded ASM on something like an attiny85 to begin connecting the dots to the more abstract languages.
fef has joined #ruby
<RedNifre>
Yeah, I think it's the balance between having the knowledge in the code vs in your head. You don't need to understand for loops, if you have them spelled out as while loops in the code.
taupiqueur has joined #ruby
TCZ has joined #ruby
roadie has quit [Read error: Connection reset by peer]
roadie has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
<rapha>
At some point, I think when practice starts setting it, it becomes about convenience and concise typing and the clear expression of increasingly abstract concepts more and more, and that's when you begin craving to use the more "opaque", to stay with that term, features of your language-of-choice.
roadie has joined #ruby
<ox1eef>
i could probably get by if ruby didnt have metaprogramming features.
<ox1eef>
in some ways it'd be beautifully simple without those features.
<rapha>
unfortunately for you, that's part of what kept/keeps many of us happily stuck to ruby over the years :} ... nothing like eval in a pinch!
maroloccio has joined #ruby
infinity_fye has joined #ruby
markong has joined #ruby
<ox1eef>
it's what makes ruby fun.
infinityfye has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
<mooff>
sacrilege, ox1eef !!
[peer] has joined #ruby
peer has quit [Quit: owo]
[peer] is now known as peer
<ox1eef>
:)
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #ruby
taupiqueur has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Leaving]
gr33n7007h has quit [Quit: WeeChat 3.4]
donofrio_ has joined #ruby
donofrio has quit [Ping timeout: 256 seconds]
maroloccio has quit [Quit: WeeChat 3.0]
bsliger has joined #ruby
taupiqueur has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
gproto23 has joined #ruby
bluedust has quit [Remote host closed the connection]
roshanavand has joined #ruby
<mooff>
thinking of using Delegator to make 'thread-local' global variables :)
<mooff>
a honkin' good idea, right?
<adam12>
heh
fdan has joined #ruby
<mooff>
there's a zen to writing hooks like on(:join) { say "hey #{$nick} :)" if $chan == '#coolchan' }
<mooff>
it's more approachable for people new to Ruby poking a weird bot over IRC
<mooff>
and looks a bit like mIRC script, to boot
_ht has joined #ruby
<adam12>
mooff: Where's $chan coming from?
<adam12>
Is it actually a global?
bluedust has joined #ruby
<mooff>
it really is a global. atm it's set by an early hook along with $msg, $args, $tags, etc
<mooff>
but of course only one bot has the 'luxury' of using globals that way