havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
wildtrees has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
houhoulis has joined #ruby
bambanx has joined #ruby
<zenspider> /msg technomancy that image DOES have openssl.... it doesn't have git tho... I'll add that... nope. still no worky
<zenspider>
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #ruby
hiroaki has quit [Ping timeout: 268 seconds]
ravenousmoose has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Ping timeout: 268 seconds]
gix has quit [Ping timeout: 265 seconds]
teclator has quit [Ping timeout: 276 seconds]
davidw has quit [Ping timeout: 268 seconds]
houhoulis has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 252 seconds]
xco has joined #ruby
tsujp has joined #ruby
greengriminal has joined #ruby
kyrylo has joined #ruby
bambanx has quit [Quit: Leaving]
Technodrome has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
wildtrees has quit [Quit: Leaving]
tpanarch1st has quit [Ping timeout: 240 seconds]
ravenousmoose has joined #ruby
buckworst has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jenrzzz has quit [Ping timeout: 276 seconds]
CPng|N has quit [Quit: The system is going down for reboot NOW!]
greengriminal has quit [Quit: This computer has gone to sleep]
ravenousmoose has quit [Ping timeout: 245 seconds]
harai has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
BTRE has quit [Client Quit]
BTRE has joined #ruby
buckworst has quit [Quit: WeeChat 2.6]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
aesthe has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greengriminal has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
ExoUNX has joined #ruby
<brool> msg zenspider that didn't work out well now did it
<brool> lol
Technodrome has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
duderonomy has joined #ruby
bsdbandit-01 has quit [Ping timeout: 245 seconds]
bsdband67 has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
vrih has quit [Ping timeout: 240 seconds]
vrih has joined #ruby
alfiemax has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
hagabaka has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
r3m has quit [Remote host closed the connection]
r3m has joined #ruby
r3m has quit [Remote host closed the connection]
hagabaka has joined #ruby
r3m has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
Esa_ has quit [Ping timeout: 268 seconds]
uu6crain has joined #ruby
<uu6crain> &>> Struct.class
<rubydoc> # => Class (https://carc.in/#/r/803s)
<uu6crain> Object.methods
<uu6crain> &>> Object.methods
<rubydoc> # => [:allocate, :superclass, :new, :<=>, :<=, :>=, :==, :===, :included_modules, :include?, :name,... check link for more (https://carc.in/#/r/803u)
brool has quit [Ping timeout: 252 seconds]
<uu6crain> How to define a devastating method of an object?
<havenwood> &>> class String; def ppp!; self.tr!('p', 'q') end end; a = 'peppy'; a.ppp!; a
<rubydoc> # => "qeqqy" (https://carc.in/#/r/804j)
thejs has joined #ruby
<havenwood> uu6crain: In this case, use #tr! rather than #gsub! (but that doesn't really matter).
<havenwood> uu6crain: Mutate self rather than reassigning it.
<uu6crain> Can I check how the String class work in the source code?
<havenwood> uu6crain: It's eleven-thousand lines of C: https://github.com/ruby/ruby/blob/master/string.c
<havenwood> uu6crain: You might prefer looking at the TruffleRuby implementation of String, which is largely in Ruby: https://github.com/oracle/truffleruby/blob/master/src/main/ruby/truffleruby/core/string.rb
<havenwood> uu6crain: Either should give you a clear idea of behavior on close study.
harai has quit [Ping timeout: 260 seconds]
harai has joined #ruby
<uu6crain> That is to say, core classes like String aren' written in ruby? I have compiled ruby on linux before and I saw 'miniruby' on the console output. I just want to have a try on reducing memory consumption on string.
greengriminal has quit [Quit: This computer has gone to sleep]
<havenwood> uu6crain: In CRuby, core classes are written in C and stdlib is largely written in Ruby. Show an example of memory usage that you'd like to reduce? Looking at the C reference implementation in particular?
<uu6crain> Just a thought of a moment. Don' take it too serious.
thejs has quit [Quit: Leaving]
ravenousmoose has joined #ruby
ravenousmoose has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bitwinery has quit [Quit: Leaving]
skx86 has quit [Quit: Connection closed for inactivity]
conta has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
aesthe has quit [Quit: Leaving]
conta has quit [Quit: conta]
sauvin has joined #ruby
conta has joined #ruby
jenrzzz has joined #ruby
ravenousmoose has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Intelo has quit [Ping timeout: 268 seconds]
Intelo has joined #ruby
dellavg has joined #ruby
chalkmonster has joined #ruby
jordanm has quit [Ping timeout: 265 seconds]
suukim has joined #ruby
sandstrom has joined #ruby
jordanm has joined #ruby
uu6crain has quit [Remote host closed the connection]
crella133 has joined #ruby
dionysus70 has joined #ruby
teclator has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
cthu| has joined #ruby
lineus has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
andikr has joined #ruby
<crella133> I used ruby to write a script to write the names of files and directories in a path. Then I printed all strings in the array of files to a txt file, the same work with the array of directories to another txt file, both in utf-8 encoding. There should be 714246 strings in the two arrays. The result txt files add up to 709600 lines and take up 110.7MB space on HDD. On ruby 2.6.5 win-x64, it consumed 443MB memory (taskmgr, workset).
dionysus69 has quit [Ping timeout: 265 seconds]
schne1der has joined #ruby
dionysus69 has joined #ruby
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
<MentalPower> crella133: is there a question in there?
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<crella133> Err, I checked a string's memory size in another way, and I think that a simplest string would take up as much size in memory as it would take up as a utf-8 text file on HDD.
ur5us has quit [Ping timeout: 265 seconds]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crella133> I did it by pushing a simple string to an array 1000..00 times and checked the memory increasement of the ruby process on gnome-system-monitor on freebsd. And in that condition , the string 'hi i am a string' approximately takes up 6KB memory.
<crella133> Typed wrong. The string 'hi i am a string' approximately takes up 6Byte memory.
<crella133> I need to study more. Sorry for interruption.
crella133 has quit [Quit: crella133]
Intelo has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schne1der has quit [Ping timeout: 240 seconds]
Intelo has joined #ruby
akemhp has quit [Quit: Leaving]
JohanP has quit [Remote host closed the connection]
infinityfye has joined #ruby
Guest4676 has quit [Quit: All for nothing]
jenrzzz has joined #ruby
olspookishmagus has joined #ruby
Intelo has quit [Ping timeout: 265 seconds]
crella133 has joined #ruby
crella133 has quit [Client Quit]
kyrylo has joined #ruby
cd has quit [Quit: cd]
Intelo has joined #ruby
DaniG2k has joined #ruby
Fernando-Basso has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
DaniG2k has quit [Quit: leaving]
paraxial has joined #ruby
fig-le-deunch has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
bvdw has joined #ruby
paraxial has joined #ruby
mikecmpbll has joined #ruby
queip has quit [Ping timeout: 268 seconds]
tsujp has joined #ruby
queip has joined #ruby
clemens3 has joined #ruby
schne1der has joined #ruby
Intelo_ has joined #ruby
MrCrackPot has joined #ruby
FastJack_ has joined #ruby
Intelo has quit [Ping timeout: 265 seconds]
FastJack has quit [Ping timeout: 264 seconds]
FastJack_ has quit [Client Quit]
FastJack has joined #ruby
iNs has quit [Remote host closed the connection]
harai has quit [Write error: Broken pipe]
al2o3-cr has quit [Remote host closed the connection]
galaxie_ has quit [Write error: Connection reset by peer]
harai has joined #ruby
helpa has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
helpa has joined #ruby
iNs has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
galaxie_ has joined #ruby
fig-le-deunch has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
fig-le-deunch has joined #ruby
salerace has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
fig-le-deunch has quit [Read error: No route to host]
fig-le-deunch has joined #ruby
uu6crain has joined #ruby
uu6crain has quit [Client Quit]
schne1der has quit [Ping timeout: 265 seconds]
salerace has quit [Quit: salerace]
xco has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
queip has quit [Ping timeout: 240 seconds]
Jonopoly has joined #ruby
queip has joined #ruby
jenrzzz has joined #ruby
ta has quit [Quit: WeeChat 2.5]
ta has joined #ruby
schne1der has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
catphish has joined #ruby
lineus has joined #ruby
fig-le-deunch has quit [Ping timeout: 240 seconds]
fig-le-deunch has joined #ruby
_whitelogger has joined #ruby
jenrzzz has joined #ruby
MrCrackPot has quit [Quit: Leaving]
al2o3-cr has quit [Quit: WeeChat 2.6]
phaul has joined #ruby
al2o3-cr has joined #ruby
fig-le-deunch has quit [Ping timeout: 276 seconds]
poontangmessiah has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
jinie_ has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
jinie_ has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
MrCrackPot has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
poontangmessiah_ has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
codefriar has quit [Ping timeout: 268 seconds]
DTZUZO has joined #ruby
poontangmessiah has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 265 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
tpanarch1st has joined #ruby
DTZUZO has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
turt2live has quit [Write error: Connection reset by peer]
kodcx[m] has quit [Remote host closed the connection]
gtwatt[m] has quit [Remote host closed the connection]
aecepoglu[m] has quit [Read error: Connection reset by peer]
Hanspolo[m] has quit [Remote host closed the connection]
Corey[m] has quit [Remote host closed the connection]
iotatron[m] has quit [Write error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
infinityfye has quit [Read error: Connection reset by peer]
dmitrycy[m] has quit [Remote host closed the connection]
qbrd[m] has quit [Write error: Connection reset by peer]
otaznik[m] has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
Hanma[m] has quit [Read error: Connection reset by peer]
linuus[m] has quit [Remote host closed the connection]
danielk43[m] has quit [Remote host closed the connection]
kp666[m] has quit [Read error: Connection reset by peer]
someGmrGrl[m] has quit [Read error: Connection reset by peer]
f440[m] has quit [Remote host closed the connection]
kira_rose[m] has quit [Write error: Connection reset by peer]
samdixon[m] has quit [Write error: Connection reset by peer]
execat[m] has quit [Write error: Connection reset by peer]
Swyper has joined #ruby
bsdbandit-01 has joined #ruby
poontangmessiah_ has quit [Ping timeout: 265 seconds]
tsrt^ has quit [Ping timeout: 240 seconds]
vondruch has quit [Ping timeout: 240 seconds]
roadt has joined #ruby
poontangmessiah has joined #ruby
bsdband67 has quit [Ping timeout: 265 seconds]
poontangmessiah has quit [Remote host closed the connection]
tsrt^ has joined #ruby
tsrt^ has quit [Excess Flood]
tsrt^ has joined #ruby
m04ftKK has joined #ruby
remy^ has joined #ruby
remy^ has left #ruby ["Leaving"]
mniip has quit [Ping timeout: 612 seconds]
DTZUZO has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
yoshie902a has joined #ruby
RiPuk has quit [Read error: Connection reset by peer]
phaul has joined #ruby
RiPuk has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
DTZUZO has joined #ruby
Yxhuvud has joined #ruby
vondruch has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
Jonopoly is now known as Jonopoly1
Jonopoly1 is now known as Jonopoly
yoshie902a has quit [Quit: yoshie902a]
yoshie902a has joined #ruby
yoshie902a has quit [Client Quit]
lineus has quit [Quit: leaving]
DTZUZO has joined #ruby
lineus has joined #ruby
loveablelobster has joined #ruby
z4phod has quit [Quit: leaving]
Swyper has quit [Remote host closed the connection]
DTZUZO has quit [Remote host closed the connection]
DTZUZO has joined #ruby
mniip has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
guardian has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
guardian has joined #ruby
jinie_ has joined #ruby
xco has joined #ruby
codefriar has joined #ruby
bsdband9 has joined #ruby
jinie has quit [Ping timeout: 268 seconds]
jinie has joined #ruby
bsdbandit-01 has quit [Ping timeout: 276 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 268 seconds]
paraxial has quit [Ping timeout: 268 seconds]
jinie_ has quit [Ping timeout: 250 seconds]
mn3m has joined #ruby
jenrzzz has joined #ruby
roadt has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
roadt has joined #ruby
AJA4351 has joined #ruby
iotatron[m] has joined #ruby
kp666[m] has joined #ruby
qbrd[m] has joined #ruby
samdixon[m] has joined #ruby
f440[m] has joined #ruby
Corey[m] has joined #ruby
aecepoglu[m] has joined #ruby
turt2live has joined #ruby
sepp2k has joined #ruby
linuus[m] has joined #ruby
execat[m] has joined #ruby
danielk43[m] has joined #ruby
kodcx[m] has joined #ruby
dmitrycy[m] has joined #ruby
gtwatt[m] has joined #ruby
Hanspolo[m] has joined #ruby
kira_rose[m] has joined #ruby
someGmrGrl[m] has joined #ruby
Hanma[m] has joined #ruby
otaznik[m] has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
DTZUZO has quit [Ping timeout: 268 seconds]
MrCrackPot has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
DTZUZO has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Ping timeout: 265 seconds]
yoshie902a has joined #ruby
kyrylo has joined #ruby
lucasb has joined #ruby
queip has joined #ruby
donofrio_ has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
donofrio has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 240 seconds]
yoshie902a has quit [Quit: yoshie902a]
DTZUZO has joined #ruby
rbruchal has joined #ruby
hutch has joined #ruby
dbugger has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
DTZUZO has quit [Ping timeout: 276 seconds]
paraxial has joined #ruby
tpanarch1st has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
dbugger has quit [Quit: Leaving]
tpanarch1st has joined #ruby
queip has quit [Ping timeout: 240 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
Nicmavr has joined #ruby
jenrzzz has joined #ruby
greengriminal has joined #ruby
Intelo_ has quit [Remote host closed the connection]
yoshie902a has joined #ruby
mn3m has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
m04ftKK has quit [Quit: This computer has gone to sleep]
bvdw has joined #ruby
roadt has quit [Ping timeout: 246 seconds]
18WAAXQVV has joined #ruby
roadt has joined #ruby
queip has joined #ruby
banisterfiend has joined #ruby
dionysus70 has joined #ruby
Inline__ has joined #ruby
dionysus70 has quit [Client Quit]
banisterfiend has quit [Client Quit]
dionysus69 has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 268 seconds]
Inline has quit [Ping timeout: 264 seconds]
AJA4351 has joined #ruby
18WAAXQVV has quit [Quit: Leaving]
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schne1der has joined #ruby
Esa_ has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
roadt has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
loveablelobster has quit [Quit: Textual IRC Client: www.textualapp.com]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
roadt has joined #ruby
schne1der has quit [Ping timeout: 276 seconds]
schne1der has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
uu6crain has joined #ruby
dbugger has joined #ruby
uu6crain has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
skx86 has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
alfiemax has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
andikr has quit [Remote host closed the connection]
davidw has quit [Ping timeout: 240 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
greengriminal has joined #ruby
Technodrome has joined #ruby
davidw has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
clemens3 has quit [Quit: WeeChat 1.6]
hutch has quit [Quit: WeeChat 2.6]
kyrylo has joined #ruby
SeepingN has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
schne1der has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
uu6crain has joined #ruby
uu6crain has quit [Client Quit]
sandstrom has quit [Ping timeout: 276 seconds]
schne1der has quit [Ping timeout: 265 seconds]
woodruffw has quit [Ping timeout: 240 seconds]
MrCrackPot has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
jottr has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
AJA4350 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
bitwinery has joined #ruby
AJA4350 has joined #ruby
codefriar has joined #ruby
yoshie902a has quit [Quit: yoshie902a]
yoshie902a has joined #ruby
AJA4351 has quit [Ping timeout: 240 seconds]
yoshie902a has quit [Client Quit]
bitwinery has quit [Max SendQ exceeded]
AJA4351 has joined #ruby
bitwinery has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 has quit [Ping timeout: 268 seconds]
codefriar has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
jenrzzz has joined #ruby
orbyt_ has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
mikecmpbll has quit [Quit: inabit. zz.]
AJA4350 has quit [Ping timeout: 240 seconds]
roadt has quit [Ping timeout: 240 seconds]
catphish has quit [Quit: Leaving]
roadt has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inline has joined #ruby
poontangmessiah has joined #ruby
Ai9zO5AP has joined #ruby
Inline__ has quit [Ping timeout: 264 seconds]
yoshie902a has joined #ruby
yoshie902a has quit [Client Quit]
jenrzzz has quit [Ping timeout: 268 seconds]
harai has quit [Remote host closed the connection]
harai has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
roadt has quit [Ping timeout: 268 seconds]
schne1der has joined #ruby
rkoller has joined #ruby
cthulchu has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
roadt has joined #ruby
cthu| has quit [Ping timeout: 250 seconds]
brool has joined #ruby
unreal_ has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
woodruffw has quit [Ping timeout: 268 seconds]
jottr has quit [Quit: WeeChat 2.6]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
Intelo has joined #ruby
gix has joined #ruby
Inline has joined #ruby
dellavg has quit [Ping timeout: 240 seconds]
bsdband0 has joined #ruby
bsdband9 has quit [Read error: Connection reset by peer]
cd has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
cow[moo] has joined #ruby
CMoH|notebook has joined #ruby
fredolinhares has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
<fredolinhares> Hi, there is a way to wait a "GC.start" to finish in Ruby or in C (when exentending Ruby with C)?
_phaul is now known as phaul
spacesuitdiver has joined #ruby
cow[moo] has quit [Ping timeout: 268 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
queip has quit [Ping timeout: 240 seconds]
Intelo has quit [Ping timeout: 245 seconds]
poontangmessiah has quit [Quit: Leaving]
queip has joined #ruby
poontangmessiah has joined #ruby
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
Ai9zO5AP has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 240 seconds]
helpa-bot has quit [Remote host closed the connection]
Ai9zO5AP has joined #ruby
helpa has joined #ruby
rainmanjam has joined #ruby
bsdbandit-01 has joined #ruby
queip has joined #ruby
JohanP has joined #ruby
bsdband0 has quit [Ping timeout: 252 seconds]
sameerynho has joined #ruby
wildtrees has joined #ruby
wildtrees has quit [Max SendQ exceeded]
schne1der has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildtrees has joined #ruby
suukim has quit [Quit: Konversation terminated!]
sauvin has quit [Read error: Connection reset by peer]
harai has quit [Quit: harai]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
krawchyk has joined #ruby
harai has joined #ruby
Intelo has joined #ruby
krawchyk has quit [Quit: krawchyk]
skx86 has joined #ruby
krawchyk has joined #ruby
<havenwood> fredolinhares: What are you trying to prevent by waiting for GC to finish?
CMoH|notebook has left #ruby ["Konversation terminated!"]
<havenwood> fredolinhares: My first thought is RB_GC_GUARD but I'm not sure if that's the problem you're trying to solve?: https://docs.ruby-lang.org/en/2.6.0/extension_rdoc.html#label-Appendix+E.+RB_GC_GUARD+to+protect+from+premature+GC
ElFerna has joined #ruby
jenrzzz has joined #ruby
<leftylink> I'm trying to recall a situation where I think someone checked whether GC had ran by seeing whether a certain object still existed. but I'm not sure how that could work. if the code knew to check for the existence of the object, wouldn't that prevent said object from being GC'd? It is a mystery
<leftylink> but maybe that will inspire someone to fill in the blanks on how this sort of solution could possibly work
<leftylink> wishing luck!
jenrzzz has quit [Ping timeout: 245 seconds]
<phaul> I have no idea but from some stuff I watched in the past the notion of "weak references" pop to my mind
<phaul> maybe wasn't even ruby :D nvm
ElFerna has quit [Ping timeout: 276 seconds]
<phaul> do we have a tracepoint event for GC finishing?
jenrzzz has joined #ruby
drincruz has joined #ruby
<phaul> apperantly not
tpanarch1st_ has joined #ruby
SuperLag has quit [Remote host closed the connection]
tpanarch1st has quit [Ping timeout: 240 seconds]
bsdbandit-01 has quit [Ping timeout: 268 seconds]
bsdband18 has joined #ruby
GodFather has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
hiroaki has joined #ruby
jenrzzz has joined #ruby
cthu| has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
codefriar has joined #ruby
woodwose has joined #ruby
woodwose has left #ruby [#ruby]
cthulchu has quit [Ping timeout: 245 seconds]
envex has quit [Ping timeout: 240 seconds]
envex has joined #ruby
klaas has quit [Quit: ZNC 1.7.5 - https://znc.in]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> phaul: We do have WeakRef: https://docs.ruby-lang.org/en/master/WeakRef.html
<havenwood> And there's this proposal: https://bugs.ruby-lang.org/issues/16038
<havenwood> "I don’t disagree the feature itself" -Matz
klaas has joined #ruby
jenrzzz has joined #ruby
i9zO5AP has joined #ruby
DarthGandalf has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
Ai9zO5AP has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
brool has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has joined #ruby
krawchyk has quit [Quit: krawchyk]
<fredolinhares> havenwood: I have a C extension where objects must be finalized in a correct order.
<fredolinhares> First I must start the engine before I can use some classes, then I must destroy any instances of those classes before ending the engine.
Intelo has quit [Ping timeout: 240 seconds]
Intelo has joined #ruby
akemhp has joined #ruby
sandstrom has joined #ruby
krawchyk has joined #ruby
brool has joined #ruby
bsdbandit-01 has joined #ruby
bsdband18 has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
oncall-pokemon has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
xco has joined #ruby
poontangmessiah_ has joined #ruby
poontangmessiah has quit [Ping timeout: 240 seconds]
bsdband82 has joined #ruby
bsdbandit-01 has quit [Ping timeout: 250 seconds]
jinie_ has joined #ruby
jinie has quit [Ping timeout: 268 seconds]
jinie_ is now known as jinie
schne1der has quit [Ping timeout: 250 seconds]
cloaked1 has joined #ruby
<Net> I want to generate a performant hash constructor based on some data. It's a potentially nested hash so it's not as simple as just mapping over the fields. Does it make sense to generate ruby code to construct the hash and eval it (the data is trusted)?
davidw has quit [Ping timeout: 265 seconds]
sammi`_ has joined #ruby
<Net> the source data looks something like {user: {name: [:string, :where_to_find_the_name], started_at: [:datetime, :where_to_find_the_datetime]}, ...}, etc.
bitwinery has quit [Quit: Leaving]
bitwinery has joined #ruby
AJA4350 has joined #ruby
sammi` has quit [Ping timeout: 240 seconds]
Intelo has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
jcalla has quit [Quit: Leaving]
AJA4350 has quit [Ping timeout: 240 seconds]
cloaked1_ has joined #ruby
cloaked1_ has quit [Client Quit]
cloaked1_ has joined #ruby
cloaked1 has quit [Ping timeout: 246 seconds]
cloaked1_ has quit [Client Quit]
AJA4350 has joined #ruby
cloaked1_ has joined #ruby
cloaked1_ has quit [Changing host]
cloaked1_ has joined #ruby
xGrind has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
jud has quit [Quit: Leaving]
yoshie902a has joined #ruby
jottr has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
orbyt_ has joined #ruby
Intelo has joined #ruby
gray_-_wolf has quit [Quit: WeeChat 2.6]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
rbruchal has quit [Ping timeout: 245 seconds]
krawchyk has quit [Quit: krawchyk]
sarink has quit [Remote host closed the connection]
cloaked1_ has quit [Remote host closed the connection]
cloaked1_ has joined #ruby
davidw has joined #ruby
cloaked1_ has quit [Remote host closed the connection]
cthulchu has joined #ruby
cloaked1_ has joined #ruby
cloaked1_ has quit [Changing host]
cloaked1_ has joined #ruby
cthu| has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
cloaked1_ has quit [Client Quit]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
sarink has joined #ruby
cloaked1_ has joined #ruby
Fridtjof has quit [Ping timeout: 265 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
cloaked1_ has quit [Client Quit]
AJA4351 has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
skx86 has quit [Quit: Connection closed for inactivity]
<havenwood> Net: My first thought is to use ERB or sprintf to create JSON or YAML, which you can deserialize.
<havenwood> Net: Can you show the data and desired hash, or an equivalent example?
chalkmonster has joined #ruby
yoshie902a has quit [Quit: yoshie902a]
bsdbandit-01 has joined #ruby
bsdband82 has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
<Net> havenwood: the reason for the input data is so that data can be preloaded based on the sources specified in the input data
<Net> I'd like to locate the output structure and the required data together as it has gotten rather long and I thinks this is the best way to prevent mistakes
yoshie902a has joined #ruby
yoshie902a has left #ruby [#ruby]
Fernando-Basso has quit [Quit: Leaving]
<Net> so really the input would look more like {author: {name: [:users, :name], started_at: [:users, :created_at}} and then the code would know that it needs to load the name and created_at attributes for the list of users (this is a batch export)
<Net> this doesn't seem well-explained...
<havenwood> Net: Here's an example of making a YAML template with ERB: https://gist.github.com/havenwood/40eb7293d6794dc3cc317bbfb55dea7b
chalkmonster has quit [Quit: WeeChat 2.6]
<Net> havenwood: oh I think I understand you:
<havenwood> (Iteration unnecessary, just an example.)
<Net> you're saying instead of generating a string to eval, generate erb or a sprintf string
<Net> that's perfect, since this was going to end up as json anyways
<havenwood> Net: Yeah, if you target something that is deserializable you get a nice conversion to Ruby.
<Net> thanks!
<havenwood> Net: Hah, I started to write the JSON example.
<havenwood> Net: You're welcome.
<Net> I like this a lot
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
poontangmessiah_ has quit [Remote host closed the connection]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
AJA4351 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
akem__ has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
Fridtjof has joined #ruby
akemhp has quit [Ping timeout: 268 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
edwardly has quit [Ping timeout: 246 seconds]
drincruz has quit [Ping timeout: 246 seconds]
jinie has joined #ruby
AJA4350 has joined #ruby
jenrzzz has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has joined #ruby
AJA4351 has quit [Ping timeout: 268 seconds]
cloaked1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
s3nd1v0g1us has quit [Client Quit]
AJA4350 has joined #ruby
howdoi has joined #ruby
AJA4351 has joined #ruby
bsdband2 has joined #ruby
bsdbandit-01 has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
jenrzzz has joined #ruby
AJA4351 has quit [Ping timeout: 276 seconds]
AJA4351 has joined #ruby
Intelo_ has joined #ruby
banisterfiend has joined #ruby
bsdband82 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
bsdband2 has quit [Ping timeout: 268 seconds]
Intelo has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Client Quit]
AJA4351 has joined #ruby
fredolinhares has quit [Quit: WeeChat 1.9.1]
lucasb has quit [Quit: Connection closed for inactivity]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
sameerynho has quit [Ping timeout: 240 seconds]
greengriminal has joined #ruby
sarink has quit [Remote host closed the connection]