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
<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.