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!
xco has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
orbyt_ has joined #ruby
Swyper has joined #ruby
auteroche has joined #ruby
cyclonis has quit [Ping timeout: 252 seconds]
cyclonis_ has joined #ruby
envex has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
AJA4350 has joined #ruby
drincruz has quit [Ping timeout: 268 seconds]
absolutejam2 has quit [Ping timeout: 265 seconds]
phenom has quit [Quit: See ya! Wouldn't want to blah blah..]
phenom has joined #ruby
gnufr33d0m has quit [Quit: gnufr33d0m]
_whitelogger has joined #ruby
drincruz has joined #ruby
thomas_25 has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
chalkmonster has joined #ruby
xompax has joined #ruby
MinSrodowiska has joined #ruby
drincruz has quit [Ping timeout: 268 seconds]
bambanx has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
xco has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
titanbiscuit has joined #ruby
xco has quit [Ping timeout: 268 seconds]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
thomas_25 has joined #ruby
xompax has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
bvdw has joined #ruby
gix has quit [Ping timeout: 240 seconds]
MasterNayru has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
teclator has quit [Ping timeout: 268 seconds]
nibbo has quit [Ping timeout: 252 seconds]
nibbo has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.7 Beta Build (2019/11/03 UTC) 64 Bit]
Tempesta has joined #ruby
nibbo has quit [Ping timeout: 276 seconds]
_dbugger has joined #ruby
dbugger has quit [Ping timeout: 245 seconds]
nibbo has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
ytti has joined #ruby
MasterNayru has joined #ruby
brool has quit [Ping timeout: 245 seconds]
smurfendrek123 has quit [Ping timeout: 265 seconds]
howlcode has joined #ruby
howlcode has quit [Remote host closed the connection]
howlcode has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
teardown has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
duderonomy has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bitwinery has quit [Ping timeout: 240 seconds]
bacchist has joined #ruby
bitwinery has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
AJA4350 has quit [Quit: AJA4350]
bambanx_ has joined #ruby
bambanx_ has quit [Client Quit]
bambanx_ has joined #ruby
bambanx has quit [Ping timeout: 240 seconds]
_dbugger has quit [Ping timeout: 264 seconds]
auteroche has quit [Quit: leaving]
bambanx_ has quit [Quit: Leaving]
bambanx has joined #ruby
MasterNayru has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bambanx has quit [Quit: Leaving]
rippa has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
Swyper has quit [Remote host closed the connection]
bambanx has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
bacchist has quit [Read error: Connection reset by peer]
quazimodo has joined #ruby
bacchist has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
quazimodo has quit [Remote host closed the connection]
quazimodo has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Benett has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Benett has joined #ruby
Benett has joined #ruby
_whitelogger has joined #ruby
cyclonis_ has quit [Quit: -a- Connection Timed Out]
cyclonis has joined #ruby
gnufr33d0m has joined #ruby
dinfuehr_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
zenspider has quit [Ping timeout: 268 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
dinfuehr has joined #ruby
Nicmavr has joined #ruby
gnufr33d0m has quit [Quit: gnufr33d0m]
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr has joined #ruby
skx86 has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr_ has joined #ruby
dinfuehr_ has quit [Ping timeout: 240 seconds]
Esa_ has quit [Remote host closed the connection]
dinfuehr has joined #ruby
Esa_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
_whitelogger has joined #ruby
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 268 seconds]
ravenousmoose has joined #ruby
i9zO5AP has quit [Ping timeout: 265 seconds]
cyclonis_ has joined #ruby
bambanx has quit [Quit: Leaving]
Ai9zO5AP has joined #ruby
cyclonis_ has quit [Ping timeout: 265 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lineus has quit [Ping timeout: 240 seconds]
absolutejam2 has joined #ruby
_whitelogger has joined #ruby
ravenousmoose has quit [Ping timeout: 276 seconds]
KeyJoo has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
flak has joined #ruby
tabakhase has quit [Ping timeout: 245 seconds]
LenPayne has quit [Quit: ZNC 1.7.5 - https://znc.in]
rafadc_ has joined #ruby
LenPayne has joined #ruby
Black has joined #ruby
Black has joined #ruby
Black has quit [Changing host]
galaxie has quit [Ping timeout: 260 seconds]
trif_ has joined #ruby
hagebake has joined #ruby
aef_ has joined #ruby
galaxie has joined #ruby
_mak_ has joined #ruby
camilasan_ has joined #ruby
trif has quit [Ping timeout: 265 seconds]
rafadc has quit [Ping timeout: 265 seconds]
Benett has quit [Ping timeout: 265 seconds]
aef has quit [Ping timeout: 265 seconds]
zone_31 has quit [Ping timeout: 265 seconds]
_mak has quit [Ping timeout: 265 seconds]
rippa has quit [Ping timeout: 265 seconds]
camilasan has quit [Ping timeout: 265 seconds]
hagabaka has quit [Ping timeout: 265 seconds]
Black is now known as Benett
zone_31 has joined #ruby
tabakhase has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
titanbiscuit has joined #ruby
absolutejam2 has quit [Ping timeout: 268 seconds]
bitwinery has quit [Quit: Leaving]
gix has joined #ruby
Fernando-Basso has joined #ruby
titanbiscuit has quit [Read error: Connection reset by peer]
envex has quit []
titanbiscuit has joined #ruby
MasterNayru has joined #ruby
schne1der has joined #ruby
haivron has joined #ruby
poontangmessiah has joined #ruby
cyclonis has joined #ruby
SanguineAnomaly has quit [Ping timeout: 245 seconds]
Hanspolo[m] has joined #ruby
tpanarch1st has joined #ruby
smurfendrek123 has joined #ruby
sandstrom has joined #ruby
yann-kaelig has joined #ruby
zenspider has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
shirak_ has joined #ruby
lineus has joined #ruby
xco has joined #ruby
smurfendrek123 has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
smurfendrek123 has joined #ruby
shirak_ has quit [Ping timeout: 265 seconds]
poontangmessiah has quit [Remote host closed the connection]
akemhp has quit [Ping timeout: 265 seconds]
_dbugger has joined #ruby
MinSrodowiska has joined #ruby
xdecimal has joined #ruby
smurfendrek123 has quit [Ping timeout: 268 seconds]
xdecimal has quit [Client Quit]
absolutejam2 has joined #ruby
AJA4350 has joined #ruby
Benett has quit [Ping timeout: 250 seconds]
_dbugger has quit [Quit: Leaving]
dbugger has joined #ruby
suukim has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
Benett has joined #ruby
Benett has quit [Changing host]
Benett has joined #ruby
MinSrodowiska has joined #ruby
JohanP has quit [Remote host closed the connection]
cd has joined #ruby
Benett has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Quit: KeyJoo]
absolutejam2 has quit [Ping timeout: 240 seconds]
absolutejam2 has joined #ruby
keden has quit [Quit: WeeChat 2.6]
keden has joined #ruby
AJA4351 has joined #ruby
sandstrom has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
sandstrom has quit [Quit: My computer has gone to sleep.]
tpanarch1st has quit [Ping timeout: 240 seconds]
nowhereman has joined #ruby
Benett has joined #ruby
Benett has quit [Changing host]
Benett has joined #ruby
absolutejam2 has quit [Ping timeout: 265 seconds]
AJA4351 has joined #ruby
i9zO5AP has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Ai9zO5AP has quit [Ping timeout: 240 seconds]
keden has quit [Quit: WeeChat 2.6]
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
poontangmessiah has joined #ruby
tvw has joined #ruby
lucasb has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
MinSrodowiska has joined #ruby
Benett has quit [Quit:  ]
Benett has joined #ruby
Benett has quit [Changing host]
Benett has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
bsdbandit-01 has joined #ruby
akemhp has joined #ruby
xGrind has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
bsdbandit-01 has quit [Client Quit]
MinSrodowiska has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Client Quit]
bsdbandit-01 has joined #ruby
hiroaki has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
Ai9zO5AP has joined #ruby
DaniG2k has joined #ruby
akemhp_ has quit [Ping timeout: 265 seconds]
i9zO5AP has quit [Ping timeout: 245 seconds]
<DaniG2k> \wc
DaniG2k has left #ruby [#ruby]
howlcode has quit [Quit: Leaving]
teclator_ has joined #ruby
Esa_ has quit []
sandstrom has joined #ruby
chalkmonster has joined #ruby
<MinSrodowiska> ls
<jhass> . .. not your terminal
<MinSrodowiska> hmm i had question about terminal......
AJA4351 has joined #ruby
akemhp has joined #ruby
zenspider has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
akemhp has quit [Ping timeout: 246 seconds]
MinSrodowiska is now known as LaChiave
cassiano_ has joined #ruby
cassiano_ has quit [Client Quit]
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 265 seconds]
teclator_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Swyper has joined #ruby
zenspider has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sauvin has quit [Ping timeout: 240 seconds]
Inline__ has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
akemhp has joined #ruby
chalkmon1 has quit [Quit: WeeChat 2.6]
LaChiave has quit [Quit: Bye Bye]
snickers has joined #ruby
tvw has quit []
phaul has quit [Quit: :wq]
Swyper has quit [Remote host closed the connection]
kyrylo has joined #ruby
chalkmonster has joined #ruby
LaChiave has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
LaChiave has quit [Client Quit]
phaul has joined #ruby
LaChiave has joined #ruby
akemhp has quit [Quit: Leaving]
akemhp has joined #ruby
akemhp has quit [Max SendQ exceeded]
akemhp has joined #ruby
nowhereman has quit [Ping timeout: 276 seconds]
LaChiave has quit [Quit: Bye Bye]
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
zapata has quit [Ping timeout: 245 seconds]
zapata has joined #ruby
absolutejam2 has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poontangmessiah has quit [Quit: Leaving]
fuzzface has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 264 seconds]
AJA4351 is now known as AJA4350
LaChiave has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
za1b1tsu has joined #ruby
chalkmonster has joined #ruby
lalitmee has joined #ruby
lalitmee has quit [Quit: Leaving]
execat[m] has joined #ruby
animo8 has joined #ruby
<animo8> Hi, what's an idiomatic way to repeat an array?
<al2o3-cr> &>> [1,2,3].cycle 3
<rubydoc> # => #<Enumerator: [1, 2, 3]:cycle(3)> (https://carc.in/#/r/7y2k)
<phaul> like twice?
<phaul> &>> [1,2,3] * 2
<rubydoc> # => [1, 2, 3, 1, 2, 3] (https://carc.in/#/r/7y2l)
absolutejam2 has quit [Ping timeout: 246 seconds]
<al2o3-cr> ^ or that
<animo8> I know about `#*` but I need something that returns an array of arrays
<phaul> &>> [[1,2,3]] * 2
<rubydoc> # => [[1, 2, 3], [1, 2, 3]] (https://carc.in/#/r/7y2m)
<jhass> Array.new(n) { [1, 2, 3] }
<animo8> phaul: Thanks! This seems to be what I'm looking for
pnus has joined #ruby
<pnus> is self always used inside of classes?
<jhass> &>> a = [[1, 2, 3]] * 2; a.first << 4; a
<rubydoc> # => [[1, 2, 3, 4], [1, 2, 3, 4]] (https://carc.in/#/r/7y2n)
<jhass> careful there
<phaul> just what I was going to say next :D
<jhass> pnus: can make sense inside modules for example too
<jhass> why?
LaChiave has quit [Quit: Bye Bye]
Swyper has joined #ruby
<pnus> i just am confused about self
<animo8> jhass: That's some curious behavior. Is that because all the arrays are references to the same object?
<jhass> yes
BTRE has quit [Remote host closed the connection]
<phaul> animo8: if you go with jhass's solution then you would get a different instance of the array at each index. If you go with #* then the object is shared
<jhass> my solution still requires a .dup if you reference an existing array though
<animo8> I definitely need them to be different instances so I'll take that into account
duderonomy has joined #ruby
BTRE has joined #ruby
<jhass> pnus: what's confusing you about? any example that does?
<pnus> just when to use it
<jhass> if you can get away with never that's not so bad actually
<animo8> &>> Array.new(3) { [1,2,3] }.map(&:object_id)
<rubydoc> # => [47269956002040, 47269956017880, 47269956017680] (https://carc.in/#/r/7y2t)
<animo8> Yup, just what I was looking for. Thanks!
<jhass> and trying to never do it should eventually clear up what it is when you run into the cases that require it
Swyper has quit [Remote host closed the connection]
LaChiave has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
<animo8> &>> a1 = [Array.new(10) { 'str' }]; a2 = a1.dup; 9.times { a1.append(Array.new(10) { 'str' }) }; a2 +=Array.new(9) { Array.new(10) { 'str' } }; a1 if a1 == a2
<rubydoc> # => [["str", "str", "str", "str", "str", "str", "str", "str", "str", "str"], ["str", "str", "str", "str",... check link for more (https://carc.in/#/r/7y2v)
<animo8> Both ways produce the same result, but which should I use?
<animo8> The times version is more imperative but looks like it would be more efficient
<jhass> Array.new(10) { Array.new(9) { "str" } }
<jhass> eh, 9 and 10 swapped I guess, I didn't quite follow anymore :D
<animo8> jhass: All good, I got it
<animo8> Why though? It would seem to me that the times version has more method calls while the Array.new version maybe allocates more?
<animo8> But then appending to an array could be an allocation AFAIK
<jhass> well you want 9 distinct arrays with 10 distinct items in them, right? So the allocation question is out, that's how much you need to allocate
<animo8> Huh, of course
<animo8> So the times version just has more method calls
<jhass> Array.new can optimize a bit because it knows how big to initialize the areay, it doesn't need to realloc
<animo8> I see
<jhass> which pushing will trigger at some point unless you Array.new
<havenwood> animo8: Not just more method calls, it needs to grow the size of the Array.
<jhass> with an initial capacity
<jhass> none of this really matters though below say, 10k items or so, so just the most expressive way
<jhass> just use*
<animo8> Will do, thanks again!
<havenwood> &>> require 'objspace'; empty = String.new capacity: 10_000_000_000_000; ObjectSpace.memsize_of empty
<rubydoc> stderr: -e: failed to allocate memory (NoMemoryError)... check link for more (https://carc.in/#/r/7y30)
<havenwood> #=> 10000000000041
i9zO5AP has joined #ruby
<havenwood> empty.size #=> 0
<havenwood> 90.95 TB
cisco has joined #ruby
cisco is now known as Guest19157
Ai9zO5AP has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
pnus has quit [Remote host closed the connection]
LaChiave has quit [Quit: Bye Bye]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
shirak_ has joined #ruby
haivron has quit [Quit: haivron]
Swyper has joined #ruby
sauvin has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.6]
freedom has joined #ruby
AJA4351 has joined #ruby
al2o3-cr has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
freedom has quit [Remote host closed the connection]
reber has joined #ruby
freedom has joined #ruby
cow[moo] has joined #ruby
absolutejam2 has joined #ruby
cow[moo] has quit [Client Quit]
paweljw has quit [Quit: Dude! You're getting a BitchX!]
poontangmessiah has joined #ruby
shirak_ has quit [Ping timeout: 265 seconds]
akemhp_ has joined #ruby
cow[moo] has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
LaChiave has joined #ruby
hiroaki has quit [Ping timeout: 265 seconds]
shirak_ has joined #ruby
absolutejam2 has quit [Ping timeout: 240 seconds]
tpanarch1st has joined #ruby
LaChiave has quit [Quit: Bye Bye]
LaChiave has joined #ruby
cow[moo] has quit [Ping timeout: 268 seconds]
poontangmessiah_ has joined #ruby
poontangmessiah has quit [Ping timeout: 240 seconds]
poontangmessiah has joined #ruby
poontangmessiah_ has quit [Ping timeout: 276 seconds]
jacksoow has joined #ruby
renich has quit [Quit: renich]
jacksoow_ has quit [Ping timeout: 265 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
duderonomy has quit [Ping timeout: 240 seconds]
suukim has quit [Quit: Konversation terminated!]
shirak_ has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
shirak_ has joined #ruby
i9zO5AP has quit [Ping timeout: 240 seconds]
gheegh has joined #ruby
orbyt_ has joined #ruby
<gheegh> hey all, question.. I'm trying to write some code that writes Ruby.. I have a Trie data structure that has a LOT of data in it. like 100k+ objects.. i'd like to serialize it and and then be able to just deserialize it.. and even more, store it in the Ruby file itself.. so that its only loaded on app boot time.. any thought on how to do this?
<gheegh> i dont' want to load from disk, becaues then every time it gets called, it gets reloaded from disk..
i9zO5AP has joined #ruby
Guest19157 has quit [Ping timeout: 240 seconds]
fuzzface has quit [Quit: Leaving]
<jhass> I don't see why embedding it into the file would be any better than just doing something like DATA ||= load_data
tpanarch1st has quit [Ping timeout: 240 seconds]
cisco has joined #ruby
cisco is now known as Guest68401
<jhass> that said there's DATA and __END__
AJA4351 has joined #ruby
sandstrom has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
i9zO5AP has quit [Ping timeout: 268 seconds]
i9zO5AP has joined #ruby
skryking has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
Inline__ has quit [Quit: Leaving]
Inline has joined #ruby
Benett has quit [Quit:  ]
Benett has joined #ruby
Benett has joined #ruby
Benett has quit [Changing host]
Benett has quit [Client Quit]
Benett has joined #ruby
Benett has joined #ruby
Benett has quit [Changing host]
absolutejam2 has joined #ruby
<gheegh> jhass: as i undersatnd it.. DATA __END__ is deprecated.
<gheegh> and DATA ||= load data will reload from the disk..
<jhass> when will that reload from disk where __END__ or a literal wouldn't?
<gheegh> right
<leftylink> keeping in mind that ruby source files are also files on disk in the answer to the question discussed.
<gheegh> yeah, so when you load an app.. it loads all the files
AJA4351 has joined #ruby
<gheegh> when you have a memoized variable.. i find it doesn't load it just 1 time.. it seems to be garbage collected and gets loaded again and again
<havenwood> gheegh: Why would you think DATA __END__ are deprecated?
chalkmonster has quit [Quit: WeeChat 2.6]
<leftylink> you may remove all doubt by having `load_file` say `puts "LOADING THE FILE"` and see whether it says LOADING THE FILe one time or many.
<jhass> then probably something is wrong with your memoization
<havenwood> gheegh: Can you share the data you're trying to quickly load?
<jhass> or you're in dev mode inside rails and memorize in an autoloaded path
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<gheegh> no.. this is in a Gem
<gheegh> outside rails
<jhass> try to write a minimal self contained example that proves the claim :)
<gheegh> yaeh, i would love to be wrong
<havenwood> gheegh: If it was deprecated, it'd warn about being deprecated. (It's not deprecated.)
<jhass> 90% you'll discover or understand your issue along the way
<gheegh> right
<gheegh> let me say that another way.. i thought i read somewhere it will be dropped at Ruby 3
<jhass> and if not that'll be the best basis to get help :)
<gheegh> so
<gheegh> let me say the broader thing
<gheegh> because i can do the whole DATA ||= [array of data]
<gheegh> so ,i'm using a Trie from the Algorithms library.. even if i do store the data in a DATA ||= and then store the trie in a TRIE ||= instance.. you all think I"m memoizing wrong. .and that Trie won't get rebuilt more than 1 time for the life of the process?
<jhass> unless something uses weak references internally... yeah
<jhass> or something adds a code reloader to the app
<gheegh> ok
<gheegh> i'll go back and retest my assumptions.
<havenwood> chamunks: I think DATA will survive Ruby 3. I think I saw a mention of it's removal in a "Ruby 4" piece that was a daydream of the author's (they like Crystal).
<havenwood> oops, meant gheegh *
<havenwood> gheegh: Please point me to source if it'll be deprecated, but I think not. At least it's not on my radar.
<gheegh> OK.. good to know
<havenwood> 👍🏽
<jhass> haha, nicely embedding arbitrary data is actually one of the big things we miss in Crystal :D
<gheegh> i had considered using it.. but then decided because of that.. maybe i saw the same thing..
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
<leftylink> hmm. I see. so there is at least one person in the world talking about ruby 4 already
<leftylink> guess it must be rare
akemhp has joined #ruby
<jhass> didn't you know, "active medium blog" is the new "active github blog" and "high stackoverflow score"
<jhass> eh, active github profile I mean
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
akemhp_ has quit [Ping timeout: 276 seconds]
Guest68401 has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
akemhp_ has joined #ruby
shirak_ has quit [Ping timeout: 265 seconds]
akem__ has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
akemhp has quit [Ping timeout: 265 seconds]
akemhp_ has quit [Ping timeout: 265 seconds]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
shirak_ has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
absolutejam2 has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
chalkmonster has quit [Remote host closed the connection]
shirak_ has quit [Ping timeout: 240 seconds]
ap4y has joined #ruby
ap4y has quit [Client Quit]
AJA4351 has joined #ruby
LaChiave has quit [Quit: Bye Bye]
yann-kaelig has quit [Quit: yann-kaelig]
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
Benett has quit [Quit:  ]
Benett has joined #ruby
Benett has quit [Changing host]
Benett has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
bitwinery has joined #ruby
sameerynho has quit [Ping timeout: 268 seconds]
arahael1 is now known as Arahael
memcorrupt has joined #ruby
AJA4351 has joined #ruby
akem__ is now known as Akem
dionysus69 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
memcorrupt has left #ruby [#ruby]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
kodcx[m] has quit [*.net *.split]
olblak has quit [*.net *.split]
VSpike has quit [*.net *.split]
jerme_ has quit [*.net *.split]
ablackack has quit [*.net *.split]
kodcx[m] has joined #ruby
gheegh has quit [Ping timeout: 240 seconds]
VSpike has joined #ruby
ablackack has joined #ruby
olblak has joined #ruby
jerme_ has joined #ruby
freedom has quit [Quit: freedom]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
bsdbandit-01 has quit [Ping timeout: 265 seconds]
bsdband39 has joined #ruby
cisco has joined #ruby
cisco is now known as Guest58689
LaChiave has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
dionysus69 has quit [Ping timeout: 268 seconds]
hutch1 has quit [Quit: WeeChat 2.6]
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
trif_ has quit [Ping timeout: 240 seconds]
trif has joined #ruby
kx has quit [Ping timeout: 245 seconds]
brool has joined #ruby
dionysus69 has joined #ruby
d^sh has quit [Ping timeout: 252 seconds]
auteroche has joined #ruby
d^sh has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
AJA4351 has joined #ruby
auteroche has quit [Client Quit]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
dbugger has quit [Ping timeout: 245 seconds]
nowhereman has joined #ruby
bsdband39 has quit [Ping timeout: 246 seconds]
bsdbandit-01 has joined #ruby
asdfdsf has joined #ruby
<asdfdsf> hi
<asdfdsf> what's my ip address
shirak_ has joined #ruby
freedom has joined #ruby
mossplix has joined #ruby
i9zO5AP has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
Bish has quit [Disconnected by services]
i9zO5AP has joined #ruby
john__ has joined #ruby
akemhp has joined #ruby
shirak_ has quit [Ping timeout: 240 seconds]
asdfdsf has quit [Ping timeout: 265 seconds]
<Rudolph> 92.223.89.140
i9zO5AP has quit [Excess Flood]
Akem has quit [Ping timeout: 265 seconds]
<john__> hello
i9zO5AP has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
dionysus69 has joined #ruby
i9zO5AP has quit [Excess Flood]
i9zO5AP has joined #ruby
Cork has quit [Ping timeout: 250 seconds]
john__ has quit [Ping timeout: 268 seconds]
john__ has joined #ruby
troulouliou_dev has joined #ruby
chalkmonster has joined #ruby
reber has quit [Read error: Connection reset by peer]
mossplix has quit [Remote host closed the connection]
AJA4350 has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
drincruz has joined #ruby
gix has quit [Ping timeout: 265 seconds]
ravenousmoose has joined #ruby
troulouliou_dev has quit [Read error: Connection timed out]
drincruz has quit [Ping timeout: 268 seconds]
troulouliou_dev has joined #ruby
john__ has quit [Ping timeout: 268 seconds]
ravenousmoose has quit [Ping timeout: 246 seconds]
mossplix has joined #ruby
rainmanjam has quit []
AJA4351 has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
dviola has joined #ruby