fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
fujimura has quit [Ping timeout: 256 seconds]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
sideshowcoder has quit [Ping timeout: 246 seconds]
sideshowcoder has joined #ruby-lang
lytol has joined #ruby-lang
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
b_hoffman has joined #ruby-lang
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
saramic has quit [Remote host closed the connection]
lytol has quit [Ping timeout: 250 seconds]
saramic has joined #ruby-lang
b_hoffman has quit [Read error: No route to host]
saramic has quit [Ping timeout: 264 seconds]
roamingdog has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 250 seconds]
sideshowcoder has quit [Ping timeout: 246 seconds]
sideshowcoder has joined #ruby-lang
marr has quit []
roamingdog has joined #ruby-lang
meschi has quit [Ping timeout: 252 seconds]
deol has joined #ruby-lang
aadam21 has joined #ruby-lang
aadam21 has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
djbkd has joined #ruby-lang
michael_mbp has joined #ruby-lang
iamninja has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
sideshowcoder has quit [Ping timeout: 246 seconds]
j4cknewt has joined #ruby-lang
aadam21 has joined #ruby-lang
riotjones has joined #ruby-lang
lytol has joined #ruby-lang
chouhoul_ has joined #ruby-lang
allomov has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
lytol has quit [Ping timeout: 250 seconds]
sideshowcoder has joined #ruby-lang
chouhoulis has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 265 seconds]
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
allomov has quit [Ping timeout: 264 seconds]
Antivan has quit [Max SendQ exceeded]
amsi has quit [Quit: Leaving]
Sirupsen has joined #ruby-lang
Sirupsen has quit [Client Quit]
tunaCanBruh has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
tunaCanBruh has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
nathanstitt has joined #ruby-lang
rushed has quit [Quit: rushed]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
centrx has quit [Quit: Shutting down, Please wait...]
jo__ has quit [Quit: Connection closed for inactivity]
roamingdog has joined #ruby-lang
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
DynamicMetaFlow has quit [Quit: Leaving]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
rushed has joined #ruby-lang
rushed has left #ruby-lang [#ruby-lang]
djbkd has joined #ruby-lang
hahuang65_ has quit [Quit: Connection closed for inactivity]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
ledestin has quit [Quit: ledestin]
iamninja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
lsegal has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
enkristoffer has joined #ruby-lang
Musashi007 has joined #ruby-lang
arooni-mobile has quit [Quit: Leaving]
arooni-mobile has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
maso has quit [Remote host closed the connection]
vbatts has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
vbatts has left #ruby-lang ["found the other side of the rainbow"]
michael_mbp has quit [Excess Flood]
roamingdog has joined #ruby-lang
arooni-mobile has joined #ruby-lang
michael_mbp has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<enders>
Hey, for those of you earlier who participated to the Tarjan SCC discussion, the naive C++ implementation is about 1.8x faster vs the naive Ruby implementation. I'm not sure how much faster I can make the C++ version tho, has it has been a looooong while.
djbkd has quit [Quit: My people need me...]
auzty has joined #ruby-lang
auzty has quit [Max SendQ exceeded]
auzty has joined #ruby-lang
auzty has quit [Max SendQ exceeded]
kapil___ has joined #ruby-lang
bb010g has joined #ruby-lang
auzty has joined #ruby-lang
auzty has quit [Max SendQ exceeded]
auzty has joined #ruby-lang
auzty has quit [Max SendQ exceeded]
auzty has joined #ruby-lang
auzty has quit [Max SendQ exceeded]
auzty has joined #ruby-lang
<weaksauce>
not a terrible speedup
priodev has quit [Ping timeout: 246 seconds]
<enders>
Indeed. It does scale better tho, for instance, with 80 nodes, it's 4.5x faster than the ruby version.
<weaksauce>
why c++ over c
<enders>
C++11 stdlib is pretty awesome and seems to cover all of my needs for this particular project. From what I know of the C standard lib, I'll have to either bring in heavier libs or do a lot of wheel-reinventing, especially when I get to the date processing part. Is this incorrect?
<weaksauce>
probably not.
priodev has joined #ruby-lang
<weaksauce>
I haven't coded in c or c++ for a while now.
lytol has joined #ruby-lang
<weaksauce>
how big are your objects?
enkristoffer has quit [Ping timeout: 264 seconds]
<enders>
In C-land? One struct for each node (4 int + **children nodes) and one struct for the current status of Tarjan (max index + std::vector of nodes)
<enders>
Next step will start adding the dates and various constraints, those aren't big either, a couple more ints and dates
taylorrf has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<weaksauce>
seems pretty streamlined
michael_mbp has joined #ruby-lang
lytol has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
mattyohe has joined #ruby-lang
wallerdev has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
j4cknewt has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 264 seconds]
arBmind has quit [Quit: Leaving.]
oleo is now known as Guest68710
oleo__ has joined #ruby-lang
Thecrazylumberja has quit [Quit: Leaving]
ghostpl_ has joined #ruby-lang
sankaber has joined #ruby-lang
Guest68710 has quit [Ping timeout: 250 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Ping timeout: 246 seconds]
Miphix has joined #ruby-lang
yfeldblum has joined #ruby-lang
concernedcitizen has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
havenn has joined #ruby-lang
cryo28 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 255 seconds]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby-lang
duderonomy has quit [Client Quit]
sideshowcoder has quit [Ping timeout: 246 seconds]
tvon has joined #ruby-lang
concernedcitizen has quit [Remote host closed the connection]
jo__ has joined #ruby-lang
gix has joined #ruby-lang
tvon has quit [Quit: leaving]
allomov has joined #ruby-lang
Thecrazylumberja has joined #ruby-lang
allomov has quit [Remote host closed the connection]
auzty has quit [Ping timeout: 246 seconds]
allomov has joined #ruby-lang
allomov has quit [Read error: Connection reset by peer]
allomov_ has joined #ruby-lang
allomov_ has quit [Ping timeout: 252 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
auzty has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby-lang
Andy__ has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
jbeeze has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
<Andy__>
does anyone know how to mock user input for gets with rspec?
lytol has joined #ruby-lang
roamingdog has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby-lang
lytol has quit [Ping timeout: 250 seconds]
AKASkip has joined #ruby-lang
<bougyman>
write to stdin?
hhatch has joined #ruby-lang
<enders>
Would stubbing :gets be enough for your purpose?
riotjones has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby-lang
cryo28 has quit [Quit: leaving]
<Andy__>
? I've been trying stubbing but it hasn't worked so far
<Andy__>
def test
<Andy__>
input = gets.chomp
<Andy__>
test2 if input == "yes"
<Andy__>
end
<Andy__>
expect(test).to receive :test2
<Andy__>
how can I get this to pass?
tunaCanBruh has joined #ruby-lang
<bougyman>
Andy__: the pattern I use for this is to have the method take an arg that is the io object.
<bougyman>
def test(io = $stdin)
<bougyman>
then when you write a test for it, you simply make your own StringIO object, stuff it with your data, and pass it to the method that does the gets.
<bougyman>
def method_with_gets(io = $stdin); data = io.gets; do_something_with data; end
tunaCanBruh has quit [Ping timeout: 265 seconds]
<bougyman>
then your test can be io = StringIO.new; io.puts "The Data; io.rewind; result = method_with_gets(io); assert result.is.something
<bougyman>
or expect, whatev.
DynamicMetaFlow has joined #ruby-lang
ghostpl_ has joined #ruby-lang
<Andy__>
alright sweet thanks :)
ghostpl_ has quit [Ping timeout: 246 seconds]
mattyohe has quit [Quit: Connection closed for inactivity]
<Andy__>
bougyman: it works, thanks :)
nathanstitt has quit [Quit: I growing sleepy]
kapil___ has quit [Quit: Connection closed for inactivity]
fujimura has joined #ruby-lang
Andy__ has quit [Ping timeout: 252 seconds]
Andy__ has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
djbkd has joined #ruby-lang
Musashi007 has joined #ruby-lang
Musashi007 has quit [Client Quit]
toretore has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
Andy__ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
maso has joined #ruby-lang
Musashi007 has joined #ruby-lang
riotjones has joined #ruby-lang
maso has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 250 seconds]
rippa has joined #ruby-lang
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
Missphoenix has joined #ruby-lang
Miphix has quit [Ping timeout: 252 seconds]
fujimura has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
symm- has quit [Ping timeout: 264 seconds]
jbeeze has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 252 seconds]
hhatch has quit [Ping timeout: 250 seconds]
ghostpl_ has joined #ruby-lang
djbkd has joined #ruby-lang
kapil___ has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
iamninja has joined #ruby-lang
charliesome has joined #ruby-lang
AKASkip has quit [Ping timeout: 265 seconds]
charliesome has quit [Client Quit]
TvL2386 has joined #ruby-lang
Musashi007 has joined #ruby-lang
auzty has quit [Quit: Leaving]
ledestin has joined #ruby-lang
duderonomy has joined #ruby-lang
hhatch has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby-lang
ozialien has joined #ruby-lang
lele|w has quit [Ping timeout: 252 seconds]
ender|dkm has quit [Quit: Lost terminal]
ghostpl_ has joined #ruby-lang
charliesome has joined #ruby-lang
kr3ssh has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby-lang
lele|w has joined #ruby-lang
riotjones has quit [Ping timeout: 240 seconds]
dellavg_ has joined #ruby-lang
lytol has joined #ruby-lang
allomov has joined #ruby-lang
lytol has quit [Ping timeout: 255 seconds]
allomov has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
roamingdog has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
skade has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
apeiros__ has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
fusillicode has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby-lang
fusillicode has joined #ruby-lang
fujimura_ has joined #ruby-lang
red_menace has joined #ruby-lang
mikecmpbll has joined #ruby-lang
aadam21 has quit [Remote host closed the connection]
fujimura_ has quit [Ping timeout: 265 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
apeiros__ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
fusillicode has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
fusillicode1 has joined #ruby-lang
djbkd has joined #ruby-lang
fusillicode has quit [Ping timeout: 252 seconds]
fusillicode has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 244 seconds]
ghostpl_ has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby-lang
GBrawl has joined #ruby-lang
riotjones has quit [Ping timeout: 264 seconds]
lytol has joined #ruby-lang
arBmind has joined #ruby-lang
fusillicode1 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
lytol has quit [Ping timeout: 240 seconds]
sarkyniin has joined #ruby-lang
beerich has joined #ruby-lang
fusillicode has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
DivineEntity has quit [Ping timeout: 264 seconds]
DivineEntity has joined #ruby-lang
kr3ssh has quit [Ping timeout: 252 seconds]
kr3ssh has joined #ruby-lang
beerich has left #ruby-lang [#ruby-lang]
tunaCanBruh has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 255 seconds]
sarkyniin has quit [Remote host closed the connection]
stamina has joined #ruby-lang
AKASkip has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
GBrawl has quit [Quit: (null)]
meschi has joined #ruby-lang
kr3ssh has quit [Ping timeout: 250 seconds]
aadam21 has joined #ruby-lang
fusillicode1 has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
aadam21 has quit [Ping timeout: 256 seconds]
qba73 has joined #ruby-lang
HANJIN has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 1.1.1]
HANJIN has quit [Quit: HANJIN]
ledestin has quit [Quit: ledestin]
HANJIN has joined #ruby-lang
HANJIN has quit [Quit: HANJIN]
oleo has joined #ruby-lang
lapide_viridi has joined #ruby-lang
j4cknewt has joined #ruby-lang
workmad3 has joined #ruby-lang
ghostpl_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
lapide_viridi has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
kr3ssh has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 250 seconds]
vuorse has joined #ruby-lang
riotjones has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
fujimura has joined #ruby-lang
riotjones has quit [Ping timeout: 245 seconds]
sarkyniin has joined #ruby-lang
lytol has joined #ruby-lang
fujimura has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
sarkyniin has quit [Ping timeout: 256 seconds]
lapide_viridi has joined #ruby-lang
iamninja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
j4cknewt has quit [Remote host closed the connection]
skade has joined #ruby-lang
ghostpl_ has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
tunaCanBruh has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
tunaCanBruh has quit [Ping timeout: 240 seconds]
HANJIN has joined #ruby-lang
micmus has joined #ruby-lang
skade has joined #ruby-lang
HANJIN has quit [Quit: HANJIN]
HANJIN has joined #ruby-lang
oleo has quit [Read error: Connection reset by peer]
HANJIN has quit [Quit: HANJIN]
iamninja has joined #ruby-lang
oleo has joined #ruby-lang
lapide_viridi has joined #ruby-lang
chinmay_dd has quit [Quit: Connection closed for inactivity]
djbkd has quit [Read error: Connection reset by peer]
aadam21 has joined #ruby-lang
djbkd has joined #ruby-lang
aadam21 has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 264 seconds]
centrx has joined #ruby-lang
shinnya has quit [Ping timeout: 255 seconds]
centrx has quit [Remote host closed the connection]