ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
banisterfiend has quit [Ping timeout: 244 seconds]
petercooper has joined #ruby-lang
wpaulson has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
coryf_ has joined #ruby-lang
postmodern has quit [Ping timeout: 240 seconds]
coryf has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby-lang
yugui_zzz is now known as yugui
nebbie has joined #ruby-lang
banisterfiend has joined #ruby-lang
crackity_jones has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
kaochenlong has joined #ruby-lang
dhruvasagar has joined #ruby-lang
krisfields has joined #ruby-lang
wpaulson_ has joined #ruby-lang
jsilver has joined #ruby-lang
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
thone has quit [Read error: Operation timed out]
<erikh> drbrain: any chance you're around?
SubSpawn has quit [Read error: Operation timed out]
SubSpawn has joined #ruby-lang
banisterfiend has quit [Ping timeout: 248 seconds]
<tef> out of curiousity does anyone have experience with parse.y in mri ?
umttumt has joined #ruby-lang
ryanf has joined #ruby-lang
krisfields has quit [Remote host closed the connection]
yannis has quit [Quit: yannis]
srbartlett has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
gix has quit [Ping timeout: 252 seconds]
cantonic_ has joined #ruby-lang
gix has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
srbartlett has joined #ruby-lang
wallerdev has joined #ruby-lang
cantonic has quit [Ping timeout: 265 seconds]
cantonic_ is now known as cantonic
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
ku1 has joined #ruby-lang
arooni-mobile has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
kurko_ has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
kvirani has quit [Read error: Connection reset by peer]
neoesque has joined #ruby-lang
dhruvasagar has joined #ruby-lang
kvirani has joined #ruby-lang
Defusal has quit [Excess Flood]
Defusal has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
wpaulson has joined #ruby-lang
stardiviner has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
petercooper has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Hakon|mbp has quit [Quit: Leaving...]
codewrangler has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby-lang
igotnolegs has joined #ruby-lang
_br_ has quit [Excess Flood]
kurko_ has quit [Quit: This computer has gone to sleep]
_br_ has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
dv310p3r has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
codewrangler has joined #ruby-lang
scientes has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
nazty has joined #ruby-lang
ryanf has joined #ruby-lang
spuk has joined #ruby-lang
rking has quit [Remote host closed the connection]
rking has joined #ruby-lang
Zyclops has joined #ruby-lang
espinet has joined #ruby-lang
espinet has left #ruby-lang [#ruby-lang]
espinet has joined #ruby-lang
<espinet> why do symbols exist in ruby?
livinded has joined #ruby-lang
<espinet> i understand that they come with better performance than strings in certain aspects, but fundamentally… why where they added
<livinded> how can I take a fixnum and convert it to a hex escaped string? (eg. 1 -> "\x31")
<erikh> 1.chr.sprintf("\x%x") should be close
<erikh> just ignore all of that
<livinded> ah, that's what I was looking for. chr
<erikh> yeah, although it'd be something like '\x%x' % [ 1.chr ]
<livinded> chr does it by itself
<erikh> well, inspect is doing the hex-escaping
<livinded> oh
<erikh> :)
<espinet> nobody?
<erikh> espinet: why does lisp have symbols?
<erikh> why do we have null terminated strings in some languages, header-based ones in others, and even others have no distinction on length?
<livinded> erikh: invalid escape sequence with \x
<erikh> livinded: sec.
<tef> erikh: i'd take a wager that symbols are in as immutable strings for use internally. not much use if you can change a string once and mutate every method name using it
<erikh> mmm no
<erikh> livinded: '\x%02x' % [ "1".ord ]
<erikh> so if you have a fixnum, to_s between the number and ord
<espinet> erikh: i don't have much experience in lisp so i couldn't say
<erikh> symbols are there for performance reasons and are preferred in certain situations over strings.
wpaulson has joined #ruby-lang
<erikh> 99% of the time it doesn't matte.r
<espinet> so you are saying its strictly performance?
ryanf has quit [Quit: leaving]
<erikh> mutability is less of an issue but they aren't immutable, but easily transformed
<erikh> e.g., (:foo.to_s + "_bar").to_sym
<erikh> err, are immutable, but easily transformed.
<espinet> how are symbols easily transformed?
<erikh> I just showed you code.
<livinded> erikh: fuuuuu apparently rubininus doesn't have ord implemented or it's broken
<espinet> oh
<erikh> livinded: could be an encoding issue
<erikh> try this
<erikh> 1.to_s[0,1]
<lianj> "1".unpack("C")
<erikh> yeah, that'd do it
<erikh> unpack's probably a better solution than my sprintf stuff anyhow
<livinded> had to install 3 different versions of ruby today due to incompatabilities :(
<livinded> all kinds of annoying issues with qrcode encoding
<tef> 1.8 1.9 and 1.9.3?
wpaulson has quit [Client Quit]
<livinded> 1.9.3, 1.8.7, rbx
<erikh> livinded: what library is this?
<livinded> rqrcode
<erikh> oh really
<livinded> doesn't like encoding binary data that's utf-8
<erikh> we're using that on a stupid little project to encode PGP keys
<erikh> err, cmaujean and I
<erikh> .... who doesn't seem to be in here atm
<livinded> erikh: honestly I'm just doing some really stupid stuff. The library probably is pretty good, but it is a known bug
<erikh> it's slow, but that's not surprising really
<livinded> better than piping out to qrencode
<erikh> right, a C extension would be ideal but it'd still be hard to manage.
<livinded> and was hoping it would handle binary data better than qrencode but it doesn't seem to
<erikh> all the back and forth of communicating the structure, etc.
<livinded> apparently the spec saying that it support 8bit byte encoding of data is bullshit, or all the encoders are broken
<bnagy> try msgpack maybe
<erikh> msgpack? for qr codes?
<bnagy> fast, encodes binary data really well
banisterfiend has quit [Ping timeout: 252 seconds]
<livinded> bnagy: it's more a matter of I want to use qrcodes
<erikh> a QR code is a visual representation of data, typically used by cell phones
<bnagy> erikh: I dunno, I just saw 'encoding binary, no work'
<erikh> bnagy: no worries
<lianj> ["foo".encoding, "foo".unpack("C*").pack("C*").encoding]
<livinded> it's much harder to put shellcode in a qrcode than I thought
<postmodern> livinded, checkout https://github.com/hellvinz/dmtx
<lianj> => [#<Encoding:UTF-8>, #<Encoding:ASCII-8BIT>]
<erikh> livinded: bwahahaha
<erikh> you're sick in the head.
<postmodern> erikh, you'd be surprised at how little input validation is performed on barcodes/qrcodes
<livinded> as soon as I can get a return address into the stack somewhere I'll be set
<postmodern> livinded, fuzzing qrcodes i take it?
<livinded> encoding everything from 0x0-0x7f works fine, 0x80-0x9f just shits itself, and 0xa0-0xff gets mangled into multibytes chars for some reason
<livinded> postmodern: sort of
<livinded> did learn that 0x1f is perfectly acceptable ascii NOP in x86 though
<bnagy> there are shellcode -> ascii encoders
<livinded> bnagy: I know, I'm doing that
<livinded> addresses in the stack space however aren't ascii representable
<bnagy> it's a bit like the irc bot project for hackers :>
<livinded> I'm trying to write some crazy ret2libc code to jump into the stack
<bnagy> uh
savage- has joined #ruby-lang
<bnagy> that makes no sense
<livinded> on linux stack starts in 0xbf.....
<livinded> non-ascii representable. Thus I can't represent it in a qr code
<bnagy> nah I meant about using ret2libc to jump into the stack
<livinded> bnagy: ROP
<livinded> looking for code in libc to use for it
<bnagy> yes, I'm familiar with the technique :)
<bnagy> what's your basic vuln, anyway?
<livinded> custom code
<livinded> simple stack overflow
<bnagy> hrm. 'normal' linux is going to have stack cookies etc
<bnagy> you need to get some eip control first
<bnagy> then worry about the shellcode
<erikh> lookin' for jmp in all the wrong places
<erikh> fuck today. I'm getting wasted.
<bnagy> \m/
<bnagy> I need to linux things first :(
<erikh> I need to man up and finish my process monitor
banisterfiend` has joined #ruby-lang
<tef> livinded: 'mangled into multibytes' - this sounds like your string is being treated as unicode points rather than bytes and being implicitly encoded into utf-8
msaffitz has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
espinet has quit [Quit: espinet]
ttilley_off is now known as ttilley
robbyoconnor has quit [Read error: Connection reset by peer]
hahuang65_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
<livinded> bnagy: I have control of eip already
imperator has joined #ruby-lang
<livinded> the problem is moving it somewhere that has code I control
<livinded> tef: but as far as I know, qrcodes don't support unicode. It's 8bit bytes
<tef> livinded: so if the string you're building isn't a bytestring, but a 'real' string, the library might be encoding it on your behalf
<livinded> tef: I tried encoding it outside of ruby
<livinded> did the same thing
<livinded> I think it's an issue with how zxing decodes qrcode images
<livinded> I'm using a different thing now and it's doing the same thing though with different mangling
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
msaffitz has joined #ruby-lang
mistym has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Fire walk with me]
msaffitz has quit [Quit: Computer has gone to sleep.]
chutwig has quit [Quit: Computer has gone to sleep.]
andrewhl has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
imperator has quit [Quit: Leaving]
cantonic has quit [Quit: cantonic]
robbyoconnor has quit [Read error: Connection reset by peer]
bglusman has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
Natch has quit [K-Lined]
andrewhl has quit [Remote host closed the connection]
crackity_jones has quit [Ping timeout: 245 seconds]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
igotnolegs has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
krisfields has joined #ruby-lang
nazty has quit [Quit: WeeChat 0.3.7]
livinded has quit [Remote host closed the connection]
Berglund has quit [Quit: Computer died.]
dhruvasagar has quit [Ping timeout: 255 seconds]
krisfields has quit [Remote host closed the connection]
nazty has joined #ruby-lang
yxhuvud has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
dtheg has quit [Read error: Connection reset by peer]
dtheg_ has joined #ruby-lang
dtheg_ is now known as dtheg
AlHafoudh has joined #ruby-lang
bglusman has joined #ruby-lang
bglusman has quit [Ping timeout: 245 seconds]
outsmartin has joined #ruby-lang
jsilver has quit [Remote host closed the connection]
perry is now known as perryh_away
nazty has quit [Quit: WeeChat 0.3.7]
perryh_away is now known as perryh
umttumt has quit [Remote host closed the connection]
dalekurt has quit [Quit: Zzz...]
kitallis has joined #ruby-lang
dalekurt has joined #ruby-lang
gregmoreno has quit [Read error: Connection reset by peer]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
gregmoreno has joined #ruby-lang
apeiros_ has joined #ruby-lang
workmad3 has joined #ruby-lang
zenspider has quit [Ping timeout: 248 seconds]
scientes has quit [Ping timeout: 244 seconds]
xtagon has quit [Ping timeout: 265 seconds]
dc5ala has joined #ruby-lang
AlHafoudh has quit [Quit: Computer has gone to sleep.]
livinded has joined #ruby-lang
savage- has quit [Remote host closed the connection]
Torrieri has quit [Ping timeout: 265 seconds]
Natch has joined #ruby-lang
Berglund has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
robin has joined #ruby-lang
robin is now known as robin850
Z33K|Lux has quit []
ryanf has joined #ruby-lang
mssola has joined #ruby-lang
symm- has joined #ruby-lang
Berglund has quit [Quit: Computer died.]
zz_chrismcg is now known as chrismcg
solars has joined #ruby-lang
coryf_ has quit [Read error: Connection reset by peer]
coryf has joined #ruby-lang
Kellin has quit [Read error: Connection reset by peer]
tallship has quit [Ping timeout: 264 seconds]
tallship has joined #ruby-lang
opus has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
savage- has joined #ruby-lang
mouzone_ has joined #ruby-lang
frem has quit [Ping timeout: 265 seconds]
frem has joined #ruby-lang
fgomez has quit [Ping timeout: 265 seconds]
mouzone has quit [Ping timeout: 264 seconds]
fgomez has joined #ruby-lang
dhruvasagar has joined #ruby-lang
saLOUt has joined #ruby-lang
opus has quit []
srbartlett has quit [Remote host closed the connection]
zmack has joined #ruby-lang
corecode has quit [Read error: Connection reset by peer]
publicvoid_ has quit [Ping timeout: 265 seconds]
robotmay has joined #ruby-lang
jsilver has joined #ruby-lang
postmodern has joined #ruby-lang
zmack has quit [Remote host closed the connection]
zmack has joined #ruby-lang
ryanf has quit [Quit: leaving]
dalekurt has quit [Remote host closed the connection]
dalekurt has joined #ruby-lang
icooba has joined #ruby-lang
S1kx has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
S1kx has joined #ruby-lang
yannis has joined #ruby-lang
yannis has quit [Client Quit]
perryh is now known as perryh_away
Criztian has joined #ruby-lang
d3vic3 has joined #ruby-lang
savage- has quit [Remote host closed the connection]
Criztian has quit [Ping timeout: 245 seconds]
achamian has joined #ruby-lang
achamian has quit [Client Quit]
achamian has joined #ruby-lang
sora_h is now known as s0ra_h
d3vic3 has quit [Quit: leaving]
d3vic3 has joined #ruby-lang
workmad3 has joined #ruby-lang
jsilver has quit [Remote host closed the connection]
cdt has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
cdt has joined #ruby-lang
livinded has quit [Remote host closed the connection]
future_chimp has joined #ruby-lang
tjadc has joined #ruby-lang
cschwartz has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
Xzyx987X_ has quit [Ping timeout: 265 seconds]
s0ra_h is now known as sora_h
cdt has joined #ruby-lang
Xzyx987X has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
sora_h is now known as s0ra_h
toretore has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
gnufied has joined #ruby-lang
cdt has quit [Client Quit]
cdt has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
sepp2k has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
dejongge has joined #ruby-lang
dejongge has quit [Client Quit]
justinmcp has joined #ruby-lang
dejongge has joined #ruby-lang
kaochenlong has quit [Quit: kaochenlong]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
s0ra_h is now known as sora_h
charlies_ has joined #ruby-lang
cdt has joined #ruby-lang
charlies_ is now known as charliesome2
Zyclops has quit [Quit: Leaving.]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
neoesque has quit [Quit: Bye!]
tjadc has quit [Read error: Connection reset by peer]
tjadc has joined #ruby-lang
sora_h is now known as s0ra_h
future_chimp has quit [Quit: This computer has gone to sleep]
robin850 has quit [Read error: Operation timed out]
future_chimp has joined #ruby-lang
hbs_ has joined #ruby-lang
hbs_ has quit [Client Quit]
hbs_ has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
s0ra_h is now known as sora_h
yumike has joined #ruby-lang
NOKAH has joined #ruby-lang
Hakon|mbp has quit [Ping timeout: 265 seconds]
NOKAH has quit [Client Quit]
Hakon|mbp has joined #ruby-lang
hbs_ has quit [Quit: hbs_]
hbs_ has joined #ruby-lang
future_chimp has quit [Quit: Leaving]
hbs_ has left #ruby-lang [#ruby-lang]
future_chimp has joined #ruby-lang
joshwines has quit [Ping timeout: 244 seconds]
<tjadc> I have a test string 'myword$call_23.friend.id'. I would like regex that will group \.\w+ but the group should return the whole match, for instance '.friend.id'. I currently have \$call_(\d+)(\.\w+)* as my regex. According to rubular, the whole word matches, however the group is only returning the last occurence, namely '.id' of the last group
<darix> tjadc: shouldnt it return '.friend'
<darix> i dont see how your regexp would give you '.id'
<tjadc> I don't either, but it does
<tjadc> check it on rubular
<tjadc> a version I created now that works is, \$call_(\d+)((\.\w*)*)
<tjadc> just that it seems slightly verbose
<darix> this is really weird
<tjadc> darix: don't forget the * at the end
<darix> \w might not contain the .
<tjadc> that is what tells it to find .friend.id
<tjadc> It doesn't, I have explicitly told it to find .
<darix> /\$call_(\d+)(\..+)/
<darix> no
<darix> you havent
<darix> for that you want
corecode has joined #ruby-lang
<darix> \$call_(\d+)([\.\w]+)*
<corecode> o hi
<corecode> is there a way to do a IO tee, or a computational IO?
<tjadc> darix: perfect, thanks
<corecode> i.e. something were i can intercept all reads/writes from/to a IO
<tjadc> darix: I was caught up on the idea that I had to have 2 or more \w characters, but that isn
<corecode> writes is sufficient
<tjadc> t the case
<tjadc> Thanks a lot
<darix> corecode: what do you want to do?
<corecode> darix: i want to intercept all output to $stdout and write to stdout and to a file
<corecode> i.e. something like $stdout = IOTee.new($stdout, File.open('foo', 'w'))
<corecode> where IOTee would be something IO-like that can intercept any output
joshwines has joined #ruby-lang
<darix> well
<darix> if you dont need the stdout output anymore
<darix> you could just do $stdout = File.new...
<corecode> that will just write to that file
<corecode> i'd like to intercept writes
<darix> io.reopen it is
dfr|mac has joined #ruby-lang
<corecode> so that i can handle them, writing them to the original stdout and to a file
<darix> well write a small class that does the duplication
<darix> then $stdout.reopen :p
<corecode> sure
<corecode> but what do i have to implement to act like IO
<corecode> is it sufficient to do class MyIO < IO; def write(o); ...; end; end
<corecode> or does it have to be also puts, print, etc.
<darix> try it and find out?:)
<corecode> well, without formal specification this could change any time
<corecode> or between implementations
<corecode> that's why i'm asking
JustinCampbell has joined #ruby-lang
robin850 has joined #ruby-lang
robin850 has quit [Client Quit]
<banisterfiend`> anyone know the rules surrounding to_ary and to_splat ?
jmeeuwen has quit [Ping timeout: 252 seconds]
<corecode> darix: thanks, i think i that might work.
jmeeuwen has joined #ruby-lang
robin850 has joined #ruby-lang
future_chimp has quit [Ping timeout: 264 seconds]
yugui is now known as yugui_zzz
future_chimp has joined #ruby-lang
pbjorklund has joined #ruby-lang
pbjorklu1d has quit [Ping timeout: 246 seconds]
Tick-Tock has quit [Quit: ZNC - http://znc.in]
kke has joined #ruby-lang
jxie has quit [Quit: leaving]
justinmcp has quit [Remote host closed the connection]
chrislgibson has joined #ruby-lang
brunocoelho has joined #ruby-lang
ruurd has joined #ruby-lang
Criztian has joined #ruby-lang
bryancp has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
tubbo is now known as tubbo`remote
tubbo`weekend is now known as tubbo
gnufied has quit [Quit: Leaving.]
dfr|mac has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
espinet has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
future_chimp has quit [Quit: This computer has gone to sleep]
future_chimp has joined #ruby-lang
postmodern has quit [Quit: Leaving]
joast has quit [Quit: Leaving.]
tubbo`work has joined #ruby-lang
tubbo has quit [Ping timeout: 265 seconds]
tommyvyo has joined #ruby-lang
joast has joined #ruby-lang
A124 has joined #ruby-lang
sailias has quit [Ping timeout: 264 seconds]
kedare has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
future_chimp has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Ping timeout: 250 seconds]
future_chimp has joined #ruby-lang
kaochenlong has joined #ruby-lang
indstry has joined #ruby-lang
bglusman has joined #ruby-lang
dv310p3r has joined #ruby-lang
aeroproof has joined #ruby-lang
coryf has quit [Remote host closed the connection]
gsav has joined #ruby-lang
<tsou> bli
<tsou> (oops, sorry about that)
slyphon has joined #ruby-lang
indstry has quit [Remote host closed the connection]
tubbo`work has quit [Quit: leaving]
tubbo has joined #ruby-lang
absker has joined #ruby-lang
absker has left #ruby-lang [#ruby-lang]
<kke> unforgettable
Musfuut has joined #ruby-lang
future_chimp has quit [Quit: This computer has gone to sleep]
moisesv has joined #ruby-lang
<whitequark> sigh
<whitequark> I have no idea how did I achieve such a result
<whitequark> but my code (~8k LOC) crashes MRI <1.9.2-p320
future_chimp has joined #ruby-lang
<whitequark> randomly, that is.
<whitequark> no C extensions, obviously
<yorickpeterse> So many potential causes for that :)
aeroproof has quit [Quit: leaving]
<whitequark> like this.
<Mon_Ouie> Well, if you don't use any C extension, it *is* a bug in Ruby anyway
<whitequark> indeed
<whitequark> I'm tempted to just add a check to gemspec
<whitequark> >=1.9.2-p320
<yorickpeterse> what's in furnace-avm2/abc/primitives/record.rb on lin 141
<yorickpeterse> + ?
digitalbane has joined #ruby-lang
<banisterfiend`> whitequark: any more info when u run in gdb?
injekt has joined #ruby-lang
<whitequark> yorickpeterse: instance_variable_get(:"@#{field}") & constant != 0
tekin has joined #ruby-lang
<yorickpeterse> Yeah, there's your problem
<injekt> bad timing
<yorickpeterse> use && instead of &
<yorickpeterse> Because I doubt you want a bitwise AND
<whitequark> yorickpeterse: what? I do want a bitwise AND
<yorickpeterse> Ah
<matti> Hehe
<yorickpeterse> hmpf
mistym has joined #ruby-lang
<whitequark> banisterfiend`: not my machine. but when I caught one of those bugs I lost in GC internals
<Mon_Ouie> Not something that would (or should, at least) cause a crash anyway
<whitequark> Mon_Ouie: nothing should cause an rb_bug() :)
<yorickpeterse> whitequark: what happens if you run the snippet standalone?
<whitequark> yorickpeterse: obviously, it works
<Mon_Ouie> Yeah, but bitwise and seemed kind of unlikely to be the reason at first
<whitequark> yorickpeterse: it's not a trigger per se
<yorickpeterse> hmm
yumike has quit [Quit: Computer has gone to sleep.]
<whitequark> good, I also crash jruby (at least without -XX:-TieredCompilation)
cantonic has joined #ruby-lang
<whitequark> and it just never worked properly on rubinius.
<whitequark> (I have had filed ~7 jruby bugs while working on this project. It works really good when it works, through.)
<whitequark> erm
<whitequark> that is, I don't crash jruby itself but JVM. It aborts.
fgomez has quit [Ping timeout: 248 seconds]
JohnBat26 has joined #ruby-lang
sailias has joined #ruby-lang
andrewhl has joined #ruby-lang
alexkane has joined #ruby-lang
chrismcg is now known as zz_chrismcg
zz_chrismcg is now known as chrismcg
jmeeuwen has quit [Quit: Caught sigterm, terminating...]
thisirs has joined #ruby-lang
kvirani has joined #ruby-lang
jmeeuwen has joined #ruby-lang
Axsuul has quit [Ping timeout: 248 seconds]
hahuang65_ has quit [Quit: Computer has gone to sleep.]
bfreeman has quit [Quit: bfreeman]
outoftime has joined #ruby-lang
charliesome2 has quit [Quit: Textual IRC Client: www.textualapp.com]
akira989 has joined #ruby-lang
Zyclops has joined #ruby-lang
cdt has quit [Remote host closed the connection]
msaffitz has joined #ruby-lang
cdt has joined #ruby-lang
Zyclops has quit [Ping timeout: 248 seconds]
Zyclops has joined #ruby-lang
enebo has joined #ruby-lang
jxie has joined #ruby-lang
Carnage\ has joined #ruby-lang
Zyclops has quit [Ping timeout: 244 seconds]
<rue> whitequark: Why would & constant be 0?
<rue> Or, well, when, rather. Perhaps you can get rid of that anyway…but maybe it’s completely unrelated anyway
kaochenlong has quit [Quit: kaochenlong]
msaffitz has quit [Quit: Computer has gone to sleep.]
chutwig has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<tef> whitequark: do you have the urls for those bugs? I'm curious
kyrylo has quit [Ping timeout: 264 seconds]
kaochenlong has joined #ruby-lang
coryf has joined #ruby-lang
darix has quit [Ping timeout: 250 seconds]
dv310p3r has quit [Ping timeout: 264 seconds]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
symm- has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
outoftime has quit [Quit: Leaving]
coryf has quit [Read error: Connection reset by peer]
coryf has joined #ruby-lang
<whitequark> rue: simple
<whitequark> the `constant' variable is an upvalue from an outer method
<whitequark> tef: naw, I think that only one was submitted to JIRA. I've reported them on #jruby
chutwig has quit [Quit: Computer has gone to sleep.]
dv310p3r has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
jperry2 has joined #ruby-lang
dfr|mac has joined #ruby-lang
cirenyc has joined #ruby-lang
jperry2_ has joined #ruby-lang
jperry2 has quit [Client Quit]
jperry2_ has quit [Client Quit]
enroxorz has joined #ruby-lang
cirenyc has quit [Ping timeout: 264 seconds]
brunocoelho has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
wallerdev has joined #ruby-lang
Criztian has joined #ruby-lang
gregmoreno has quit [Read error: Operation timed out]
gregmoreno has joined #ruby-lang
publicvoid_ has joined #ruby-lang
HassanS has joined #ruby-lang
bfreeman has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
savage- has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
zmack has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
dv310p3r has quit [Ping timeout: 264 seconds]
htroyack has joined #ruby-lang
htroyack has left #ruby-lang [#ruby-lang]
troyack has joined #ruby-lang
troyack has left #ruby-lang [#ruby-lang]
dv310p3r has joined #ruby-lang
saLOUt has quit [Quit: Konversation terminated!]
tjadc has quit [Ping timeout: 250 seconds]
Criztian has quit [Ping timeout: 265 seconds]
butchanton has joined #ruby-lang
Criztian has joined #ruby-lang
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
outoftime has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
butchanton has quit [Ping timeout: 244 seconds]
dfr|mac has quit [Remote host closed the connection]
butchanton has joined #ruby-lang
sora_h is now known as s0ra_h
Carnage\ has quit []
robotmay has joined #ruby-lang
msaffitz has joined #ruby-lang
thisirs has quit [Remote host closed the connection]
hynkle has joined #ruby-lang
apeiros_ has joined #ruby-lang
outoftime has quit [Ping timeout: 244 seconds]
future_chimp has quit [Quit: Leaving]
ruurd has quit [Quit: Leaving...]
sailias has quit [Quit: Leaving.]
kvirani has quit [Remote host closed the connection]
hynkle has quit [Quit: Computer has gone to sleep.]
crudson has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
outoftime has joined #ruby-lang
jxie has quit [Ping timeout: 265 seconds]
jxie has joined #ruby-lang
xtagon has joined #ruby-lang
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
dpeter has joined #ruby-lang
brianpWins has joined #ruby-lang
shirmung has joined #ruby-lang
T_Rex_ has joined #ruby-lang
hynkle has joined #ruby-lang
hynkle has quit [Client Quit]
workmad3 has quit [Ping timeout: 252 seconds]
JustinCampbell has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
outsmartin1 has joined #ruby-lang
jperry2 has joined #ruby-lang
brunocoelho has joined #ruby-lang
outsmartin has quit [Ping timeout: 264 seconds]
kaspernj has joined #ruby-lang
wallerdev has joined #ruby-lang
<kaspernj> Can anyone explain what this error means from Enumerator#next: fiber called across stack rewinding barrier
<kaspernj> ?
jperry2 has quit [Quit: jperry2]
jperry2 has joined #ruby-lang
jperry2 has quit [Client Quit]
jperry2 has joined #ruby-lang
<JustinCampbell> kaspernj: it means the iterator is trying to call something outside of the current fiber
<JustinCampbell> where is it happening
jperry2 has quit [Client Quit]
jperry2 has joined #ruby-lang
<kaspernj> JustinCampbell, I am trying to do a "Gnome-Do"-like project for fun. I have an enumerator returning results. It starts by calling next and shows the result. The user then presses down, which calls "next" on the enumerator again, when the error occurs. I am using Gtk2.
<JustinCampbell> can you gist a code sample
<kaspernj> JustinCampbell, is it ok I link you the source on Github (the project is on Github already) ?
<JustinCampbell> sure
cdt has quit [Quit: Ex-Chat]
slyphon has quit [Quit: WeeChat 0.3.7]
mytrile has joined #ruby-lang
slyphon has joined #ruby-lang
<JustinCampbell> kaspernj: what kind of object is @enum?
hynkle has joined #ruby-lang
<kaspernj> JustinCampbell, @enum.class.name gives Enumerator
hynkle has quit [Client Quit]
<kaspernj> JustinCampbell, the enumerator in question is being created on line 36 here: https://github.com/kaspernj/ruby_do_plugin_filesearch/blob/master/lib/ruby_do_plugin_filesearch.rb
brunocoelho has quit [Ping timeout: 264 seconds]
<JustinCampbell> kaspernj: im sorry im not too familiar with what this is trying to achieve
<JustinCampbell> i get that you want up and down to show the next and previous entries
<JustinCampbell> you could try using the cursor index instead of calling #next
<JustinCampbell> @enum[@result_i]
kurko__ has joined #ruby-lang
<kaspernj> JustinCampbell, I will give it a try. Thanks.
kurko_ has quit [Ping timeout: 244 seconds]
<kaspernj> JustinCampbell, []-method is not mentioned in the docs, and I also get a "undefined method `[]'" ? Do you mean I should convert it to an array? I would really like to avoid that, since that might create thousands or results at once, greatly slowing the application down and eating my memory.
<JustinCampbell> agreed
<kaspernj> thousands of*
sfifbo has joined #ruby-lang
sfifbo has left #ruby-lang [#ruby-lang]
sailias has joined #ruby-lang
kvirani has joined #ruby-lang
erpuds has joined #ruby-lang
cube526 has joined #ruby-lang
achamian_ has joined #ruby-lang
shirmung has quit [Read error: Connection reset by peer]
shirmung has joined #ruby-lang
achamian has quit [Ping timeout: 250 seconds]
fayimora has joined #ruby-lang
dpeter has quit [Read error: Connection reset by peer]
T_Rex_ has quit [Ping timeout: 246 seconds]
mytrile has quit [Remote host closed the connection]
A124 has quit [Quit: Leaving.]
cirenyc has joined #ruby-lang
sockmonk has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
hynkle has joined #ruby-lang
hynkle has quit [Client Quit]
tekin has joined #ruby-lang
kaspernj has quit [Read error: Operation timed out]
achamian_ has quit [Ping timeout: 246 seconds]
cube526 has quit [Quit: Bye]
shirmung has quit [Read error: Connection reset by peer]
shirmung has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
shirmung has quit [Read error: Connection reset by peer]
jsilver has joined #ruby-lang
shirmung has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
anjen has joined #ruby-lang
T_Rex_ has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
digitalbane1 has joined #ruby-lang
digitalbane1 has left #ruby-lang [#ruby-lang]
corecode has quit [Quit: leaving]
digitalbane has quit [Ping timeout: 240 seconds]
kaochenlong has quit [Quit: kaochenlong]
moisesv has quit [Quit: moisesv]
A124 has joined #ruby-lang
zmack has joined #ruby-lang
anjen has quit [Quit: anjen]
ruurd has joined #ruby-lang
fayimora has quit [Ping timeout: 245 seconds]
fayimora has joined #ruby-lang
mrsolo has joined #ruby-lang
gsav has quit [Ping timeout: 265 seconds]
dv310p3r has quit [Ping timeout: 264 seconds]
jtoy has joined #ruby-lang
<jtoy> is there any way to speed up requiring gems? it seems that is slowing down my code a lot
<jtoy> I'm writing some very simple ruby scripts, most of the time is in the require
coryf has quit [Ping timeout: 245 seconds]
coryf has joined #ruby-lang
<jtoy> I'm on ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
<yfeldblum> jtoy, might try out falcon's patch
<yfeldblum> jtoy, if you're using rvm, `rvm install 1.9.3 --patch falcon`
zmack has quit [Ping timeout: 264 seconds]
<jtoy> hmm, im not
<jtoy> it takes multiple seconds just for the ruby script to check if a file exists and if so, exit, wtf
<lianj> what gems to you require?
<jtoy> yaml.yajl,optparse,riak,typhoeus, and oauth
<jtoy> if its makes it past the file check, then it uses those gems
<jtoy> yfeldblum: do you know if Ruby 1.9.3-p194 has the patch to go faster?
solars has joined #ruby-lang
<yfeldblum> jtoy, i believe so, at least some of falcon's patches
<jtoy> yfeldblum: but 1.9.3p0 doesn't have them?
<yfeldblum> jtoy, but i'm not sure about that
<yfeldblum> jtoy, maybe, but i'm not really sure one way or the other
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
robin850 has quit [Quit: Konversation terminated!]
rindolf has joined #ruby-lang
<rindolf> Hi all.
<lianj> jtoy: %w[yaml yajl optparse typhoeus oauth].each{|i| require i } takes 0.28 seconds here
<jtoy> lianj: with just those requires its real 0m0.778s for me
<lianj> slow IO ? :D
<FiXato> still don't get why require doesn't take a splat
<jtoy> lianj: it is ec2
<lianj> using bundler?
dv310p3r has joined #ruby-lang
<jtoy> lianj: no, does that make it faster or slower?
<jtoy> slower i would imagine
scientes has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
brunocoelho has joined #ruby-lang
achamian has joined #ruby-lang
achamian has quit [Remote host closed the connection]
brunocoelho has quit [Remote host closed the connection]
neocoin has quit [Ping timeout: 244 seconds]
tekin has joined #ruby-lang
moos3 has joined #ruby-lang
<moos3> is there a quick way to check if a string is yyyy-dd-mm ?
<rindolf> moos3: a regex.
<rindolf> moos3: well, there may be a date parsing module.
<moos3> k
<moos3> rindolf so like http://pastie.org/4227431
<rindolf> moos3: no.
<rindolf> moos3: you need \d instead of d
<moos3> k
<rindolf> I think.
<rindolf> And why do you have slashes inside single-quotes - this is not PHP.
yats has joined #ruby-lang
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<rindolf> moos3: do you wish to account for invalid stuff like 2012-50-05 or 2012-05-20 ?
<mistym> In ruby, regexps aren't quite strings; they're a class of object of their own, with their own methods and everything. So no quoting to turn it into a string: stamp =~ /.../
<rindolf> Well, 2012-05-40
<moos3> yeah rindolf just to make sure its a valid format and date
tjadc has joined #ruby-lang
<moos3> the regex should be (\d{4})\-(\d{2})\-(\d{2})
<moos3> that would check the format
<rindolf> moos3: do you want to capture the three fields?
<rindolf> moos3: well, 2012-50-03 is an invalid date.
<moos3> the user is passing in via cli, as 2012-31-08
<rindolf> Because there isn't a 50th month.
<moos3> yea
<moos3> its year-day-month
<moos3> or i can do day-month-year
daniellutz has joined #ruby-lang
<rindolf> moos3: there isn't a 50th day in a month either.
<rindolf> moos3: but the naïve regex will match nonetheless.
<moos3> yea i know, so how should i handle that case
<rindolf> moos3: you should probably use a date/time library.
<moos3> k
<lianj> maybe, date = Time.parse('foo bar 2012-12-01 baz').strftime("%Y-%m-%d") rescue false
brianpWins has joined #ruby-lang
soahccc` is now known as soahccc
<moos3> k
tommyvyo_ has joined #ruby-lang
dv310p3r has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Ping timeout: 244 seconds]
tommyvyo_ is now known as tommyvyo
zz_wasnotrice has left #ruby-lang [#ruby-lang]
Criztian has quit [Remote host closed the connection]
dv310p3r has joined #ruby-lang
workmad3 has joined #ruby-lang
<whitequark> ok, remember when I said I can crash everything <=1.9.2-p192?
<whitequark> er, -p180
<whitequark> now I have crashed 1.9.3-p194
workmad3 has quit [Ping timeout: 264 seconds]
<whitequark> and it's not like I'm doing something inherently evil. as I've said, no Cexts.
Nisstyre has quit [Ping timeout: 246 seconds]
mssola has quit [Ping timeout: 265 seconds]
<drbrain> whitequark: can you file a bug?
cdt has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
dejongge has quit [Ping timeout: 252 seconds]
thone has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
brunocoelho has joined #ruby-lang
enroxorz has quit [Quit: Leaving]
thone has quit [Quit: leaving]
Axsuul has joined #ruby-lang
<whitequark> drbrain: I can't seem to reproduce it
<whitequark> even if I could, what should I post in the bug? the code in question? it tends to not fail when ran on different machine.
<drbrain> ☹
<whitequark> i.e. it's like it fails on 30% of machines where it's ran (way above margin for faulty hardware), but a particular bug isn't reproducible on another one.
<whitequark> maybe not 30% but you got the idea
<whitequark> and it was working that way ever since I started the project
sernin has joined #ruby-lang
<whitequark> I do nothing particularly evil, just simultaneously stress the gc, runtime and interpreter.
Berglund has joined #ruby-lang
sepp2k1 has joined #ruby-lang
msaffitz has joined #ruby-lang
<drbrain> whitequark: if you can include debugger backtrace and the VM dump info from a crash that'll be useful
sepp2k has quit [Ping timeout: 264 seconds]
akira989 has quit [Remote host closed the connection]
bglusman has quit [Remote host closed the connection]
<whitequark> drbrain: http://paste.debian.net/178361/
<whitequark> do you think it's of any use?
yats has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
<drbrain> whitequark: it won't hurt… I've seen VM bugs fixed with just this output
Jaxel has joined #ruby-lang
<drbrain> it won't hurt
<drbrain> (wait, I said that twice)
yxhuvud has quit [Ping timeout: 265 seconds]
<whitequark> ... I guess it will hurt, then :D
<Jaxel> hello
<andrewvos> JAXEL HI
<Jaxel> i am having trouble using a gem called 'ocra'
<Jaxel> it is telling me bad file descriptor (errno::EBADF)
<Jaxel> on this line: @of << [OP_CREATE_FILE, tgt.to_native, str.size, str].pack("VZ*VA*")
<whitequark> Jaxel: in my experience, it was broken long ago
<Jaxel> i had been using it before successfully
<Jaxel> are you saying i should attempt downgrading
<whitequark> oh, so it worked for you
<whitequark> no, I won't comment on it then, I've used it years ago
<Jaxel> yep, this is a new problem
<Jaxel> i even tried recompiling files i'd used it successfully on in the past
<Jaxel> no luck
<Jaxel> it's the only compiler that's ever worked for me, so
jperry2 has quit [Quit: jperry2]
akira989 has joined #ruby-lang
ruby-lang522 has joined #ruby-lang
<Jaxel> let's try ocrasa 1.2.0
bglusman has joined #ruby-lang
HassanS has quit [Ping timeout: 252 seconds]
redxoom has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
apeiros_ has quit [Remote host closed the connection]
<mistym> 'foo'.force_encoding('utf-8') + 'bar'.force_encoding('shift_jis') => encoding is UTF-8
<mistym> 'foo'.force_encoding('utf-8') + str (where str is a Shift_JIS string containing actual Japanese) => encoding is Shift_JIS
<mistym> why
cirenyc has quit [Quit: Leaving...]
<drbrain> mistym: string combining checks if both strings are ASCII-7bit compatible and contain only ASCII-7bit characters and just joins them if they are
<drbrain> it seems to pick the left-hand encoding
<mistym> drbrain: What is the result if they're not?
<mistym> In this case the output became Shift_JIS because it contained non ASCII-7bit chars. Are there other possible outcomes?
<drbrain> if both are ASCII-7bit compatible and one contains non-7bit characters it upgrades the other
<drbrain> I think if one is not ASCII-7bit compatible you get an exception
<drbrain> … I'm typing this from memory
<drbrain> err, both aren't ASCII_7bit
<mistym> Ah, so I do: "incompatible character encodings: UTF-8 and Shift_JIS"
havenn has joined #ruby-lang
<mistym> So it doesn't attempt a transcode, even in the cases where it knows how to do so.
<drbrain> I don't think you can tag a string with ASCII-7bit, though
<drbrain> IIRC it's internal only
sailias has quit [Read error: Operation timed out]
<mistym> Yeah, looks like it.
<mistym> I meant transcode, in this case, SJIS=>UTF8
<drbrain> I think you can describe the behavior of "ruby will join strings of compatible contents regardless of encoding"
<rue> Encodings are awesome.
kaspernj has joined #ruby-lang
mssola has joined #ruby-lang
petercooper has joined #ruby-lang
redxoom has quit [Ping timeout: 265 seconds]
srbartlett has joined #ruby-lang
ruby-lang522 has quit [Ping timeout: 245 seconds]
<mistym> drbrain: Thanks.
qpingu has joined #ruby-lang
<mistym> Though in this case I don't think "ruby will join strings of compatible contents regardless of encoding" is quite right, since it won't join a nonascii utf8 string with a nonascii sjis string which can be represented in utf8.
<mistym> The real lesson is "don't keep non-utf8 strings around any longer than you have to" so this doesn't need to be dealt with, I suppose.
<yfeldblum> mistym, that's a good lesson
<drbrain> yeah, ruby won't make a transformation between encodings for you
<drbrain> … unless there's no dataloss possible
<drbrain> which is likely only true for ASCII-7bit contents
<mistym> Right, so it only tries for ASCII-7bit contents.
<mistym> This is reminding me. Is there a decent way to handle conversion when there is an invalid multibyte char?
<rindolf> drbrain: are you fan of this old game - http://en.wikipedia.org/wiki/Castle_of_Dr._Brain ?
<drbrain> rindolf: never played it
<rindolf> drbrain: ah.
<rindolf> drbrain: so what is the origin of your nickname?
<mistym> I had a project where I was working with some fairly exotic text from the late 80s and early 90s, which is usually valid SJIS but occasionally had invalid chars. I suspect the computer it was created for had its own proprietary SJIS extension.
<rue> drbrain: You must remedy that
<drbrain> rindolf: high school ego
<rue> (Actually he just misspelled dr brian)
brunocoelho has quit [Remote host closed the connection]
<rindolf> drbrain: oh.
chrismcg is now known as zz_chrismcg
daniellutz has quit [Read error: Connection reset by peer]
daniellutz has joined #ruby-lang
daniellutz has quit [Read error: Connection reset by peer]
hynkle has joined #ruby-lang
daniellutz has joined #ruby-lang
havenn has quit [Remote host closed the connection]
srbartlett has quit [Remote host closed the connection]
daniellutz has quit [Read error: Connection reset by peer]
daniellutz_ has joined #ruby-lang
tomb has quit [Quit: Computer has gone to sleep.]
<injekt> erikh: ping
Sambalero has joined #ruby-lang
tomb has joined #ruby-lang
moos3 has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby-lang
workmad3 has joined #ruby-lang
hynkle has quit [Quit: Computer has gone to sleep.]
Nisstyre has joined #ruby-lang
kaspernj has quit [Quit: Leaving]
<erikh> injekt: pong
<erikh> drbrain: you should become drmario
<erikh> I don't know why
<erikh> it sounded cool a second ago thoguh
<drbrain> erikh: but I've never been good at punching bricks
<erikh> dr. mario is an awesome puzzle game where you drop pills on bugs
<erikh> to eradicate them!
<rue> Not much of a doctor if that’s his best plan
<erikh> beats tetris
<mistym> rue: I suspect Dr. Mario doesn't have a real degree
<rue> Probably just a Master’s
<workmad3> bah, mario is only a bachelor... his 'princess' is always in another castle
<erikh> bad
<erikh> so bad.
<workmad3> hell yeah :P
s0ra_h is now known as sora_h
<rue> :D
mistym has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
banisterfiend has joined #ruby-lang
HassanS has joined #ruby-lang
dv310p3r has quit [Ping timeout: 264 seconds]
banisterfiend` has quit [Ping timeout: 265 seconds]
shancial has joined #ruby-lang
shancial has left #ruby-lang [#ruby-lang]
workmad3 has quit [Ping timeout: 246 seconds]
thone has joined #ruby-lang
jsilver has quit [Remote host closed the connection]
<davidbalbert> Can anyone take a look at https://bugs.ruby-lang.org/issues/5776?
<davidbalbert> I have a _very_ small patch attached, but it looks like the assignee hasn't logged into the tracker in a year
chrislgibson has quit [Quit: Linkinus - http://linkinus.com]
sora_h is now known as s0ra_h
GeekOnCoffee has joined #ruby-lang
GeekOnCoffee has quit [Read error: Connection reset by peer]
GeekOnCoffee has joined #ruby-lang
HassanS has left #ruby-lang [#ruby-lang]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
rindolf has quit [Ping timeout: 245 seconds]
sockmonk has quit [Ping timeout: 248 seconds]
sailias has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
workmad3 has joined #ruby-lang
banisterfiend has quit [Ping timeout: 245 seconds]
Berglund has quit [Quit: Computer died.]
zenspider has joined #ruby-lang
banisterfiend has joined #ruby-lang
jsilver has joined #ruby-lang
Torrieri has quit [Ping timeout: 255 seconds]
<drbrain> davidbalbert: since keiju is the irb maintainer, I can't apply it
<drbrain> davidbalbert: you can try emailing keiju directly
Torrieri has joined #ruby-lang
<davidbalbert> sounds good, i'll send him an email
<davidbalbert> are there any other issues I can be helpful with?
<davidbalbert> i'd eventually like to contribute more than one word patches :)
kyrylo has quit [Quit: WeeChat 0.3.8]
<drbrain> I can apply documentation patches anywhere
<drbrain> and anything that's missing a maintainer
akira989 has quit [Ping timeout: 240 seconds]
<drbrain> and, of course, things I am a maintainer of
<drbrain> davidbalbert: if it's not applied after a month bug me again, I might be able to apply it if the maintainer is MIA
sepp2k1 has quit [Quit: Leaving.]
livinded has joined #ruby-lang
sepp2k has joined #ruby-lang
akira989 has joined #ruby-lang
<drbrain> no guarantee, but after a month it might be possible for me to commit it without anybody yelling at me
shirmung has left #ruby-lang [#ruby-lang]
<davidbalbert> ok cool
<davidbalbert> is RubyVM::InstructionSequence a public interface?
<davidbalbert> it's basically undocumented and i've been spending a fair amount of time playing around with it recently
seanstickle has joined #ruby-lang
bglusman has quit [Read error: Connection reset by peer]
<drbrain> I don't think it is
banisterfiend has quit [Ping timeout: 265 seconds]
<drbrain> pretty much anything under RubyVM is CRuby-specific
kurko___ has joined #ruby-lang
bglusman has joined #ruby-lang
<davidbalbert> and thus best left undocumented?
kurko__ has quit [Ping timeout: 246 seconds]
<drbrain> it can be documented, but rubinius or JRuby will never implemented
<drbrain> implement it
<rue> :nodoc:umented
<davidbalbert> ah, ok, that's fine. i think i know it well enough to write up some documentation
<drbrain> awesome
<davidbalbert> i just wanted to make sure it wasn't undocumented on purpose
ttilley is now known as ttilley_off
bglusman has quit [Ping timeout: 264 seconds]
A124 has quit [Quit: Leaving.]
mssola has quit [Quit: Konversation terminated!]
justinmcp has joined #ruby-lang
jperry2 has joined #ruby-lang
<zenspider> davidbalbert: curious... what are you doing with it?
<davidbalbert> just figuring out how YARV works
<davidbalbert> looking at what byte code gets generated for various input
fayimora has quit [Quit: Busy…..zzzzz]
<davidbalbert> not using it in anything i'm building
<zenspider> kk
<davidbalbert> but english docs on YARV are few and far between
<zenspider> just seeing what sort of evil you might be up to
<davidbalbert> ha, nothing nefarious (yet)
<zenspider> we've patched 2.0 to allow us to inject bytecode back in... gonna see how much we can toy with that
<erikh> orly
<davidbalbert> you mean load compiled bytecode from a file?
justinmcp has quit [Remote host closed the connection]
<zenspider> no
<zenspider> I mean generate it on the fly and shove it in
<erikh> err, if I understand correctly, isn't that an i/o streams implementation away from bytecode compiled files?
<erikh> not that it'd be safe, or perhaps smart, but it is a possibility
<davidbalbert> oh, i see. Forgot you can't do that already
akira989 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
bryancp has quit [Remote host closed the connection]
solars has quit [Ping timeout: 245 seconds]
ruurd has quit [Quit: Leaving...]
T_Rex_ has quit [Quit: T_Rex_]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
r0bby is now known as robbyoconnor
<davidbalbert> zenspider: do you have a link to the bytecode injection patch? i'd like to take a look
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby-lang
akira989 has joined #ruby-lang
outoftime has quit [Quit: Leaving]
butchanton has quit [Quit: Leaving.]
Torrieri has quit [Ping timeout: 240 seconds]
kvirani has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
kurko___ has quit [Quit: This computer has gone to sleep]
<zenspider> davidbalbert: I don't... but it is stupid simple. lemme see if I can dig it up
<davidbalbert> thanks
S1kx has quit [Ping timeout: 250 seconds]
toretore has quit [Quit: Leaving]
<zenspider> davidbalbert: go to line 1536 of iseq.c and uncomment the rb_define_singleton_method line
<zenspider> fuck not having a verifier... that's the point
<davidbalbert> hmm, on trunk, 1536 is: iseq->location.first_lineno = first_lineno;
<davidbalbert> is this on a separate branch?
<davidbalbert> maybe 1589?
<davidbalbert> yeah, that has to be it, i'll take a look at it later tonight
<davidbalbert> (gotta grab dinner)
<davidbalbert> drbrain: it might take me a few days to put aside some time, but i'm going to try to get you a draft of the docs later this week
<drbrain> davidbalbert: cool, but no rush
<davidbalbert> sounds good
enebo has quit [Quit: enebo]
htroyack has joined #ruby-lang
htroyack has quit []
ryanf has joined #ruby-lang
outsmartin1 has quit [Quit: Leaving.]
jperry2_ has joined #ruby-lang
ivanoats has quit [Quit: ivanoats]
sepp2k has quit [Quit: Leaving.]
sepp2k1 has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
msaffitz has joined #ruby-lang
awwaiid has quit [Read error: Connection reset by peer]
Sambalero has quit [Remote host closed the connection]
awwaiid has joined #ruby-lang
Sambalero has joined #ruby-lang
s0ra_h is now known as sora_h
bfreeman has quit [Quit: bfreeman]
banisterfiend has joined #ruby-lang
coryf has quit [Remote host closed the connection]
Jaxel has quit [Quit: Leaving]
Manhose has joined #ruby-lang
Manhose has quit [Client Quit]
Torrieri has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
dtheg has quit [Quit: dtheg]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
<petercooper> zenspider: What do you think about this comment I just got..
hynkle has joined #ruby-lang
<petercooper> in relation to T::U on 1.9 being a compatibility layer over MiniTest::Unit
<petercooper> << I wonder whether the shim will eventually be removed and 'Test::Unit' will become the new class name of minitest's module. >>
hahuang65 has quit [Read error: Operation timed out]
<petercooper> I'm guessing the answer is no, given how MiniTest is a lot more than just MiniTest::Unit.
<zenspider> petercooper: it's no longer a shim... but instead an entire beast of its own
<drbrain> petercooper: given what's in the compatibility layer, my guess is no ☹
<zenspider> if you look at the TU code... they've gone a looooong way away from minitest
Zyclops has joined #ruby-lang
hahuang65 has joined #ruby-lang
<petercooper> I did and while there's a fair chunk of code in there, it's still described as such
sora_h is now known as s0ra_h
tomzx has joined #ruby-lang
<petercooper> surprised there was no maintainer name(s) in there either, unlike most stdlibs
<zenspider> petercooper: it's mostly s0ra_h and nobu afaik
Zyclops1 has joined #ruby-lang
hahuang65 has quit [Client Quit]
Zyclops has quit [Ping timeout: 244 seconds]