havenwood changed the topic of #ruby to: Ruby 3.3.2, 3.2.4, 3.4.0-preview1 https://www.ruby-lang.org | Logs https://libera.irclog.whitequark.org/ruby
TomyLobo has quit [Ping timeout: 240 seconds]
tarel2 has quit [Ping timeout: 250 seconds]
brokkoli_origin has quit [Remote host closed the connection]
fercell has joined #ruby
brokkoli_origin has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
Linux_Kerio has quit [Ping timeout: 246 seconds]
fercell has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 240 seconds]
donofrio_ has quit [Remote host closed the connection]
konsolebox has joined #ruby
fercell has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
konsolebox has quit [Quit: .]
konsolebox has joined #ruby
konsolebox has quit [Quit: .]
<_0x1eef> In the era of digest filenames I forgot that a query string can be used in a similar way. It works well, and since nanoc doesn't support digest filenames, it's the best option.
fercell has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
cappy has joined #ruby
teardown has joined #ruby
gaussianblue has joined #ruby
TomyLobo has joined #ruby
grenierm has joined #ruby
cappy has quit [Quit: Leaving]
Cork has joined #ruby
fercell has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
___nick___ has joined #ruby
Linux_Kerio has joined #ruby
grenierm has quit [Ping timeout: 250 seconds]
Inline has quit [Quit: Leaving]
pages has quit [Ping timeout: 264 seconds]
gaussianblue has quit [Quit: leaving]
jaredce has joined #ruby
xdminsy has quit [Read error: Connection reset by peer]
xdminsy has joined #ruby
mange has joined #ruby
konsolebox has joined #ruby
fercell has joined #ruby
jaredce has quit [Ping timeout: 240 seconds]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 268 seconds]
fercell has quit [Ping timeout: 255 seconds]
Inline has joined #ruby
mange has quit [Remote host closed the connection]
Linux_Kerio has quit [Quit: Konversation terminated!]
Na_Klar has joined #ruby
<Na_Klar> when I loop through the bytes of a huge variable (as string), the access with var[x] gets slower and slower the higher x gets. is there a faster way to access a specific position within a long string?
<Na_Klar> I think this is because var[x] seeks for x every time from the beginning, so I'd need smth like a pointer for a variable in memory.
<Na_Klar> well, converting the string to a bytearray solves the issue. but still would be interested if there is a faster way to access an index within a string.
<adam12> _0x1eef: Yep. IIRC, gemdocs.org I just manually increment the # and on Suspenders, I use Time.mtime. I am going to use asset digest eventually.
scottg489 has joined #ruby
scottgy has quit [Ping timeout: 272 seconds]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Client Quit]
<_0x1eef> I use the commit sha that's been deployed, basically: /js/foo.js?v=`git rev-parse HEAD`.chomp (at build time). It took me months to realize it was a viable alternative -_-
mweckbecker has quit [Quit: leaving]
Linux_Kerio has joined #ruby
___nick___ has quit [Read error: Connection reset by peer]
___nick___ has joined #ruby
mweckbecker has joined #ruby
mweckbecker has quit [Client Quit]
mweckbecker has joined #ruby
cappy has joined #ruby
konsolebox has quit [Quit: .]
<havenwood> Na_Klar: I wonder if IO::Buffer might work better for your usecase? https://docs.ruby-lang.org/en/3.3/IO/Buffer.html
<Na_Klar> havenwood: from the docs, could be very well. but I cannot test it out of the box, seems like my ruby does not have that class.
Na_Klar has left #ruby [https://quassel-irc.org - Komfortabler Chat. Überall. ]
<mooff> there's String#byteslice
<mooff> String#[n] returns the nth character according to the encoding. for utf-8, it's the nth codepoint
<mooff> the docs aren't super clear about that
<mooff> String#[n,m] appears to do a byteslice, without caring about codepoints
<leftylink> that... would explain some weird shit I had to do recently
<leftylink> when I was dealing with a particular save file format
<leftylink> I genuinely did not know that
cappy has quit [Quit: Leaving]
<_0x1eef> Oh IO::Buffer looks nice
___nick___ has quit [Ping timeout: 260 seconds]
rvalue has quit [Ping timeout: 260 seconds]
rvalue has joined #ruby
fercell has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
fercell has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
Linux_Kerio has quit [Ping timeout: 272 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
cappy has joined #ruby
fercell has joined #ruby
fercell_ has joined #ruby
fercell has quit [Ping timeout: 246 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 268 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 255 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 272 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 256 seconds]
cappy has quit [Quit: Leaving]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 272 seconds]
Vonter has quit [Ping timeout: 272 seconds]
fercell has joined #ruby
Vonter has joined #ruby
fercell_ has quit [Ping timeout: 268 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 268 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 246 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 268 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 255 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 272 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 268 seconds]