apeiros_ changed the topic of #ruby-lang to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
agarie has joined #ruby-lang
r0bby has quit [Max SendQ exceeded]
replore_ has joined #ruby-lang
replore_ has quit [Read error: Connection reset by peer]
r0bby has joined #ruby-lang
tenderlo_ is now known as tenderlove
outoftime has quit [Quit: Leaving]
LordEntro has joined #ruby-lang
toretore has quit [Quit: Leaving]
wyhaines has quit [Remote host closed the connection]
replore has joined #ruby-lang
replore has quit [Read error: Connection reset by peer]
r0bby has quit [Ping timeout: 244 seconds]
savage- has joined #ruby-lang
ryanlecompte has quit [Read error: Connection reset by peer]
robotmay_ has joined #ruby-lang
robotmay has quit [Read error: No route to host]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
robotmay_ has quit [Ping timeout: 272 seconds]
<zenspider> "because bundler"
<zenspider> so many things to go with that explanation...
mrsolo has quit [Quit: Leaving]
replore has joined #ruby-lang
replore has quit [Read error: Connection reset by peer]
loladiro has joined #ruby-lang
intellitech has quit [Ping timeout: 265 seconds]
andrewhl has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
savage- has quit [Read error: Connection reset by peer]
loladiro has quit [Client Quit]
ryanlecompte has joined #ruby-lang
ryanlecompte has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
stonerfish has joined #ruby-lang
savage- has joined #ruby-lang
loladiro has joined #ruby-lang
<zenspider> rawr
rcvalle has quit [Quit: Leaving]
65MAAA5QI has joined #ruby-lang
mjio has joined #ruby-lang
CaptainJet has joined #ruby-lang
havenn has quit [Remote host closed the connection]
marr has quit [Ping timeout: 255 seconds]
havenn has joined #ruby-lang
postmodern has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Ping timeout: 248 seconds]
65MAAA5QI has quit [Remote host closed the connection]
glebm has joined #ruby-lang
havenn has quit [Ping timeout: 272 seconds]
loladiro has quit [Quit: loladiro]
havenn has joined #ruby-lang
intellitech has joined #ruby-lang
apeiros_ has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
srbaker has joined #ruby-lang
loladiro has joined #ruby-lang
kurko_ has quit [Ping timeout: 265 seconds]
faustman has quit [Ping timeout: 264 seconds]
<yfeldblum> zenspider, what's up with "because bundler"?
loladiro has quit [Client Quit]
apeiros_ has quit [Ping timeout: 264 seconds]
<elico> I was wondering about IP sockets dilemma I'm having. A IO.select should be used for tcp\udp write ? or just read?
tenderlove has joined #ruby-lang
<drbrain> elico: both
<drbrain> you just need to put the socket in the right list
<elico> drbrain: Well I am trying to use SleepingPenguin epoll.
<elico> U assume it's another story,
rcvalle has joined #ruby-lang
<drbrain> I imagine it's best if you don't combine using epoll and select
<elico> I will not.. but I am trying to understand why epoll wont mark the fd as writable :\
<elico> drbrain: have you used EPOLL in rtuby?
<drbrain> no, I don't use any OS with EPOLL for development
<elico> similar kernel side based FD notification ? mac? windows?bsd?
<drbrain> I haven't used kqueue either
<elico> So what ? select?
Ziioynx has quit [Quit: Leaving]
methods has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
gregmoreno has quit [Ping timeout: 244 seconds]
<drbrain> I use IO.select and let ruby do what it does (call select(2) internally)
<drbrain> … but more often I use threads will just block waiting for IO
glebm has quit [Quit: Computer has gone to sleep.]
<elico> hmm I want to prevent blocking :\
<charliesome> how come?
<charliesome> threads are good
<drbrain> threads prevent blocking
<drbrain> you block one thread, another is scheduled
<charliesome> unless you have a good reason, it's fine to just use threads and let the kernel worry about events and scheduling and all that
<drbrain> yup ^^
methods has left #ruby-lang [#ruby-lang]
loladiro has joined #ruby-lang
<mitchty> have you profiled that the fd blocking is an issue?
loladiro has quit [Client Quit]
<elico> mitchty: it's suppose to be a transparent proxy so blocking Will be a very big issue.
<drbrain> elico: blocking threads != blocking the process
<elico> I wont use one thread per a pair of connections... since it's unreasonable
<mitchty> elico: so you've measured and know where the bottleneck is?
<elico> mitchty: I can try to implement it with SELECT and two threads etc.
<charliesome> threads will be far more efficient than select(2) if you have a lot of fds
<charliesome> and if you don't have a lot of fds, then it doesn't matter what you do
<elico> I will have more then 3000 connections which will have a paired one so more then 6k connection :\
<charliesome> select(2) won't even work with that many connections
<elico> in any case of more then 100 connections it wont be good with select.
<elico> I thing I will use epoll and mark the connections every time they have a read or write flag
<elico> then trigger the needed action..
bryno has quit [Ping timeout: 264 seconds]
loladiro has joined #ruby-lang
<elico> I have been looking at the EM pure ruby implementation to get an idea of some things.
blazes816 has quit [Quit: blazes816]
loladiro has quit [Client Quit]
kurko_ has joined #ruby-lang
savage- has quit [Remote host closed the connection]
intellitech has quit [Quit: intellitech]
<havenn> elico: Have you checked out Celluloid::IO?
apeiros_ has joined #ruby-lang
ddd has quit [Quit: Leaving.]
ddd has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
JoelMcCracken has joined #ruby-lang
<elico> havenn: Thanks for that. I have tried to think of a way to use it but my problem is that I am trying to implement A transparent proxy which needs special sockets and I am not sure if at can or cannot be done using it.
dankest has quit [Quit: Leaving...]
<elico> it*
seanstickle has joined #ruby-lang
guns has joined #ruby-lang
apeiros_ has quit [Ping timeout: 244 seconds]
io_syl has quit [Ping timeout: 265 seconds]
bryno has joined #ruby-lang
mjio has quit []
Briney has quit [Quit: Briney]
<elico> havenn: my sockets have special properties ...
sn0wb1rd has quit [Quit: sn0wb1rd]
alvaro_o has quit [Quit: Ex-Chat]
mjio has joined #ruby-lang
krohrbaugh1 has quit [Quit: Leaving.]
chessguy has joined #ruby-lang
intellitech has joined #ruby-lang
tris has quit [Excess Flood]
drbrain has joined #ruby-lang
apeiros_ has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
tris has joined #ruby-lang
drbrain has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
nertzy2 has joined #ruby-lang
nertzy has quit [Ping timeout: 256 seconds]
apeiros_ has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
agarie has quit [Remote host closed the connection]
havenn has joined #ruby-lang
headius has joined #ruby-lang
glebm has joined #ruby-lang
havenn has quit [Ping timeout: 265 seconds]
loladiro has joined #ruby-lang
headius_ has joined #ruby-lang
headius has quit [Ping timeout: 250 seconds]
headius_ is now known as headius
krohrbaugh has joined #ruby-lang
headius has left #ruby-lang [#ruby-lang]
srbaker has quit [Quit: Computer has gone to sleep.]
briantrust has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
imajes has quit [Excess Flood]
seanstickle has quit [Quit: seanstickle]
imajes has joined #ruby-lang
joast has joined #ruby-lang
CaptainJet has quit [Ping timeout: 256 seconds]
CaptainJet has joined #ruby-lang
lagzilla has quit [Ping timeout: 272 seconds]
apeiros_ has joined #ruby-lang
lagzilla has joined #ruby-lang
intellitech has quit [Quit: intellitech]
stonerfish has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
apeiros_ has quit [Ping timeout: 260 seconds]
wyhaines has joined #ruby-lang
seydar has joined #ruby-lang
<seydar> i just had a thought. should i care about making things explicitly SINGLE THREADED?
<seydar> like, i'm just writing some non-threaded code, and i need to iterate through an array in order
<seydar> how would i communicate my need for that code to be run consecutively to the interpreter?
<seydar> obviously it's not necessary
<seydar> but... fuck i can't articulate myself. does someone get what i'm saying?
elico has quit [Ping timeout: 255 seconds]
srbaker has joined #ruby-lang
agarie has joined #ruby-lang
ryanf_ has joined #ruby-lang
pototo has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 265 seconds]
hakunin has joined #ruby-lang
CaptainJet has quit []
xalei has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
havenn has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
chessguy has quit [Remote host closed the connection]
briantrust has joined #ruby-lang
apeiros_ has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
rohit has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
pototo has quit [Quit: pototo]
apeiros_ has quit [Ping timeout: 250 seconds]
esad has joined #ruby-lang
ebouchut has joined #ruby-lang
dankest has joined #ruby-lang
Jayje_Atrhavein has joined #ruby-lang
rohit has quit [Quit: Leaving]
Jayje_Atrhavein has left #ruby-lang [#ruby-lang]
kurko_ has quit [Ping timeout: 256 seconds]
seydar has quit [Quit: leaving]
linc01n has quit [Ping timeout: 246 seconds]
linc01n has joined #ruby-lang
guns has quit [Ping timeout: 252 seconds]
xyzodiac has joined #ruby-lang
chessguy has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
bluepojo has quit [Ping timeout: 250 seconds]
rippa has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
apeiros_ has joined #ruby-lang
guns has joined #ruby-lang
apeiros_ has quit [Ping timeout: 256 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
anannie has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
xyzodiac has quit [Client Quit]
spinagon has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
srbaker has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 265 seconds]
apeiros_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
headius has joined #ruby-lang
headius has quit [Client Quit]
apeiros_ has quit [Ping timeout: 246 seconds]
headius has joined #ruby-lang
loladiro has quit [Quit: loladiro]
xyzodiac has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
jobicoppola has joined #ruby-lang
jobicoppola has quit [Client Quit]
intellitech has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 265 seconds]
Spaceghostc2c has quit [Excess Flood]
Spaceghostc2c_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
mjio has quit []
briantrust has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ryanf_ has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Ping timeout: 256 seconds]
s3mi0 has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
ebouchut has quit [Quit: This computer has gone to sleep]
vlad_sta_ has quit [Ping timeout: 256 seconds]
gregmoreno has joined #ruby-lang
imperator2 has joined #ruby-lang
Spaceghostc2c_ is now known as Spaceghostc2c
molly has joined #ruby-lang
molly has left #ruby-lang [#ruby-lang]
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
mistym has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
apeiros_ has joined #ruby-lang
ryanf has joined #ruby-lang
guns has quit [Quit: guns]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
apeiros_ has quit [Ping timeout: 244 seconds]
<whitequark> yorickpeterse: re
<whitequark> that does make sense, indeed
<whitequark> especially the bit about nested classes and such
<whitequark> you likely want to collect them across a lot of loaded files
JohnBat26 has joined #ruby-lang
<whitequark> I'd recommend making this not only a lightweight wrapper around the AST, but also the collection classes to keep the entire working set in
srbaker has quit [Quit: Computer has gone to sleep.]
<whitequark> well, not sure about that last part. I tend to look at everything as a language implementor, linter might need a different approach
imajes has quit [Excess Flood]
apeiros_ has joined #ruby-lang
imajes has joined #ruby-lang
nXqd has joined #ruby-lang
imperator2 has quit [Ping timeout: 244 seconds]
Boohbah has joined #ruby-lang
charliesome has joined #ruby-lang
dankest has quit [Quit: Leaving...]
apeiros_ has quit [Remote host closed the connection]
gregmoreno has quit [Remote host closed the connection]
dankest has joined #ruby-lang
nXqd has quit [Ping timeout: 256 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
nXqd has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
nXqd has quit [Remote host closed the connection]
xyzodiac has quit [Client Quit]
kitallis has joined #ruby-lang
kitallis has quit [Excess Flood]
kitallis has joined #ruby-lang
kitallis has quit [Excess Flood]
kitallis has joined #ruby-lang
kitallis has quit [Excess Flood]
kitallis has joined #ruby-lang
kitallis has quit [Excess Flood]
qwerxy has joined #ruby-lang
kitallis has joined #ruby-lang
kitallis has quit [Excess Flood]
kitallis has joined #ruby-lang
kitallis has quit [Excess Flood]
headius has quit [Quit: headius]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> Morning
<yorickpeterse> whitequark: hmm, I do intend to keep it lightweight. Yesterday I can up with a few things that I'd want such as RubyLint::RubyMethod#calls() which would return a list of all methods called by this particular method
<yorickpeterse> Just to give an example
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
dc5ala has joined #ruby-lang
dankest is now known as dankest|away
gnufied has joined #ruby-lang
zmack has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
anannie has joined #ruby-lang
sush24 has joined #ruby-lang
nXqd has joined #ruby-lang
spinagon has quit [Ping timeout: 272 seconds]
dankest|away is now known as dankest
esad has joined #ruby-lang
judofyr has joined #ruby-lang
rue|w has joined #ruby-lang
intellitech has quit [Quit: intellitech]
robotmay has joined #ruby-lang
<whitequark> yorickpeterse: I'm not sure
<whitequark> you will probably want to resolve those method calls, will you?
<whitequark> this one, and similar more advanced features, would require storing more than just AST-dependent, file-local information
qwerxy has quit [Quit: offski]
dr_bob has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
toretore has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
dankest is now known as dankest|away
esad has joined #ruby-lang
<yorickpeterse> Which is why I want these "middleware" between the AST and analysis bits
kain has quit [Quit: exit]
tenderlove has joined #ruby-lang
<yorickpeterse> The statistics I'd collect for third-party devs/analysis code would be fairly raw data though. I'm not going to retrieve entire call stacks for them
andrewhl has quit [Remote host closed the connection]
<yorickpeterse> Think method callers/calls, amount of statements, that kind of stuff
<yorickpeterse> as well as some helpers to check the method arity, maybe validate the parameter (types)
io_syl has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> This all popped in my head yesterday so the idea is still very raw
<yorickpeterse> which is why I didn't touch Vim last night because I'd otherwise end up with some half-assed implementation
<yorickpeterse> What I don't want to end up with is N analysis classes basically doing the same stuff over and over again
<injekt> oddmunds: no it was changed in 3.0 though, it needs work but I need a lot of feedback on it
imajes has quit [Excess Flood]
<judofyr> data structures are hard
imajes has joined #ruby-lang
Axsuul has quit [Ping timeout: 255 seconds]
Averna has quit [Quit: Leaving.]
judofyr has quit [Ping timeout: 264 seconds]
<yorickpeterse> giggity
solars has joined #ruby-lang
marr has joined #ruby-lang
dankest|away is now known as dankest
<injekt> ruby hurts my face sometimes
lagzilla has quit [Ping timeout: 250 seconds]
<tockitj_> is there a tool that will generate ruby method usage cross-reference for vim (something like ctags, only for method usage)
agarcia has joined #ruby-lang
lagzilla has joined #ruby-lang
blacktulip has joined #ruby-lang
stoneyq2 has joined #ruby-lang
<tockitj_> hmmmz.. it would be nice to make ruby capable of running code (and generating cross-reference information along the way)
<tockitj_> like this method is called here, this method is defined here, etc..
<yorickpeterse> heh, wait a month or two and that might be possible
<yorickpeterse> s/might/will be
<tockitj_> there is new feature in plan ? (:
<yorickpeterse> Not in Ruby itself but I'm working on a linter/code analysis tool. One of the plans I have with it is to provide info about method callers/calls, etc
<yorickpeterse> That way you could build a dependency graph, do complexity analysis, etc
<tockitj_> this x-reference database could be used by editors (like vim) to navigate code
<yorickpeterse> But that won't be available until at least the end of january
<tockitj_> niceee
<tockitj_> how will you parse ruby code ? (:
dankest is now known as dankest|away
<yorickpeterse> Currently I'm using Ripper but in the future I might use a different parser
<tockitj_> it would be cool if ruby would parse ruby
<yorickpeterse> plenty of parsers can already do that
<yorickpeterse> Ripper and ruby_parser just to name two of them
apeiros_ has joined #ruby-lang
<tockitj_> hmmz.. maybe ruby itself could do it (for example it could account for this information while running tests)
<Mon_Ouie> Ripper being a wrapper on the parser that's actually used by Ruby itself
<tockitj_> nice
<yorickpeterse> The Ruby runtime itself does provide information about the source code but in a lot of cases it's quite limited
ryanf has quit [Quit: leaving]
adambeynon has joined #ruby-lang
<oddmunds> injekt: i want to make a command line program that takes commands (like git), and the command thing seemed like the perfect fit
<injekt> oddmunds: yeah it works (check out the docs in command.rb) but it needs some modification to makes things easier. If you do use it i'd welcome any feedback or improvements you can think of
sush24 has quit [Read error: Connection reset by peer]
faustman has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
sush24 has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
agarie has quit [Remote host closed the connection]
agarie has joined #ruby-lang
anannie has quit [Remote host closed the connection]
agarie has quit [Ping timeout: 272 seconds]
Guest90418 has joined #ruby-lang
stiang has joined #ruby-lang
tbuehlmann has joined #ruby-lang
swav has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
faustman has quit [Ping timeout: 246 seconds]
thone has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
thone_ has quit [Ping timeout: 255 seconds]
s3mi0 has quit [Remote host closed the connection]
faustman has joined #ruby-lang
madish has joined #ruby-lang
esad has joined #ruby-lang
<oddmunds> injekt: thanks. do i use Slop::Commands.new instead of Slop.new? Or do i combine them?
<oddmunds> from the looks of it, i could just use Commands
<oddmunds> for all my sloppy needs
elico has joined #ruby-lang
zmack_ has joined #ruby-lang
GarethAdams has joined #ruby-lang
zmack has quit [Read error: Operation timed out]
imajes has quit [Excess Flood]
faustman has quit [Ping timeout: 250 seconds]
Croms has quit [Quit: Croms]
Assurbanipal has joined #ruby-lang
imajes has joined #ruby-lang
<injekt> oddmunds: yup, Commands handles creating instances of slop
swav has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
stiang has quit [Quit: stiang]
faustman has joined #ruby-lang
kain has joined #ruby-lang
swav has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
<GarethAdams> d'oh. URI.encode_www_form isn't quite as intuitive as I need it to be
<GarethAdams> > URI.encode_www_form(foo: 23, bar: [], baz: 'abc')
<GarethAdams> => "foo=23&&baz=abc"
<GarethAdams> bar disappears completely
benanne has joined #ruby-lang
agarie has joined #ruby-lang
francisfish has joined #ruby-lang
faustman has quit [Read error: Operation timed out]
<injekt> GarethAdams: turn any empty arrays into strings
<injekt> GarethAdams: you should just send all the values as strings anyway, an array isn't useful
agarie has quit [Ping timeout: 252 seconds]
<GarethAdams> injekt: right, but:
<GarethAdams> > URI.encode_www_form(foo: 23, bar: ['first', 'second'], baz: 'abc')
<GarethAdams> => "foo=23&bar=first&bar=second&baz=abc"
dc5ala has quit [Quit: Ex-Chat]
<GarethAdams> that's more the point of passing an array
<injekt> yeah it just looks like that method isn't smart enough to deal with an empty array https://gist.github.com/f9ff85a1e1b986c313bc
<injekt> GarethAdams: so you either need to turn it into an empty string, or submit a patch to uri
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<yorickpeterse> '1021' < '212' # => true
<yorickpeterse> what the fuck Ruby
<yorickpeterse> So much for sorting on a set of strings
<yorickpeterse> hrmpf
<injekt> eh, in string form that's correct
<injekt> you can't expect ruby to convert it to an integer for you
<chris2> this is not perl
agarie has joined #ruby-lang
<yorickpeterse> injekt: in terms of sorting I'd expect that to work
retro|cz has quit [Ping timeout: 244 seconds]
retro|cz has joined #ruby-lang
agarie has quit [Remote host closed the connection]
<yorickpeterse> I'd solve it by doing it myself but I'm not going to sort a dataset of a few thousand rows in Ruby
elico has quit [Quit: elico]
faustman has joined #ruby-lang
<chris2> strary.sort_by(&:to_i)
zmack_ is now known as zmack
<chris2> if you need a smart sort for filenames, i can dig mine up
judofyr has joined #ruby-lang
swav has joined #ruby-lang
rcvalle has joined #ruby-lang
dankest has joined #ruby-lang
faustman has quit [Ping timeout: 246 seconds]
cultureulterior_ has quit [Ping timeout: 264 seconds]
s3mi0 has joined #ruby-lang
dankest|away has quit [Ping timeout: 250 seconds]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<injekt> Banistergalaxy: ping
Banistergalaxy has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend> Injekt Sup
<injekt> banisterfiend: in local pry dev using `rake pry` is there any way to reload pry after i make changes rather than quitting?
<banisterfiend> Injekt ah no, just reload the file you changed using load() or make the changes with edit/edit-method
<injekt> banisterfiend: alright
faustman has joined #ruby-lang
<banisterfiend> Injekt what you working on?
stoneyq2 has quit [Ping timeout: 265 seconds]
jsilver has joined #ruby-lang
<injekt> banisterfiend: I'm a little confused, on this line https://github.com/pry/pry/blob/master/lib/pry/method.rb#L125 shouldn't that be instance_method(:#{method_name}) ?
<injekt> or #{receiver}.#{method_type}(#{method_name})
benanne has quit [Quit: kbai]
<banisterfiend> Injekt it's paranoid in case method or instance_method is overriden by a class
robotmay has quit [Remote host closed the connection]
anannie has joined #ruby-lang
<injekt> banisterfiend: right but wouldn't that call reciever.instance_method(:instance_method).bind(obj).call(:foo) ?
postmodern has quit [Quit: Leaving]
zz_chrismcg is now known as chrismcg
<injekt> banisterfiend: which would raise an exception on the target which would always fail?
chessguy has joined #ruby-lang
sush24 has quit [Ping timeout: 255 seconds]
faustman has quit [Ping timeout: 260 seconds]
<banisterfiend> Injekt one sec I'll try to switch to computer, too hard to discuss on my phone ;)
<injekt> banisterfiend: sure thanks :P
schaerli has joined #ruby-lang
sush24 has joined #ruby-lang
banisterfiend is now known as hgh
banisterfiend has joined #ruby-lang
rsl has joined #ruby-lang
chessguy has quit [Ping timeout: 264 seconds]
gjaldon has joined #ruby-lang
<injekt> ah ok I've worked it out
<injekt> banisterfiend: instance_method is a method on module but that wont work on Kernel so that line will ALWAYS fail if the reciever is Kernel
faustman has joined #ruby-lang
<injekt> banisterfiend: maybe if it's Kernel we could use method() and re-bind it to the target?
<banisterfiend> injekt: so it's equivalent to this: Module.instance_method(:instance_method).bind(Pry).call(:repl) #=> gives us a method object to Pry#repl
<injekt> right
<banisterfiend> injekt: what is it crashing for u?
<injekt> which works on Module
<banisterfiend> wait*
<injekt> but not Kernel
<injekt> that code will never work on Kernel, banisterfiend
<banisterfiend> injekt: yeah, but i think in the case of Kernel we always pass in a method_type of :method don't we?
<banisterfiend> are you getting actual crashes as a result of Kernel + instance_method ?
<banisterfiend> or is it just hypothetical? cos even though lookup_method_from_binding() could be given broken arguments (i.e Kernel + method) i think we ensure we don't do that in any of the callsites
<banisterfiend> but if you're getting crashes as a result of this, i must be wrong
<injekt> banisterfiend: it doesn't crash, but that line fails when I try and do a show-source for String() or any Kernel method, I think I can fix it though, let me write a patch and show you
<banisterfiend> injekt: shows-source String works for me
<injekt> banisterfiend: that shows the class String source?
<banisterfiend> injekt: no, it shows the source for the String method
<banisterfiend> in my case
<banisterfiend> but i'm on HEAD
<injekt> ah ok yeah it does on HEAD, but String() should work
<injekt> banisterfiend: how is it searching for the 'String' method on Kernel?
thisirs has joined #ruby-lang
<injekt> I'm looking down the method chain but can't pinpoint it
<banisterfiend> String() is not a syntax we currently accept
<injekt> that makes sense
<injekt> that said
<banisterfiend> injekt: we differentiate between methods/classes using this syntax
<banisterfiend> $ ::String <--- top-level String class
<banisterfiend> $ self.String <--- top-level String method
<banisterfiend> but with no disambiguating syntax, it looks up top-level String method by default
<injekt> banisterfiend: that makes sense, that's what I wanted returned anyway I was just using String() that's all fine, though.. my issue now is that if I want to look up Kernel methods I need to specific Kernel eh?
<injekt> nope I'm getting undefined methods on that, too
<banisterfiend> injekt: what kernel method are you trying to look up?
leopard_me has joined #ruby-lang
<banisterfiend> btw the show-source code is undergoing a big refactor on HEAD currently, the code in the gem is damn nasty
sepp2k has joined #ruby-lang
gjaldon has quit [Ping timeout: 245 seconds]
<injekt> banisterfiend: haha my bad the methods I was choosing were all -p/-n specific methods :( my fault
<banisterfiend> what's -p/-n method?
<injekt> banisterfiend: ruby -p/-n adds the Kernel methods 'gsub/chop/etc' which work on $_
<injekt> ~/code/pry[master]% echo 'foo' | ruby -ne 'puts gsub("o", "a")'
<injekt> faa
<banisterfiend> interesting
<judofyr> yeah, those are only available in -p, -n
<injekt> yeah
<injekt> so yeah, I was doing $ gsub which of course wouldn't work without a -n/-p flag
<banisterfiend> cirwin has some crazy code that uses the debugging symbols in the ruby binary to locate + extract a given C method
<banisterfiend> that could probably work on gsub, but it's so gnarly i don't think he even gem'd it
gnufied has quit [Quit: Leaving.]
<injekt> heh
<injekt> I doubt it would get much use, not many people use/know about those kernel methods -p/-n activate
faustman has quit [Ping timeout: 264 seconds]
cultureulterior_ has joined #ruby-lang
gjaldon has joined #ruby-lang
gnufied has joined #ruby-lang
gnufied1 has joined #ruby-lang
faustman has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 265 seconds]
carloslopes has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby-lang
faustman has quit [Ping timeout: 255 seconds]
schaerli has joined #ruby-lang
hgh has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
andrewhl has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 244 seconds]
AndChat| has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 256 seconds]
cultureulterior_ has joined #ruby-lang
andrewhl has quit [Ping timeout: 272 seconds]
dustint has joined #ruby-lang
imperator2 has joined #ruby-lang
AndChat| has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sullenel has joined #ruby-lang
stardiviner has joined #ruby-lang
<andrewvos> Anyone else upgrade to ML and find that tmux panes now automatically change to the prevous working directory?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
srbaker has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
gnufied1 has quit [Quit: Leaving.]
<andrewvos> Just had to add `cd` to my bloody zshrc
<andrewvos> The hell?
<jaska> set -g default-path "~"
<jaska> in tmux config
schaerli has quit [Remote host closed the connection]
<jaska> or "." for whatever dir it was started in
<andrewvos> jaska: Is this a recent change?
<jaska> yeah
<andrewvos> jaska: I haven't modified my tmux config
gnufied has joined #ruby-lang
<jaska> i think from 1.6 onwards
<andrewvos> jaska: Oh wow. I can't imagine why this would suddenly become a default.
<jaska> yeah i was driven batshit insane by the new default
<andrewvos> jaska: "# Don't open new panes in the previous working directory, because it's fucking irritating" is now in my conf
<andrewvos> jaska: Thanks
<jaska> np. it was bothering the hell out of me too
jtoy has joined #ruby-lang
elico has joined #ruby-lang
schaerli has joined #ruby-lang
<elico> I was wondering if there are examples of ASYN process with callbacks to explain how the logic works?
madish has quit [Ping timeout: 255 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
imperator2 has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
sullenel has quit [Quit: Leaving.]
Glass_saga has quit [Remote host closed the connection]
<andrewvos> Elico: Not really sure what you need?
Glass_saga has joined #ruby-lang
cjs226 has quit []
mistym has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
<elico> andrewvos: I want to write small proxy with EPOLL and I want it to do somethings async but I am not sure how to even start on it.
<judofyr> Elico: EventMachine
<elico> no it cant do what I need.
<elico> this is my main problem :\
<judofyr> Elico: what do you need?
<elico> I need to use a socket with IP_transparent enabled which is not like any other socket EM handles.
slyphon_ has quit [Ping timeout: 245 seconds]
<judofyr> but it's a regular IO-instance?
kurko_ has quit [Ping timeout: 246 seconds]
<elico> NOt exaclty
<judofyr> I mean, is it an IO-object in Ruby
<elico> it is
<judofyr> or is it a custom object
<elico> custom socket
<judofyr> then you can use IO.select(…)
<elico> NOT for pairs of 3000 connections :\
<elico> This is where EPOLL comes handy but I need to write the whole logic behind.
<judofyr> Elico: use this then: https://github.com/tarcieri/nio4r
<elico> judofyr: sec I will look at it.
kurko_ has joined #ruby-lang
<judofyr> Elico: it uses libev (which uses epoll/kqueue depending on what OS)
<elico> Nice this is the first time I see that!
<elico> But I still have one problem.
<whitequark> Elico: if you have epoll, it accepts file descriptors
<whitequark> if you have a file descriptor, it's a Ruby IO object
<elico> I'm OK with EPOLL and FD
<whitequark> Elico: I don't see the problem with eventmachine then
faustman has joined #ruby-lang
<elico> the problem for me is how to handle the pairs.
<whitequark> hm
<elico> A sec I will exaplain..
<judofyr> Elico: you can use EM.attach to attach an IO. EM.attch(some_io_object)
<elico> MY proxy server gets a request, then it opens a new socket to the destination.
<elico> the destination is changing by the request..
<elico> EM cannot use setsockopts for my operation on the socket so I cannot do that with EM
<elico> it's not one socket I need to attach.
<elico> every connection that the proxy gets will create a new outgoing socket.
<whitequark> Elico: can you do that in C with an fd?
<whitequark> then you can extend EM to do the operation you need. it's fairly straightforward.
<elico> whitequark: you are right about that. but my problem is that I will have problems writing C.
<whitequark> Elico: judging from the specifity of your task, you'll have to do it anyway
<whitequark> you can use ffi like this:
slyphon_ has joined #ruby-lang
<elico> i'm listening.
<whitequark> get an fd from the EM, then call the required libc function to perform your special operation
<whitequark> that doesn't involve writing C and should work.
jtoy has quit [Quit: jtoy]
<elico> whitequark: I have a question since before I do that I want to think in another direction for a sec.
<elico> Just thinking of the logic now.
<elico> I have an incoming connection and outgoing one. two sockets.
solars has quit [Ping timeout: 255 seconds]
<elico> If I use one thread to handle the EPOLL events and on other one do the reading and writing for all FD
faustman has quit [Ping timeout: 250 seconds]
<elico> like if a FD marked as readable.. read from it into the buffer
<whitequark> Elico: if you have two sockets, don't read and write it manually
<whitequark> that'd be slow as hell. use sendfile.
Nitrodist has joined #ruby-lang
<whitequark> Elico: or, better, this syscall: http://linux.die.net/man/2/splice
<elico> OK but it's multiplexed conecctions
<whitequark> basically with splice(2), kernel does all the work for you.
<whitequark> well
<whitequark> that might be a problem, yes
<whitequark> sorry, got things to work at. I hope I've helped you with this.
<elico> thanks
<elico> the NIO helped me a lot!
<yorickpeterse> Is there a shortcut for the following code?: `%w{foo bar baz}.reject { |r| r == 'bar' }`
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
faustman has joined #ruby-lang
<andrewvos> yorickpeterse: `%w{foo bar baz} - ["bar"]`
<injekt> foo.delete('bar'); foo :P
<darix> andrewvos: %w{foo bar baz}-%{bar}
<injekt> i guess you dont want it removed from the object?
<darix> :p
* injekt passes darix a w
schaerli has quit [Remote host closed the connection]
<darix> oh right
<andrewvos> injekt: yorickpeterse didn't mention `#reject!`
<injekt> yeah yeah
enebo has joined #ruby-lang
<gjaldon> has anyone else watched this vid? http://confreaks.com/videos/641-gogaruco2011-fast-rails-tests
Pain has joined #ruby-lang
Uranio has joined #ruby-lang
stardiviner has quit [Ping timeout: 272 seconds]
faustman has quit [Ping timeout: 260 seconds]
faustman has joined #ruby-lang
<andrewvos> hehe fast rails tests
<yorickpeterse> injekt: can't modify it
<andrewvos> I think that's why I have such hate for Rails
<andrewvos> You have to watch a conference video to get your tests running "fast".
<injekt> oh sure that's why
<andrewvos> injekt: Well, it is a contributing factor.
<yorickpeterse> Hey I know what! I'll use monkeypatching and refinements for this! Now I have MULTIPLE driew problems
<yorickpeterse> also that joke sounded better in my head
<injekt> that joke sounded better in my HEAD
solars has joined #ruby-lang
<injekt> I'll see myself out
<yorickpeterse> git checkout -- funny
waffleau_ has joined #ruby-lang
<judofyr> injekt: I see you forgot to cherry-pick good-joke
slyphon_ has quit [Ping timeout: 245 seconds]
<injekt> nerds
<judofyr> geek
<injekt> touche without the accent
srbaker has quit [Quit: Computer has gone to sleep.]
<judofyr> geèk
faustman has quit [Read error: Operation timed out]
agile has quit [Remote host closed the connection]
<Nitrodist> so what's the point of private methods in 1.9?
<Nitrodist> you can't address private methods from the defining class, so...
<judofyr> Nitrodist: hm? yes you can?
<judofyr> you can't access private methods with a receiver (e.g. foo.bar or self.bar)
<whitequark> judofyr: I don't really see point of having such methods either
<whitequark> and also public_send should've been send, and send should've been private_send
<judofyr> whitequark: well, I agree. but we have what we have :)
srbaker has joined #ruby-lang
<judofyr> whitequark: protected are funky though
<whitequark> judofyr: protected methods are quite sane imo
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<Nitrodist> judofyr: I can't access private foo=(x) from within the class in 1.9
<judofyr> Nitrodist: that is true. (because you can only access foo= with self)
<whitequark> Nitrodist: you shouldn't often need that
<yorickpeterse> Personally I see them as a way of saying "Use this and your shit will most likely break without notice"
<andrewvos> Ahh what the hell I missed crappy jokes again
<whitequark> use instance variables instead
sush24 has joined #ruby-lang
<judofyr> yorickpeterse: personally I prefer to write that in the documentation
<whitequark> judofyr: I'm considering doing the send/private_send trick in my dialect.
<andrewvos> judofyr: Personally, I just like writing gems that do that.
gnufied has quit [Quit: Leaving.]
<injekt> meh, methods aren't 'private' nor 'protected' in any true sense of the word anyway
<judofyr> whitequark: you'll break a bunch of code though :)
agile has joined #ruby-lang
<Nitrodist> judofyr: that's shitty :P do you have a link where it says that you can only access methods with equals in the method name through with a receiver?
cjs226 has joined #ruby-lang
<injekt> Nitrodist: foo = "bar" is a variable assignment
<whitequark> judofyr: I don't have/mostly do not want compatibility with existing code
<injekt> Nitrodist: are you using self.foo = ?
<whitequark> judofyr: I want compatibility with existing programmers through
thisirs has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
<whitequark> judofyr: *some* ruby tricks are perfectly acceptable in embedded environment. but only that much. if, for example, you change codepaths depending on self.class.name =~ /18/, you're fucking doing it wrong
<Nitrodist> injekt: I am and upgrading to 1.9 raises nomethoderror even though I'm using it within the defining class :P
<whitequark> I do not want compatibility with such code. It won't work anyway, but if there'd be an impression that it does, you'll shoot yourself in the leg.
<whitequark> this is exactly why I chose to add static typing. I _could_ add some clever tricks and infer types from other places, but it'd be much more error-prone.
Assurbanipal has quit [Quit: Konversation terminated!]
faustman has joined #ruby-lang
kith_ has joined #ruby-lang
<andrewvos> whitequark: What is this thing you're working on?
<yorickpeterse> it's madness
<yorickpeterse> I'd use it though
<judofyr> in other news: I started working on a C-implementation of the data-structure I talked about yesterday (Leonardo Fractals) and I think it could be practical
kith has quit [Disconnected by services]
kith_ is now known as kith
headius has joined #ruby-lang
<judofyr> insert performance is great, but now it's log(n)^2 search-time. if I change it to log(n) search-time I need to do more stuff at insert, so yeah
gaveen has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
<darix> judofyr: didnt the article link an implementation of it?
<darix> judofyr: and i saw some ruby port of it on github^^
<judofyr> darix: that was an implementation of smoothsort + Leonardo Heap
<darix> ah
<judofyr> darix: I've implemented a regular tree
<darix> then i missed the other link
<judofyr> with insert, search, range queries, removals
<judofyr> darix: hm. link to the github thingie?
rwilcox has joined #ruby-lang
* yorickpeterse has no idea what judofyr is talking about
<yorickpeterse> And the Leonardo di Fractal stuff
<judofyr> darix: Leonardo Fractals are structured similary to Heaps. but instead of maintaining the heap-property I maintain the sorted-tree-property
<judofyr> so when merging, I just merge the two (already sorted) trees and add the node
sush24 has quit [Quit: This computer has gone to sleep]
rue|w has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
<judofyr> 8 elements are stored in 2 trees: [1, 4, 6, 8, 10], [4, 7, 9]. when you then add another node, I merge it into a Leonardo tree of order (n+1)
<andrewvos> whitequark: hahahahahaha "If you know just one thing about Ruby, chances that it has to do something with performance."
<andrewvos> whitequark: So true man, so true. Ask any .NET developer why they don't like Ruby.
<judofyr> darix: some inserts are constant (if the two last trees are not consecutive Leonardo numbers) because it just appends to the right. and when merging happens, it has good cache locality
<judofyr> darix: I don't have a proof, but I hope that inserts are O(lg n) regardless of the cache locality
faustman has quit [Ping timeout: 252 seconds]
<judofyr> darix: however, by having several trees, searching needs to do a binary search into multiple trees. that is obviously not O(lg n)
faustman has joined #ruby-lang
<judofyr> darix: but you can add pointers to a location in the next tree (this is called Fractal Cascading) so when the binary search in one tree is done, it has limited the next tree to search
LordEntro has quit [Quit: Leaving.]
<judofyr> darix: but then I'll have to maintain these pointers when I merge
<judofyr> also, I haven't tackled removals yet
pxjorge has joined #ruby-lang
<judofyr> oh, and right now it's fixed size. it needs to be able to grow/shrink
<andrewvos> That's what she said.
intellitech has joined #ruby-lang
<andrewvos> Sorry
<judofyr> :)
wyhaines has joined #ruby-lang
<judofyr> yorickpeterse: so yeah. what I wrote above is what I call a Leonard Fractal
faustman has quit [Ping timeout: 252 seconds]
<judofyr> basically just a list of lists that are always kept sorted and occasionally merged
carloslopes has quit [Remote host closed the connection]
faustman has joined #ruby-lang
pxjorge has quit [Quit: Leaving]
pxjorge has joined #ruby-lang
<andrewvos> Sounds exciting :)
kitallis has joined #ruby-lang
kitallis has quit [Excess Flood]
<andrewvos> judofyr: Is there a wikipedia page? I can't find one.
<andrewvos> (I was being sarcastic above, but now I kind of want to know more)
<judofyr> andrewvos: don't know if there's a wikipedia page. I just derived it from smoothsort's Leonardo Heap
<judofyr> I've probably just rediscovered something, but I don't know what it's called :(
MaddinXx has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
<andrewvos> judofyr: Where is code?
jbwiv has joined #ruby-lang
<judofyr> it's similar to the cache-oblivious lookahead array (http://alum.cs.sunysb.edu/~bender/newpub/BenderFaFi07.pdf), but that is only optimized for disk usage, and seems to have O(log(n)^2) inserts if you use it in-memory only
<judofyr> err
<judofyr> O(n*log(n))
<judofyr> andrewvos: only locally so far
<judofyr> no, log(n)^2 was right :P
davidbalber|away is now known as davidbalbert
<andrewvos> judofyr: I just googled "log".
<judofyr> andrewvos: I googled "log log" yesterday
rippa has joined #ruby-lang
<judofyr> andrewvos: I'll try to publish something. I need to start using git anyway as I need to experiment a bit
<judofyr> (err, start using git on this code*)
gsav has joined #ruby-lang
gsav_ has joined #ruby-lang
gnufied has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
gsav has quit [Client Quit]
slyphon_ has joined #ruby-lang
ryanlecompte has joined #ruby-lang
slyphon__ has joined #ruby-lang
sailias has joined #ruby-lang
elico has quit [Ping timeout: 250 seconds]
jxie has joined #ruby-lang
davidbalbert is now known as davidbalber|away
faustman has quit [Ping timeout: 260 seconds]
gjaldon has quit [Quit: Leaving]
slyphon_ has quit [Ping timeout: 245 seconds]
davidbalber|away is now known as davidbalbert
esad has quit [Quit: Computer has gone to sleep.]
judofyr has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
Asher has quit [Quit: Leaving.]
carloslopes has joined #ruby-lang
zhul_mechanos has joined #ruby-lang
elico has joined #ruby-lang
methods has joined #ruby-lang
scampbell has joined #ruby-lang
carloslopes has quit [Ping timeout: 256 seconds]
Uranio has quit [Remote host closed the connection]
bstrie has quit [Quit: leaving]
methods has left #ruby-lang [#ruby-lang]
davidbalbert is now known as davidbalber|away
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
sulo has joined #ruby-lang
LordEntro has joined #ruby-lang
waffleau_ has quit [Read error: Connection reset by peer]
waffleau_ has joined #ruby-lang
waffleau_ has quit [Client Quit]
carloslopes has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
rue|w has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
gregmoreno has joined #ruby-lang
elico has quit [Quit: Elico]
andrewhl has joined #ruby-lang
io_syl has joined #ruby-lang
rue|w has quit [Ping timeout: 264 seconds]
sulo has quit [Remote host closed the connection]
sulo has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
imperator2 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
havenn has joined #ruby-lang
Nitrodist has quit [Quit: Lost terminal]
swav has quit [Remote host closed the connection]
bstrie has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 256 seconds]
imajes has quit [Excess Flood]
retro|cz has quit [Remote host closed the connection]
imajes has joined #ruby-lang
ttilley has joined #ruby-lang
dustint has quit [Remote host closed the connection]
<bougyman> ddd: oi
briantrust has joined #ruby-lang
<ddd> bougyman: oi oi
<bougyman> just about to decommission blackbird and falcon. you wanna turn of the fs-specs travis-ci til we get everything set up at the new co-lo?
<bougyman> else it'll send me constant failmail
<ddd> yeah give me a bit.
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<ddd> bougyman: done on both rubyists and mine. :)
<ddd> I just marked Inactive
<ddd> ok back to work
<imperator2> pssh, work
vlad_starkov has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
<ddd> hehe its christmas. gotta pay for Santa somehow :)
s3mi0 has quit [Remote host closed the connection]
nXqd_ has joined #ruby-lang
nXqd has quit [Ping timeout: 264 seconds]
<JoelMcCracken> I want to redirect output from an IO object to stdout. Is there a
<JoelMcCracken> good way to approach this?
<bougyman> thanks, ddd
krohrbaugh has joined #ruby-lang
<JoelMcCracken> basically, doing a simple getc/putc direction works, but that is
<JoelMcCracken> obviously slow
<ddd> bougyman: np
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
nXqd_ has quit [Ping timeout: 260 seconds]
agarcia has quit [Quit: Konversation terminated!]
GarethAdams has quit [Quit: Leaving...]
apeiros_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
zmack has quit [Remote host closed the connection]
<imperator2> JoelMcCracken, IO#reopen
sn0wb1rd has quit [Quit: sn0wb1rd]
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
tdy has quit [Read error: Operation timed out]
<JoelMcCracken> imperator2: perfect, thanks
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
solars has quit [Read error: Operation timed out]
vlad_starkov has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
tdy has joined #ruby-lang
efrainolivares_ has joined #ruby-lang
marr has joined #ruby-lang
efrainolivares has quit [Ping timeout: 255 seconds]
efrainolivares has joined #ruby-lang
madish has joined #ruby-lang
benanne has joined #ruby-lang
efrainolivares_ has quit [Ping timeout: 252 seconds]
alvaro_o has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
dankest has quit [Quit: Leaving...]
dankest has joined #ruby-lang
burgestrand has quit [Ping timeout: 272 seconds]
tdy_ has joined #ruby-lang
__butch__ has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
davidbalber|away is now known as davidbalbert
swav has joined #ruby-lang
francisfish has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.3.9.2]
briantrust has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
briantrust has joined #ruby-lang
jds__ has quit [Read error: Operation timed out]
esad has joined #ruby-lang
dankest is now known as dankest|away
swav has quit [Remote host closed the connection]
jds has joined #ruby-lang
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sush24_ has quit [Ping timeout: 255 seconds]
briantrust has quit [Remote host closed the connection]
sush24_ has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby-lang
LordEntro has quit [Ping timeout: 244 seconds]
francisfish has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
esad_ has joined #ruby-lang
esad has quit [Ping timeout: 256 seconds]
dr_bob has left #ruby-lang [#ruby-lang]
jnoon has quit [Read error: Connection reset by peer]
jnoon has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
havenn has quit [Remote host closed the connection]
imperator2 has quit [Ping timeout: 260 seconds]
havenn has joined #ruby-lang
pdswan_ has quit [Quit: pdswan_]
benanne has quit [Quit: kbai]
Banistergalaxy has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
srbaker has quit [Quit: Computer has gone to sleep.]
sulo has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 265 seconds]
davidbalber|away is now known as davidbalbert
tockitj_ has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
nazty has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby-lang
voker57 has quit [Ping timeout: 272 seconds]
mhi^ has joined #ruby-lang
enebo has quit [Quit: enebo]
wallerdev has joined #ruby-lang
retro|cz has joined #ruby-lang
schaerli has joined #ruby-lang
rwilcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
briantrust has joined #ruby-lang
tris has quit [Quit: Leaving]
mjbamford has joined #ruby-lang
ryanf has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sush24_ has quit [Ping timeout: 265 seconds]
brianpWins has joined #ruby-lang
sush24_ has joined #ruby-lang
mistym is now known as mistym_lunch
esad_ has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
JohnBat26 has joined #ruby-lang
havenn has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
sent-hil has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
benanne has joined #ruby-lang
marr has quit []
tris has joined #ruby-lang
lcdhoffman has joined #ruby-lang
leopard_me has joined #ruby-lang
rhizmoe has quit [Ping timeout: 264 seconds]
cultureulterior_ has quit [Quit: cultureulterior_]
leopard_me has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby-lang
MaddinXx has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 265 seconds]
davidbalbert is now known as davidbalber|away
enebo has joined #ruby-lang
ebouchut has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
srbaker has joined #ruby-lang
burgestrand has joined #ruby-lang
sush24_ has quit [Ping timeout: 272 seconds]
mjbamford has quit [Quit: Leaving...]
davidbalber|away is now known as davidbalbert
mjbamford has joined #ruby-lang
sush24_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
kurko_ has joined #ruby-lang
mistym_lunch is now known as mistym
mercwithamouth has joined #ruby-lang
avasi has joined #ruby-lang
dankest|away has quit [Ping timeout: 265 seconds]
bluepojo has joined #ruby-lang
agarie has joined #ruby-lang
davidcelis has joined #ruby-lang
davidcelis has left #ruby-lang ["K-Lined."]
danneu has joined #ruby-lang
holgerno has joined #ruby-lang
ulisescab has joined #ruby-lang
<injekt> danneu: can you provide some code? Because I dont understand your question
sent-hil has left #ruby-lang [#ruby-lang]
sent-hil has joined #ruby-lang
vlad_starkov has joined #ruby-lang
xyzodiac has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
justshah has joined #ruby-lang
sharma__ has joined #ruby-lang
sush24_ has quit [Ping timeout: 246 seconds]
nXqd has joined #ruby-lang
avasi has left #ruby-lang [#ruby-lang]
justshah has left #ruby-lang [#ruby-lang]
<danneu> I could pass that $array structure in to every instance, but is there a better solution?
Nisstyre-laptop has quit [Read error: Connection reset by peer]
sush24_ has joined #ruby-lang
sharma__ has quit [Ping timeout: 272 seconds]
<injekt> danneu: I dont really understand why youd need the method, it doesn't do anything interesting. Just do TwitterFetcher.new(user).tweets + (stuff in array)
ulisescab has quit [Read error: No route to host]
sent-hil has quit [Remote host closed the connection]
imperator2 has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
<danneu> injekt: Yeah, my fault for making the example so contrived. I used $array only to try to explain that I want to share a data structure. I can't really post my code. But basically the data structure in my code is a lookup table (hashmap) that the TwitterFetcher object uses internally in a few places
gregmoreno has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 264 seconds]
<injekt> danneu: in that case, you should pass it to the instance of your fetcher :P
<injekt> (as you mentioned)
<kith> i did that: sum = 0; 1.upto(999) { |i| sum + i if i % 3 == 0 || i % 5 == 0 }; p sum
<kith> it says sum is 0
<kith> why is that?
<danneu> kith: you're just doing sum + i
<injekt> +=
<danneu> you're not assigning anything to sum
<kith> goddamn
<kith> i such a loser
schroedinbug1 has quit [Ping timeout: 276 seconds]
<danneu> nah bro
<kith> danneu: thx
<danneu> scroll up and check out my question
tenderlove has quit [Remote host closed the connection]
<danneu> injekt: Cool, I'll just do that. For some reason, it felt like the naive way to do it. especially with all the copies of a large data structure
<danneu> Well, I guess that's the "for some reason"
zmack has joined #ruby-lang
sulo has joined #ruby-lang
schroedinbug1 has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
Banistergalaxy has joined #ruby-lang
danneu has quit [Quit: WeeChat 0.3.8]
<matti> zzak: :)
jbwiv has quit [Remote host closed the connection]
jbwiv has joined #ruby-lang
dabradley has quit [Ping timeout: 248 seconds]
imperator2 has quit [Ping timeout: 265 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
cirenyc has joined #ruby-lang
cirenyc has quit [Excess Flood]
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 272 seconds]
hahuang65 has joined #ruby-lang
drbrain has joined #ruby-lang
tenderlove has joined #ruby-lang
db1382 has quit [Quit: Leaving]
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
db1382 has joined #ruby-lang
dabradley has joined #ruby-lang
sailias has quit [Quit: Leaving.]
slyphon__ has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
mjbamford has quit [Quit: Leaving...]
lcdhoffman has quit [Quit: lcdhoffman]
slyphon__ has joined #ruby-lang
lcdhoffman has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 265 seconds]
methods has joined #ruby-lang
methods has quit [Client Quit]
havenn has quit [Remote host closed the connection]
slyphon__ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
slyphon__ has joined #ruby-lang
cjs226 has quit []
burgestrand has quit [Quit: Leaving.]
CaptainJet has joined #ruby-lang
schaerli has joined #ruby-lang
rhizmoe has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
srbaker has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
aef has quit [Remote host closed the connection]
slyphon__ has quit [Ping timeout: 245 seconds]
aef has joined #ruby-lang
charliesome has joined #ruby-lang
schaerli has quit [Ping timeout: 252 seconds]
holgerno has quit [Quit: Leaving...]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
<zzak> say what now?
holgerno has joined #ruby-lang
davidbalber|away is now known as davidbalbert
kain has quit [Quit: exit]
schaerli has joined #ruby-lang
Boohbah has quit [Quit: Lost terminal]
slyphon__ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
holgerno has quit [Quit: Linkinus - http://linkinus.com]
gregmoreno has joined #ruby-lang
banisterfiend has joined #ruby-lang
nXqd_ has joined #ruby-lang
scottschecter has joined #ruby-lang
nXqd has quit [Ping timeout: 272 seconds]
dRbiG has quit [Ping timeout: 252 seconds]
chessguy has joined #ruby-lang
scampbell has quit [Quit: Leaving]
mjio has joined #ruby-lang
slyphon__ has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 248 seconds]
nXqd_ has quit [Ping timeout: 264 seconds]
burgestrand has joined #ruby-lang
postmodern has joined #ruby-lang
slyphon__ has joined #ruby-lang
dRbiG has joined #ruby-lang
sulo has quit [Read error: Connection reset by peer]
sulo_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
<zenspider> why was I op?
* apeiros_ snickers
vlad_starkov has quit [Remote host closed the connection]
<apeiros_> (no, wasn't me before)
nXqd has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
ackram has joined #ruby-lang
<zenspider> heh
benanne has quit [Quit: kbai]
havenn has joined #ruby-lang
zmack has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 250 seconds]
gsav_ has quit [Ping timeout: 255 seconds]
enebo has quit [Quit: enebo]
__BigO__ has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
JoelMcCracken has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
jsilver has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
intellitech has quit [Quit: intellitech]
vlad_starkov has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
sulo_ has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 260 seconds]
tenderlove has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 265 seconds]
sulo has joined #ruby-lang
kain has joined #ruby-lang
sulo has quit [Ping timeout: 250 seconds]
Averna has joined #ruby-lang
cirenyc has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
<charliesome> zenspider: just saw your ruby bug
<charliesome> who uses -w? :p
tenderlove has joined #ruby-lang
* zenspider blinks
tenderlove has quit [Remote host closed the connection]
tenderlo_ has joined #ruby-lang
LordEntro has joined #ruby-lang
gregmoreno has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
tenderlo_ is now known as tenderlove
spuk has joined #ruby-lang
mistym has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
chessguy has joined #ruby-lang
tenderlo_ has joined #ruby-lang
tenderlo_ is now known as tenderlove_