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
<drbrain> User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
<drbrain> erikh: matz uses emacs:
<drbrain> err, ^^
<erikh> ah
slyphon has quit [Quit: WeeChat 0.3.6]
bryancp has quit [Remote host closed the connection]
<drbrain> (I trimmed some of the UA)
<erikh> is he using GNUS?
<erikh> now i'm all curiuos and stuff
<erikh> drbrain: oh! would you be willing to endorse my regexp patches for ruby 2.0?
<drbrain> link?
<erikh> this is hte all_values patch we discussed a while back
<erikh> brb
wmoxam has joined #ruby-lang
sora_h is now known as s0ra_h
Criztian has quit [Remote host closed the connection]
dasibre has joined #ruby-lang
bryancp has joined #ruby-lang
fgomez has quit [Ping timeout: 260 seconds]
tjadc has quit [Ping timeout: 246 seconds]
kalleth has quit [Read error: Operation timed out]
kalleth has joined #ruby-lang
flowerpot has joined #ruby-lang
postmodern has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
s0ra_h is now known as sora_h
seanstickle has quit [Quit: Nihil sub sole novum]
msaffitz has quit [Quit: Computer has gone to sleep.]
seanstickle has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
fserb has joined #ruby-lang
bryancp has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
fukushim_ has quit [Read error: Connection reset by peer]
cantonic has quit [Quit: cantonic]
savage- has quit [Ping timeout: 244 seconds]
wasnotrice is now known as zz_wasnotrice
wmoxam has quit [Ping timeout: 260 seconds]
fserb has quit [Quit: ttyl]
gsav has joined #ruby-lang
fserb has joined #ruby-lang
cantonic has joined #ruby-lang
neoesque has joined #ruby-lang
woollyams has joined #ruby-lang
perryh_ has left #ruby-lang [#ruby-lang]
perryh has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
<Defusal> oh wow
<Defusal> as early as it is, i couldn't be more excited about mruby
tRAS has joined #ruby-lang
postmodern has quit [Ping timeout: 252 seconds]
sora_h is now known as s0ra_h
WillMarshall has joined #ruby-lang
s0ra_h is now known as sora_h
tomb__ has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
jtoy has quit [Quit: jtoy]
slyphon has joined #ruby-lang
havenn has joined #ruby-lang
postmodern has quit [Ping timeout: 248 seconds]
jperry2 has quit [Quit: Leaving.]
postmodern has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
msaffitz has joined #ruby-lang
shevy has quit [Ping timeout: 246 seconds]
WillMarshall has quit [Quit: Computer has gone to sleep.]
Z33K|Lux has joined #ruby-lang
shtirlic_ has joined #ruby-lang
shtirlic has quit [Ping timeout: 248 seconds]
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
s0ra_h is now known as sora_h
shevy has joined #ruby-lang
srbartlett has quit [Ping timeout: 246 seconds]
wmoxam has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
fserb has quit [Quit: ttyl]
casey has joined #ruby-lang
sora_h is now known as s0ra_h
fgomez has quit [Quit: leaving]
dfr|mac has joined #ruby-lang
s0ra_h is now known as sora_h
plusk has joined #ruby-lang
andrewhl has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 240 seconds]
fgomez has joined #ruby-lang
tindron has quit [Ping timeout: 256 seconds]
WillMarshall has joined #ruby-lang
chendo_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
wmoxam has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
WillMarshall has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
igotnolegs has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
dasibre has quit [Remote host closed the connection]
burgestrand has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby-lang
sora_h is now known as s0ra_h
yannis has joined #ruby-lang
msaffitz has joined #ruby-lang
tRAS has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
r0bby has joined #ruby-lang
shtirlic_ has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
tonesfrommars has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
fayimora has quit [Ping timeout: 264 seconds]
fayimora has joined #ruby-lang
fayimora has quit [Client Quit]
tejas has joined #ruby-lang
tejas has quit [Changing host]
tejas has joined #ruby-lang
gja has quit [Ping timeout: 240 seconds]
r0bby is now known as robbyoconnor
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
nazty has joined #ruby-lang
dv310p3r has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
zz_wasnotrice is now known as wasnotrice
plusk has quit [Quit: Leaving]
asahi has quit [Quit: Leaving.]
wmoxam has quit [Ping timeout: 246 seconds]
hynkle has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
mistym has quit [Read error: Connection reset by peer]
ramonmaruko has quit [Remote host closed the connection]
tRAS has quit [Quit: Mother, did it need to be so high?]
dalekurt has quit [Quit: Zzz...]
ramonmaruko has joined #ruby-lang
ryanf has quit [Quit: leaving]
woollyams has joined #ruby-lang
savage- has joined #ruby-lang
japaniel has quit [Quit: japaniel]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
rippa has joined #ruby-lang
dalekurt has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
Crystal has joined #ruby-lang
hynkle has quit [Quit: hynkle]
wasnotrice is now known as zz_wasnotrice
flowerpot has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
M4g1c5t0rM has quit [Read error: Connection reset by peer]
krz has joined #ruby-lang
ryanf has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
tRAS has joined #ruby-lang
gsav has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
ezkl has joined #ruby-lang
huug has joined #ruby-lang
huug has quit [Client Quit]
msaffitz has joined #ruby-lang
youngin has quit [Ping timeout: 250 seconds]
s0ra_h is now known as sora_h
apeiros_ has joined #ruby-lang
tonesfrommars has quit [Quit: KVIrc 4.0.1 Insomnia http://www.kvirc.net/]
Fullmoon has joined #ruby-lang
yxhuvud has joined #ruby-lang
brianpWins has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Computer has gone to sleep.]
slyphon has quit [Ping timeout: 245 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
gouthamvel has joined #ruby-lang
TvL2386 has joined #ruby-lang
tejas has quit [Quit: This computer has gone to sleep]
gouthamvel has left #ruby-lang [#ruby-lang]
dhruvasagar has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
sora_h is now known as s0ra_h
tRAS has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
tRAS has quit [Client Quit]
imperator has joined #ruby-lang
s0ra_h is now known as sora_h
hinbody has quit [Ping timeout: 244 seconds]
M4g1c5t0rM has quit [Ping timeout: 246 seconds]
ltd- has quit [Ping timeout: 240 seconds]
Crystal has quit [Quit: irc2go]
ryanf_ has joined #ruby-lang
ryanf_ has left #ruby-lang [#ruby-lang]
msaffitz has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Disconnected by services]
kitallis has joined #ruby-lang
hinbody has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
burgestrand has quit [Quit: Leaving.]
vmoravec has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
solars has joined #ruby-lang
ltd- has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
hynkle has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby-lang
charliesome has joined #ruby-lang
diegoviola has quit [Ping timeout: 256 seconds]
hakunin has quit [Ping timeout: 246 seconds]
imperator has quit [Quit: Leaving]
stardiviner has joined #ruby-lang
sora_h is now known as s0ra_h
chendo_ has quit [Quit: Computer has gone to sleep.]
poga has joined #ruby-lang
ruurd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 246 seconds]
TvL2386 has quit [Quit: Ex-Chat]
poga has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
gnufied has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
WillMarshall has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 252 seconds]
WillMarshall has quit [Client Quit]
tjadc has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sora_h is now known as s0ra_h
qwerxy has joined #ruby-lang
Axsuul has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
hynkle has quit [Ping timeout: 244 seconds]
brushbox has quit [Quit: Leaving.]
fgomez has quit [Ping timeout: 265 seconds]
TheHunter_1039 has quit [Quit: TheHunter_1039]
zz_chrismcg is now known as chrismcg
skinny_much has joined #ruby-lang
hynkle has joined #ruby-lang
brushbox has joined #ruby-lang
youngin has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
srbartlett has joined #ruby-lang
sora_h is now known as s0ra_h
lun_ has joined #ruby-lang
lun_ has quit [Client Quit]
qwerxy has quit [Quit: offski]
lun_ has joined #ruby-lang
setmeaway has joined #ruby-lang
perryh is now known as perryh_away
Hakon|mbp has joined #ruby-lang
zmack has joined #ruby-lang
lun_ has quit [Quit: Lost terminal]
fserb has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
tomb__ has joined #ruby-lang
toretore has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
robotmay has joined #ruby-lang
dv310p3r has joined #ruby-lang
tbuehlmann has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
jbsan has joined #ruby-lang
Z33K|Lux has quit []
cdt has joined #ruby-lang
skinny_much has quit [Remote host closed the connection]
neocoin has quit [Ping timeout: 246 seconds]
Defusal has quit [Read error: Connection reset by peer]
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
Criztian has joined #ruby-lang
tekin has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
srbartlett has quit [Ping timeout: 244 seconds]
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
mssola has joined #ruby-lang
sora_h is now known as s0ra_h
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
cantonic_ has joined #ruby-lang
Y_Ichiro_ has joined #ruby-lang
Y_Ichiro_ has quit [Changing host]
Y_Ichiro_ has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
solars has quit [Ping timeout: 246 seconds]
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
x0F_ is now known as x0F
bryanl_ has joined #ruby-lang
lianj_ has joined #ruby-lang
ozzloy_ has joined #ruby-lang
musl has quit [Read error: Connection reset by peer]
flebel has quit [Ping timeout: 260 seconds]
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
bryanl has quit [Quit: ZNC - http://znc.sourceforge.net]
stepnem has quit [Quit: ZNC - http://znc.sourceforge.net]
lake has quit [Ping timeout: 260 seconds]
lianj has quit [Ping timeout: 260 seconds]
ozzloy has quit [Ping timeout: 260 seconds]
qwerxy has joined #ruby-lang
stepnem has joined #ruby-lang
gouthamvel has joined #ruby-lang
flebel has joined #ruby-lang
corundum has quit [Disconnected by services]
gouthamvel has left #ruby-lang [#ruby-lang]
corundum has joined #ruby-lang
musl has joined #ruby-lang
horus_plex has quit [Ping timeout: 260 seconds]
horus_plex has joined #ruby-lang
znz_jp has quit [Ping timeout: 260 seconds]
snk has quit [Ping timeout: 260 seconds]
solars has joined #ruby-lang
tomb__ has left #ruby-lang [#ruby-lang]
zmack has quit [Read error: Connection reset by peer]
snk has joined #ruby-lang
_tomb has joined #ruby-lang
zmack has joined #ruby-lang
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
znz_jp has joined #ruby-lang
mssola has quit [Quit: Konversation terminated!]
dhruvasagar has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 246 seconds]
<zzak> good morning!
seoaqua has joined #ruby-lang
lake has joined #ruby-lang
neoesque has quit [Quit: Bye!]
dhruvasagar has joined #ruby-lang
<Defusal> morning!
dr_bob has joined #ruby-lang
<matled> is there any library (or a simple file format) to create image files by specifying the size and then setting the color values for each individual pixel?
fserb has quit [Quit: ttyl]
<matled> uh, netpbm looks really nice
solars has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
cantonic_ has joined #ruby-lang
solars has joined #ruby-lang
<Defusal> if i create a new instance of an object in a block body, there are no other references to it
<Defusal> at what point does that reference become invalid so that the object can be garbage collected?
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
<Defusal> because using ObjectSpace.define_finalizer(self) { ... } inside the initialize method and running GC.start a lot shows the finalizer is never evaluated
lun_ has joined #ruby-lang
yannis has quit [Quit: Bye!]
heftig has quit [Quit: leaving]
Guedes has joined #ruby-lang
stepnem has quit [Ping timeout: 260 seconds]
<Defusal> bleh
<Defusal> i can see this being an issue
tejas has joined #ruby-lang
lun_ has quit [Quit: Lost terminal]
gja has quit [Ping timeout: 260 seconds]
<Defusal> ahh yes, i remember that from years ago now bnagy
<Defusal> my bad
<Defusal> docs show it using a proc, could be better explained
stepnem has joined #ruby-lang
d3vic3 has quit [Ping timeout: 265 seconds]
d3vic3 has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
<rue> Finalizers are ew
<bnagy> Agree, wouldn't touch them with a stick
<Defusal> then again, it still doesnt work bnagy
<Defusal> :P
<Defusal> i need them to work in this specific case
<rue> You can’t explicitly delete because?
<rue> Or do whatever
dalekurt has joined #ruby-lang
<Defusal> rue, i need to deference the objects remotely over RPC when they are GCed locally
<rue> You should probably be using MagLev
<Defusal> it is the last thing i need to finish for my async DRb-like interface
<Defusal> MagLev is awesome
<Defusal> but not an option at this point
<rue> I know I can’t dissuade you and I don’t have the time to help come up with a sane solution, but this whole sharing objects thing is crazy.
<Defusal> rue, if you ever think of a better solution, please let me know
<Defusal> i have come up with the best protocol i can think of
<Defusal> i just need finalizers to work so that references to objects remain for callbacks which are called more than once
kain has joined #ruby-lang
<Defusal> my wrapper already works great in all other cases
<Defusal> you can define a proxy object and call methods on it (such as registering callbacks) before it even exists on the remote end (to avoid race conditions)
<Defusal> this is the best solution i can come up with for a realtime protocol with realtime events
<Defusal> and it works great so far
<Defusal> now i just need GC to work
<Defusal> even if i do: obj = RemoteObjectProxy.new(:dummy, :dummy); obj = nil; it still isnt GC'd
stepnem has quit [Quit: ZNC - http://znc.sourceforge.net]
<Defusal> ok, it seems it has to do with the definition being inside a block and not a method
<Defusal> strange, im not sure which scope the reference is getting stuck in
Hakon|mbp has joined #ruby-lang
stepnem has joined #ruby-lang
ezkl has quit [Quit: QUIT!]
<Defusal> hmmm
<TTilus> the scope the closure has around it?
<Defusal> module Mod; on(:loaded) { obj = Object.new }; end; Mod.event[:loaded].call
<Defusal> in that case, obj is never GC'd
<Defusal> anyone know why?
<TTilus> hum
<TTilus> "on" seems to save the block it is given
<Defusal> indeed
<Defusal> i just realized :P
<Defusal> loaded callbacks should be removed after execution i guess
<TTilus> you need to get rid of the references in those block scopes
<Defusal> references to those block scope, you mean?
<Defusal> yet removing the references to the block still doesn't work
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
ConstantineXVI has joined #ruby-lang
<Defusal> oh i lie, it is working :)
<TTilus> good
<Defusal> thanks
<TTilus> np
futurechimp has joined #ruby-lang
casey has quit [Quit: casey]
Constant_ has quit [Ping timeout: 245 seconds]
<Defusal> or no, it was the previous object, so i was right, it still isnt working TTilus :(
<Defusal> bleh
<Defusal> interestingly enough, even explicitly setting obj = nil in the block still doesnt work
<Defusal> very strange
<Defusal> ok i don't have the slightest clue why
<Defusal> guess i can't define variables inside a block defined on class level for whatever reason
<Defusal> i'll have to define and use class methods instead, which does suck
s0ra_h is now known as sora_h
<Defusal> but this means that a lot of people are probably creating memory leaks like this without knowing it
srbartlett has joined #ruby-lang
nevynxxx has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> good morning
<Defusal> afternoon :)
<shevy> greetings perator
sora_h is now known as s0ra_h
<Defusal> bleh, even a class method doesnt work
<Defusal> i'm starting to get relatively agitated
bryancp has joined #ruby-lang
<imperator> man, if headius or enebo aren't in #jruby that channel is quiet
<Defusal> this channel is pretty dead this time of the day
hynkle has quit [Quit: hynkle]
<imperator> if someone has a question people usually pipe up though
<Defusal> except for my questions :P
<Defusal> guess it's because i always seem to hit the edge case
s0ra_h is now known as sora_h
asahi has joined #ruby-lang
asahi has left #ruby-lang [#ruby-lang]
postmodern has quit [Ping timeout: 246 seconds]
jakko has joined #ruby-lang
dv310p3r has quit [Quit: Leaving]
srbartlett has quit [Remote host closed the connection]
jakko has quit [Remote host closed the connection]
jakko has joined #ruby-lang
gnufied has quit [Read error: Connection reset by peer]
gnufied1 has joined #ruby-lang
postmodern has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
jperry2 has joined #ruby-lang
ttilley_off is now known as ttilley
Raduwen has joined #ruby-lang
workmad3 has joined #ruby-lang
jordan` has quit [Ping timeout: 245 seconds]
<Defusal> dereferenced object is never GC'd, if anyone has any ideas: http://pastie.org/4050097
tejas has quit [Quit: This computer has gone to sleep]
stardiviner has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
IPGlider has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
hynkle has joined #ruby-lang
workmad3 has joined #ruby-lang
imperator2 has joined #ruby-lang
slyphon has joined #ruby-lang
<imperator2> heya slyphon
gix- has quit [Ping timeout: 256 seconds]
jxie has quit [Quit: leaving]
imperator has quit [Ping timeout: 245 seconds]
<andrewvos> What's up internet bros?
gja has joined #ruby-lang
<imperator2> screwing around with finalizers
<imperator2> Defusal, i don't think assigning nil to an object triggers a finalizer
gix has joined #ruby-lang
<imperator2> only when the object goes out of scope iirc
<imperator2> docs say "when the object is about to be destroyed"
<Defusal> imperator2, nil would deref it, but it should work with or without the nil assignment
<Defusal> yet it doesnt work at all
<Defusal> ever
<Defusal> yes
<imperator2> i think you're thinking in C++
<Defusal> and GC destroys objects that have no references when it runs
<Defusal> huh?
<Defusal> how so...
<Defusal> i've tried all sorts of things
<Defusal> including allocating huge strings, incase somehow GC is not working as it should when i manually call 100.times { GC.start }
<Defusal> but nothing works
<Defusal> i thought it had to be related to my DSL, then class methods didnt work either
<Defusal> now i created a super simple test case
<Defusal> and it still doesnt work
<imperator2> then it must not work the way you think it works
gnufied1 has quit [Quit: Leaving.]
<imperator2> mind you, this is coming from someone who never uses finalizers or manual gc
rippa has quit [Quit: derp herp]
<Defusal> then someone needs to tell me how it does work
<dominikh> Defusal: what's the expected output?
krz has quit [Quit: krz]
<Defusal> because as far as i can see, it does not
gnufied has joined #ruby-lang
<Defusal> finalizers do work
<Defusal> but this is not, for some reason
<Defusal> dominikh, GC should call the finalizer and destroy the deferenced object
<Defusal> it is never destroyed though, nor finalized
<dominikh> it's early, I don't want to think, what's the expected _output_ :P
<dominikh> because I get [RemoteObjectProxy] Garbage collected! 0
<dominikh> 0
<Defusal> dominikh, that happens when ruby exits
<Defusal> that is too late
<Defusal> it needs to happen before exiting
<Defusal> but no matter what i do, allocating huge strings, running GC.start 1500 times, it still doesnt work
<dominikh> a) your debug output is suboptimal b) no, that doesn't happen when ruby exists. the first line shows up almost immediately
Blob has joined #ruby-lang
<dominikh> fwiw, I don't think that finalizers are guaranteed to run as soon as the object gets GCed?
<Defusal> dominikh, add a puts line at the end of the test case and paste your output please
<Defusal> dominikh, they are, but GC may not happen immediately, though the way i am forcing it, it should work
dv310p3r has joined #ruby-lang
sepp2k has joined #ruby-lang
<Defusal> on dear
<Defusal> it works for you dominikh
<dominikh> yup.
<Defusal> yet it doesnt work on my windows pc nor my linux server
<dominikh> 1.9.3-p0
<Defusal> that's just great
<Defusal> are you using 1.8?
<Defusal> wtf
Blob has quit [Remote host closed the connection]
<Defusal> i don't get it
<Defusal> my output is: yo dawg\n1\n[RemoteObjectProxy] Garbage collected! 0
<dominikh> what ruby version?
<Defusal> my server is ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
<Defusal> my windows pc is ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
<Defusal> they both behave the same
<dominikh> works with p125 here, too
<dominikh> 64 bit as well.
<dominikh> linux as well.
<Defusal> how can both my rubys have faulty GC, including the same version you are running
<Defusal> sigh
<Defusal> just my luck...
<dominikh> what are you trying to solve, anyway?
<Defusal> and i really cant continue without it working
<tbuehlmann> "yo dawg, 1, [RemoteObjectProxy] Garbage collected!" 0 for me :>
<Defusal> ah, yours is broken too at least tbuehlmann
<Defusal> that makes me feel better
<dominikh> I'm not really sure I'd call it "broken". for one, the GC doesn't make any claims to be 100% correct, nor to be deterministic.
<Defusal> dominikh, removal of remote references over RPC when local process deferences proxy objects
<imperator2> different across different impls too
<dominikh> plus, as far as I have gathered, relying on finalizers for important behaviour is discouraged
<Defusal> sure, but the behaviour is differing between my same version and dominikhs
<Defusal> yet it is the same on my two seperate MRI versions
<Defusal> on seperate machines and OS'
<Defusal> dominikh, they are guaranteed to fire *eventually*
<Defusal> but for testing purposes, i should be able to force it
<dominikh> Defusal: they did fire, eventually. when the process ends :)
<Defusal> oh well
<dominikh> for what it is worth, right now my result is the anomaly, considering it is producing different output for 3 other configurations ;)
<Defusal> i will just have to hope that they will work at some point
<Defusal> and not create leaks on multiple processes
<Defusal> yeah, you havn't modified your ruby at all have you?
<Defusal> something that may have patched the GC
<tbuehlmann> get that behaviour on windows with 1.9.3p0 and 1.9.2p320, 1.9.3p194 and jruby 1.7.0.preview1 (ruby-1.9.3-p203)
<imperator2> 1\n[RemoteObjectProxy] Garbage collected! 0 -> 1.9.3-p194 on OSX
<dominikh> vanilla install from rvm
<Defusal> hmmm
<Defusal> odd
<Defusal> even allocating ridiculously large objects doesnt work
<Defusal> even though that does force GC to reclaim what it can
dv310p3r has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
<dominikh> Defusal: try https://gist.github.com/cadbdbcc4cb7dde2f08b instead
<dominikh> well, fix line 25 of course
<dominikh> but you get the idea
<imperator2> Defusal, i was able to force it by setting GC.stress = true :)
<Defusal> dominikh, doesnt change anything
<dominikh> Defusal: I am more curious as to what the Instances number is
<Defusal> imperator2, even that doesnt work here
<Defusal> dominikh, 1 of course
enebo has joined #ruby-lang
nazty has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby-lang
wmoxam has quit [Client Quit]
riffraff_ has joined #ruby-lang
dv310p3r has joined #ruby-lang
shtirlic has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
imperator has joined #ruby-lang
<Defusal> ok, it is official, MRIs GC sucks ass.
neoesque has joined #ruby-lang
<imperator> noted
<Defusal> it works perfectly on rubinius
<Defusal> but i can't use rubinius where i need to use it -.-
hakunin has joined #ruby-lang
<rue> GC is non-deterministic
<rue> Not to mention all the memory constraints that individual systems might have or not have
<Defusal> rue, this is clear
neoesque has quit [Client Quit]
<Defusal> running GC.start 1500 times, making 15 strings that are 1000000 chars long and using GC.stress does not work
t4nkd has joined #ruby-lang
<Defusal> nothing can force MRI GC to work, so how can you test that it ever will?
<t4nkd> Hi Ruby, is there a method that would return all the initialized attributes of a new object for Class, without actually instantiating a new object?
bryancp has quit [Remote host closed the connection]
<Defusal> t4nkd: Class.instance_methods(false)
Elixor has joined #ruby-lang
<Defusal> so rue
<Defusal> if you need to depend on finalizers, how are you supposed to check for possible memory leaks if you cannot force GC to work>?
<rue> Right, there’s two things wrong with that. 1. You can’t depend on finalizers and 2. you can’t depend on the GC
workmad3 has quit [Ping timeout: 240 seconds]
<Defusal> rue, why can't you depend on finalizers? they are guaranteed to fire *eventually* when the object is GC'd
<Defusal> or is that not even true? are you telling me MRIs finalizers are bugged on top of everything else?
<Defusal> and if you can't rely on GC, that means you can have unlimited memory leaks without any hope of fixing them
Xzyx987X_ has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
<Defusal> while i understand you can't rely on GC collecting at some specific time, it should work eventually
Xzyx987X has quit [Read error: Connection reset by peer]
Elixor has quit [Quit: Page closed]
wrong_nickname has joined #ruby-lang
CodeBlock has quit [Excess Flood]
asahi has joined #ruby-lang
polokovovy has joined #ruby-lang
wrong_nickname has quit [Client Quit]
<imperator> Defusal, memprof?
<asahi> I'm using rvm with osx and I restarted zsh and the next thing I know, some of my executables (such as rails and pry) cannot be found. I don't see them in .rvm/bin. Any ideas?
jakko_ has joined #ruby-lang
<TTilus> asahi: maybe they werent there to begin with
<bnagy> rvm implode and use rbenv
brianpWins_ has joined #ruby-lang
jakko has quit [Ping timeout: 260 seconds]
<TTilus> asahi: and you had them someplace else which happened to be in path
<Defusal> imperator, you still can't create a test for it
<TTilus> +1 the suggestion from bnagy
<Defusal> you can only test during live production
gja has quit [Quit: This computer has gone to sleep]
vmoravec has quit [Quit: Leaving]
<asahi> TTilus: yeah you may be right. now I'm seeing that ruby isn't pointing to rvm at all
nofxxx has quit [Ping timeout: 260 seconds]
<TTilus> Defusal: why couldnt you?
wasnotrif has joined #ruby-lang
jmcphers_ has joined #ruby-lang
<asahi> yeah maybe I'll try rbenv
hibariya has joined #ruby-lang
<TTilus> Defusal: just nedd longer running test
<Defusal> TTilus, how are you going to test if nothing you can do makes GC work
wilkie has quit [Ping timeout: 260 seconds]
crankhar1er has joined #ruby-lang
<Defusal> bleh
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
jmcphers has quit [Quit: Leaving]
zz_wasnotrice has quit [Quit: ZNC - http://znc.sourceforge.net]
crankharder has quit [Ping timeout: 244 seconds]
hibariya_ has quit [Quit: No Ping reply in 180 seconds.]
Tasser has quit [Ping timeout: 244 seconds]
brianpWins has quit [Ping timeout: 244 seconds]
llakey has quit [Ping timeout: 244 seconds]
Bwild has quit [Ping timeout: 244 seconds]
major_majors has quit [Ping timeout: 244 seconds]
zzak has quit [Ping timeout: 244 seconds]
iosctr has quit [Ping timeout: 244 seconds]
brianpWins_ is now known as brianpWins
tr-808 has quit [Remote host closed the connection]
<Defusal> i can see this wasting tons of my time in the near future
corecode has quit [Ping timeout: 244 seconds]
jasiek has quit [Ping timeout: 244 seconds]
awwaiid has quit [Ping timeout: 244 seconds]
major_majors has joined #ruby-lang
<TTilus> just wait for it to run, if your code allocates, it is bound to run
<Defusal> as if i have any time to waste :(
<bnagy> Defusal: no offence, but you're like the 'unlucky expert'
zzak has joined #ruby-lang
llakey has joined #ruby-lang
<andrewvos> Yrah
Guedes has quit [Ping timeout: 244 seconds]
rtl has quit [Ping timeout: 244 seconds]
<bnagy> you do things a weird way, it doesn't work right, then say you 'bleh my code is great if XYZ weren't buggy'
tr-808_ has joined #ruby-lang
tr-808 has joined #ruby-lang
corecode has joined #ruby-lang
jasiek has joined #ruby-lang
<Defusal> bnagy, no offence taken, i couldnt be any less lucky.. i always seem to hit the edge case
<TTilus> Defusal: why do you use ruby if it wastes your time?
wilkie has joined #ruby-lang
rtl has joined #ruby-lang
benwoody_ has quit [Ping timeout: 244 seconds]
CodeBlock has joined #ruby-lang
<Defusal> TTilus, it doesn't most of the time, but i'm sure you should know this
postmodern has quit [Quit: Leaving]
nofxxx has joined #ruby-lang
<TTilus> Defusal: if you want to deal with manual gc and destructors you might be running on totally wrong platform
<Defusal> bnagy, and yes, it would be great if i didn't hit as many edge cases
gja has quit [Client Quit]
<TTilus> Defusal: think about it
<TTilus> Defusal: im not kidding really
iosctr has joined #ruby-lang
<shevy> we'll just replace ruby with C
<Defusal> TTilus, if by now i havn't made it clear that i only need to manually run it for testing, i give up
Guedes has joined #ruby-lang
Guedes has quit [Changing host]
Guedes has joined #ruby-lang
<Defusal> i have enough memory leaks as is to fix
<TTilus> Defusal: would there be plat where what you do is not so close to edges?
<shevy> Cuby - the elegance of ruby with the speed of C
Tasser has joined #ruby-lang
<Defusal> i don't need to create more while implementing new functionality
<Defusal> TTilus, sure, when im using the libs and frameworks that i have implemented
benwoody has joined #ruby-lang
<Defusal> shevy: mruby compiles your ruby code to C
polokovovy has quit [Ping timeout: 245 seconds]
nofxxxx has joined #ruby-lang
jakko_ has quit [Remote host closed the connection]
<shevy> wheeeeeeeeee!
<shevy> so matz is working on rubyOS after all :)))
jakko_ has joined #ruby-lang
awwaiid has joined #ruby-lang
headius has joined #ruby-lang
gdfasdfasdf has joined #ruby-lang
nofxxx has quit [Ping timeout: 265 seconds]
<Defusal> well, parts of mruby can be coded in ruby
<Defusal> and then compiled to C
imperator2 has quit [Quit: This computer has gone to sleep]
<Defusal> should speed up the development cycle nicely
<ddfreyne> RubyOS?
gdfasdfasdf has quit [Client Quit]
headius has quit [Client Quit]
crankhar1er has quit [Quit: leaving]
<andrewvos> grep -v '^shevy' "ruby-lang"
<Defusal> ddfreyne, shevy is on drugs :P
headius has joined #ruby-lang
crankharder has joined #ruby-lang
<andrewvos> shevy is your brain on drugs.
<shevy> man you are all so unbelievers
<shevy> you gotta believe in things
msaffitz has joined #ruby-lang
<shevy> it seems way too much work to clone something like linux in ruby anyway, even if there would be barely any speed difference
andrewhl has joined #ruby-lang
<shevy> any farewell party to 1.8.x ?
dr_bob has quit []
<shevy> http://www.ruby-lang.org/en/news/2011/10/06/plans-for-1-8-7/ "We continue to provide normal maintenance for 1.8.7 as usual, until June 2012."
<shevy> June 2012
<shevy> there must be a farewell party!
<imperator> shevy, we already had it, but you weren't invited
<shevy> ARGH
<imperator> the booze. the dancing. the hot people. clothes coming off. more booze.....but i've said too much already
<shevy> well alright
<shevy> as long as andrewvos was not there it's fine for me
jakko_ has quit [Remote host closed the connection]
jakko_ has joined #ruby-lang
nofxxx has joined #ruby-lang
gouthamvel has joined #ruby-lang
nofxxxx has quit [Ping timeout: 248 seconds]
bryancp has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
adambeynon has joined #ruby-lang
outoftime has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
tsou has joined #ruby-lang
imperator has quit [Quit: Leaving]
agile has quit [Ping timeout: 260 seconds]
dfr|mac has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
stardiviner has joined #ruby-lang
<andrewvos> I'm still using 1.8.7-p302. This fact displeases me.
<andrewvos> lolredhat
<andrewvos> roflredhat
stardiviner has quit [Client Quit]
msaffitz has quit [Quit: Computer has gone to sleep.]
t4nkd has left #ruby-lang ["Linkinus - http://linkinus.com"]
stardiviner has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
riffraff_ has quit [Quit: Leaving]
M4g1c5t0rM has quit [Ping timeout: 260 seconds]
<shevy> hmm
samuelkadolph has quit [Quit: Quitting]
<shevy> I was using ruby-1.8.7p358 most of the time until recently
<shevy> I wish I would have a ruby 1.0.0 somewhere
andrewhl has quit [Remote host closed the connection]
<shevy> but I dont think I was even born then
rmascarenhas has joined #ruby-lang
samuelkadolph has joined #ruby-lang
<Defusal> it would seem that i found the trick to GC
mssola has joined #ruby-lang
<Defusal> while you can create any amount of strings, arrays, etc, in memory and not have a single deferenced instance of SomeClass collected
<Defusal> if you create more instances of SomeClass
<Defusal> all deferenced instance are collected
<TTilus> Defusal: yarv, right?
<Defusal> theres also a threshold for the number of object, create between 1 - 5 and the last one is not collected, create 6 and they all are
<Defusal> TTilus, 1.9 yeah
<TTilus> Defusal: ymmv from implementation to implementation, just remember that
<Defusal> MRI
<Defusal> i cannot use anything other than MRI at this point
<Defusal> but i am very happy with this
<Defusal> if only i knew it sooner
<TTilus> ok, then you at least get consistent behavior
<asahi> I just installed rbenv and a ruby on osx. when I do gem list bundler, it shows up, but the bundle command isn't working. I did rbenv rehash, added eval "$(rbenv init -)" to my .zshrc file and reloaded zsh. any ideas?
<TTilus> if speed of support is important you mught be better off with paying an actual expert instead of hanging around here and trying to make sense of us :)
<TTilus> Defusal: ^
vaelen has joined #ruby-lang
bryancp_ has joined #ruby-lang
crackity_jones has quit [Ping timeout: 244 seconds]
bryancp_ has quit [Remote host closed the connection]
agile has joined #ruby-lang
<Defusal> TTilus, i was not complaining about a community irc support channel. more about the lack of relevant documentation (making such knowledge very inaccessable)
<Defusal> this means that no one really knows, and can only make assumptions, which makes everyones life harder
nevynxxx has quit [Quit: leaving]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
bryancp has quit [Ping timeout: 245 seconds]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
<TTilus> ...and thats exactly when you go hire an exper, which was what i suggested ;)
<TTilus> s/exper/expert/
lianj_ has quit [Changing host]
lianj_ has joined #ruby-lang
lianj_ is now known as lianj
<Defusal> TTilus: not everyone has the luxury of corporate funding. more importantly though, even remotely experienced ruby developers should never need to do such a thing.
<Defusal> TTilus, how often do you go out and hire an expert due to lack of documentation?
brianpWins has quit [Quit: brianpWins]
rippa has joined #ruby-lang
sora_h is now known as s0ra_h
tcopp has joined #ruby-lang
elux has joined #ruby-lang
<elux> hey guys
<elux> is ->{ } a shorthand for lambda { } ?
<elux> yep..
<elux> cool
<elux> i wonder when this was introduced.. 1.9.3 ?
mistym has quit [Remote host closed the connection]
<singpolyma> elux: IIRC, the ugly ->{} syntax was since ruby 1.9
akira989 has joined #ruby-lang
<elux> gotcha..
<frem> stabby lambda!
<elux> i dont think its so ugly
<singpolyma> elux: obvisouly someone on the ruby team didn't think it was ugly either, or we wouldn't have it :)
<singpolyma> but I've never seen it in real code
<elux> i noticed in the mongoid codebase.. thats why i asked
<singpolyma> I have no problem with the world "lambda" myself
<singpolyma> ah, ok
TheHunter_1039 has joined #ruby-lang
<singpolyma> s/world/word
<elux> yea me neither
<elux> i dont know the difference between proc Proc and lamba anyways
Mastak has joined #ruby-lang
s0ra_h is now known as sora_h
<shevy> elux I dont know either. but I think lambda is a method, Proc is a constant usable for Proc.new's
* frem can't remember and pulls out his metaprogramming ruby book
tjadc_ has joined #ruby-lang
<frem> in a lambda, return just returns from the lambda; in a proc return returns from the scope the proc was defined.
<frem> lambdas are also more picky about passing in a different number of arguments than are defined.
<frem> a proc just uses nil for missing arguments
jperry2 has quit [Read error: Connection reset by peer]
jperry2 has joined #ruby-lang
neocoin has joined #ruby-lang
gouthamvel has quit [Read error: Operation timed out]
andrewhl has joined #ruby-lang
jperry2 has quit [Client Quit]
<elux> cool. good to kno!
Mastak has left #ruby-lang [#ruby-lang]
gouthamvel has joined #ruby-lang
deryl has quit [Ping timeout: 252 seconds]
Mastak has joined #ruby-lang
deryl has joined #ruby-lang
Mastak has quit [Client Quit]
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
agile has quit [Ping timeout: 246 seconds]
fserb has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
bryancp has joined #ruby-lang
brianpWins has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
dr_turkleberry has joined #ruby-lang
yannis has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
arooni-mobile has joined #ruby-lang
<andrewvos> TIL: ->{}
jbwiv has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
<erikh> I'm sorry
bglusman has joined #ruby-lang
<andrewvos> erikh: No likey?
RickHull has joined #ruby-lang
<erikh> the old ways are best
<andrewvos> But it's FOUR LESS CHARACTERS. Think of all the time you will save?
<andrewvos> Actually two. If you count pressing shift.
<erikh> well it's lambda technically.
RegEchse has joined #ruby-lang
<cout> I still think -> is ugly syntax :(
<erikh> ^
<Defusal> +1
<Defusal> though there are more ugly things, i think it
<shevy> yeah
<Defusal> it's* less ugly when used in CoffeeScript
<shevy> perl code
<Defusal> without { }
<Defusal> adding {} to -> makes it a lot worse imo
bglusman has quit [Ping timeout: 260 seconds]
<erikh> that's not perl.
* erikh sighs
<Defusal> lol
ryez has joined #ruby-lang
<shevy> ok
<shevy> who actually likes the ->
<shevy> because so far I only found people who dislike it
* ironcamel does
<shevy> ok one
<ironcamel> busted
<shevy> perhaps you find more
<shevy> matz perhaps :)
agile has joined #ruby-lang
<cout> I would be happy if I could use a unicode lambda symbol instread of ->
<shevy> oh dear
wallerdev has joined #ruby-lang
<arooni-mobile> does anyone here use god? if so, is the memory restriction setting monitoring VIRT, RES, or RES+VIRT in determining # of MB?
carloslopes has joined #ruby-lang
thone_ has joined #ruby-lang
danishman has joined #ruby-lang
Carnage\ has joined #ruby-lang
thone has quit [Ping timeout: 252 seconds]
<ddfreyne> I’m visiting Tokyo in september, and I’m looking for Ruby meetups in that period… any suggestion where I could start looking?
savage- has joined #ruby-lang
hibernaculum has joined #ruby-lang
d3vic3 has quit [Ping timeout: 260 seconds]
robotmay has quit [Remote host closed the connection]
d3vic3 has joined #ruby-lang
<carloslopes> ddfreyne: maybe here you can find something: http://www.rubyusergroups.org/
agile has quit [Ping timeout: 245 seconds]
singpolyma has quit [Quit: Lost terminal]
butchanton has joined #ruby-lang
agile has joined #ruby-lang
moogs has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
florentg2 has joined #ruby-lang
Carnage\ has quit [Ping timeout: 244 seconds]
<zzak> when is kaigi 2012?
<andrewvos> 2012
<erikh> haha
<zzak> nvm, thats september
<erikh> wasn't the last kaigi the last kaigi
<erikh> ?
moogs has quit [Client Quit]
<zzak> neg
<erikh> didn't they claim that at some point?
<zzak> yeh, i remember hearing that too
ruurd has joined #ruby-lang
savage- has quit [Remote host closed the connection]
savage- has joined #ruby-lang
RickHull has quit [Changing host]
RickHull has joined #ruby-lang
<RickHull> what's a regex that will reject any strings with unprintable chars? i tried /\A[[:print:]]\Z/
<RickHull> er, [[:print:]]*
<RickHull> but it won't reject "\n"
<RickHull> i suppose i should just match on unprintables?
<Defusal> "\n" is printable
<erikh> it's whitespace
<Defusal> it is a visible new line
<RickHull> i think for [:print:] it is not
<erikh> [[:print:]]+ gives you the same results?
<RickHull> it will match "1\n"
<erikh> hrm.
<RickHull> whereas i would want it to reject
<erikh> you could reject [\W\S
<erikh> bah
<erikh> you get where I'm going with this
<RickHull> i had thought \A \Z meant the entire string had to match
<erikh> right
moogs has joined #ruby-lang
<erikh> \A and \Z ignore newlines and other partitioning regexes typically use
<erikh> for ^ and $
<RickHull> yeah, and so i thought if everything between \A \Z was printable, it should match, and otherwise not
moogs has quit [Client Quit]
<RickHull> but it doesn't seem to behave like that
tjadc has quit [Ping timeout: 246 seconds]
tjadc_ has quit [Ping timeout: 260 seconds]
<erikh> well, you're not really hearing what defusal and I are trying to suggest
<erikh> \n is printable
<RickHull> [:print:] does exclude whitespace, except for the space character
<erikh> just like ' ' is
<RickHull> /[[:graph:]]/ - Non-blank character (excludes spaces, control characters, and similar)
<RickHull> /[[:print:]]/ - Like [:graph:], but includes the space character
andrewhl has quit [Remote host closed the connection]
akira989 has quit [Remote host closed the connection]
<erikh> erroneous documentation? never. :P
<RickHull> it does reject "\n1"
<erikh> oh interesting.
<erikh> so maybe the \Z is matching the \n
<Mon_Ouie> Use \z
<Defusal> \z
<Defusal> ^ :)
<Defusal> or rather, $
<RickHull> ah, hmm
<Defusal> i've only ever used \Z to match the end of a line
<erikh> $ will match \n
<Defusal> iirc, only used it once
<Defusal> oh right, it's the other way around
<Mon_Ouie> So his regexp will match "foo\n\C-a"
<RickHull> so do i want \a too?
<Mon_Ouie> There's no \a AFAIK
<Defusal> \z is EOF
<erikh> \a is a bell
<erikh> e.g. ^G
<Defusal> don't think \a exists in ruby
<erikh> it's a standard escape
<Defusal> its the same as ^ in other regex
<Mon_Ouie> Yeah, except that one — but no special meaning in regular expressions
<erikh> yeah it does... puts "\a"
<erikh> and wait for the beep
<Defusal> no, i mean for regex
<RickHull> yeah, regex anchors
<erikh> yes, but escapes work in regexes too
<Defusal> this is a regex conversation after all :)
<erikh> e.g., they can't use \a because it's already taken
<erikh> /\A\a\Z/ is valid
<Defusal> yeah but hes trying to use \a instead of ^
<erikh> it matches a bell.
<RickHull> \A should be fine
<RickHull> i just thought there might be a counterpart to \z
<Defusal> YUP
<Defusal> </caps>
<erikh> RickHull: aye
<RickHull> alright, here's the funny part
<RickHull> i actually don't want to reject newlines
<erikh> hahaha
<erikh> you ass.
<Defusal> lol
jredville has joined #ruby-lang
<RickHull> but now i get the anchoring
<RickHull> i definitely had a bug there
cdt has quit [Quit: Ex-Chat]
<RickHull> /\A[[:print:]\n]*\z/ # thanks!
ruurd has quit [Quit: Leaving...]
jxie has joined #ruby-lang
Skif has joined #ruby-lang
bglusman has joined #ruby-lang
akira989 has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
gregf has quit [Quit: WeeChat 0.3.8]
jtoy has joined #ruby-lang
jakko_ has quit [Ping timeout: 260 seconds]
hibernaculum has quit [Quit: Leaving]
qwerxy has quit [Ping timeout: 244 seconds]
bglusman has quit [Ping timeout: 245 seconds]
carloslopes has quit [Quit: Leaving]
Hakon|mbp has quit [Quit: Leaving...]
DMKE has joined #ruby-lang
DMKE has joined #ruby-lang
d3vic3 has quit [Read error: No route to host]
Carnage\ has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
scampbell has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
flak has joined #ruby-lang
futurechimp has quit [Quit: Leaving]
flak is now known as Guest96042
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Carnage\ has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 248 seconds]
lsegal has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
ozzloy_ has left #ruby-lang [#ruby-lang]
Guedes is now known as Guedes_out
tjadc has joined #ruby-lang
Guest96042 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tjadc_ has joined #ruby-lang
rippa has joined #ruby-lang
mistym has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
dr_turkleberry has quit [Quit: dr_turkleberry]
gja has joined #ruby-lang
florentg2 has quit [Quit: florentg2]
headius has quit [Quit: headius]
headius has joined #ruby-lang
bryancp has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
slaytanic has joined #ruby-lang
andrewhl has joined #ruby-lang
dr_turkleberry has joined #ruby-lang
slaytani1 has joined #ruby-lang
slaytani1 has left #ruby-lang [#ruby-lang]
dr_turkleberry has quit [Client Quit]
slaytanic has quit [Ping timeout: 240 seconds]
chrismcg is now known as zz_chrismcg
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
nuclearsandwich has quit [Ping timeout: 276 seconds]
M4g1c5t0rM has quit [Read error: Connection reset by peer]
nuclearsandwich has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
hynkle has quit [Quit: hynkle]
agile has quit [Ping timeout: 260 seconds]
agile has joined #ruby-lang
danishman has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
bfreeman has joined #ruby-lang
dabaR has joined #ruby-lang
<dabaR> I want to use a mixin to do logging with Logger. How can I do it? Here's a little more info: https://gist.github.com/2889712
felipe__ has joined #ruby-lang
benanne has joined #ruby-lang
wmoxam has joined #ruby-lang
<ddfreyne> As somebody who does not speak Japanese, it is at all useful to attend a Japanese Ruby conference? Is the language often English?
Asher has quit [Quit: Leaving.]
imperator has joined #ruby-lang
Asher has joined #ruby-lang
<drbrain> ddfreyne: are you thinking about attending SapporoRubyKaigi?
<ddfreyne> yes
<drbrain> ddfreyne: there will be plenty of English
<ddfreyne> I noticed the call for papers ended today
<ddfreyne> I missed it by a few hours :(
<drbrain> at past RubyKaigis there was an IRC channel with translations
heftig has joined #ruby-lang
<ddfreyne> ah well, I would have needed a bit more time to prepare anyway
<drbrain> at one there was a separate projector
<drbrain> I strongly recommend going if you want to know about the guts of ruby
<drbrain> there are many more talks about the guts of ruby than at other conferences I've been to
<drbrain> (I'm attending SapporoRubyKaigi
elux has quit [Quit: Bye!]
tonesfrommars has joined #ruby-lang
<zzak> here's one: how would you reference a constant by variable? ie: #{klass}_A_CONSTANT or MyModule::#{klass}.some_method
<zzak> i am stumped
sandbags has quit [Remote host closed the connection]
<yxhuvud> zzak: const_get
<Defusal> if you using ActiveSupport, "MyModule::#{klass}".constantize.some_method
<zzak> thank you
<Defusal> which is a bit more flexible, so you dont have to iterate over each namespace and use const_get
<drbrain> why why why why why? MyModule.const_get(class).some_method is shorter
<drbrain> oops, klass
<Defusal> yeah, in that case
<Defusal> i meant with more namespaces
<zzak> i like const_get too
brianpWins has quit [Quit: brianpWins]
<zzak> its just preference i guess
<Defusal> nah, don't get me wrong, i'd rather use it too in that case
<drbrain> dabaR: wrap it in a module and include it, @logger will be available
MouseTheLuckyDog has quit [Ping timeout: 240 seconds]
<Defusal> but if you want to "MyModule::#{namespace}::#{const_name}".constantize, i'd rather do that
<drbrain> it seems like ActiveSupport is half-built to make you not learn ruby
<Defusal> also not the best example though, depends on your implementation needs
<Defusal> i find some of the newer string constant transformation helper methods more useful though
<yxhuvud> drbrain: problem is that the other half is pretty okish.
florentg2 has joined #ruby-lang
<Defusal> i was able to replace an ugly recursive method with obj.qualified_const_get(const_name) the other day
yannis has quit [Quit: Bye!]
<drbrain> Defusal: at least qualified_const_get familiarizes you with ruby. constantize is a bizarre formation
<dabaR> drbrain: I know, I just can't get the syntax right. I'll get back to you after I make another gist. Thank you.
<Defusal> fair enough drbrain
<shevy> hehe ActivelyKillingYoungcomers
<shevy> hmm did I coin a new word here...
adambeynon has quit [Quit: Computer has gone to sleep.]
MouseTheLuckyDog has joined #ruby-lang
zmack has quit [Remote host closed the connection]
Skif has quit [Quit: Linkinus - http://linkinus.com]
gregf has joined #ruby-lang
brianpWins has joined #ruby-lang
dr_turkleberry has joined #ruby-lang
tjadc has quit [Ping timeout: 260 seconds]
tjadc_ has quit [Ping timeout: 244 seconds]
elux has joined #ruby-lang
Jade has joined #ruby-lang
<dabaR> No, you just put several together
<dabaR> Oh, youngcomers...maybe so
tjadc has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
crackity_jones has joined #ruby-lang
tjadc_ has joined #ruby-lang
diegoviola has joined #ruby-lang
hagabaka has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
jakko_ has joined #ruby-lang
benwoody has left #ruby-lang [#ruby-lang]
agile has quit [Ping timeout: 245 seconds]
casey has joined #ruby-lang
agile has joined #ruby-lang
mrsolo has joined #ruby-lang
dr_turkleberry has quit [Quit: dr_turkleberry]
Jade has quit [Read error: Connection reset by peer]
dabaR has left #ruby-lang [#ruby-lang]
Jade has joined #ruby-lang
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Jade has left #ruby-lang [#ruby-lang]
shtirlic has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
brushbox1 has joined #ruby-lang
tylurgillees is now known as tylergilliesIII
brushbox has quit [Ping timeout: 245 seconds]
tylergilliesIII is now known as TylerGillies
fgomez has quit [Quit: leaving]
fgomez has joined #ruby-lang
headius has quit [Quit: headius]
jakko_ has quit [Ping timeout: 265 seconds]
gnufied has joined #ruby-lang
robotmay has joined #ruby-lang
xcyclist has joined #ruby-lang
<xcyclist> I have a working regexp object ro where I can geta positive match on a string s: ro.match(s) => true. How do I plug that into s.sub(regexo,'newstr')??
yxhuvud has quit [Ping timeout: 245 seconds]
<zenspider> xcyclist: did you try it?
japaniel has joined #ruby-lang
japaniel has quit [Read error: Connection reset by peer]
japaniel has joined #ruby-lang
headius has joined #ruby-lang
<xcyclist> D'oh. Sorry.
Xzyx987X_ has quit [Read error: Connection reset by peer]
gnufied1 has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
gnufied has quit [Read error: Connection reset by peer]
<acyed> hey everyone. I have a string that has a quote in it that I want to replace. doc.to_html.gsub("\"+1\"", "\"-1\"") gives me \"-1\" as the output...
solars has joined #ruby-lang
<acyed> and I don't want the \ infront
<zenspider> are you doing this in irb?
<zenspider> ...
<acyed> yep
<cout> what's the simplest way to search a String for all occurances of a given regex?
<TTilus> cout: .scan
<cout> oh yeah
<cout> been a while since I used that
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
<acyed> how do i insert a "" into a string?
<zzak> "some string" << "" ?
rippa has quit [Ping timeout: 248 seconds]
<acyed> I'm trying to match a "+1" and replace it with "-1", but I want to only match +1's with quotes around it (because there's the possibility for +1's to be everywhere)
<acyed> if that makes sense
fserb has quit [Quit: ttyl]
gouthamvel has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
gouthamvel has left #ruby-lang [#ruby-lang]
neocoin has joined #ruby-lang
tindron has joined #ruby-lang
tcopp has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
neocoin has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
fserb has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
jedmtnman has joined #ruby-lang
agile has quit [Ping timeout: 245 seconds]
<TTilus> acyed: your doc.to_html.gsub("\"+1\"", "\"-1\"") is completely correct
jakko_ has joined #ruby-lang
akira989 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<TTilus> acyed: "the \ infront" is your irb helpfully .inspecting the return values of your expressions when printing them out
<TTilus> acyed: try puts '"' and puts '"'.inspect to see the difference
imperator has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
<TTilus> acyed: the idea is that for literals you could copy-paste stuff from irb to code and have it work
agile has joined #ruby-lang
kain has quit [Quit: Sto andando via]
mistym has joined #ruby-lang
jakko_ has quit [Ping timeout: 252 seconds]
gregf has quit [Read error: Connection reset by peer]
gregf has joined #ruby-lang
Xzyx987X has joined #ruby-lang
Skif has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
Xzyx987X_ has quit [Ping timeout: 252 seconds]
felipe__ has quit [Ping timeout: 246 seconds]
mrsolo has quit [Quit: Leaving]
<shevy> has File.readlines changed?
<shevy> from 1.8.7 to 1.9.3
<shevy> I now seem to get the newlines in every array member?
<erikh> I don't think it did
<RickHull> that's the normal behavior, newlines
<RickHull> IIRC, and it's what i get on 1.8.7
back287 has joined #ruby-lang
<RickHull> File.readlines 'header_template.rb'
<RickHull> => ["#!/usr/bin/env ruby\n", "\n", "require '...
back287 has quit [Client Quit]
t4nk418 has joined #ruby-lang
Dreamer3 has joined #ruby-lang
butchanton has quit [Remote host closed the connection]
butchanton has joined #ruby-lang
msaffitz has joined #ruby-lang
elux has quit [Quit: Bye!]
wmoxam has quit [Ping timeout: 256 seconds]
RickHull has quit [Ping timeout: 265 seconds]
gnufied1 has quit [Quit: Leaving.]
<shevy> hmmm odd
<shevy> something changed here ...
<shevy> perhaps somewhere else in my scripts. oh well
alexkane has quit [Remote host closed the connection]
japaniel has quit [Quit: japaniel]
mssola has quit [Quit: Konversation terminated!]
t4nk418 has quit [Quit: Page closed]
CCD has joined #ruby-lang
Joonds has joined #ruby-lang
CCD has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
brushbox1 has quit [Quit: Leaving.]
Axsuul has joined #ruby-lang
tbuehlmann has quit []
casey has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
dv310p3r has quit [Ping timeout: 244 seconds]
Skif has quit [Remote host closed the connection]
Skif has joined #ruby-lang
DMKE has quit [Ping timeout: 260 seconds]
krohrbaugh has quit [Quit: Leaving.]
Joonds has quit []
tr-808_ has quit [Quit: leaving]
dasibre has joined #ruby-lang
outoftime has quit [Quit: Leaving]
Axsuul has quit [Ping timeout: 240 seconds]
Criztian_ has joined #ruby-lang
qwerxy has joined #ruby-lang
Defusal_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
DMKE has joined #ruby-lang
DMKE has quit [Changing host]
DMKE has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.8]
headius has quit [Quit: headius]
chrismcgh has joined #ruby-lang
gregf has joined #ruby-lang
dreieins- has joined #ruby-lang
kotp has joined #ruby-lang
kalleth__ has joined #ruby-lang
ryland_ has joined #ruby-lang
snk_ has joined #ruby-lang
asahi has left #ruby-lang [#ruby-lang]
_tca_ has joined #ruby-lang
amerine_ has joined #ruby-lang
bryancp has joined #ruby-lang
unsymbol has quit [Read error: Operation timed out]
solars has quit [Ping timeout: 245 seconds]
unsymbol has joined #ruby-lang
znz_v0 has joined #ruby-lang
horus_plex_ has joined #ruby-lang
jarib_ has joined #ruby-lang
snk has quit [*.net *.split]
horus_plex has quit [*.net *.split]
Criztian has quit [*.net *.split]
Defusal has quit [*.net *.split]
kalleth has quit [*.net *.split]
kyrylo has quit [*.net *.split]
dreieins has quit [*.net *.split]
denysonique has quit [*.net *.split]
dkannan has quit [*.net *.split]
mccraig has quit [*.net *.split]
akamike has quit [*.net *.split]
abuiles has quit [*.net *.split]
anildigital_work has quit [*.net *.split]
nisstyre has quit [*.net *.split]
agib has quit [*.net *.split]
wycats has quit [*.net *.split]
pkondzior has quit [*.net *.split]
cesario has quit [*.net *.split]
zz_chrismcg has quit [*.net *.split]
jarib has quit [*.net *.split]
amerine has quit [*.net *.split]
VGoff has quit [*.net *.split]
znz_v has quit [*.net *.split]
ryland has quit [*.net *.split]
_tca has quit [*.net *.split]
kotp is now known as VGoff
Facefox has quit [Ping timeout: 240 seconds]
brushbox has joined #ruby-lang
kyrylo has joined #ruby-lang
nisstyre has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
Facefox has joined #ruby-lang
wycats has joined #ruby-lang
DMKE has quit [Quit: Pingpong.]
florentg2 has quit [Quit: florentg2]
agile has quit [Ping timeout: 260 seconds]
tris has quit [Excess Flood]
digman543 has joined #ruby-lang
denysonique has joined #ruby-lang
agib has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
digman543 has quit [Ping timeout: 240 seconds]
slyphon has quit [Quit: WeeChat 0.3.6]
cesario has joined #ruby-lang
tris has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
tonesfrommars has quit [Ping timeout: 244 seconds]
sora_h is now known as s0ra_h
robotmay has quit [Remote host closed the connection]
anildigital_work has joined #ruby-lang
d3vic3 has joined #ruby-lang
agile has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
pkondzior has joined #ruby-lang
M4g1c5t0rM has quit [Ping timeout: 260 seconds]
s0ra_h is now known as sora_h
pcboy_ has quit [Ping timeout: 245 seconds]
<countdigi> is quoting a non-interpolated string w/ ' instead of " faster in ruby?
dasibre has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
jarib_ has quit [Excess Flood]
SoSincere has joined #ruby-lang
jarib has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
<rue> No
sora_h is now known as s0ra_h
ttilley is now known as ttilley_off
brunocoelho has joined #ruby-lang
toretore has quit [Quit: Leaving]
andrewhl has quit [Remote host closed the connection]
tindron has quit [Ping timeout: 245 seconds]
IPGlider has quit []
butchanton has quit [Quit: Leaving.]
butchanton has joined #ruby-lang
vaelen has quit [Remote host closed the connection]
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-rc2)]
chessguy has joined #ruby-lang
peppyheppy has joined #ruby-lang
<drbrain> countdigi: on my keyboard, it's faster to type since I don't have to hold down shift
<drbrain> that's the only reason I use it
s0ra_h is now known as sora_h
Criztian_ has quit [Remote host closed the connection]
peppyheppy has quit [Quit: peppyheppy]
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
bryancp has quit [Remote host closed the connection]
xcyclist has quit [Remote host closed the connection]
butchanton has quit [Quit: Leaving.]