jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
jl- has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
lolja has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
maroloccio has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
conjunctive_ is now known as conjunctive
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
m_antis has quit [Quit: ZNC - https://znc.in]
m_antis has joined #ruby
John_Ivan is now known as geschwindigskeit
lolja has quit [Remote host closed the connection]
geschwindigskeit is now known as John_Ivan
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
maroloccio has quit [Ping timeout: 244 seconds]
maroloccio has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 256 seconds]
lolja has joined #ruby
Ziyan has joined #ruby
Sheilong has quit []
lolja has quit [Remote host closed the connection]
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
trifling has joined #ruby
bastienleonard has quit [Ping timeout: 255 seconds]
swaggboi has quit [Read error: Connection timed out]
swaggboi has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 240 seconds]
r3m has quit [Quit: WeeChat 3.6-dev]
r3m has joined #ruby
stylo has joined #ruby
Ziyan has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ox1eef> TIL that there is a "erb" executable. that's handy.
dviola has quit [Quit: WeeChat 3.5]
dviola has joined #ruby
Linux_Kerio has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 240 seconds]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
Ziyan has joined #ruby
Ziyan_ has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
Ziyan has quit [Ping timeout: 244 seconds]
rvalue has joined #ruby
stylo has quit [Quit: Connection closed for inactivity]
sagax has quit [Remote host closed the connection]
dionysus69 has joined #ruby
robotmay has quit [Quit: Be excellent to each other]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
jl- has joined #ruby
maroloccio has quit [Ping timeout: 256 seconds]
robotmay has joined #ruby
jl- has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
maroloccio has joined #ruby
smp_ has joined #ruby
smp has quit [Ping timeout: 255 seconds]
smp_ is now known as smp
jl- has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
smp_ has joined #ruby
smp has quit [Ping timeout: 240 seconds]
smp_ is now known as smp
jl- has quit [Ping timeout: 255 seconds]
smp_ has joined #ruby
smp has quit [Ping timeout: 240 seconds]
smp_ is now known as smp
_ht has joined #ruby
trifling has quit [Ping timeout: 244 seconds]
CrazyEddy has joined #ruby
lunarkitty has joined #ruby
jpn has joined #ruby
andrea[m] has quit [Quit: You have been kicked for being idle]
Ziyan_ has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
protektwar has quit [Ping timeout: 255 seconds]
smp_ has joined #ruby
smp has quit [Remote host closed the connection]
smp_ is now known as smp
smp has quit [Ping timeout: 276 seconds]
smp_ has joined #ruby
smp_ is now known as smp
smp_ has joined #ruby
smp has quit [Ping timeout: 264 seconds]
smp_ is now known as smp
jpn has quit [Ping timeout: 276 seconds]
smp has quit [Remote host closed the connection]
smp has joined #ruby
maroloccio has quit [Quit: WeeChat 3.0]
ur5us has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
lunarkitty has quit []
jpn has joined #ruby
smp has quit [Ping timeout: 240 seconds]
smp has joined #ruby
duds- has quit [Max SendQ exceeded]
roshanavand has joined #ruby
smp_ has joined #ruby
teclator has joined #ruby
smp has quit [Ping timeout: 276 seconds]
smp_ is now known as smp
duds- has joined #ruby
smp_ has joined #ruby
smp has quit [Ping timeout: 272 seconds]
smp_ is now known as smp
smp_ has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
smp has quit [Ping timeout: 272 seconds]
smp has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
smp_ has quit [Ping timeout: 276 seconds]
jpn has quit [Ping timeout: 244 seconds]
smp has quit [Ping timeout: 255 seconds]
swaggboi has joined #ruby
_whitelogger has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
<ox1eef> indeed
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
jl- has joined #ruby
markong has joined #ruby
jl- has quit [Ping timeout: 256 seconds]
bastienleonard has joined #ruby
jpn has joined #ruby
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
Pixi` has quit [Quit: Leaving]
markong has quit [Ping timeout: 256 seconds]
Pixi has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
markong has joined #ruby
sYnfo has joined #ruby
<sYnfo> Hi! I recently made a perf improvement (https://github.com/stripe/subprocess/commit/aa5cd4de82b6b682960098138496e85bbe827e47) to a project and I'd like to deepen my understanding of why it works. Could someone point me to the part of ruby source code that handles the stuff the line in the diff does and more specifically shared string optimization?
szkl has quit [Quit: Connection closed for inactivity]
sYnfo has quit [Quit: Ping timeout (120 seconds)]
sYnfo has joined #ruby
swaggboi has quit [Read error: Connection timed out]
sYnfo has quit [Quit: Ping timeout (120 seconds)]
swaggboi has joined #ruby
seydar has joined #ruby
<seydar> I am using "string_to_ipa", and I'm finding that it's having trouble reading from its own database (SQLite3). In particular, I'm finding that I get results when I manually interpolate the SQL, but I don't get any when I use sqlite's '?' operator. https://paste.tomsmeding.com/ht8dhP3M
<seydar> How can I see the verbose understanding of what sqlite3 is seeing?
<seydar> hm I suppose DB#prepare might be the answer
<seydar> hm but that's not really showing me the string representation
<seydar> and it's still not working
seydar has quit [Quit: leaving]
Ziyan has quit [Read error: Connection reset by peer]
Ziyan has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
markong has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
howdoi has joined #ruby
protektwar has quit [Ping timeout: 264 seconds]
swaggboi has quit [Read error: Connection timed out]
swaggboi has joined #ruby
Furai has quit [Remote host closed the connection]
Furai has joined #ruby
jl- has joined #ruby
lunarkitty has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
jl- has quit [Ping timeout: 240 seconds]
<ox1eef> maybe it's worth adding something like, "Please have patience. Sometimes, a reply can take some time, especially on the weekends" to the topic
smp_ has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
smp has quit [Ping timeout: 276 seconds]
smp_ is now known as smp
gr33n7007h has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
Mickys7 has joined #ruby
jobbing7 has joined #ruby
Mickys7 has quit [Ping timeout: 272 seconds]
jobbing7 has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
jl- has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
jl- has quit [Ping timeout: 255 seconds]
_ht has quit [Remote host closed the connection]
lunarkitty has quit [Quit: Connection closed for inactivity]
jpn has joined #ruby
kiki_lamb has quit [Quit: leaving]
jpn has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
humanest6 has joined #ruby
swaggboi has quit [Read error: Connection timed out]
swaggboi has joined #ruby
markong has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
dynab has joined #ruby
humanest6 has quit [Ping timeout: 276 seconds]
endeavors3 has joined #ruby
e2 has quit [Ping timeout: 256 seconds]
Na_Klar has joined #ruby
matoro has quit [Quit: ZNC 1.8.2 - https://znc.in]
jpn has joined #ruby
matoro has joined #ruby
matoro has quit [Changing host]
matoro has joined #ruby
<Na_Klar> if I have a utf-8 character, let's say \u20AC, and I want it to convert to its two bytes, so \x20 \xAC, how do I do that? I thought force_encoding it to ascii_8bit would do that, but for some reason that gives me \xE2. doing the same thing with a utf-16 string works like expected. why does a utf-8 to ascii conversion behave different?
jpn has quit [Ping timeout: 240 seconds]
kaivai has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
Aminda has quit [Remote host closed the connection]
wand has quit [Ping timeout: 268 seconds]
Aminda has joined #ruby
sagax has joined #ruby
wand has joined #ruby
dynab has quit [Remote host closed the connection]
jpn has joined #ruby
adam12 has quit [Quit: Ping timeout (120 seconds)]
adam12 has joined #ruby
<ox1eef> Na_Klar: for raw bytes there's String#bytes - did you try that?
<ox1eef> looks like a 3 byte character on my side.
<ox1eef> looks like you want String#b, but still, it's three bytes - not two
<ox1eef> [107] 0x1eefenv.rb (main)> "\u20AC".b
<ox1eef> => "\xE2\x82\xAC"
e2 has joined #ruby
<gr33n7007h> Na_Klar: \u20AC is the codepoint not the bytes. 0x20AC == u.ord => true
Linux_Kerio has quit [Ping timeout: 256 seconds]
frankd has joined #ruby
<ox1eef> not sure call that bytes is technically correct.
<ox1eef> "\u20AC".codepoints
<ox1eef> => [8364]
<Na_Klar> right, the bytes are \xE2\x82\xAC ..
<ox1eef> ord is the same as #codepoints in this context, minus the array
<constxd> why do you want the bytes of the codepoint
endeavors3 has quit [Ping timeout: 240 seconds]
bastienleonard has quit [Ping timeout: 260 seconds]