apeiros changed the topic of #ruby-lang to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
RobertBirnie has quit [Ping timeout: 245 seconds]
musl has quit [Quit: WeeChat 0.4.3]
<jhass> probably something internal you shouldn't touch ;)
zenojis has joined #ruby-lang
<emilsoman> actually it's not a class name. my bad. in ruby source, every object accessible from the "root" can be iterated over .
<emilsoman> the "category" of the object gets passed to the iterator for each object. this category has the name "machine_context"
migbar has joined #ruby-lang
SqREL______ has joined #ruby-lang
lewix has joined #ruby-lang
centrx has quit [Ping timeout: 272 seconds]
SqREL________ has joined #ruby-lang
seamon has joined #ruby-lang
seamon has quit [Client Quit]
SqREL______ has quit [Ping timeout: 260 seconds]
SqREL________ has quit [Ping timeout: 250 seconds]
sepp2k1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 272 seconds]
SuMo_D has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
Miphix has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
RobertBi_ has quit [Ping timeout: 250 seconds]
emilsoman has quit [Quit: Leaving.]
skammer2 has joined #ruby-lang
nonmadden has joined #ruby-lang
RobertBirnie has joined #ruby-lang
sleepee has joined #ruby-lang
skammer2 has quit [Ping timeout: 272 seconds]
harly has quit [Read error: Connection reset by peer]
harly_ has joined #ruby-lang
hhatch has quit [Ping timeout: 272 seconds]
nonmadden has quit [Ping timeout: 272 seconds]
oleo__ has joined #ruby-lang
oleo is now known as Guest85944
sleepee has quit [Client Quit]
Guest85944 has quit [Ping timeout: 260 seconds]
sleepee has joined #ruby-lang
mistym has joined #ruby-lang
sleepee has quit [Ping timeout: 272 seconds]
nertzy2 has joined #ruby-lang
sleepee has joined #ruby-lang
sleepee has quit [Read error: Connection reset by peer]
jgpawletko has quit [Quit: jgpawletko]
ikrima has joined #ruby-lang
tkuchiki has joined #ruby-lang
ikrima has quit [Read error: Connection reset by peer]
ikrima has joined #ruby-lang
tkuchiki has quit [Ping timeout: 244 seconds]
jhass is now known as jhass|off
CodeBunny has joined #ruby-lang
chouhoulis has joined #ruby-lang
nathanst_ has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
skammer2 has joined #ruby-lang
deg has quit [Ping timeout: 260 seconds]
deg_ has joined #ruby-lang
skammer2 has quit [Ping timeout: 244 seconds]
brixen_ is now known as brixen
ikrima has quit [Read error: Connection reset by peer]
ikrima has joined #ruby-lang
arBmind1 has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
seamon has joined #ruby-lang
nertzy2 has quit [Read error: Connection reset by peer]
nertzy2 has joined #ruby-lang
nertzy2 has quit [Client Quit]
SqREL________ has joined #ruby-lang
SqREL_________ has joined #ruby-lang
SqREL________ has quit [Ping timeout: 250 seconds]
SqREL_________ has quit [Ping timeout: 246 seconds]
rango has joined #ruby-lang
rango has quit [Client Quit]
sharpmachine has joined #ruby-lang
migbar has quit [Remote host closed the connection]
migbar has joined #ruby-lang
sleepee has joined #ruby-lang
migbar has quit [Ping timeout: 245 seconds]
aleatorik has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
sleepee has quit [Quit: Leaving]
ikrima has quit [Ping timeout: 258 seconds]
mistym has quit [Remote host closed the connection]
skammer2 has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
Iskarlar has joined #ruby-lang
skammer2 has quit [Ping timeout: 245 seconds]
hahuang61 has quit [Quit: WeeChat 1.0]
chouhoulis has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
tectonic has quit []
tectonic has joined #ruby-lang
nonmadden has joined #ruby-lang
chouhoulis has joined #ruby-lang
tkuchiki has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
tkuchiki has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
wallerdev has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 1.0]
yfeldblu_ has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
SuMo_D has quit [Ping timeout: 272 seconds]
ikrima has joined #ruby-lang
red_menace has quit [Quit: peer reset by connection]
skammer2 has joined #ruby-lang
hahuang65 has joined #ruby-lang
snsei has joined #ruby-lang
skammer2 has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby-lang
gix has quit [Ping timeout: 272 seconds]
SqREL_________ has joined #ruby-lang
SqREL___________ has joined #ruby-lang
gix has joined #ruby-lang
SqREL_________ has quit [Ping timeout: 240 seconds]
gjaldon has joined #ruby-lang
SqREL___________ has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
nathanstitt has quit [Quit: I growing sleepy]
hahuang65 has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby-lang
KM has joined #ruby-lang
KM is now known as Guest67035
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
aleatorik has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kylo has joined #ruby-lang
skammer2 has joined #ruby-lang
chouhoulis has joined #ruby-lang
Monster52 has joined #ruby-lang
skammer2 has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
Monster52 has quit [Client Quit]
hahuang65 has joined #ruby-lang
SuMo_D has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gjaldon has quit [Ping timeout: 250 seconds]
hellangel7 has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 272 seconds]
RobertBirnie has joined #ruby-lang
snsei has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
ruby-lang919 has joined #ruby-lang
ruby-lang919 has quit [Ping timeout: 246 seconds]
Asher has quit [Ping timeout: 250 seconds]
allomov has joined #ruby-lang
gjaldon has joined #ruby-lang
perry has quit [Read error: Connection reset by peer]
allomov has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby-lang
Asher has joined #ruby-lang
iliketurtles has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tkuchiki has quit [Ping timeout: 272 seconds]
allomov has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SqREL___________ has joined #ruby-lang
snsei has joined #ruby-lang
skammer2 has joined #ruby-lang
ikrima has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
SqREL___________ has quit [Ping timeout: 272 seconds]
skammer2 has quit [Ping timeout: 246 seconds]
snsei has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
allomov has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
allomov has joined #ruby-lang
SuMo_D has quit [Ping timeout: 245 seconds]
allomov has quit [Ping timeout: 272 seconds]
gjaldon has quit [Remote host closed the connection]
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
rippa has joined #ruby-lang
snsei has joined #ruby-lang
pr0ton has joined #ruby-lang
dagda1 has joined #ruby-lang
snsei has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
mattyohe has quit [Quit: Connection closed for inactivity]
tkuchiki has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
skammer2 has joined #ruby-lang
shubhamgoyal has quit [Read error: Connection reset by peer]
shubhamg_ has joined #ruby-lang
t_ has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
skammer2 has quit [Ping timeout: 258 seconds]
t_ has joined #ruby-lang
fusillicode has quit [Ping timeout: 245 seconds]
nonmadden has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
Iskarlar has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snsei has joined #ruby-lang
fusillicode has joined #ruby-lang
snsei has quit [Ping timeout: 250 seconds]
fusillicode has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby-lang
fusillicode has joined #ruby-lang
_ht has joined #ruby-lang
SqREL___________ has joined #ruby-lang
JohnBat26 has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
fusillicode has quit [Ping timeout: 240 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has quit [Read error: Connection reset by peer]
SqREL___________ has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Excess Flood]
gianlucadv has joined #ruby-lang
robbyoconnor has joined #ruby-lang
gjaldon has joined #ruby-lang
Iskarlar has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
mannyt has quit [Quit: Connection closed for inactivity]
skammer2 has joined #ruby-lang
fusillicode has joined #ruby-lang
thomasxie has joined #ruby-lang
skammer2 has quit [Ping timeout: 260 seconds]
fusillicode has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
lele has quit [Ping timeout: 260 seconds]
gjaldon has joined #ruby-lang
fusillicode has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
emmesswhy has joined #ruby-lang
lewix has quit [Remote host closed the connection]
gjaldon has quit [Ping timeout: 258 seconds]
dagda1 has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby-lang
Miphix has quit [Quit: Leaving]
torrieri has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Miphix has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
emilsoman has joined #ruby-lang
gjaldon has joined #ruby-lang
sarkyniin has joined #ruby-lang
snsei has joined #ruby-lang
ruurd has joined #ruby-lang
amerine has quit [Ping timeout: 272 seconds]
emilsoman has quit [Quit: Leaving.]
gjaldon has quit []
lele has joined #ruby-lang
snsei has quit [Ping timeout: 260 seconds]
AKASkip has quit [Ping timeout: 272 seconds]
mistym has quit [Remote host closed the connection]
symm- has joined #ruby-lang
lsegal has joined #ruby-lang
ur5us has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
hhatch has joined #ruby-lang
mikecmpbll has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26 has joined #ruby-lang
tectonic has quit []
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
wkoch has joined #ruby-lang
SqREL___________ has joined #ruby-lang
SqREL___________ has quit [Remote host closed the connection]
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
SqREL___________ has joined #ruby-lang
wkoch has quit [Quit: wkoch]
thomasxie has quit [Quit: Leaving.]
SqREL___________ has quit [Ping timeout: 272 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26 has joined #ruby-lang
ikrima has joined #ruby-lang
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
cornerma1 has joined #ruby-lang
perry has joined #ruby-lang
perry is now known as Guest75654
Forgetful_Lion has quit [Remote host closed the connection]
stamina has joined #ruby-lang
cornerman has quit [Killed (holmes.freenode.net (Nickname regained by services))]
cornerma1 is now known as cornerman
sepp2k has joined #ruby-lang
tbuehlmann has joined #ruby-lang
havenwood has joined #ruby-lang
fusillicode has quit [Ping timeout: 260 seconds]
cornerma1 has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
cornerma1 has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
Guest75654 is now known as perry
perry has quit [Changing host]
perry has joined #ruby-lang
fusillicode has joined #ruby-lang
cornerma1 has joined #ruby-lang
toretore has joined #ruby-lang
cornerma1 has quit [Read error: Connection reset by peer]
fusillicode has quit [Ping timeout: 260 seconds]
cornerman has quit [Ping timeout: 260 seconds]
cornerman has joined #ruby-lang
cornerma1 has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
cornerman has quit [Client Quit]
cornerma1 has quit [Client Quit]
jhass|off is now known as jhass
cornerman has joined #ruby-lang
snsei has joined #ruby-lang
fusillicode has joined #ruby-lang
snsei has quit [Ping timeout: 240 seconds]
fusillicode has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby-lang
elia has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
fusillicode has joined #ruby-lang
GBrawl has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
fusillicode has quit [Ping timeout: 246 seconds]
x0f_ has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
SqREL___________ has joined #ruby-lang
Iskarlar has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
emilsoman has joined #ruby-lang
fusillicode has joined #ruby-lang
SqREL___________ has quit [Ping timeout: 244 seconds]
emilsoman has quit [Client Quit]
fusillicode has quit [Ping timeout: 258 seconds]
allomov has joined #ruby-lang
ledestin has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
ledestin has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
fusillicode has joined #ruby-lang
jds has joined #ruby-lang
fusillicode has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
snsei has joined #ruby-lang
snsei has quit [Ping timeout: 245 seconds]
SqREL___________ has joined #ruby-lang
allomov_ has joined #ruby-lang
allomov has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
allomov_ has quit [Remote host closed the connection]
allomov has joined #ruby-lang
havenwood has joined #ruby-lang
emilsoman has joined #ruby-lang
jdecuirm has quit [Ping timeout: 260 seconds]
jdecuirm has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
AKASkip has joined #ruby-lang
migbar has joined #ruby-lang
mikecmpbll has joined #ruby-lang
chungshirley has joined #ruby-lang
allomov_ has joined #ruby-lang
pskosinski has joined #ruby-lang
chungshirley has quit [Remote host closed the connection]
chungshirley has joined #ruby-lang
allomov has quit [Ping timeout: 246 seconds]
chungshirley has quit [Read error: Connection reset by peer]
chungshirley has joined #ruby-lang
allomov_ has quit []
chungshirley has quit [Remote host closed the connection]
chungshirley has joined #ruby-lang
emilsoman has quit [Quit: Leaving.]
apeiros_ has joined #ruby-lang
apeiros has quit [Disconnected by services]
apeiros_ is now known as apeiros
shubhamg_ has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
chungshirley has quit [Ping timeout: 246 seconds]
shubhamgoyal has quit [Read error: Connection reset by peer]
shubhamgoyal has joined #ruby-lang
allomov has joined #ruby-lang
apeiros has quit []
yfeldblum has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
hellangel7 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
araujo has joined #ruby-lang
araujo has quit [Changing host]
araujo has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
havenwood has joined #ruby-lang
<jds> If I've got an AST from Racc, is there an easy way of transforming it back into a string that's functionality equivalent to the string it came from?
nathanstitt has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
arBmind has joined #ruby-lang
yfeldblum has joined #ruby-lang
enkristoffer has joined #ruby-lang
emilsoman has joined #ruby-lang
emilsoman has quit [Client Quit]
yfeldblum has quit [Ping timeout: 244 seconds]
elia has joined #ruby-lang
havenwood has joined #ruby-lang
GBrawl_ has joined #ruby-lang
snsei has joined #ruby-lang
GBrawl has quit [Ping timeout: 260 seconds]
seank_ has quit [Read error: No route to host]
seank__ has joined #ruby-lang
dwknoxy has joined #ruby-lang
klmlfl has joined #ruby-lang
snsei has quit [Ping timeout: 245 seconds]
SuMo_D has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
jgpawletko has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
<oddmunds> jds: not sure if this will help, but https://github.com/seattlerb/ruby2ruby will make ruby strings from AST sexp
yfeldblum has joined #ruby-lang
red_menace has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 258 seconds]
slawrence00 has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
SuMo_D has quit [Ping timeout: 258 seconds]
centrx has joined #ruby-lang
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
elia has quit [Quit: Computer has gone to sleep.]
nathanstitt has joined #ruby-lang
pskosinski has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
jxpx777 has joined #ruby-lang
spastorino has joined #ruby-lang
mikecmpbll has joined #ruby-lang
snsei has joined #ruby-lang
SqREL___________ has quit [Quit: Computer has gone to sleep.]
jxpx777 has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
yfeldblum has joined #ruby-lang
oleo has joined #ruby-lang
SqREL___________ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby-lang
aleatorik has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
SqREL___________ has quit [Ping timeout: 245 seconds]
aleatorik is now known as wolves_cs
hellangel7 has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
snsei has quit [Ping timeout: 272 seconds]
|jemc| has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
RobertBirnie has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
dagda1 has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 250 seconds]
|jemc| has quit [Quit: WeeChat 0.4.3]
SuMo_D has joined #ruby-lang
|jemc| has joined #ruby-lang
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
lewix has joined #ruby-lang
yfeldblum has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
fusillicode has quit [Ping timeout: 260 seconds]
torrieri has joined #ruby-lang
s1kx has joined #ruby-lang
gjaldon has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
Iskarlar has joined #ruby-lang
Iskarlar has quit [Max SendQ exceeded]
Iskarlar has joined #ruby-lang
Iskarlar has quit [Max SendQ exceeded]
SuMo_D has quit [Ping timeout: 246 seconds]
lewix has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
SuMo_D has joined #ruby-lang
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
mikecmpbll has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby-lang
SuMo_D has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wolves_cs has joined #ruby-lang
nofxx has joined #ruby-lang
yfeldblum has joined #ruby-lang
SqREL___________ has joined #ruby-lang
Miphix has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
sharpmachine has quit [Remote host closed the connection]
SqREL___________ has quit [Ping timeout: 245 seconds]
mattyohe has joined #ruby-lang
CodeBunny has joined #ruby-lang
sharpmachine has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
shinnya has quit [Ping timeout: 245 seconds]
amerine has joined #ruby-lang
crackity_jones has joined #ruby-lang
lewix has joined #ruby-lang
emilsoman has joined #ruby-lang
symm- has quit [Quit: Leaving...]
dabradley has quit [Ping timeout: 244 seconds]
gix has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
gix has joined #ruby-lang
dabradley has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
gjaldon has joined #ruby-lang
emilsoman has quit [Quit: Leaving.]
elia has quit [Ping timeout: 260 seconds]
elia_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 260 seconds]
migbar has quit [Remote host closed the connection]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dorei has joined #ruby-lang
nofxx has quit [Ping timeout: 258 seconds]
mistym has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
ur5us has joined #ruby-lang
gjaldon has quit []
ikrima has quit [Ping timeout: 260 seconds]
GBrawl_ has quit [Quit: Computer has gone to sleep.]
unsymbol has quit [Ping timeout: 272 seconds]
unsymbol has joined #ruby-lang
yfeldblum has joined #ruby-lang
migbar has joined #ruby-lang
havenwood has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
SqREL___________ has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
migbar has quit [Ping timeout: 258 seconds]
SqREL___________ has quit [Ping timeout: 272 seconds]
emilsoman has joined #ruby-lang
dagda1 has joined #ruby-lang
rippa has quit [Ping timeout: 272 seconds]
pskosinski_ has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.0.1]
ikrima has joined #ruby-lang
GBrawl_ has joined #ruby-lang
pskosinski has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Asher2 has joined #ruby-lang
Asher has joined #ruby-lang
pskosinski_ is now known as pskosinski
Asher2 has quit [Ping timeout: 245 seconds]
TheToad has joined #ruby-lang
amerine has quit [Ping timeout: 272 seconds]
tectonic has joined #ruby-lang
shinnya has joined #ruby-lang
migbar has joined #ruby-lang
dagda1 has quit [Ping timeout: 245 seconds]
skammer2 has joined #ruby-lang
dagda1 has joined #ruby-lang
tylersmith has joined #ruby-lang
migbar has quit [Ping timeout: 260 seconds]
TheToad has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
crackity_jones has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby-lang
snsei has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
TheToad has joined #ruby-lang
tectonic has quit []
ur5us has joined #ruby-lang
emilsoman has quit [Quit: Leaving.]
SuMo_D has joined #ruby-lang
seamon has joined #ruby-lang
elia_ is now known as elia
postmodern has joined #ruby-lang
SqREL___________ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
SqREL___________ has quit [Ping timeout: 245 seconds]
elia has quit [Quit: Computer has gone to sleep.]
RobertBirnie has joined #ruby-lang
TheToad has quit [Read error: Connection reset by peer]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Ping timeout: 260 seconds]
dorei has quit []
dagda1 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
migbar has joined #ruby-lang
hahuang65 has joined #ruby-lang
shinnya has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
migbar has quit [Ping timeout: 244 seconds]
TheToad has joined #ruby-lang
GaelanAintAround has quit [Quit: Bye!]
zz_dlu has quit [Quit: ZNC - http://znc.in]
seamon has quit [Quit: Zzzzzzz]
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
michaeldeol has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
tylersmith has quit []
seamon has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby-lang
marr has joined #ruby-lang
michaeldeol has joined #ruby-lang
fusillicode has joined #ruby-lang
TheToad has quit [Read error: Connection reset by peer]
simi has joined #ruby-lang
gianlucadv has quit [Ping timeout: 260 seconds]
tectonic has joined #ruby-lang
seank_ has joined #ruby-lang
elia has joined #ruby-lang
TheToad has joined #ruby-lang
seank__ has quit [Ping timeout: 272 seconds]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
elia has quit [Client Quit]
SuMo_D_ has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
SuMo_D has quit [Ping timeout: 258 seconds]
allomov has quit [Remote host closed the connection]
migbar has joined #ruby-lang
jleigh_ has joined #ruby-lang
<jleigh_> first time using irc. looking for help with largest contiguous subarray in ruby
<apeiros> hi jleigh_
<jleigh_> hi
<apeiros> and what kind of help do you need?
<jleigh_> so i am trying to come up with a method for the largest contiguous sum for a given array in ruby
<jleigh_> i have started
<jleigh_> but i am having issues with my for in loop
<jleigh_> do i just paste my code here?
tkuchiki has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
<oddmunds> Paste code on http://gist.github.com
<jleigh_> ok
migbar has quit [Ping timeout: 245 seconds]
seamon has quit [Quit: Zzzzzzz]
<red_menace> using a for loop is your first mistake though...
<jleigh_> oh really
<jleigh_> why is that?
<jleigh_> im new to this
tkuchiki has quit [Ping timeout: 240 seconds]
<red_menace> using thr enumerable class is more idiomatic
<red_menace> so you re just looking at adding the elements in an array?
<jleigh_> i am trying to iterate over an array and find the subarray with the largest sum
<jleigh_> kadanes algorithm i believe its called
<havenwood> jleigh_: which pair of two neighboring elements has the highest sum?
<jleigh_> doesnt have to be 2 could be more
<havenwood> jleigh_: you want to find those two values? or something else? maybe a gist of your code so far will help
Meta5 has joined #ruby-lang
<|jemc|> jleigh_ | doesnt have to be 2 could be more
<havenwood> jleigh_: the largest sum then will be all of the positive numbers
<jleigh_> do i post the link to my gist
GBrawl_ has quit [Quit: Lingo - http://www.lingoirc.com]
<|jemc|> wouldn't the largest sum be all positive numbers
<|jemc|> yep
<havenwood> jleigh_: yeah, the link to it
Meta5 has quit [Client Quit]
<jleigh_> right now it returns 50 with that array... because it isnt resetting
<havenwood> jleigh_: what would the expected return value be for?: [5, -2, 10, 6, 0, 1]
<jleigh_> i tried using the method .each_with_index....but i kept getting the error nil can't be coerced into Fixnum (TypeError), when i tried to increment the index
<jleigh_> it should return 17
<jhass> jleigh_: why not 20?
<jleigh_> how do you come by 20?
<havenwood> jleigh_: the sum of each element
<jleigh_> o
<havenwood> jleigh_: they're all contiguous
<jhass> 5-2=3+10=13+6=19+0=19+1=20
<havenwood> ljarvis: so it'd be 20?
<havenwood> ljarvis: oops, sorry, misstell
<havenwood> dyslexia...
TheToad has quit [Read error: Connection reset by peer]
<jleigh_> actually im not sure
<jleigh_> im confused....
<jleigh_> ok let me get the question....my appologies
<jleigh_> Given a array arr[1..n] of integers. Write an algorithm to find the sum of contiguous subarray within the array which has the largest sum
GBrawl has joined #ruby-lang
<jhass> sounds like 20 is valid to me
<jhass> if we change -2 to -6 it would be 17
<jleigh_> ok yes it does... but my code isnt returning that
<jleigh_> where am i going wrong
pkondzior____ has joined #ruby-lang
pkondzior____ has left #ruby-lang [#ruby-lang]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> for one your count variable should always be 1
SqREL___________ has joined #ruby-lang
<jhass> since x is always 0
<havenwood> jleigh_: you'd need to handle situations like: [5, -2, 3, -4, 5, -6, 7]
<jleigh_> ok
skammer3 has joined #ruby-lang
<jleigh_> yes i need to be able to handle those situations
<jleigh_> thats why i choose the for loop
<jleigh_> i figured a double for loop would do the trick
<jhass> jleigh_: well think about what your two loops do
<jhass> they both iterate over the whole array, always
<jhass> if we take havenwood last example array
<jleigh_> yea
<jleigh_> i was looking ofr something similar to the javascript for loop
<jhass> your outer loop could be at -4 or example
<jhass> and your inner loop would start at the first 5 again
skammer2 has quit [Ping timeout: 245 seconds]
<jleigh_> right thats my issue
SqREL___________ has quit [Ping timeout: 244 seconds]
<jhass> so for the iterative approach you should look at methods like Array#each_with_index (which increments the index for you, you don't need to do it) and Fixnum#upto
Blaguvest has quit [Ping timeout: 244 seconds]
<jleigh_> i tried that also and got this error
<jleigh_> nil can't be coerced into Fixnum (TypeError)
michaeldeol has joined #ruby-lang
<jleigh_> ill show you my code for that try
<jhass> well, we don't see try
<jhass> so just that error message means nothing to us
<jhass> * see your try
<jleigh_> right...im going to put it on gist give me a second
<jleigh_> so this produces that error
<jhass> on line 19 I guess
<jleigh_> yes
emmesswhy has joined #ruby-lang
<jhass> now, what is i in the last iteration of the outer loop and what is i+1 then and is that still a valid index for the array?
michaeldeol has quit [Client Quit]
TheToad has joined #ruby-lang
<jleigh_> and when i put i to the console it doesnt return nil...so i dont understand why i cant add to it
<jhass> >> a = [1]; a.each_with_index {|e, i| p a[i+1] }
<eval-in_> jhass => nil ... (https://eval.in/201993)
<jhass> ^ do you understand this?
<jleigh_> i in the last iteration is supposed to be 1
<jleigh_> the index of 1
<jhass> note that ruby arrays are 0-indexed
_ht has quit [Remote host closed the connection]
<jleigh_> yea i know
<jhass> the first element is at index 0, the second at 1 and so on
apeiros has quit [Remote host closed the connection]
<jleigh_> i in the last iteration is 3
<havenwood> 1.upto(a.size).map { |n| a.each_cons(n).with_index.map { |e, i| [[i, n], e.inject(:+)] }.to_h }.inject(:merge).max_by(&:last).first
apeiros has joined #ruby-lang
<jhass> oh, we're spoiling solutions now?
<jleigh_> hmmm
<jhass> 1.upto(a.size).flat_map {|n| a.each_cons(n).to_a }.map {|sub| sub.inject(:+) }.max
<jhass> but ignore that, let's understand why yours fails
<havenwood> jhass: just playing around with variations
<havenwood> jhass: i don't think that's along the lines of the type of solution being sought
michaeldeol has joined #ruby-lang
<havenwood> just an aside, never mind me
<jleigh_> so this is practive for an interview... i doubt ill be able to re do what havenwood just produced...i am trying to come up with something more digestable
seank_ has quit [Remote host closed the connection]
<jleigh_> practice*
<havenwood> jhass: i always forget about flat_map :)
seank_ has joined #ruby-lang
<jhass> havenwood: kinda need to force myself to it too still ;)
<jleigh_> flat map?
<jhass> jleigh_: anyway, did you understand now that arr[i+1] will return nil in your last iteration since it's not a valid index?
<jleigh_> im going to look that one up
<jleigh_> yes
<jleigh_> i just realize this
hellangel7 has quit [Ping timeout: 272 seconds]
<jleigh_> so that means i need a while loop to check the length of the array
michaeldeol has quit [Client Quit]
<jleigh_> or something of that nature
<jhass> or you just use .upto to generate your induces since you don't really use the provided e anyway
<jhass> *indices
<havenwood> seems nice to return: [starting_index, size]
<jhass> or however you spell that
<havenwood> unless you really only care about the size
<havenwood> err, sum
<jhass> I think the assignment is pretty clearly about the sum
<havenwood> guess i was thinking more general purpose, good point on assignment
<jleigh_> ok so upto
<havenwood> if it wants the sum it wants the sum
<jleigh_> so since i dont use e...i can do each index
<jleigh_> .each_index*
<jleigh_> and then use .up to
<havenwood> i want the slice!
<jleigh_> .slice!
<jleigh_> ?
<jleigh_> im kind of confused about how to use up to
Forgetful_Lion has joined #ruby-lang
<jhass> >> 0.upto(5) do |i| print i; end
<eval-in_> jhass => 0123450 (https://eval.in/201994)
<jhass> ignore the last 0 there :P
<jleigh_> :)
<jhass> (it's there because of how the bot evaluates/displays things)
<havenwood> >> [5.times.to_a, [*0..4], 0.upto(4).to_a]
<eval-in_> havenwood => [[0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]] (https://eval.in/201995)
<havenwood> jleigh_: ^ sometimes it's just different ways of saying the same thing
<jhass> well
<jleigh_> right
<jhass> >> 5.upto(9) do |i| print i; end
<eval-in_> jhass => 567895 (https://eval.in/201996)
<jhass> cuts out .times ;)
<jleigh_> i understand how upto works but in terms of the loop how does up to fit in
tkuchiki has joined #ruby-lang
<jleigh_> im using it to generate the indexes
<havenwood> >> 5.times.with_object(5).map(&:+)
<eval-in_> havenwood => [5, 6, 7, 8, 9] (https://eval.in/201997)
<havenwood> :P
<havenwood> fine.
<havenwood> no times
<havenwood> >> 5.step(9, 1) { |i| print i }
<eval-in_> havenwood => 567895 (https://eval.in/201998)
<havenwood> nor step.
<havenwood> just extra baggage
<jhass> 0.upto(arr.size-1) do |i| 1.upto(arr.size-i) do |n| i.upto(i+n) do |j| or something like that, probably contains a off by one error
<jleigh_> arr.upto(arr.length) { |n| n + 1 }
michaeldeol has joined #ruby-lang
<jhass> >> [].upto
<eval-in_> jhass => undefined method `upto' for []:Array (NoMethodError) ... (https://eval.in/201999)
zz_dlu has quit [Quit: ZNC - http://znc.in]
GaelanAintAround has quit [Quit: Bye!]
<jleigh_> sorry not comprehending
<jhass> yep, off by one, 0.upto(arr.size-1) do |i| 0.upto(arr.size-i-1) do |n| p i.upto(i+n) do |j| is right
<jhass> (except for the extra p)
sarkyniin has quit [Quit: Quitte]
zz_dlu has joined #ruby-lang
<jleigh_> so i am trying to replace arr[i+1] with the .upto method in some way
<jhass> jleigh_: well, look at the problem, what do you need to compute? the sum over _what_ do you need? how do you get to that _what_?
GaelanAintAround has joined #ruby-lang
<jhass> your both attempts have a problem: they start over at the beginning of the inner loop
emmesswhy has quit [Quit: This computer has gone to sleep]
<jleigh_> right
<jhass> that yields to series of idices like [3, 0, 1, 2, 3]
migbar has joined #ruby-lang
<jleigh_> what do you mean by that
TheToad has quit [Read error: Connection reset by peer]
snsei has quit [Remote host closed the connection]
<jhass> you don't actually do anything with the index of the inner loop, for each element you just add the element that comes after it arr.size times to it
<jleigh_> ok....i got that
<jhass> and if you would do something with the index of the inner loop, you would work with, for arr.size = 3, you would work with [0, 0, 1, 2], [1, 0, 1, 2], [2, 0, 1, 2]
nathanstitt has quit [Ping timeout: 260 seconds]
<jhass> what you want is [0], [1], [2], [0, 1], [1, 2], [0, 1, 2]
danijoo has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jleigh_> right
danijoo has joined #ruby-lang
<jhass> or for arr.size = 4: [0], [1], [2], [3], [0, 1], [1, 2], [2, 3], [0, 1, 2], [1, 2, 3], [0, 1, 2, 3]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
migbar has quit [Ping timeout: 260 seconds]
<jleigh_> if i understand correctly
<jhass> my example uses the outer loop to compute the start index (i), the middle loop for the subarray length to look at (n) and the inner loop for the subarray indices into the actual array (j)
nathanstitt has joined #ruby-lang
<jleigh_> i need [0,1,2] then [1, 2] then [2]
<jhass> no more than that
havenwood has quit []
<jhass> for example [-1, -2, 200, -3] should yield 200
GBrawl has quit [Quit: Lingo - http://www.lingoirc.com]
<jleigh_> i thought it should yield 197
<jhass> [200] is a valid subarray
<jleigh_> yea i know
skammer3 has quit [Ping timeout: 244 seconds]
<jleigh_> but it should be contiguous
<jhass> well, that term isn't too well defined IMO, but I'd argue that in a series of one element is always contiguous
centrx has joined #ruby-lang
<jleigh_> ok ok
<jleigh_> so the way you proposed
<jleigh_> im not seeing where id be putting that
<jleigh_> current_sum = current_sum + 0.upto(arr.size-1) do |i| 0.upto(arr.size-i-1) do |n| p i.upto(i+n) do |j| end end end
cornerma1 has joined #ruby-lang
<jleigh_> when i do that ...thats not right
<jhass> it's the whole loop
<jhass> just sans the summing and maxima logic
<jleigh_> so im getting rid of the 2 loops i had before and using this
<jleigh_> lol
AKASkip has quit [Ping timeout: 244 seconds]
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
TheToad has joined #ruby-lang
<jleigh_> but when i call the method ... it returns this
<jleigh_> #<Enumerator: 0:upto(0)> #<Enumerator: 0:upto(1)> #<Enumerator: 0:upto(2)> #<Enumerator: 0:upto(3)> #<Enumerator: 1:upto(1)> #<Enumerator: 1:upto(2)> #<Enumerator: 1:upto(3)> #<Enumerator: 2:upto(2)> #<Enumerator: 2:upto(3)> #<Enumerator: 3:upto(3)> 0
<jhass> as said
<jhass> it contains no summing and maxima finding logic yet
red_menace has quit [Quit: peer reset by connection]
<jleigh_> ohhhh
<jleigh_> ok
<jleigh_> gotchya
<jleigh_> thats for your patience... i truly appreciated it. been working on this since morning and its kinda burnt me out.
<jleigh_> thanks*
SqREL___________ has joined #ruby-lang
JL_ has joined #ruby-lang
JL_ has left #ruby-lang [#ruby-lang]
RobertBirnie has joined #ruby-lang
kwd has quit [Ping timeout: 272 seconds]
lewix has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheToad has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
jleigh_ has quit [Ping timeout: 246 seconds]
rsl has quit [Ping timeout: 272 seconds]
rsl has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
kwd has joined #ruby-lang
lewix has joined #ruby-lang
mistym has quit [Remote host closed the connection]
migbar has joined #ruby-lang