apeiros changed the topic of #ruby-lang to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
kiyote23 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
mistym has joined #ruby-lang
marr has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby-lang
godd2 has quit [Remote host closed the connection]
kurko__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
palar has joined #ruby-lang
imjacobclark has joined #ruby-lang
Manorie_x has quit [Quit: Lingo: www.lingoirc.com]
enebo has joined #ruby-lang
enebo has quit [Client Quit]
djbkd has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alekst has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
bodgix has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 264 seconds]
red_menace has joined #ruby-lang
diegovio1 is now known as diegoviola
jds has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 250 seconds]
toretore has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
palar has quit [Remote host closed the connection]
Houssem has quit [Quit: Leaving]
RobertBirnie has quit [Ping timeout: 245 seconds]
kiyote23 has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
midhir_ has quit [Remote host closed the connection]
alekst has quit [Quit: Computer has gone to sleep.]
hahuang62 has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alekst has joined #ruby-lang
loincloth has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
imjacobclark has quit [Remote host closed the connection]
imjacobclark has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
loincloth has quit [Ping timeout: 250 seconds]
|jemc| has quit [Ping timeout: 264 seconds]
imjacobclark has quit [Ping timeout: 264 seconds]
amsi has quit [Quit: Leaving]
kiyote23 has joined #ruby-lang
rotti_love has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
<rotti_love> ls
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kurko__ has joined #ruby-lang
Musashi007 has joined #ruby-lang
kurko___ has joined #ruby-lang
kurko____ has joined #ruby-lang
kurko__ has quit [Ping timeout: 256 seconds]
amsha has quit [Quit: Be back later ...]
kurko__ has joined #ruby-lang
kurko___ has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby-lang
SuMo_D_ has joined #ruby-lang
kurko____ has quit [Ping timeout: 250 seconds]
kurko___ has joined #ruby-lang
SuMo_D has quit [Ping timeout: 244 seconds]
kurko___ has quit [Read error: Connection reset by peer]
kurko___ has joined #ruby-lang
kurko__ has quit [Ping timeout: 240 seconds]
kurko__ has joined #ruby-lang
palar has joined #ruby-lang
kurko___ has quit [Ping timeout: 264 seconds]
dagda1 has quit [Ping timeout: 244 seconds]
Aova has quit [Quit: ZNC - http://znc.in]
loincloth has joined #ruby-lang
dagda1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 250 seconds]
kurko___ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
Aova has joined #ruby-lang
Aova has quit [Remote host closed the connection]
kurko__ has quit [Ping timeout: 264 seconds]
Aova has joined #ruby-lang
kurko___ has quit [Client Quit]
hahuang62 has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
araujo has quit [Quit: Leaving]
Mothore has joined #ruby-lang
RickHull has joined #ruby-lang
<RickHull> Hi, I am processing a series of arrays, and I need to track whether I've seen a given array already
<RickHull> e.g. arrays.each { |ary| puts "seen" if SEEN[ary] }
ur5us has joined #ruby-lang
<RickHull> in this case, storing each seen array as a hash key
palar has quit []
<RickHull> I don't actually need to refer to the array contents themselves, nor track anything
<RickHull> in the hash key
<RickHull> e.g. SEEN[ary] = true
<RickHull> is there a more appropriate structure for this? should I just do SEEN[ary.hash] instead of the full array ?
midhir has quit []
<RickHull> i am concerned about the arrays themselves taking up memory, and also processing speed / operations
<RickHull> i would think ary.hash is being called internally at insertion time anyway
<micaeked> RickHull: Yep, use #hash. Also, you can use a Set instead of a Hash. Then `seen.include?(ary.hash)` to check.
<RickHull> i imagine Set uses a Hash behind the scenes anyway? semantically clearer
<RickHull> maybe quicker, maybe slower?
Seanny123 has joined #ruby-lang
Seanny123 has left #ruby-lang [#ruby-lang]
ur5us has quit [Ping timeout: 260 seconds]
<rotti_love> From Set docs: "Equality of elements is determined according to Object#eql? and Object#hash."
<RickHull> yeah, hash semantics as far as that goes
<rotti_love> damn dude you type quickly
<RickHull> i last played with Sets about 5 y ago. at that time IIRC it was implemented with a Hash behind the scenes
<RickHull> heh :)
<RickHull> ok, yeah. gonna try Set for semantics, assigning it ary.hash
<RickHull> do some benchmarking :)
<rotti_love> keep me posted on your findings!
<RickHull> will do
matp_ has joined #ruby-lang
Mothore has quit [Quit: Be back later ...]
matp has quit [Ping timeout: 250 seconds]
oleo__ has joined #ruby-lang
oleo is now known as Guest13883
yfeldblum has joined #ruby-lang
Mothore has joined #ruby-lang
Guest13883 has quit [Ping timeout: 245 seconds]
Mothore has quit [Client Quit]
yfeldblum has quit [Ping timeout: 258 seconds]
arBmind1 has quit [Quit: Leaving.]
ur5us has joined #ruby-lang
michaeldeol has joined #ruby-lang
matp has joined #ruby-lang
<zenspider> RickHull: your code above is just fine
ur5us has quit [Ping timeout: 256 seconds]
matp_ has quit [Ping timeout: 244 seconds]
ducklobster has joined #ruby-lang
<zenspider> the array is already in memory, so unless you're going over a shittonne of data, one more pointer isn't gonna matter
Musashi007 has quit [Quit: Musashi007]
loincloth has joined #ruby-lang
<RickHull> ah!
<RickHull> i am generating the array randomly at the top of the loop
<RickHull> it should drop out of scope by the end of the loop
<RickHull> and get GC'd?
<zenspider> it doesn't matter until you measure and prove there is a problem
<zenspider> so just go for it
<RickHull> good point, i am setting up now to compare
<zenspider> not sure why you're doing a const... but I do next if seen[obj]; seen[obj] = true; do_stuff
<zenspider> don't compare now. you don't have a problem
<RickHull> I like Set for semantics, expression of intent
<RickHull> ok, so yeah, there is the obj vs obj.hash, what you're talking about
<RickHull> and Set vs Hash
Kingpin__ has quit []
loincloth has quit [Ping timeout: 272 seconds]
<zenspider> you're mentarbating when you could be done already
mistym has joined #ruby-lang
<micaeked> zenspider: find pleasure where you can =)
<RickHull> zenspider: *nod*
<zenspider> Cult of Done
seank__ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
djbkd has joined #ruby-lang
lsegal has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
mistym has quit [Quit: Leaving...]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
Miphix has joined #ruby-lang
djbkd has quit [Read error: Connection reset by peer]
SuMo_D_ has quit [Remote host closed the connection]
amsha has joined #ruby-lang
fedexo has joined #ruby-lang
amsha has quit [Ping timeout: 258 seconds]
simi has joined #ruby-lang
gjaldon has joined #ruby-lang
fedexo has quit [Read error: Connection reset by peer]
fedexo has joined #ruby-lang
simi has quit [Ping timeout: 245 seconds]
nifoc has quit [Ping timeout: 258 seconds]
jgpawletko has quit [Quit: jgpawletko]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bears_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
yfeldblum has joined #ruby-lang
gwendall has joined #ruby-lang
tcopeland has quit [Ping timeout: 265 seconds]
<pipework> RickHull: That's neat.
<RickHull> thanks! it's pretty easy to get started and fool around with (AFAICT)
<pipework> Whoa, hakiri seems interesting.
<RickHull> yeah, i got badge-fever xD
<pipework> Didn't have a test coverage badge.
<RickHull> yeah, um...
<RickHull> i don't think it will come out very good just yet
<RickHull> i just got the deathmatch modes squared away (in my head and the code the last few days)
<pipework> RickHull: Maybe it'd be a challenge to bring your publicly visible test coverage badge up to good levels.
<RickHull> i'm in polishing mode, and adding more tests is a big part of that
<RickHull> added some good ones today for deathmatch
<pipework> RickHull: It'd be awesome to make an 'mmo' that's distributed for this.
<pipework> Like an IdleRPG of sorts.
<RickHull> yeah, i'm wide open to building stuff on top
<RickHull> i gotta give a shout out to http://gameoflifetotalwar.com/ as inspiration
bears_ has quit [Remote host closed the connection]
<micaeked> related: http://lifecompetes.com/
fedexo has quit [Ping timeout: 265 seconds]
<pipework> RickHull: Wow.
6A4AAQW3I has joined #ruby-lang
<RickHull> micaeked: cool, wasn't aware
6A4AAQW3I has quit [Client Quit]
mattyohe has joined #ruby-lang
bears_ has joined #ruby-lang
loincloth has joined #ruby-lang
Missphoenix has joined #ruby-lang
loincloth has quit [Ping timeout: 256 seconds]
kapil__ has joined #ruby-lang
Missphoenix has quit [Client Quit]
Miphix has quit [Ping timeout: 260 seconds]
Miphix has joined #ruby-lang
gix has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
_fritchie has quit [Quit: Textual IRC Client: www.textualapp.com]
gix has joined #ruby-lang
michaeldeol has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
spastorino has joined #ruby-lang
gjaldon has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
bears_ has quit [Remote host closed the connection]
red_menace has quit [Quit: Quit]
gwendall has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amsha has joined #ruby-lang
michaeldeol has joined #ruby-lang
amsha has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby-lang
michaeldeol has quit [Client Quit]
loincloth has joined #ruby-lang
jibaly has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Lewix_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
loincloth has quit [Ping timeout: 250 seconds]
Lewix_ has quit [Client Quit]
gjaldon has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
Bwild has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
<RickHull> hm, i've got a bit of a stumper. npop is a hash, likely empty. npop.reduce([]] { ### blah ### }.sample # getting NoMethodError for nilClass#sample
<RickHull> er, npop.reduce([]) { ### blah ### }.sample
jibaly has quit [Remote host closed the connection]
<RickHull> oh, whoops, nvm
yfeldblum has joined #ruby-lang
<RickHull> stupid memo
<RickHull> i was doing memo << bar # should be memo + [:bar] ?
<RickHull> er, should be memo + [bar] ?
<RickHull> memo.unshift(bar) ?
<RickHull> er, memo.push(bar) # fml
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
<micaeked> RickHull: Yep, #push.
<RickHull> #push mutates, which isn't necessary, but it is sufficient
hahuang62 has quit [Ping timeout: 272 seconds]
<micaeked> RickHull: Yep. Any of those work, as long as you return the memo from the block. #push is prefered because it returns self.
<RickHull> yeah, i guess that's better than memo + [obj]
<RickHull> avoiding object creation?
* RickHull mentarbates wildly
<micaeked> Heh.
havenwood has quit [Ping timeout: 250 seconds]
<RickHull> ah, it wasn't the accumulator, it was -- as noted -- not returning memo due to a failed if
<RickHull> whoa
<RickHull> mega speedup on tests xD
<RickHull> from ~850~ assertions/s to 1284 just now
hahuang62 has joined #ruby-lang
<RickHull> is there a way to do something like ary.reduce(:+) that returns 0 on an empty array?
<RickHull> i think i found it :)
gnufied has quit [Ping timeout: 258 seconds]
RobertBirnie has joined #ruby-lang
gnufied has joined #ruby-lang
Caius has quit [Ping timeout: 260 seconds]
rippa has joined #ruby-lang
st0mar has quit [Ping timeout: 250 seconds]
Caius has joined #ruby-lang
Caius has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby-lang
pwnz0r_ has joined #ruby-lang
pwnz0r has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby-lang
chinmay_dd has joined #ruby-lang
charliesome_ has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
kapil__ has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby-lang
tkuchiki has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 265 seconds]
amsha has joined #ruby-lang
momomomomo has joined #ruby-lang
amsha has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
kapil__ has joined #ruby-lang
unsymbol has quit [Ping timeout: 264 seconds]
gjaldon has quit [Remote host closed the connection]
gianlucadv has joined #ruby-lang
unsymbol has joined #ruby-lang
gjaldon has joined #ruby-lang
pwnz0r_ has quit [Remote host closed the connection]
nofxx_ has quit [Ping timeout: 272 seconds]
Guest96392 has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gjaldon has quit [Remote host closed the connection]
nino has joined #ruby-lang
fusillicode has joined #ruby-lang
nino is now known as omninonsense
[spoiler] has quit [Disconnected by services]
omninonsense is now known as [spoiler]
omninonsense has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
charliesome has quit [Quit: zzz]
momomomomo has joined #ruby-lang
fusillicode1 has joined #ruby-lang
momomomomo has quit [Client Quit]
tkuchiki has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
RickHull has quit [Quit: Page closed]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
fusillicode has quit [Ping timeout: 250 seconds]
chinmay_dd has quit [Ping timeout: 250 seconds]
kiyote23 has quit [Ping timeout: 265 seconds]
bears_ has joined #ruby-lang
fedexo has joined #ruby-lang
momomomomo has joined #ruby-lang
x-light has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
micaeked has quit [Quit: WeeChat 1.0.1]
druznek has joined #ruby-lang
fedexo has quit [Ping timeout: 260 seconds]
chinmay_dd has joined #ruby-lang
bears_ has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
imjacobclark has joined #ruby-lang
gjaldon has joined #ruby-lang
amsha has joined #ruby-lang
amsha has quit [Ping timeout: 245 seconds]
imjacobclark has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
caseydri_ has quit [Ping timeout: 260 seconds]
kiyote23 has quit [Ping timeout: 264 seconds]
caseydriscoll has joined #ruby-lang
hahuang62 has quit [Quit: WeeChat 1.0.1]
chinmay_dd has quit [Quit: Leaving]
hahuang62 has joined #ruby-lang
hahuang61 has quit [Quit: WeeChat 1.0.1]
hahuang62 has quit [Quit: WeeChat 1.0.1]
hahuang61 has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
hahuang62 has joined #ruby-lang
hahuang63 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
hahuang61 has quit [Ping timeout: 265 seconds]
hahuang62 has quit [Ping timeout: 244 seconds]
war21x3b has joined #ruby-lang
war21x3b has quit [Quit: Konversation terminated!]
chinmay_dd has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
gjaldon has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
s1kx has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
momomomomo has joined #ruby-lang
kiyote23 has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Musashi007 has joined #ruby-lang
<[spoiler]> So...
kiyote23 has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
bears has joined #ruby-lang
bears has quit [Read error: Connection reset by peer]
bears has joined #ruby-lang
bears_ has joined #ruby-lang
nino has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
loincloth has joined #ruby-lang
tkuchiki has joined #ruby-lang
bears has quit [Ping timeout: 255 seconds]
omninonsense has quit [Ping timeout: 255 seconds]
loincloth has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
charliesome has quit [Quit: zzz]
benlovell has joined #ruby-lang
GBrawl has joined #ruby-lang
gjaldon has joined #ruby-lang
symm- has joined #ruby-lang
amsha has joined #ruby-lang
amsha has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
oleo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby-lang
symm- has quit [Quit: Leaving...]
chinmay_dd has quit [Ping timeout: 260 seconds]
kiyote23 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
symm- has joined #ruby-lang
simi has joined #ruby-lang
kiyote23 has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
druznek has quit [Ping timeout: 265 seconds]
symm-_ has joined #ruby-lang
symm-_ has quit [Client Quit]
symm- has quit [Ping timeout: 258 seconds]
iamninja has quit [Quit: ZZZzzz…]
simi has quit [Ping timeout: 264 seconds]
gwendall has joined #ruby-lang
symm- has joined #ruby-lang
cornerma1 has joined #ruby-lang
stamina has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
loincloth has joined #ruby-lang
loincloth has quit [Ping timeout: 250 seconds]
ItSANgo has quit [Quit: Leaving...]
midhir has joined #ruby-lang
chinmay_dd has joined #ruby-lang
yfeldblum has joined #ruby-lang
charliesome has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
momomomomo has quit [Quit: momomomomo]
[spoiler] has quit [Quit: Leaving]
snoopybbt has quit [Ping timeout: 250 seconds]
ItSANgo has joined #ruby-lang
arBmind has joined #ruby-lang
RitterJack has joined #ruby-lang
shazaum has joined #ruby-lang
brushbox has quit [Quit: brushbox]
kiyote23 has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
nifoc has joined #ruby-lang
kiyote23 has quit [Ping timeout: 255 seconds]
simi has joined #ruby-lang
Manorie_x has joined #ruby-lang
loincloth has joined #ruby-lang
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby-lang
loincloth has quit [Ping timeout: 250 seconds]
amsha has joined #ruby-lang
gianlucadv has quit [Ping timeout: 250 seconds]
Manorie_x has quit [Ping timeout: 272 seconds]
Manorie_x has joined #ruby-lang
amsha has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
tkuchiki has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
bmichelsen has joined #ruby-lang
bears_ has quit [Remote host closed the connection]
bears_ has joined #ruby-lang
bears_ has quit [Remote host closed the connection]
bears has joined #ruby-lang
futilegames has joined #ruby-lang
devgiant has joined #ruby-lang
futilegames has quit [Ping timeout: 255 seconds]
kiyote23 has joined #ruby-lang
futilegames has joined #ruby-lang
postmodern has quit [Quit: Leaving]
kiyote23 has quit [Ping timeout: 272 seconds]
ItSANgo has quit [Quit: Leaving...]
futilegames has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby-lang
jo__ has joined #ruby-lang
ItSANgo has joined #ruby-lang
futilegames has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
futilegames has quit [Ping timeout: 256 seconds]
shazaum has joined #ruby-lang
benchekroundev has joined #ruby-lang
futilegames has joined #ruby-lang
lapide_viridi has joined #ruby-lang
Manorie_x has quit [Quit: Be back later ...]
Manorie_x has joined #ruby-lang
benchekroundev has quit [Quit: Leaving]
futilegames has quit [Ping timeout: 264 seconds]
devgiant_ has joined #ruby-lang
devgiant has quit [Ping timeout: 240 seconds]
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
futilegames has joined #ruby-lang
sarkyniin has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
Manorie_x has quit [Quit: Be back later ...]
benchekroundev has joined #ruby-lang
futilegames has joined #ruby-lang
devgiant has joined #ruby-lang
RitterJack has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
devgiant_ has quit [Ping timeout: 255 seconds]
futilegames has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby-lang
VictorBjelkholm has joined #ruby-lang
snoopybbt has joined #ruby-lang
futilegames has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
lapide_viridi has quit [Ping timeout: 265 seconds]
Manorie_x has joined #ruby-lang
yfeldblum has joined #ruby-lang
sk_0 has joined #ruby-lang
symm- has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 244 seconds]
amsha has joined #ruby-lang
symm- has joined #ruby-lang
amsha has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stamina has quit [Quit: WeeChat 1.0.1]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
nofxx__ has joined #ruby-lang
nofxx_ has quit [Ping timeout: 258 seconds]
kiyote23 has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
nofxx__ has quit [Ping timeout: 240 seconds]
GBrawl_ has joined #ruby-lang
GBrawl has quit [Ping timeout: 260 seconds]
Missphoenix has joined #ruby-lang
omninonsense has joined #ruby-lang
gwendall_ has joined #ruby-lang
Bwild has quit [Quit: leaving]
GBrawl_ has quit [Client Quit]
gwendall has quit [Ping timeout: 260 seconds]
Miphix has quit [Ping timeout: 250 seconds]
devgiant has quit [Quit: Leaving]
nino has quit [Ping timeout: 240 seconds]
simi has quit [Ping timeout: 256 seconds]
GBrawl has joined #ruby-lang
nofxx__ has joined #ruby-lang
red_menace has joined #ruby-lang
Missphoenix has quit [Quit: Leaving]
Miphix has joined #ruby-lang
yfeldblum has joined #ruby-lang
seank_ has quit [Remote host closed the connection]
amsha has joined #ruby-lang
hahuang62 has joined #ruby-lang
SuMo_D has joined #ruby-lang
gix has quit [Ping timeout: 250 seconds]
GBrawl has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 250 seconds]
hahuang62 has quit [Ping timeout: 272 seconds]
<nofxx__> Trying to find something in http://guides.rubygems.org, what's the convention for core exts? lib/mygem/core_ext/hash.rb and inside a not namespaced class Hash ?
spastorino has joined #ruby-lang
havenwood has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
<yorickpeterse> nofxx__: there's no real convention for it
shambrarian has joined #ruby-lang
charliesome has quit [Quit: zzz]
shazaum has joined #ruby-lang
hramrach_ has quit [Remote host closed the connection]
<jhass> that said core_ext is something I commonly see
<jhass> since AS uses it
hramrach_ has joined #ruby-lang
charliesome has joined #ruby-lang
<nofxx__> yorickpeterse, jhass I see, as long it's not lying in lib/. But if it's inside mygem/ should it be module Mygem; class ::Hash ? not, right? heh
<jhass> lib/mygem/core_ext/hash/my_method.rb with class Hash; def my_method; end; end; is the thing I see the most
<nofxx__> I totally disagree with core_ext anyways, expect in a case like this, it's just a CLI tool... just so you guys know
<nofxx__> except*
* yorickpeterse puts the whip down
<nofxx__> hehe
<nofxx__> thanks guys
Manorie_x has quit [Quit: Lingo: www.lingoirc.com]
gix has joined #ruby-lang
jgpawletko has joined #ruby-lang
oleo is now known as Guest59678
oleo__ has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
Guest59678 has quit [Ping timeout: 260 seconds]
oleo__ has quit [Client Quit]
iamninja has joined #ruby-lang
symm- has joined #ruby-lang
sankaber has joined #ruby-lang
charliesome has quit [Quit: zzz]
druznek has joined #ruby-lang
snoopybbt has quit [Ping timeout: 250 seconds]
sankaber has quit [Client Quit]
sankaber has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
symm- has quit [Quit: Leaving...]
pnbeast has joined #ruby-lang
yfeldblum has joined #ruby-lang
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby-lang
chills42 has joined #ruby-lang
benchekroundev has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
pnbeast has quit [Quit: leaving]
lapide_viridi has joined #ruby-lang
kurko__ has joined #ruby-lang
bears has quit [Remote host closed the connection]
bears has joined #ruby-lang
snoopybbt has joined #ruby-lang
sarkyniin has quit [Read error: Connection reset by peer]
sarkyniin has joined #ruby-lang
amsha has quit [Quit: Be back later ...]
symm- has joined #ruby-lang
acadavid has joined #ruby-lang
sankaber has quit [Ping timeout: 256 seconds]
sankaber has joined #ruby-lang
emmesswhy has joined #ruby-lang
netchaos_ has quit [Quit: Lingo: www.lingoirc.com]
oleo has joined #ruby-lang
centrx has joined #ruby-lang
amsha has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
oleo has quit [Read error: Connection reset by peer]
<epitron> nofxx__: it's actually nice to wrap your core_exts in a module, then mix it into hash
oleo has joined #ruby-lang
<epitron> that way, in pry, when you "ls Hash", you can see the methods grouped together
<epitron> ^_^
snoopybbt has quit [Remote host closed the connection]
<apeiros_> it also makes it easier to figure the origin of a method (if you're not the author)
<epitron> hah, yes
<epitron> although, the method itself is always tagged with the source file that it came from
sarkyniin has quit [Read error: No route to host]
snoopybbt has joined #ruby-lang
snoopybbt has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
enebo has joined #ruby-lang
loincloth has joined #ruby-lang
emmesswhy has joined #ruby-lang
bmichelsen has joined #ruby-lang
druznek has quit [Ping timeout: 244 seconds]
loincloth has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
Torrieri has quit [Quit: Be back later ...]
BadBadtz-Maru has joined #ruby-lang
Miphix has quit [Quit: Leaving]
seank_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
amsha has quit [Quit: Be back later ...]
djbkd has joined #ruby-lang
<ljarvis> ohi
Miphix has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0.1]
GBrawl has joined #ruby-lang
gjaldon has quit []
Miphix has quit [Client Quit]
Miphix has joined #ruby-lang
elia has joined #ruby-lang
Miphix has quit [Client Quit]
Miphix has joined #ruby-lang
<ljarvis> apeiros_: I think RhodiumToad doesn't sleep and knows everything
senor_jalapeno has quit [Ping timeout: 265 seconds]
<apeiros_> ljarvis: lurker :-p
<ljarvis> :)
BadBadtz-Maru has quit [Ping timeout: 265 seconds]
<ljarvis> I love that channel, though sometimes it makes me feel inferior
djbkd has quit [Remote host closed the connection]
chinmay_dd has quit [Remote host closed the connection]
bmichelsen has quit [Quit: ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
<apeiros_> I'll probably spend a bit more time in there in the coming months
mattyohe has joined #ruby-lang
seank_ has quit [Remote host closed the connection]
GBrawl has quit [Read error: Connection reset by peer]
loincloth has joined #ruby-lang
gianlucadv has joined #ruby-lang
djbkd has joined #ruby-lang
loincloth has quit [Ping timeout: 264 seconds]
bradland has quit [Quit: bradland]
<ljarvis> :)
btcctf has quit [Ping timeout: 244 seconds]
btcctf has joined #ruby-lang
<epitron> SECRET CHANNEL
<epitron> DUN DUN DUNNN
bradland has joined #ruby-lang
<apeiros_> epitron: #postgresql
<apeiros_> not secret
<apeiros_> I shall usurp all of RhodiumToad's knowledge
<matti> ;]
<matti> Hi apeiros_
<apeiros_> hi matti
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
chills42 has joined #ruby-lang
enkristoffer has joined #ruby-lang
yfeldblum has joined #ruby-lang
centrx has joined #ruby-lang
chills42 has quit [Ping timeout: 250 seconds]
elia has joined #ruby-lang
fedexo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
nathanstitt has joined #ruby-lang
<TTilus> ahem
<TTilus> whats the deal with merging #ruby & #ruby-lang
djbkd has quit [Remote host closed the connection]
<matti> ?
elia has quit [Quit: Computer has gone to sleep.]
<centrx> TTilus, There are no plans for that
<centrx> TTilus, They each have their own vibe
djbkd has joined #ruby-lang
elia has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<epitron> apeiros_: oic
SuMo_D has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
fusillicode has joined #ruby-lang
fusillicode1 has quit [Quit: Leaving.]
x-light has joined #ruby-lang
kurko__ has quit [Ping timeout: 258 seconds]
SuMo_D has quit [Ping timeout: 245 seconds]
seank_ has joined #ruby-lang
midhir has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shazaum has joined #ruby-lang
<yorickpeterse> yay I have C code that is faster than racc
<yorickpeterse> and yay I have Ruby code that is almost as fast as racc
<yorickpeterse> nay it's not yet 3x faster :<
loincloth has joined #ruby-lang
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 250 seconds]
futilegames_ is now known as futilegames
loincloth has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
<TTilus> centrx: ok, good, i remember there being such plans, but it was long ago
<TTilus> yorickpeterse: your ruby parser?
<yorickpeterse> TTilus: a parser for XML, yes
amsha has joined #ruby-lang
<yorickpeterse> Although I'm running tests using a simple JSON grammar
momomomomo has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
amsha___ has joined #ruby-lang
amsha has quit [Ping timeout: 258 seconds]
<TTilus> parser had written in C vs. racc generated parser vs. parser hand written in ruby?
<TTilus> or s/parser/grammar interpreter/
<yorickpeterse> hand written LL parser in Ruby vs a C version vs LALR parser using Racc
<yorickpeterse> The grammar is the same though
imperator has joined #ruby-lang
tectonic has joined #ruby-lang
<TTilus> how fast you think you can go? (how much there is left to squeeze in each of them)
<yorickpeterse> TTilus: I can move a whole bunch of stack pushing/popping out of Ruby, which is where most of the time is spent
chinmay_dd has joined #ruby-lang
<yorickpeterse> but it's a bit tricky
<yorickpeterse> especially since C doesn't have vectors, so you have to use random libraries for it
<yorickpeterse> which of course don't always work, etc
<yorickpeterse> and apparently you can just stuff a VALUE in a vector (or somewhere else) in the CAPI, as then all hell breaks loose
emmesswhy has quit [Quit: This computer has gone to sleep]
druznek has joined #ruby-lang
tectonic has quit [Client Quit]
<yorickpeterse> I messed with C++ as well by using std::stack/std::vector, but that actually ended up being slower than the pure Ruby version
|jemc| has joined #ruby-lang
hahuang62 has joined #ruby-lang
JokerDoom has joined #ruby-lang
futilegames_ has joined #ruby-lang
_JokerDoom has quit [Ping timeout: 258 seconds]
futilegames has quit [Ping timeout: 260 seconds]
futilegames_ is now known as futilegames
<TTilus> yorickpeterse: thats somewhat surprising
emmesswhy has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
druznek has quit [Ping timeout: 264 seconds]
kurko__ has joined #ruby-lang
tenderlove has quit [Quit: Leaving...]
druznek has joined #ruby-lang
bmichelsen has joined #ruby-lang
shazaum has joined #ruby-lang
bmichelsen has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
bmichelsen has joined #ruby-lang
kurko__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
druznek has quit [Ping timeout: 256 seconds]
Mothore has joined #ruby-lang
shazaum has quit [Client Quit]
hahuang62 has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby-lang
Mothore has quit [Quit: Be back later ...]
bears has quit [Remote host closed the connection]
bears has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
senor_jalapeno has joined #ruby-lang
VictorBjelkholm has quit [Remote host closed the connection]
shazaum has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has quit [Read error: Connection reset by peer]
fedexo_ has joined #ruby-lang
dagda1_ has joined #ruby-lang
emmesswhy has joined #ruby-lang
VictorBjelkholm has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
<ljarvis> wat
mistym has joined #ruby-lang
nathanstitt has quit [Remote host closed the connection]
godd2 has joined #ruby-lang
nathanstitt has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jgpawletko has quit [Quit: jgpawletko]
seank_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
loincloth has joined #ruby-lang
wprice has quit [Quit: wprice]
omninonsense is now known as spoiler
spoiler is now known as [spoiler]
hahuang62 has joined #ruby-lang
loincloth has quit [Ping timeout: 240 seconds]
Mothore has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
hahuang62 has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
gwendall_ has quit [Remote host closed the connection]
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1_ has joined #ruby-lang
vieq_ is now known as vieq
jo__ has quit [Quit: Connection closed for inactivity]
nofxx__ has quit [Ping timeout: 245 seconds]
bears has quit [Remote host closed the connection]
bears_ has joined #ruby-lang
pwnz0r has joined #ruby-lang
dorei has joined #ruby-lang
<yorickpeterse> ljarvis: C
chinmay_dd has quit [Quit: Leaving]
shazaum has joined #ruby-lang
iamninja has joined #ruby-lang
matp_ has joined #ruby-lang
Mothore has quit [Quit: Be back later ...]
bears_ has quit [Remote host closed the connection]
bears_ has joined #ruby-lang
sweo has joined #ruby-lang
matp has quit [Ping timeout: 265 seconds]
sweo has quit [Client Quit]
shazaum has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
loincloth has joined #ruby-lang
duderonomy has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby-lang
* imperator has a strange desire to play with kirbybase for some reason
acadavid has quit [Quit: Connection closed for inactivity]
sarkyniin has joined #ruby-lang
loincloth has quit [Ping timeout: 260 seconds]
brushbox has joined #ruby-lang
* apeiros_ is currently being annoyed by launchctl & postgres
<apeiros_> might also be a problem with brew's install
<bradland> time for some log diving
omninonsense has joined #ruby-lang
imperator has quit [Quit: Valete!]
yourabi has joined #ruby-lang
nino has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
<apeiros_> I can't reliably restart postgres, I can't reliably test whether nossl connections are rejected. I can't reliably test whether my connection uses ssl.
<apeiros_> this. is. annoying.
[spoiler] has quit [Ping timeout: 244 seconds]
omninonsense has quit [Ping timeout: 244 seconds]
bmichelsen has joined #ruby-lang
<bradland> apeiros: sudo launchctl log level debug
<bradland> and put on your goggles
<bradland> is it launchctl that’s failing, or is it postgres itself?
<apeiros_> bradland: I think I'll figure this part out another day. too tired right now. thanks for the log level hint, duly noted.
tectonic has joined #ruby-lang
fedexo_ has quit [Ping timeout: 264 seconds]
seank_ has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
jgpawletko has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
mistym_ has joined #ruby-lang
seank_ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby-lang
ta_ has quit [Ping timeout: 260 seconds]
mfn has joined #ruby-lang
Sadin has joined #ruby-lang
nino has quit [Read error: Connection reset by peer]
kiyote23 has joined #ruby-lang
araujo has joined #ruby-lang
ta has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
yfeldblum has joined #ruby-lang
red_menace has quit [Quit: ...zzzZZZzzz...]
Lewix_ has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
bears__ has joined #ruby-lang
shambrarian has quit [Quit: bye!]
[spoiler] has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
loincloth has joined #ruby-lang
Manorie_x has joined #ruby-lang
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
red_menace has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
Torrieri has joined #ruby-lang
loincloth has quit [Ping timeout: 264 seconds]
bears__ has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
bears__ has joined #ruby-lang
sankaber_ has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
sankaber has quit [Ping timeout: 264 seconds]
Lewix_ has quit [Remote host closed the connection]
[spoiler] has joined #ruby-lang
simi has joined #ruby-lang
sankaber_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snoopybbt has quit [Ping timeout: 250 seconds]
gianlucadv has quit [Ping timeout: 250 seconds]
GBrawl has quit [Ping timeout: 272 seconds]
SuMo_D has joined #ruby-lang
mistym_ is now known as mistym
nathanstitt has quit [Quit: I growing sleepy]
[spoiler] has quit [Ping timeout: 240 seconds]
snoopybbt has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
senor_jalapeno has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 255 seconds]
nertzy has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
JoL1hAHN has quit [Quit: WeeChat 1.0]
diegoviola has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
micechal has joined #ruby-lang
rbowlby has joined #ruby-lang
micechal_ has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby-lang
momobear has joined #ruby-lang
dorei has quit []
micechal has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
Mothore has joined #ruby-lang
cornerma1 has joined #ruby-lang