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
rowanu has quit [Remote host closed the connection]
Torrieri has joined #ruby-lang
Torrieri has joined #ruby-lang
yugui is now known as yugui_zzz
acyed has joined #ruby-lang
acyed has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
Criztian has quit [Remote host closed the connection]
hynkle has joined #ruby-lang
lightcap has quit [Quit: Computer has gone to sleep.]
msaffitz has joined #ruby-lang
msaffitz has quit [Client Quit]
msaffitz has joined #ruby-lang
rescrv has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
neoesque has joined #ruby-lang
tyre771 has quit [Quit: Leaving.]
sei has quit [Read error: Connection reset by peer]
indeterminate has joined #ruby-lang
foca has quit [Ping timeout: 248 seconds]
foca has joined #ruby-lang
<jtoy> is it realistic to run 100 ruby processes on a single machine, like say a macbookair
ben_m has quit [Ping timeout: 248 seconds]
<jtoy> I've been using event machine for a lot of stuff, but i don't think it scales as much as I expected it to
<rescrv> I'm trying to write a C extension with two classes. "Deferred" should be a parent, and "DeferredGet" should inherit from it. I'm getting contradictory errors that occur in the "init" function.
<rescrv> Here's the relevant code: https://gist.github.com/3007935 Can anyone help?
<rescrv> I've tried all combinations of module vs. class and rb_extend_object vs rb_include_module
<drbrain> rescrv: rb_define_class_under's third argument is the superclass
<rescrv> drbrain: Thanks! Somehow I've been reading docs and missed that
<drbrain> rescrv: then you can delete line 9, of course :)
<drbrain> rescrv: why define new and initialize?
<drbrain> rescrv: usually you just define initialize and let rb_class_new_instance() do the work
<rescrv> what if you're trying to wrap a C struct?
<drbrain> rb_define_alloc_func() to allocate the struct
<drbrain> Class#new is roughly def new(*args, *block); obj = allocate; obj.initialize(*args, &block); obj; end
<rescrv> thanks. I started using rb_define_allc_func for the first class, just didn't change the second
<drbrain> so using rb_define_alloc_func (like line 4) to set up the struct and defining initialize (like line 5) is enough
<drbrain> … usually
<rescrv> thanks
<drbrain> cool
msaffitz has quit [Quit: Computer has gone to sleep.]
<drbrain> if Deferred and DeferredGet use the same C struct you don't need to rb_define_alloc_func twice
<rescrv> DeferredGet will use another C struct with more in it. Will this be problematic?
<drbrain> you can place the differences in setup in initialize which should save some typing
<drbrain> nope
msaffitz has joined #ruby-lang
<drbrain> well, not for allocation
<drbrain> DeferredGet's struct should be a superset of Deferred's struct
<rescrv> So just place Deferred's struct at the beginning
gix has quit [Ping timeout: 245 seconds]
<drbrain> So long as Deferred's struct's fields all exist in DeferredGet's struct you'll have no problem
<drbrain> I've got to catch my bus now, good luck!
<rescrv> thanks! and good travels
Torrieri has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
ben_m has joined #ruby-lang
<drbrain> Ok, on the bus
<drbrain> I think the only restriction is that you need to be able to cast a struct DeferredGet to a struct Deferred, otherwise you may access the wrong field
<drbrain> In 1.9 and newer there's Typed_Data_Get_Struct that helps prevent bugs between uncastable structs, and also let's you define inheritance between the two.
jtoy has quit [Quit: jtoy]
msaffitz has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
<banisterfiend> znowi: i've seen longer
<rescrv> I'll just put it at the front which should be good enough
cjs226 has quit []
wallerdev has quit [Quit: wallerdev]
msaffitz has joined #ruby-lang
bfreeman has joined #ruby-lang
Sambalero has joined #ruby-lang
gsav has joined #ruby-lang
savage- has quit [Remote host closed the connection]
neoesque has quit [Quit: Bye!]
seanstickle has quit [Quit: seanstickle]
cmaujean has joined #ruby-lang
gsav has quit [Ping timeout: 246 seconds]
savage- has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
mistym has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
savage- has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
wpaulson has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
hynkle has quit [Ping timeout: 250 seconds]
hynkle has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
perryh_away is now known as perryh
dhruvasagar has joined #ruby-lang
stardiviner has joined #ruby-lang
Natch has quit [Read error: Connection reset by peer]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
Natch has joined #ruby-lang
carter_ has quit [Ping timeout: 245 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ben_m` has joined #ruby-lang
kurko_ has joined #ruby-lang
wpaulson has joined #ruby-lang
ben_m has quit [Ping timeout: 246 seconds]
Nisstyre has quit [Quit: Leaving]
perryh is now known as perry
Nisstyre has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
ben_m` has quit [Quit: Leaving]
carter_ has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
Kellin has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jarib has quit [Excess Flood]
tyman has quit [Ping timeout: 246 seconds]
jarib has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
Torrieri has quit [Ping timeout: 245 seconds]
wasnotrice is now known as zz_wasnotrice
rippa has joined #ruby-lang
Boohbah has quit [Ping timeout: 276 seconds]
Boohbah has joined #ruby-lang
msaffitz has joined #ruby-lang
wpaulson has joined #ruby-lang
rippa has quit [Ping timeout: 252 seconds]
ramonmaruko has quit [Quit: Leaving.]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
ramonmaruko has joined #ruby-lang
seanstickle has joined #ruby-lang
hynkle has quit [Quit: Computer has gone to sleep.]
msaffitz has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
carter_ has quit [Ping timeout: 250 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mistym has quit [Remote host closed the connection]
Pip has joined #ruby-lang
Pip has joined #ruby-lang
Pip has quit [Changing host]
yannis has joined #ruby-lang
<zenspider> 1.9 syntax is driving me up the fucking wall.
* cirwin nests some heredocs for good measure
<seanstickle> Don't like that new hash technique?
asahi has quit [Quit: Leaving.]
tyman has joined #ruby-lang
tyman has quit [Client Quit]
<zenspider> seanstickle: currently it is not/! that is pissing me off
<zenspider> in ruby 1.8 they were canonicalized and boolean logic was consistently preserved
<zenspider> now you can def ! and totally fuck up everything
<seanstickle> Ooh
<seanstickle> I didn't know that
<zenspider> yeah. and if you use that, I'll find you and hurt you
<zenspider> it's HORRIBLE
<seanstickle> What would anyone redefine that *for* ?
<zenspider> in 1.8, !!x was equivalent to RTEST(RTEST(obj)) at _parse_time_
<zenspider> now, it is s(:call, s(:call, s(:lvar, x), :"!"), :"!")
<zenspider> which means... you don't HAVE to have any logical consistency.
<zenspider> everything can be true if you want... or 42
<zenspider> but it also means that you have to RUN those bang methods to figure out your answer
<zenspider> seanstickle: I have NO IDEA why matz thought this was a good idea
<zenspider> between that and being able to define a != b to disagree with not(a == b)
<seanstickle> Can you redefine & too?
<seanstickle> :D
gregf has quit [Quit: WeeChat 0.3.8]
<zenspider> of course
<zenspider> but you could do that in 1.8
<seanstickle> Huh
<zenspider> && I _think_ is still hard coded... lemme check
<zenspider> yeah
<seanstickle> Oh, sorry, I meant &&
<zenspider> hrm... you can do and, but it won't get called w/o the '.'
<zenspider> still... ruby 1.9 has jumped the shark
stardiviner has joined #ruby-lang
stardiviner has quit [Read error: Connection reset by peer]
Pip has quit [*.net *.split]
jmcphers has quit [*.net *.split]
musl has quit [*.net *.split]
flebel has quit [*.net *.split]
knu has quit [*.net *.split]
Axsuul has quit [*.net *.split]
ged has quit [*.net *.split]
s0ra_h has quit [*.net *.split]
kurko_ has quit [Quit: Saindo]
<seanstickle> You're sure to love Ruby 2.0
<seanstickle> :)
stardiviner has joined #ruby-lang
Kuukunen has quit [Read error: Connection reset by peer]
ged has joined #ruby-lang
flebel has joined #ruby-lang
musl has joined #ruby-lang
jmcphers has joined #ruby-lang
knu has joined #ruby-lang
Axsuul has joined #ruby-lang
16WAAOFI4 has joined #ruby-lang
s0ra_h has joined #ruby-lang
<ryanf> section at the bottom
<seanstickle> Ha
<zenspider> there was a joke language description back in the day for "C+-" (C more or less)
<zenspider> I'm tempted to put out that gem
ged has quit [*.net *.split]
16WAAOFI4 has quit [*.net *.split]
jmcphers has quit [*.net *.split]
musl has quit [*.net *.split]
s0ra_h has quit [*.net *.split]
flebel has quit [*.net *.split]
Axsuul has quit [*.net *.split]
knu has quit [*.net *.split]
misham has joined #ruby-lang
ryanf_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
Axsuul has joined #ruby-lang
Pip has joined #ruby-lang
Pip has quit [Changing host]
Pip has joined #ruby-lang
jmcphers has joined #ruby-lang
dfr|mac has joined #ruby-lang
s0ra_h has joined #ruby-lang
knu has joined #ruby-lang
ged has joined #ruby-lang
flebel has joined #ruby-lang
igotnolegs has joined #ruby-lang
musl has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
macmartine has quit [Quit: macmartine]
yugui_zzz is now known as yugui
<zenspider> ruby19 -I. -rmorse -e 'puts !!!_, ---_, !!!_' # => sos
macmartine has joined #ruby-lang
wallerdev has joined #ruby-lang
knu has quit [Ping timeout: 255 seconds]
musl has quit [Read error: Connection reset by peer]
knu has joined #ruby-lang
musl has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
ryanf_ has joined #ruby-lang
misham has quit [Ping timeout: 248 seconds]
neocoin has quit [Remote host closed the connection]
ryanf_ has quit [Client Quit]
ryanf has quit [Ping timeout: 265 seconds]
andrewhl has quit [Remote host closed the connection]
dfr|mac has quit [Remote host closed the connection]
umttumt has joined #ruby-lang
<erikh> haha
<erikh> is there really a morse gem?
dalekurt has quit [Quit: Zzz...]
ryanf has joined #ruby-lang
ruurd has joined #ruby-lang
yugui is now known as yugui_zzz
yxhuvud has joined #ruby-lang
zmack has joined #ruby-lang
savage- has joined #ruby-lang
xtagon has quit [Ping timeout: 246 seconds]
lightcap has joined #ruby-lang
lightcap has quit [Client Quit]
msaffitz has joined #ruby-lang
macmartine has quit [Quit: macmartine]
chendo_ has joined #ruby-lang
naz has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
dc5ala has joined #ruby-lang
blacklife has joined #ruby-lang
dhruvasagar has joined #ruby-lang
brianpWins has joined #ruby-lang
s0ra_h is now known as sora_h
kitallis has joined #ruby-lang
savage- has quit [Remote host closed the connection]
perry is now known as perryh_away
bhrgunatha has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
bhrgunatha has quit [Client Quit]
tonni has joined #ruby-lang
bhrgunatha has joined #ruby-lang
blacklife has quit [Ping timeout: 252 seconds]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
dalekurt has joined #ruby-lang
bhrgunatha has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120615233552]]
blacklife has joined #ruby-lang
^sandbags^ has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
umttumt has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
sandbags has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Pip has quit [Quit: Leaving]
naz has quit [Ping timeout: 248 seconds]
burgestrand has quit [Quit: Leaving.]
qwerxy has joined #ruby-lang
Sambalero has joined #ruby-lang
cirwin has quit [Ping timeout: 246 seconds]
Sambalero has quit [Remote host closed the connection]
mssola has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
AlHafoudh has joined #ruby-lang
wallerdev has joined #ruby-lang
Torrieri has joined #ruby-lang
solars has joined #ruby-lang
Weems has quit [Read error: Connection reset by peer]
Kuukunen has joined #ruby-lang
Pip has joined #ruby-lang
Pip has quit [Changing host]
Pip has joined #ruby-lang
Weems has joined #ruby-lang
kith has quit [Quit: kith]
toretore has joined #ruby-lang
sepp2k has joined #ruby-lang
apeiros_ has joined #ruby-lang
fromhet has joined #ruby-lang
kith has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
dc5ala has quit [Quit: Ex-Chat]
dalekurt has quit [Quit: Zzz...]
agile has quit [Ping timeout: 246 seconds]
AlHafoudh has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ruurd has joined #ruby-lang
blacklife has left #ruby-lang [#ruby-lang]
fra000 has joined #ruby-lang
QaDeS has joined #ruby-lang
jbsan has quit [Quit: jbsan]
veex has quit [Ping timeout: 246 seconds]
saLOUt has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
veex has joined #ruby-lang
carter_ has joined #ruby-lang
regularfry has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
ryanf has quit [Quit: leaving]
carter_ has quit [Ping timeout: 244 seconds]
agile has joined #ruby-lang
piyush_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
Z33K|Lux has quit []
tbuehlmann has joined #ruby-lang
lovetoday has joined #ruby-lang
gnufied has joined #ruby-lang
Torrieri has quit [Ping timeout: 240 seconds]
robotmay has joined #ruby-lang
cdt has joined #ruby-lang
chendo_ has joined #ruby-lang
workmad3 has joined #ruby-lang
neocoin has joined #ruby-lang
<zenspider> erikh: no. I just wrote it.
fromhet has quit [Quit: fromhet]
^sandbags^ has quit [Remote host closed the connection]
IPGlider has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
lovetoday has left #ruby-lang [#ruby-lang]
woollyams has quit [Quit: Computer has gone to sleep.]
crackity_jones has quit [Ping timeout: 244 seconds]
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
TheHunter_1039 has quit [Quit: TheHunter_1039]
qwerxy has joined #ruby-lang
tbuehlmann has quit [Read error: Connection reset by peer]
rolfb has joined #ruby-lang
jordan` has quit [Quit: Coyote finally caught me]
tbuehlmann has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
Nekka has joined #ruby-lang
jordan` has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
ltd- has quit [Ping timeout: 246 seconds]
Hakon|mbp has quit [Quit: Leaving...]
<rue> Dangit, no unicode out of the box for termtter…
<rue> zenspider: Be modern, C±
IPGlider has quit []
futurechimp has joined #ruby-lang
ltd- has joined #ruby-lang
<banisterfiend> rue: hey rue
<Criztian> hellooo
<banisterfiend> Criztian: hey rue
<Criztian> lol
<Criztian> happens when you pick up the previous line
Hakon|mbp has joined #ruby-lang
<Criztian> banisterfiend: hey rue to you too XD
naquad has quit [Excess Flood]
woollyams has joined #ruby-lang
naquad has joined #ruby-lang
naquad has quit [Max SendQ exceeded]
rushed has quit [Quit: rushed]
naquad has joined #ruby-lang
gsav has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby-lang
cantonic has joined #ruby-lang
Codif has joined #ruby-lang
Codif has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
toretore has quit [Quit: This computer has gone to sleep]
piyush_ has quit [Ping timeout: 246 seconds]
cantonic has quit [Quit: cantonic]
piyush_ has joined #ruby-lang
thone has quit [Ping timeout: 240 seconds]
thone has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
fra000 has quit [Quit: Leaving]
yannis has quit [Quit: yannis]
burgestrand has joined #ruby-lang
yannis has joined #ruby-lang
yannis has quit [Client Quit]
rkk has joined #ruby-lang
rkk has quit [Quit: Leaving]
rkk has joined #ruby-lang
rkk has quit [Client Quit]
tjadc has joined #ruby-lang
kvirani has joined #ruby-lang
hynkle has joined #ruby-lang
saLOUt has quit [Read error: Connection reset by peer]
saLOUt has joined #ruby-lang
ttilley_off is now known as ttilley
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
hynkle has quit [Quit: Computer has gone to sleep.]
<rue> Hy
rmascarenhas has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
Fullmoon has joined #ruby-lang
tyre77 has joined #ruby-lang
<jMCg> So, once again I learn that Ruby on Rails != Ruby.
tyre77 has left #ruby-lang [#ruby-lang]
JustinCampbell has joined #ruby-lang
sailias has joined #ruby-lang
jperry2 has joined #ruby-lang
stiang has joined #ruby-lang
postmodern has quit [Quit: Leaving]
jxie has quit [Quit: leaving]
<kith> in ruby/sequel, when i do @db.transaction do; ary.each {}; end the transaction gets executed only when the ary has been iterated yes?
<apeiros_> kith: should. and only when no exception was raised.
<kith> i see
<apeiros_> but that really totally depends on what @db.transaction actually is…
<apeiros_> you see, just because it's named 'transaction'…
<apeiros_> ah, ruby/sequel… should have read better
<apeiros_> but still consult the sequel docs. but I'd be surprised if it wasn't as just described.
<kith> i did, wasnt sure if i understood it right
robbyoconnor has quit [Ping timeout: 252 seconds]
yannis has joined #ruby-lang
<kith> say i had insert statements inside the ary.each {} then enclosing the whole shebang inside the transaction is much faster right?
scampbell has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
<workmad3> kith: err... I don't see how that has much relevance
<kith> without the transaction, each insert will be a transaction itself, while enclosing it will make it one big transaction no?
hynkle has joined #ruby-lang
Axsuul has quit [Ping timeout: 250 seconds]
rescrv has quit [Quit: WeeChat 0.3.2]
asahi has joined #ruby-lang
<kith> workmad3: doesnt sound right?
stiang has quit [Quit: stiang]
<kith> am i totally off?
<workmad3> kith: well, that's correct... but unless you're profiling, I wouldn't say 'much faster' because you're making a big assumption about how much overhead starting and commiting several small transactions is compared to one very large one
<kith> hmm
<kith> okay
<workmad3> kith: what it does is allows you to say 'all of these must be commited, or none of them'
<workmad3> kith: look at it from data integrity, not from performance
<kith> so i got it backwards... the integrity part i thought is a nice side effect :D
<workmad3> no, the integrity is the entire point
krohrbaugh has quit [Quit: Leaving.]
jbsan has joined #ruby-lang
bglusman has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
neocoin has joined #ruby-lang
dv310p3r has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
asahi has left #ruby-lang [#ruby-lang]
sockmonk has joined #ruby-lang
Ioana1977 has joined #ruby-lang
toretore has joined #ruby-lang
Ioana1977 has quit [Client Quit]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
^sandbags^ has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
sandbags has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
savage- has joined #ruby-lang
tzvi has left #ruby-lang ["http://quassel-irc.org - Chat comfortably. Anywhere."]
mistym has quit [Remote host closed the connection]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
carloslopes has joined #ruby-lang
sailias has joined #ruby-lang
tbuehlmann has quit []
Jake232 has joined #ruby-lang
rmascarenhas has quit [Quit: Lost terminal]
dalekurt has joined #ruby-lang
Jade has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
krohrbaugh has joined #ruby-lang
bglusman_ has joined #ruby-lang
<andrewvos> In ruby, how do I spawn a process and have it stay alive even when ruby finishes executing
<andrewvos> ?
<andrewvos> Sorry, in 1.8.7
bglusman has quit [Ping timeout: 245 seconds]
zz_wasnotrice is now known as wasnotrice
Fullmoon has quit [Quit: Fullmoon]
savage- has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
Jade has quit [Quit: Jade]
Jade has joined #ruby-lang
dfr|mac has joined #ruby-lang
kvirani has joined #ruby-lang
gsav has quit [Ping timeout: 245 seconds]
Pip has quit [Read error: Connection reset by peer]
Pip has joined #ruby-lang
tjadc has quit [Ping timeout: 245 seconds]
Pip has quit [Read error: Connection reset by peer]
Pip has joined #ruby-lang
Pip has quit [Changing host]
Pip has joined #ruby-lang
andrewhl has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
<andrewvos> Found it by the way. Fork, and then a detach seemed to work.
outoftime has joined #ruby-lang
yannis has quit [Quit: yannis]
neocoin has joined #ruby-lang
akira989 has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
florentg2 has joined #ruby-lang
akira989 has joined #ruby-lang
rippa has joined #ruby-lang
gsav has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
piyush_ has quit [Remote host closed the connection]
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
workmad3 has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
Silex has quit [Quit: WeeChat 0.3.8]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dfr|mac has quit [Ping timeout: 244 seconds]
Silex has joined #ruby-lang
NeVeR_ has joined #ruby-lang
Sambalero has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 250 seconds]
qwerxy_ has joined #ruby-lang
qwerxy has quit [Ping timeout: 244 seconds]
gregf has joined #ruby-lang
kvirani has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
<Defusal> sometimes i really don't understand rubys behavior
solars has quit [Ping timeout: 250 seconds]
<lianj> example?
<Defusal> a module is included into a subclass from the inherited callback, it works fine
<Defusal> i then add a puts line to one of the modules methods
<Defusal> and suddenly, i have to include ::Module, instead of just the modules name
<Defusal> else it says Module is not a constant in the ancestors class
dhoss is now known as DHOSS
<Defusal> (Module is not actually called Module obviously, that was a bad example name)
<Defusal> but i'm pretty sure this will make no more sense to anyone in here, than it does to me
<lianj> sure its about the puts?
<Defusal> i don't see the logic behind it
<Defusal> yes
<Defusal> i removed the puts and tested, then put it back
<lianj> maybe pastebin something :)
<Defusal> i'll have to see what the minimal test case is at some stage
nikky has quit [Ping timeout: 246 seconds]
acidreflux has joined #ruby-lang
<Defusal> this is just one more case where i really don't understand why i have to prepend :: to the class else it tries to resolve it in the nested classes
<Defusal> it is certainly not the first time
<Defusal> this is probably the only thing in ruby i still don't understand
jxie has joined #ruby-lang
EvilJStoker has quit [Excess Flood]
tr-808 has quit [Remote host closed the connection]
tr-808_ has joined #ruby-lang
tr-808 has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<lianj> Defusal: http://ideone.com/EJ4gw ?
<Defusal> on perhaps i was wrong in this case
<Defusal> ok*
Criztian has quit [Ping timeout: 246 seconds]
<Defusal> lianj, after trying to make a minimal test case and then testing again in the actually app it seems to not happen
EvilJStoker has joined #ruby-lang
<Defusal> so i guess it could have been my dodgy internet not syncing properly/fast enough
<Defusal> must have been unlucky that it happened for both the test i did before
tjadc has joined #ruby-lang
<lianj> huh?
<apeiros_> Defusal: I don't see how prepended :: doesn't make sense to you. Say you have something like Braille::String, you can't reference String within Braille unless you have something to express "top-level". and :: does that.
Criztian has joined #ruby-lang
<apeiros_> Defusal: alternatively you'd just have a language where you have to fully qualify every constant all the time. I myself wouldn't like that.
<lianj> right :: is no magic
<Defusal> apeiros_, i obviously wasn't clear. i didn't say i don't understand its use. in certain cases i have been forced to use it where it should not be necessary.
savage- has joined #ruby-lang
<apeiros_> Defusal: I highly doubt that :)
<Defusal> but i will wait until i come across such a case before i bring it up again
<lianj> :)
<apeiros_> Defusal: don't forget those nice things that are autoload and const_missing.
tr-808_ has quit [Ping timeout: 265 seconds]
tr-808 has quit [Ping timeout: 265 seconds]
<apeiros_> and assuming you came across the issues in rails, it was most likely its stupid autoloading (which uses const_missing)
savage- has quit [Remote host closed the connection]
tr-808 has joined #ruby-lang
<Defusal> i do my own modular loading, i do not use autoload nor do i use rails
<Defusal> const_missing would be useful if it were not restricted to the top level namespace
tr-808_ has joined #ruby-lang
<apeiros_> Defusal: it isn't
<apeiros_> (restricted to toplevel)
<Defusal> it doesn't work anywhere else
<Defusal> due to the way ruby constants are looked up
<apeiros_> no idea why you think it was.
<apeiros_> of course it does.
<Defusal> apeiros_, show me an example of where it can be used in a nested namespace
<Defusal> please :)
<apeiros_> sorry Defusal, but rails pretty much disproves what you're saying.
<apeiros_> gotta catch the train, so can't test it, but:
<Defusal> heh
<apeiros_> module Foo; def self.const_missing(*n); const_set(n, "You were looking for #{n}"); end; end
<apeiros_> Foo::Bar
<Defusal> oh right
<Defusal> i was almost right
<apeiros_> urgs
<apeiros_> -*
<Defusal> apeiros_, it cannot be used in a nested namespace without a fully qualified namespace
<apeiros_> ok, tested.
<apeiros_> module Foo; def self.const_missing(n); const_set(n, "You were looking for #{n}"); end; end
<apeiros_> works
<Defusal> which makes it useless for the only use case i ever wanted to use it for
<apeiros_> I'm quite sure you're wrong on that too
<Defusal> module Foo; def self.const_missing(n); const_set(n, "You were looking for #{n}"); end; Bar; end
<apeiros_> but you'd have to make a proper example
<Defusal> Bar will not work.
<apeiros_> and I have to go now…
<apeiros_> cya
<Defusal> i am 100% sure of this
apeiros_ has quit [Remote host closed the connection]
<Defusal> it is just the way ruby looks up constants
<Defusal> and if anyone would like to prove me wrong, be my guest ;)
tr-808 has quit [Ping timeout: 246 seconds]
NeVeR_ has quit [Ping timeout: 246 seconds]
tr-808_ has quit [Ping timeout: 246 seconds]
dfr|mac has joined #ruby-lang
tr-808 has joined #ruby-lang
<Defusal> oh actually, i just realized that is using const_set
<Defusal> i'd actually have to figure out if i can make that work in my use case
<Defusal> you'd usually return the value from const_missing, i never thought of setting the const at that point
<lianj> why do that stuff anyway ;)
tr-808_ has joined #ruby-lang
<Defusal> to not have to say SomeModulesModels::ModelName from inside SomeModule
injekt has joined #ruby-lang
* lianj scratches head
wallerdev has joined #ruby-lang
Nekka has quit [Quit: WeeChat 0.3.8]
tr-808 has quit [Ping timeout: 248 seconds]
<Defusal> lianj, in a modular platform where modules could have models that have the same name, 'User' is far better than having to use SomeModuleNamesModels::User
tr-808 has joined #ruby-lang
tr-808_ has quit [Ping timeout: 246 seconds]
digitalbane has joined #ruby-lang
tr-808_ has joined #ruby-lang
tr-808 has quit [Ping timeout: 240 seconds]
tr-808 has joined #ruby-lang
w33ds has joined #ruby-lang
tr-808_ has quit [Ping timeout: 246 seconds]
gsav has quit [Ping timeout: 246 seconds]
tr-808_ has joined #ruby-lang
w33ds has quit [Client Quit]
avdi has joined #ruby-lang
gsav has joined #ruby-lang
crackity_jones has joined #ruby-lang
tr-808 has quit [Ping timeout: 250 seconds]
tr-808 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
xtagon has joined #ruby-lang
<Defusal> here is a somewhat interesting quirk
<Defusal> maybe someone knows the reasoning behind it
tr-808_ has quit [Ping timeout: 246 seconds]
<Defusal> valid: log "Killing instance" if log
<Defusal> valid: log(:green, "Killing instance") if log
<Defusal> invalid: log :green, "Killing instance" if log
tr-808_ has joined #ruby-lang
<Defusal> oh gawd, nevermind me, i don't even want to know how that bool variables name became "log"
<injekt> log(:green ("kidding instance" if log))
<JustinCampbell> ;)
<Defusal> but it is an interesting error never the less
<Defusal> because its valid with ( )
robotmay has quit [Remote host closed the connection]
<matled> Defusal: I don't get an error with that
<Defusal> matled, log was a method arg as well as a method
<matled> alias :log :puts; log :green, "Killing instance" if log
<matled> that code works fine here
<Defusal> alias :log :puts; def foo(log); log :green, "Killing instance" if log end
apeiros_ has joined #ruby-lang
<Defusal> :P
<banisterfiend> injekt: i thought you abandoned irc ;)
<apeiros_> Defusal: still 100% sure? :)
<Defusal> i havn't seen indeterminate in years
wasnotrice is now known as zz_wasnotrice
<Defusal> apeiros_, i realized after you left that you were setting the actual constant in const_missing, not just returning a value
<apeiros_> it works the same without
<Defusal> but i would need to test to make sure method_missing is ever called
<Defusal> it wasn't iirc
<apeiros_> and: ruby-1.9.3:003:0>> module Foo; Bar; end # => "You were looking for Bar"
savage- has joined #ruby-lang
<apeiros_> const_missing, not method_missing
<apeiros_> what does not work is if you have a toplevel Bar
<Defusal> n/method_/const_
<apeiros_> then const_missing will (of course) not be triggered
<Defusal> *s/
savage-_ has joined #ruby-lang
<Defusal> been a long day, too much coffee
<apeiros_> ^^
<apeiros_> anyway, const_missing works everywhere and for non-fully-qualified constants too.
<Defusal> hmm, i wonder if that was an issue
<Defusal> i'll do a little testing when i get a chance
<apeiros_> you can always use self::Bar (in: module Foo; self::Bar; end) to enforce the namespace without fully qualifying it literally
virunga has joined #ruby-lang
<apeiros_> that'll force const_missing, even if a toplevel const exists
<apeiros_> it'll work differently with subclassing, though
<Defusal> ohhhh
<Defusal> i remember the limitation now!
<Defusal> const_missing does not work when using class_eval
erics has joined #ruby-lang
<Defusal> which is why i cannot use it
<apeiros_> it does. you just have to be aware of class_eval's constant lookup rule
<Defusal> hang on, let me see if i can find the article i finally found when i couldnt get it working at the time
<apeiros_> which differs from normal class Foo; end. and that difference is unrelated to const_missing
bfreeman has joined #ruby-lang
savage- has quit [Ping timeout: 246 seconds]
<Defusal> basically, the way constant lookups work in ruby, constants are not looked up when using instance/class_eval
<Defusal> so you cannot use const_missing in a DSL
<Defusal> which means i cannot use it
andrewhl has joined #ruby-lang
<apeiros_> Defusal: http://pastie.org/4166402
<apeiros_> class_eval's const lookup is lexically scoped
<Defusal> yes
<Defusal> which is why i cannot use it
dalekurt has quit [Ping timeout: 264 seconds]
rhodee has joined #ruby-lang
<Defusal> oh well, took long enough to recall the details, but it doesnt change the fact that it is useless for my DSL
Pip has quit [Ping timeout: 255 seconds]
<apeiros_> Defusal: ok. but as said, that problem is unrelated to const_missing.
Pip has joined #ruby-lang
Pip has joined #ruby-lang
Pip has quit [Changing host]
Skif has quit [Ping timeout: 240 seconds]
* apeiros_ wonders if there's a dynamic way to change constant lookup context…
<Defusal> i did mention earlier before you quit that it is due to the way ruby does constant look ups
<apeiros_> reminds me that I once wanted to write a universal_eval
<Defusal> i never said it was const_missings fault
<Defusal> it is just not possible
<apeiros_> Defusal: well, your phrasing was like "const_missing only works on toplevel". and that's - as proven - wrong ;-)
<Defusal> sure, its been a while, and i have done a ridiculous amount of stuff since then, so please excuse my memory
<Defusal> i do hope that it will be possible one day though
<Defusal> not having to use SomeModulesModels::User for the User model belonging to a module would be great
<apeiros_> you can make it work
<apeiros_> it'd be ugly as fuck, though.
<apeiros_> gimme a minute
<Defusal> more ugly than having to use "SomeModulesModels::User" instead of "User"?
<Defusal> :P
<apeiros_> depends on your mileage
<Defusal> yeah, my DSL aims to minimize implementation code, so it would be worth it in this case
jbsan has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
nuclearsandwich has quit [Read error: Connection reset by peer]
<apeiros_> hrmpf, unexpected resistance! evil!
butchanton has joined #ruby-lang
msaffitz has joined #ruby-lang
tjadc has quit [Ping timeout: 246 seconds]
nuclearsandwich has joined #ruby-lang
Pip has quit [Ping timeout: 255 seconds]
gouthamvel has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
gouthamvel has left #ruby-lang [#ruby-lang]
qwerxy_ has quit [Read error: Operation timed out]
qwerxy has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
<apeiros_> Defusal: ok, typing with your hands full of tomato sauce is not a good idea
<apeiros_> anyway, my idea to trick it doesn't work :(
<apeiros_> would need universal_eval. man, it'd be awesome. universal_eval lvars: binding, ivars: obj, cvars: klass, constants: mod
Nekka has joined #ruby-lang
avdi has quit [Ping timeout: 265 seconds]
cdt has quit [Quit: Ex-Chat]
Jake232 has quit [Read error: Connection reset by peer]
<Defusal> apeiros_, hehe, yeah i thought as much
QaDeS_ has joined #ruby-lang
<Defusal> hopefully there will be a universal_eval one day
QaDeS_ has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
imperator has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
jbsan has quit [Read error: Connection reset by peer]
virunga has quit [Read error: Connection reset by peer]
EvilJStoker has quit [Excess Flood]
toretore has quit [Quit: This computer has gone to sleep]
acyed has joined #ruby-lang
injekt has quit [Ping timeout: 265 seconds]
Carnage\ has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
ohsix has quit [Ping timeout: 244 seconds]
Natch has quit [Remote host closed the connection]
havenn has joined #ruby-lang
Carnage\ has quit [Ping timeout: 265 seconds]
Natch has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
EvilJStoker has joined #ruby-lang
msaffitz has joined #ruby-lang
futurechimp has quit [Quit: This computer has gone to sleep]
toretore has joined #ruby-lang
futurechimp has joined #ruby-lang
msaffitz has quit [Client Quit]
msaffitz has joined #ruby-lang
slaytanic has joined #ruby-lang
msaffitz has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
robbyoconnor has quit [Read error: Connection reset by peer]
rking has quit [Quit: BRB]
rking has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
cantonic has joined #ruby-lang
rowanu has joined #ruby-lang
rking has quit [Client Quit]
rking has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
carloslopes has joined #ruby-lang
lsegal has joined #ruby-lang
rushed has joined #ruby-lang
msaffitz has joined #ruby-lang
ruurd has joined #ruby-lang
imperator has quit [Ping timeout: 252 seconds]
msaffitz has quit [Client Quit]
cantonic has quit [Ping timeout: 248 seconds]
hynkle has quit [Quit: Computer has gone to sleep.]
burgestrand1 has joined #ruby-lang
cirwin has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.8]
brianpWins has joined #ruby-lang
cantonic has joined #ruby-lang
rmascarenhas has joined #ruby-lang
tubbo has quit [Remote host closed the connection]
tubbo has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
ged is now known as Guest31454
Guest31454 is now known as ged
ged is now known as Guest52195
Guest52195 is now known as ged
cantonic has quit [Quit: cantonic]
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
florentg2 has quit [Quit: florentg2]
Sambalero has joined #ruby-lang
rushed has quit [Quit: rushed]
imperator has joined #ruby-lang
slaytanic has quit [Read error: Connection reset by peer]
pbjorklund has quit [Remote host closed the connection]
slaytanic has joined #ruby-lang
Nekka has quit [Quit: WeeChat 0.3.8]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby-lang
sailias has quit [Client Quit]
andrewhl has quit [Remote host closed the connection]
Nekka has joined #ruby-lang
qpingu has joined #ruby-lang
rmascarenhas has quit [Ping timeout: 244 seconds]
andrewhl has joined #ruby-lang
yannis has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
qwerxy has quit [Ping timeout: 244 seconds]
headius has joined #ruby-lang
rmascarenhas has joined #ruby-lang
sora_h is now known as s0ra_h
Axsuul has joined #ruby-lang
krohrbaugh1 has quit [Quit: Leaving.]
Jade has quit [Read error: Connection reset by peer]
Jade has joined #ruby-lang
Jade has quit [Changing host]
Jade has joined #ruby-lang
florentg2 has joined #ruby-lang
burgestrand has quit [Ping timeout: 245 seconds]
tr-808 has quit [Remote host closed the connection]
tr-808_ has quit [Remote host closed the connection]
tr-808 has joined #ruby-lang
_Setsuna_ has joined #ruby-lang
msaffitz has joined #ruby-lang
eLobato has joined #ruby-lang
florentg2 has quit [Ping timeout: 246 seconds]
florentg2 has joined #ruby-lang
eLobato has quit [Quit: Ex-Chat]
dfr|mac has quit [Ping timeout: 265 seconds]
dfr|mac has joined #ruby-lang
bglusman has joined #ruby-lang
bglusman_ has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby-lang
workmad3 has joined #ruby-lang
digitalbane has left #ruby-lang [#ruby-lang]
erics has joined #ruby-lang
<Defusal> apeiros_, when i eventually finish the project i am currently working on i will open source it, maybe you and/or some other people will have some suggestions about it
<Defusal> and im sure some people will think of some uses for it
Skif has quit [Ping timeout: 240 seconds]
cmaujean has quit [Quit: cmaujean]
Carnage\ has joined #ruby-lang
<zzak> what is $/ on windows/
jbsan has joined #ruby-lang
<zzak> \r?
<zzak> imperator ping?
<Defusal> zzak: \r\n
yannis has quit [Quit: yannis]
andrewhl has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
Nekka has quit [Quit: WeeChat 0.3.8]
havenn has quit [Remote host closed the connection]
<zzak> thanks
leopard_me has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
<znowi> Defusal: what is the project?
andrewhl has joined #ruby-lang
qwerxy has quit [Quit: offski]
<Defusal> znouza: an asynchronous DRb interface that provides some useful ways for building distributed interfaces, like being able to call methods (such as registering callbacks) on the return/yield of a method before it has returned
<Defusal> *DRb-like interface
sepp2k has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
nibbo has quit [Ping timeout: 272 seconds]
Boohbah has quit [Write error: Connection reset by peer]
slaytani1 has joined #ruby-lang
slaytanic has quit [Ping timeout: 248 seconds]
ttilley is now known as ttilley_off
slaytani1 has left #ruby-lang [#ruby-lang]
<imperator> no $/ is "\n" on windows
leopard_me has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
qwerxy has joined #ruby-lang
nibbo has joined #ruby-lang
jbsan has quit [Quit: jbsan]
<Defusal> imperator, if he meant $ in regex it's $...
Sambalero has quit [Read error: Connection reset by peer]
<Defusal> $ doesn't change on different platforms afaik, at least not on windows and *nix
<Defusal> but \n on windows is \r\n
Sambalero has joined #ruby-lang
<heftig> only externally
hakunin is now known as cheeseplus_bot
<heftig> if you open a file in text mode, it gets transparently converted
cheeseplus_bot is now known as hakunin
<heftig> that's why $/ is still \n and not \r\n
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
<imperator> erikh, ping
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
ruurd has quit [Ping timeout: 246 seconds]
gsav has quit [Ping timeout: 240 seconds]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
<rue> Eww
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
workmad3 has joined #ruby-lang
nibbo has quit [Ping timeout: 265 seconds]
jbsan has joined #ruby-lang
krohrbaugh has joined #ruby-lang
nibbo has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
gsav has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
dfr|mac has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
codewrangler has joined #ruby-lang
solars has joined #ruby-lang
felipebalbi has joined #ruby-lang
<felipebalbi> hi, I'm using (abusing) ruby unit test framework to run some tests on a series of boards I have attached to my pc through serial
<felipebalbi> basically I want the same test classes to be used on multiple instances of my Board class
<felipebalbi> the reason is that different instances of Board will be writing/reading to/from different tty ports
<felipebalbi> is there an easy way to do that ?
florentg2 has quit [Quit: florentg2]
nibbo has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
qwerxy has joined #ruby-lang
<drbrain> felipebalbi: you have multiple Board classes you want to run tests in?
headius has quit [Quit: headius]
<drbrain> felipebalbi: one strategy is to have a GenericBoardTest and different SpecificBoardTest classes that inherit from it to provide custom setup/tests
<drbrain> felipebalbi: another is to put your tests in a module and include them in the SpecificBoard classes
<drbrain> I'd use include if boards have overlapping feature sets you want to test
nuclearsandwich has quit [Quit: leaving]
nibbo has joined #ruby-lang
qwerxy has quit [Quit: offski]
dfr|mac has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
lightcap has joined #ruby-lang
lightcap has quit [Client Quit]
injekt has joined #ruby-lang
wpaulson has joined #ruby-lang
rowanu has quit [Remote host closed the connection]
Pip has joined #ruby-lang
Pip has quit [Changing host]
Pip has joined #ruby-lang
badfish129 has joined #ruby-lang
scampbell has quit [Quit: Ex-Chat]
Pip has quit [Read error: Connection reset by peer]
bfreeman has quit [Ping timeout: 250 seconds]
headius has joined #ruby-lang
havenn has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
qwerxy has joined #ruby-lang
tubbo has quit [Remote host closed the connection]
nibbo has quit [Ping timeout: 272 seconds]
saLOUt has quit [Quit: Konversation terminated!]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
bfreeman has joined #ruby-lang
workmad3 has joined #ruby-lang
nibbo has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
mssola has quit [Quit: Konversation terminated!]
Jay_Levitt has quit [Quit: Linkinus - http://linkinus.com]
injekt has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 246 seconds]
nibbo has quit [Ping timeout: 252 seconds]
nibbo has joined #ruby-lang
qwerxy has quit [Quit: offski]
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
unixabg has joined #ruby-lang
havenn has quit [Remote host closed the connection]
petercooper has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
nibbo has quit [Ping timeout: 265 seconds]
<apeiros_> whitequark: howdy
heftig has quit [Quit: leaving]
<apeiros_> whitequark: say, do you happen to know if there are useful benchmarks for pl/sql? :)
<erikh> heh
<erikh> ... you're serious, aren't you
<apeiros_> erikh: learning pl/sql
<drbrain> ged: ping
<erikh> I'm sorry
<apeiros_> I wouldn't have dreamed doing that…
<erikh> that's right, you guys are an oracle shop right?
<apeiros_> and I'm seriously disappointed. and that even while I had very very low expectations…
<ged> drbrain: Hi.
<imperator> erikh, you the person to ask test.rubygems.org questions?
<drbrain> ged: looking at your RDoc patch to add extend support
<apeiros_> I wouldn't call use an oracle shop. but we do use oracle. we will migrate to postgres eventually, though. but it'll probably take something between 3 and 10 years…
<drbrain> there's a mention of a possible_bug test case, but it doesn't seem to be included
<drbrain> at least, not in the full diff
<imperator> apeiros_, is this for oracle? i think toad has some tools
<apeiros_> erikh: oracles regex engine passes out at a mere 500 chars… that wasn't enough to even do a naive international area code detection…
<ged> One sec, refreshing my memory.
<apeiros_> imperator: oh, I meant pl/sql vs. other languages
<imperator> pl/sql is different per vendor
<apeiros_> o0
<apeiros_> there's different oracle vendors?
<imperator> do you mean "oracle pl/sql" when you say "pl/sql"?
yxhuvud has quit [Ping timeout: 250 seconds]
<apeiros_> I wasn't aware that there are other pl/sql's
<apeiros_> yes, ora pl/sql
heftig has joined #ruby-lang
<apeiros_> I mean I know that postgres has something that comes close to pl/sql, but I was under the impression that they call it pg/sql
havenn has joined #ruby-lang
<imperator> oh, maybe i just interpret "pl/sql" to be a generic term when perhaps it isn't
<ged> drbrain: Ah, the possible_bug testcase was from the comments for 'include' documentation, but since 'extend' uses the same codeobject code, I just assumed it applied to extend as well.
msaffitz has quit [Quit: Computer has gone to sleep.]
<apeiros_> imperator: well, no idea really. I never paid attention. you may very well be correct…
<drbrain> ged: ok, thanks!
saLOUt has joined #ruby-lang
<erikh> imperator: yes
<drbrain> ged: looks like you forgot to call update_includes in ClassModule#complete, but I'll patch it up
<erikh> imperator: can you email me? erik@hollensbe.org
<erikh> pretty busy atm
<drbrain> err, update_extends
<imperator> apeiros_, anyway if you want to bench/profile/debug oracle pl/sql then i recommend toad
<apeiros_> imperator: ok, duly noted. I hope to never get into that situation and escape to postgres first
<ged> drbrain: update_extends you mean?
<drbrain> ged: yeah
<ged> drbrain: Right, okay. Thanks!
<imperator> apeiros_, i haven't checked in a while, but toad may support pg by now; i'm pretty sure it supports mysql
<drbrain> ged: no wonder, I have no tests for #complete! How could you know? :D
<ged> drbrain: Does it otherwise look okay?
<ged> Hehe.
<drbrain> ged: yup
<ged> Excellent. :)
<drbrain> I just merged it and am wiring up this one little thing
<ged> Yay!
<apeiros_> whitequark: seems I should dig out my java again: http://nedoboi.wordpress.com/2011/01/15/java-vs-c-vs-native-plsql/
saLOUt has quit [Quit: Konversation terminated!]
s0ber_ has joined #ruby-lang
<imperator> apeiros_, i actually don't know what's out there for postgres, i should look
s0ber has quit [Read error: Connection reset by peer]
s0ber_ is now known as s0ber
nibbo has joined #ruby-lang
digitalbane has joined #ruby-lang
woollyams has quit [Ping timeout: 245 seconds]
<zenspider> rawr
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
<imperator> zenspider, merge ma patch!
<zenspider> which?
<imperator> inline
<zenspider> do windows compilers really not have -o ?
<zenspider> because that seems ludicrous
<workmad3> zenspider: mingw probably does
<imperator> -o are optimization flags with msvc
<imperator> workmad3, yes, it uses gcc
gsav has quit [Ping timeout: 246 seconds]
<workmad3> imperator: :)
<zenspider> wait. if they didn't have -o... why hasn't anyone mentioned it before. luis uses/used this. the current windows code are his patches
<imperator> he's assuming mingw
bglusman has quit [Remote host closed the connection]
<zenspider> so your build process actually has to CD into the directory you want to build it in? that's ... wow
<zenspider> why in the FUCK do you work on this platform imperator? you're a smart guy and you've never came off as a masochist to me
bglusman has joined #ruby-lang
<imperator> i'm a rebel
<imperator> rebelling against the tyranny of mingw!
<zenspider> by supporting the majority platform... uh huh
Criztian has joined #ruby-lang
<imperator> i guess i didn't think it was a big deal
<zenspider> well... I can't accept that first block o' diff
mistym has quit [Remote host closed the connection]
<imperator> actually, you can specify the output locations of specific files, but not like -o afaik
<drbrain> imperator: THAT'S WHAT THEY WANT YOU TO THINK
bglusman has quit [Read error: Connection reset by peer]
<imperator> i are sheeple
bglusman has joined #ruby-lang
bglusman has quit [Read error: Connection reset by peer]
bglusman has joined #ruby-lang
<zenspider> wait. n/m. you fixed that. tho... ugh
workmad3 has quit [Ping timeout: 248 seconds]
rhodee has left #ruby-lang [#ruby-lang]
bglusman_ has joined #ruby-lang
<imperator> oh, do you want cleaner commits?
unixabg has left #ruby-lang [#ruby-lang]
unixabg has joined #ruby-lang
<zenspider> file, line = $1, $2 if caller[1] =~ /(.*?):(\d+)/
<zenspider> nah. I'm just fussing
bglusma__ has joined #ruby-lang
<zenspider> you removed the linker flags... but not LDSHARED?
andrewhl has quit [Remote host closed the connection]
bglusma__ has quit [Read error: Connection reset by peer]
bglusma__ has joined #ruby-lang
<imperator> ld shared is "cl -nologo -LD"
bglusm___ has joined #ruby-lang
bglusman has quit [Ping timeout: 248 seconds]
bglusm___ has quit [Read error: Connection reset by peer]
augustl has joined #ruby-lang
<imperator> cl is the compiler, -nologo just shuts down some otherwise verbose output, and -LD says "create .dll"
digitalbane has left #ruby-lang [#ruby-lang]
bglusman has joined #ruby-lang
bglusman_ has quit [Ping timeout: 240 seconds]
darix has quit [Read error: Operation timed out]
<felipebalbi> drbrain: thanks, that's a good idea ;-)
<zenspider> does flag order matter? you moved CCDLFLAGS and LDFLAGS to the end
<imperator> why is it set that way? dunno, i just deal with what is
<augustl> hi folks. Currently doing `pkey = OpenSSL::PKey::RSA.new(File.read("path/to/key.pub")); pkey.verify(OpenSSL::Digest::SHA256.new, [signature].pack("H*"), data)`. In other words, `verify` wants to hash the signature for me, but my signature is already is hashed
dv310p3r has quit [Ping timeout: 245 seconds]
<imperator> zenspider, yes, the linker flags have to come after the "-link" option, that's why they were moved
<augustl> annoying to have to turn it into binary first
<augustl> err, confusing "hash" and "hex" there a bit, but you get the point
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
bglusma__ has quit [Ping timeout: 240 seconds]
cronin101 has quit [Ping timeout: 245 seconds]
<imperator> zenspider, c'mon now, be fair, you've got some code for screwy, old osx stuff in there too :-P
cronin101 has joined #ruby-lang
bglusman has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby-lang
<zenspider> clearly tagged as such
<zenspider> but... those "screwy" flags were still 10x more developer friendly than your platform (of any age)
<imperator> well, it's not big thing if you'd rather not mess around with this, i've got my fork out there if anyone ever needs it
havenn has quit [Remote host closed the connection]
<zenspider> imperator: http://p.zenspider.com/unified-cmd.rb.html what do you think about that chunk?
<imperator> fine by me, lemme test it quick to make sure
<imperator> hm, 1.9 is not liking that
msaffitz has joined #ruby-lang
<imperator> wait, can you inline an if statement inside an array like that?
<zenspider> failed ifs are nil
<zenspider> arg. sec
dalekurt has joined #ruby-lang
<zenspider> argh. I needed parens. reload the url
<zenspider> sorry
<zenspider> gah. it's almost like we're coding in python
<zenspider> stupid stmt vs expr
<imperator> all tests pass
Hakon|mbp has quit [Quit: Leaving...]
<zenspider> great
Hakon|mbp has joined #ruby-lang
<zenspider> I made a couple other smaller changes
<zenspider> committed
<zenspider> it'll sync back to github on the qtr hour
<zenspider> thanks imperator and thanks for bearing with me
<imperator> zenspider, np, and thanks
Hakon|mbp has quit [Client Quit]
Criztian has quit [Ping timeout: 246 seconds]
<zenspider> my next scheduled release for inline is 7/4
<drbrain> augustl: after signing, did you perform a similar operation on the signature?
<imperator> zenspider, you're coding on the 4th?
<imperator> be sure to have a sparkler going when you release, just for good measure
<zenspider> I love coding on the 4th... I (usually) code best around other people... even if they're not coding.
<zenspider> it's fairly traditional for me to code on the 4th during our usual celebrations
<deryl> think thats the first time i've been at the console when the windows platform was targetted for some code love
<deryl> interesting watching you guys go at it
* zenspider stabs imperator
<zenspider> better?
<deryl> hahaha'
seanstickle has joined #ruby-lang
<deryl> nice
<erikh> my head
<erikh> it hurts
<zenspider> you drink too much
sockmonk has quit [Ping timeout: 240 seconds]
<erikh> nah, I have a cold
<erikh> and you'd be surprised how little I drink
<zenspider> drink more
<erikh> heh
<zenspider> I drink less
<erikh> well yes, because you don't drink at all
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
<augustl> drbrain: hmm, not sure what you mean
jarred has joined #ruby-lang
<augustl> I'm sending an api key and a signature URL encoded over ther wire, so that's why the signature is hex encoded
<drbrain> augustl: ah, right, I had pack backward
<drbrain> augustl: I think I understand your question now
Sambalero has joined #ruby-lang
<augustl> ah :)
<drbrain> you pass in a Digest instance because the data needs to be hashed to generate a signature that can be compared
Carnage\ has quit [Remote host closed the connection]
acidreflux has quit [Remote host closed the connection]
<augustl> yeah I confused the actual verification with the encoding of the signature for a sec..
<augustl> so I guess my question is if there are APIs that takes strings of various formats, such as hex encoded
apeiros_ has quit [Remote host closed the connection]
Carnage\ has joined #ruby-lang
<augustl> which is kind of picky, since I suppose it will have to be converted to the binary representation at some point anyway :)
qwerxy has joined #ruby-lang
<drbrain> Ruby's OpenSSL extension is mostly a thin wrapper around OpenSSL, so it's not so big on user convenience
<drbrain> shorter, you must give #verify a non-hex-encoded string
<augustl> the OpenSSL API in ruby does some times show it's a 1:1 with C APIs :)
<petercooper> "it's not so big on user convenience" is sublimely diplomatic
ryanf has quit [Read error: Connection reset by peer]
<imperator> never was a fan of it for various reasons, but i know why it made it into core
ryanf has joined #ruby-lang
Carnage\ has quit []
dfr|mac has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
dfr|mac has joined #ruby-lang
rmascarenhas has joined #ruby-lang
<drbrain> petercooper: :D
<deryl> petercooper: was wondering when you were going to do an article on rbfu. :-) walking through RW
lorinc has quit [Remote host closed the connection]
<petercooper> I think I was travelling when it first came out so I missed a ton of cool stuff
<petercooper> travelling + doing newsletters doesn't mix :(
<petercooper> so really people should just pay me to sit my ass down in one place and not move <g>
<deryl> haha
<petercooper> or is that basically a career at microsoft..?
<deryl> careful, or you might end up with a burning van in the front lobby (ala Greece)
akira989 has quit [Remote host closed the connection]
<deryl> not working for MS will at least save you that hassle (some not so happy people drove a burning van through the MS HQ in Greece the other day)
* petercooper is surprised to discover he is closer to Athens than NYC is to LA
<petercooper> (by quite some margin too)
<deryl> thats interesting. didn't realize either. would have thought the distance would be greater
<petercooper> Europe is teeny weeny
dfr|mac has quit [Remote host closed the connection]
<deryl> yeah definitely not a Canada :)
<petercooper> Russia, OTOH, is not, as both Hitler and Napoleon will admit
<deryl> lol
acyed has quit [Read error: Connection reset by peer]
dfr|mac has joined #ruby-lang
<deryl> think both of them will admit, the russians unwillingness to get out the way made the road just a wee bit longer too ;)
acyed has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
acyed_ has joined #ruby-lang
wpaulson has joined #ruby-lang
acyed has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<deryl> i got an awesome fiance. but I'll be damned if she knows how to identify which chat box she's pasting huge swaths of text to (person-wise). She's chatting with remote lab partners, and keeps pasting *me* these absolutely huge chunks of texts from her thesis hehe
<deryl> ahh not her thesis, she's working on a debate for her remote class. *sigh*
cube526 has joined #ruby-lang
outoftime has quit [Quit: Leaving]
savage- has joined #ruby-lang
Nisstyre has quit [Read error: Connection reset by peer]
wpaulson has quit [Read error: Connection reset by peer]
savage-_ has quit [Ping timeout: 246 seconds]
wpaulson has joined #ruby-lang
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
qwerxy has joined #ruby-lang
Nisstyre has joined #ruby-lang
Torrieri has joined #ruby-lang
qwerxy has quit [Client Quit]
imperator has quit [Ping timeout: 252 seconds]
kvirani has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
<hahuang65> How do I do an STDIN.gets without it stalling waiting for input? I'd like it to just try to grab something and move on if there's nothing. (I have an endless loop just waiting for input)
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lianj has quit [Ping timeout: 260 seconds]
<augustl> I should make a ruby SSL cheat sheet, similar to my https://github.com/augustl/net-http-cheat-sheet
<augustl> I always end up googling for examples
<augustl> s/I should make/someone should make/
<cirwin> augustl: it'd be nice to have an easier summary of the docs
<augustl> yeah something like that
<zenspider> augustl: yes please
ttilley_off is now known as ttilley
skinny_m has joined #ruby-lang
<augustl> on it :)
butchanton has quit [Quit: Leaving.]
bfreeman has quit [Read error: Connection reset by peer]
bfreeman_ has joined #ruby-lang
gsav has joined #ruby-lang
woollyams has joined #ruby-lang
ttilley is now known as ttilley_off
msaffitz has quit [Quit: Computer has gone to sleep.]