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
workmad3 has joined #ruby-lang
Averna has joined #ruby-lang
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
justinram has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Quit Konversation]
postmodern has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
toretore has quit [Quit: Leaving]
benanne has quit [Quit: kbai]
vlad_starkov has joined #ruby-lang
banisterfiend has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
KA_ has joined #ruby-lang
esad has joined #ruby-lang
davidbalbert is now known as davidbalber|away
vlad_starkov has quit [Ping timeout: 252 seconds]
KA_ has quit [Ping timeout: 268 seconds]
plusk has quit [Quit: plusk]
firefux has quit [Quit: leaving]
dasil003 has quit [Quit: dasil003]
emptyflask has quit [Read error: Operation timed out]
thone_ has joined #ruby-lang
tonni has quit [Remote host closed the connection]
thone has quit [Ping timeout: 252 seconds]
KA_ has joined #ruby-lang
dankest has quit [Quit: Leaving...]
KA_ has quit [Quit: KA_]
havenn has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
wyhaines has joined #ruby-lang
retro|cz has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
wyhaines has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
gregmoreno has quit [Ping timeout: 260 seconds]
mwjcomputing has joined #ruby-lang
avdi has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 268 seconds]
dankest has joined #ruby-lang
cardoni has quit [Quit: cardoni]
swarley has quit [Ping timeout: 268 seconds]
rindolf has quit [Quit: Yay! I'm a llama again. http://www.shlomifish.org/]
KA_ has joined #ruby-lang
tdy_ has joined #ruby-lang
tdy has quit [Remote host closed the connection]
tdy has joined #ruby-lang
tdy_ has quit [Client Quit]
KA_ has quit [Client Quit]
sent-hil has joined #ruby-lang
WillMarshall has joined #ruby-lang
chimkan has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
chimkan has quit [Client Quit]
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
spuk has joined #ruby-lang
<zenspider> rawr
joenobody has joined #ruby-lang
dalekurt has quit [Read error: Connection reset by peer]
joenobody has quit [Quit: Leaving]
dalekurt has joined #ruby-lang
sush24 has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
macclearich_ has left #ruby-lang [#ruby-lang]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 255 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
kennyvb has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
zenspider has quit [Read error: Connection reset by peer]
kennyvb has joined #ruby-lang
Smol has quit [Read error: Operation timed out]
zenspider has joined #ruby-lang
Smol has joined #ruby-lang
TylerGillies has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 246 seconds]
topaz has quit [Ping timeout: 246 seconds]
dankest has quit [Quit: Leaving...]
topaz has joined #ruby-lang
ryanf has joined #ruby-lang
<ryanf> does anyone know if writing lines with Logger is atomic across multiple processes?
emptyflask has joined #ruby-lang
<erikh> if you pass it a filename, it's as atomic as file i/o gets
<erikh> if you pass it an IO object, you're responsible
<ryanf> yeah, I dunno how atomic file i/o gets :)
<ryanf> that's sort of where I'm hitting the limits of my knowledge about this
<drbrain> typically IO is buffered in ruby
<erikh> if I said "it depends highly on the operating system"
<drbrain> that'll lead to corruption
<erikh> drbrain: even with sync forced?
<drbrain> with sync forced, no
<erikh> yeah, check out that link
<postmodern> sounds like a job for syslog
<ryanf> maybe I'd be better off talking to syslog and configuring it to write a file?
<ryanf> ah
<ryanf> yeah
<erikh> syslog has its own set of problems
<erikh> but it's probably better for many things.
<drbrain> but, I don't know what the OS will do
<zenspider> yeah. I was about to say use syslog
<erikh> right, there are flags you can set on open(2) like O_DIRECT which take this to another level
<erikh> anyhow, syslog has other issues. it really depends on how much you're logging and how much you care about actually reading your logs
<erikh> I try to use tools other than syslog unless all I care about doing for the most part is archiving it
<postmodern> if your using Logger, syslog is a natural next step
<postmodern> but yeah, syslog is for greppable text, not data structures
<postmodern> an audit trail so to speak
<erikh> it's also not for multiline output or large logs that you want perform analysis on
<drbrain> JSON via syslog
<erikh> yep
<erikh> json.
<erikh> also look at logstash when you're ready to do big-boy stuff.
<drbrain> (sounds like a terrible idea)
<postmodern> also not for control characters or unescaped data
<erikh> drbrain: it's actually quite awesome if you have an active consumer
<erikh> (like logstash)
<erikh> beats the shit out of applying grep to a 10G log file
<ryanf> erikh: the plan is to write json to files, stick them on s3, and maybe someday someone will want to look at them
<ryanf> but not being corrupted would be nice
<ryanf> I guess I'll go with syslog for now
<erikh> yeah so
<erikh> I'd look at logstash, heh.
<ryanf> maybe I misunderstood what logstash was for. I thought it was for aggregating logs and searching them and stuff?
<erikh> you just dump a per-process or per-thread file, and let the logstash agent ship it to the server, which can deliver it to 8 million different places
<erikh> it's just a delivery and conversion system really
<ryanf> ah
<erikh> that's just what it's typically used for
<erikh> like, we had it shipping to rabbitmq at my last job from all the web servers, then a user could orchestrate a "tail" of all the machines at once by reading from the queue
<ryanf> neat
<erikh> didn't matter if it was 2 or 50 machines
<erikh> of course, those same logs were shipped to ES so you could search the same content
<ryanf> I might be setting up logstash soon for dealing with actual logs, but I don't really want to deal with setting up a centralized server for this, since it's really just archival
krohrbaugh has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<ryanf> thanks for the recommendation though, definitely planning to check it out in the future
<erikh> it's pretty killer software.
rsl has quit [Quit: Computer has gone to sleep.]
ryanlecompte has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
tdy has quit [Quit: WeeChat 0.3.9.2]
tdy has joined #ruby-lang
cardoni has joined #ruby-lang
kurko_ has joined #ruby-lang
Guest47056 has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
gmci is now known as Guest20366
Anon834 has joined #ruby-lang
ryanf has quit [Quit: leaving]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Anon834 has quit [Quit: WrongPlanet forever!]
emptyflask has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
KA_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 248 seconds]
KA_ has quit [Client Quit]
KA_ has joined #ruby-lang
areil has joined #ruby-lang
Axsuul has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
drbrain has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
<zenspider> hrm... how to make unix pipes unbuffered or at least less buffered?
<zenspider> currently running:
<zenspider> rake DELETE=1 DELETE_TIMEOUT=1 2>&1 | grep Validating | cut -c14-16 | uniq
<zenspider> and as soon as I add the cut, responsiveness on output goes out the window
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
imperator2 has quit [Ping timeout: 260 seconds]
<postmodern> maybe try sed or awk?
imperator has quit [Ping timeout: 252 seconds]
imperator3 has quit [Ping timeout: 255 seconds]
<postmodern> or ask in #bash, they tend to know these things
lcdhoffman has quit [Quit: lcdhoffman]
<zenspider> rake DELETE=1 DELETE_TIMEOUT=1 2>&1 | ruby -ne 'BEGIN { $stdout.sync = true; $s = {} }; next unless /Validating (.\/.)/; next if $s[$1]; puts $1; $s[$1] = true'
<zenspider> muuuuch less elegant
<zenspider> cept for that whole working thing
<erikh> I had to deal with a lot of that in rubygems-test
<erikh> if you're looking for something portable..
mwjcomputing has quit [Quit: Leaving]
<erikh> it still has a few problems with windows, but that's because windows' stdio model is different
<zenspider> nah... just want to monitor a long running process
<erikh> aha
alvaro_o_ has quit [Quit: Ex-Chat]
qpingu has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
ryanlecompte has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
datanoise has joined #ruby-lang
slaytanic has quit [Read error: Connection reset by peer]
krz has joined #ruby-lang
slaytanic has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
stardiviner has joined #ruby-lang
davidbalber|away is now known as davidbalbert
wyhaines has joined #ruby-lang
hinbody has quit [Read error: Connection reset by peer]
blazes816 has quit [Quit: blazes816]
kurko_ has quit [Ping timeout: 265 seconds]
bluepojo has quit [Quit: Leaving.]
kurko_ has joined #ruby-lang
qpingu has joined #ruby-lang
methods has joined #ruby-lang
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
wallerdev has joined #ruby-lang
gregmore_ has joined #ruby-lang
wallerdev has quit [Client Quit]
datanoise has quit [Ping timeout: 252 seconds]
rekky has joined #ruby-lang
postmodern has quit [Quit: Leaving]
wyhaines has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
afgeneralist has quit [Ping timeout: 256 seconds]
krzkrzkrz has joined #ruby-lang
krz has quit [Ping timeout: 260 seconds]
krzkrzkrz is now known as krz
postmodern has joined #ruby-lang
statim has left #ruby-lang [#ruby-lang]
woollyams has joined #ruby-lang
jnoon has joined #ruby-lang
voker57_ has joined #ruby-lang
banisterfiend has quit [Ping timeout: 245 seconds]
voker57 has quit [Ping timeout: 268 seconds]
gregmore_ has quit [Remote host closed the connection]
gregmore_ has joined #ruby-lang
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
qpingu has quit [Quit: Leaving.]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
stardiviner has joined #ruby-lang
rohit_ has joined #ruby-lang
joenobody has joined #ruby-lang
thinkdevcode has joined #ruby-lang
rekky has quit [Quit: rekky]
afgeneralist has joined #ruby-lang
rohit_ has quit [Read error: Operation timed out]
rebelcan_ has quit [Quit: leaving]
rebelcan has joined #ruby-lang
rekky has joined #ruby-lang
joenobody has quit [Quit: See ya!]
rekky has quit [Client Quit]
mistym has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<zenspider> omg I'm bored waiting for this gauntlet to finish running... :(
<zenspider> tho I finally got around to parallelizing it so I'm using all my cpus
joenobody has joined #ruby-lang
datanoise has joined #ruby-lang
diegoviola has joined #ruby-lang
rohit_ has joined #ruby-lang
cantonic has joined #ruby-lang
joenobody has quit [Quit: See ya!]
jhn has joined #ruby-lang
nXqd has quit [Ping timeout: 252 seconds]
rohit_ has quit [Ping timeout: 265 seconds]
datanoise has quit [Ping timeout: 264 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
Guest20366 has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Ping timeout: 252 seconds]
brianpWins has quit [Quit: brianpWins]
kurko_ has joined #ruby-lang
isale-eko has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
kurko_ has quit [Ping timeout: 252 seconds]
kain has quit [Quit: exit]
kurko_ has joined #ruby-lang
chimkan__ has joined #ruby-lang
rippa has joined #ruby-lang
chimkan has quit [Ping timeout: 256 seconds]
chimkan__ is now known as chimkan
kain has joined #ruby-lang
kitallis has joined #ruby-lang
nXqd has joined #ruby-lang
rippa has quit [Ping timeout: 264 seconds]
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
gregmore_ has quit [Remote host closed the connection]
cantonic_ has joined #ruby-lang
thinkdevcode has quit [Read error: No route to host]
thinkdevcode has joined #ruby-lang
kurko_ has joined #ruby-lang
chimkan has quit [Quit: chimkan]
Croms has joined #ruby-lang
cantonic has quit [Ping timeout: 245 seconds]
cantonic_ is now known as cantonic
thatdutchguy has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rohit has joined #ruby-lang
agile has joined #ruby-lang
ryanf has joined #ruby-lang
jnoon has quit [Ping timeout: 264 seconds]
rohit has quit [Quit: Leaving]
rohit has joined #ruby-lang
rohit has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
r0bby has joined #ruby-lang
jnoon has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
r0bby is now known as robbyoconnor
Carnage\ has quit []
havenn has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
wallerdev has joined #ruby-lang
jhn has quit [Ping timeout: 245 seconds]
svyatov has joined #ruby-lang
|Vargas| has joined #ruby-lang
brianpWins has joined #ruby-lang
isale-eko has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
woollyams has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
a1ph4g33k has joined #ruby-lang
cirwin has joined #ruby-lang
nXqd has quit [Ping timeout: 264 seconds]
<cirwin> cldwalker_: you about? I want to chat about using bond in pry
cosah has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
davidbalbert is now known as davidbalber|away
tonni has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
thinkdevcode has quit [Read error: No route to host]
thinkdevcode has joined #ruby-lang
afgeneralist has quit [Ping timeout: 276 seconds]
<stardiviner> Why use "self." in a class method "def self.method_1 .." ?
<wnd> I'm not sure if I understand the question, but that makes method_1 a static method
dr_bob has joined #ruby-lang
workmad3 has joined #ruby-lang
<stardiviner> wnd: a static method ? I do not understand, I mean is there any difference between omit the "self." in module or class method definition or not omitted ?
<erikh> yes
<erikh> self. (or MyClass.) indicates a class method
<wnd> static method can be called without creating an instance of the class
<erikh> yep, exactly.
<stardiviner> wnd: Oh, I see. only this difference ?
<erikh> pretty much. it's a little stickier in modules (which you can't instance, but you can mix in to classes that you can instance)
<wnd> apart from everything that it implies, yes, I thin that's all
<wnd> but I'm not the right person to talk about "deeper" ruby
<stardiviner> wnd: thanks
<wnd> for example erikh clearly has better understanding here than me
<stardiviner> erikh: good. It's enough to make me understand my question
dhruvasagar has joined #ruby-lang
<erikh> it's not much more than that. we could talk about how classes and modules are just objects themselves and why this isn't really much different from a normal method on a normal object
<erikh> but we should probably start small
<erikh> :)
<stardiviner> erikh: right
datanoise has joined #ruby-lang
<stardiviner> erikh: What's wrong this this code example ? https://gist.github.com/4123695
<tockitj_> stardiviner, there is nothing wrong - unlike other languages there is strong distinction between 'instance' and 'class' methods in ruby
<tockitj_> you can't call class methods from an instance, or instance methods from class object
<tockitj_> don't use 'static' method analogy for class method - it will only confuse you
<cirwin> stardiviner: you've got the number of k's back to front
<cirwin> def self.kkk => One.kkk
JohnBat26 has quit [Remote host closed the connection]
<cirwin> def kk => One.new.kk
<stardiviner> cirwin: oh, yes, switch them, now it is correct
<tockitj_> class methods are basically singleton methods (they are defined in singleton class of the object)
<stardiviner> I followed that a static method (without self.) can be called without class be instanced. So I call it like One.kk. (The .new method is instance a class right ?)
<tockitj_> ruby does not have _static_ methods.
<tockitj_> its bad analogy, as i've said
<cirwin> stardiviner: a static (called singleton method in ruby) is one with self
<cirwin> because "self" at that point is the class
<cirwin> so you define a method on the class, instead of on every instance of the class
svyatov has quit [Quit: svyatov]
<stardiviner> tockitj_: cirwin I see, :P so difficult to get it.
<tockitj_> stardiviner, look its simple... just look into distinction..
qwerxy has joined #ruby-lang
<cirwin> stardiviner: yeah, I found that the meaning of "self" is the most complicated thing to get my head around
<cirwin> but once you realise that "def self.kkk" is exactly the same as "def One.kkk", it's easier to realise what's going on
<stardiviner> cirwin: right
<tockitj_> instance methods is an invisible list of methods that an object (which descent from Class object) has. they are just inserted into list of instance methods, after new object creation
JohnBat26 has joined #ruby-lang
<cirwin> tockitj_: I didn't understand that :/
<tockitj_> singleton methods are very different.. instead of implying existance of type (or better yet term is "class"), they define methods only onto them selfs
<cirwin> oh, "invisible list of methods" => "singleton class"?
<tockitj_> no - this is list of instance methods that class has
<tockitj_> they can not be invoked from class object
<cirwin> ah, ok
<cirwin> I get you
<tockitj_> so they are hidden until .new is called, after which they are imbued into new object
dalekurt has quit [Ping timeout: 255 seconds]
<cirwin> heh, interesting way to tihnk about it
<tockitj_> using 'static method' analogy from popular static languages is wrong imho
<tockitj_> there is nothing 'static' in singleton methods
facest has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
hakunin has joined #ruby-lang
faces has quit [Ping timeout: 248 seconds]
guns has quit [Quit: guns]
gnufied has joined #ruby-lang
Croms has quit [Quit: Croms]
thinkdevcode has quit [Remote host closed the connection]
<yorickpeterse> Morning
thinkdevcode has joined #ruby-lang
hakunin has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
thinkdevcode has quit [Ping timeout: 246 seconds]
Croms has joined #ruby-lang
apeiros_ has joined #ruby-lang
anjen has quit [Ping timeout: 252 seconds]
qwerxy has quit [Quit: offski]
Hakon has quit [Quit: Leaving...]
KA_ has quit [Quit: KA_]
tonni has quit [Remote host closed the connection]
dasil003 has joined #ruby-lang
sandbags2 has joined #ruby-lang
shtirlic has joined #ruby-lang
lsegal` has joined #ruby-lang
blacktulip has joined #ruby-lang
lsegal` has quit [Client Quit]
solars has joined #ruby-lang
chendo has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
mytrile has joined #ruby-lang
agarcia has joined #ruby-lang
chendo_ has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
KA_ has joined #ruby-lang
rue|w has joined #ruby-lang
dc5ala has joined #ruby-lang
ryanf has quit [Quit: leaving]
shtirli__ has joined #ruby-lang
shtirlic has quit [Ping timeout: 252 seconds]
ddfreyne has quit [Quit: Terminated with extreme prejudice - dircproxy 1.0.5]
ddfreyne has joined #ruby-lang
cyri_ has joined #ruby-lang
Croms has quit [Quit: Croms]
judofyr has joined #ruby-lang
sn0wb1rd_ has joined #ruby-lang
rolfb has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
dasil003 has quit [Quit: dasil003]
judofyr has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
judofyr has quit [Read error: Connection reset by peer]
zmack has joined #ruby-lang
judofyr has joined #ruby-lang
datanoise has joined #ruby-lang
ghanima has quit [Quit: Leaving.]
robotmay has joined #ruby-lang
jxie has quit [Quit: leaving]
sandbags2 has quit [Remote host closed the connection]
madish has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
sn0wb1rd_ has quit [Quit: changing servers]
dc5ala has quit [Quit: Ex-Chat]
llakey has quit [Ping timeout: 255 seconds]
<zenspider> ruby_parser 3.0.2 released
<zenspider> hit 3.7σ
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
llakey has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
adambeynon has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 245 seconds]
woollyams has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
woollyams has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
sn0wb1rd_ has joined #ruby-lang
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
KA_ has quit [Quit: KA_]
dhruvasagar has quit [Read error: Operation timed out]
judofyr_ has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
sn0wb1rd_ has quit [Quit: changing servers]
dhruvasagar has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
richardjapenga has joined #ruby-lang
judofyr_ has joined #ruby-lang
krz has quit [Quit: krz]
brianpWins has quit [Quit: brianpWins]
qwerxy has joined #ruby-lang
judofyr_ has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
heftig has quit [Quit: leaving]
aetcore has quit [Remote host closed the connection]
heftig has joined #ruby-lang
workmad3 has joined #ruby-lang
dasil003 has joined #ruby-lang
zz_chrismcg is now known as chrismcg
shtirli__ has quit [Ping timeout: 240 seconds]
shtirli__ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
tbuehlmann has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
moonglum has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby-lang
svyatov has joined #ruby-lang
dhruvasagar has joined #ruby-lang
shtirli__ has quit [Ping timeout: 264 seconds]
cardoni has quit [Quit: cardoni]
datanoise has quit [Ping timeout: 265 seconds]
shtirlic has joined #ruby-lang
jarib has quit [Excess Flood]
Averna has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
shtirli__ has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirli__ has quit [Client Quit]
shtirlic has joined #ruby-lang
a1ph4g33k has quit [Quit: Leaving]
sush24 has joined #ruby-lang
cirwin has quit [Ping timeout: 260 seconds]
Croms has joined #ruby-lang
lele|w has quit [Ping timeout: 246 seconds]
lele|w has joined #ruby-lang
retro|cz has quit [Ping timeout: 244 seconds]
<charliesome> i'm working on a patch that adds a method that returns an array of all refinements currently in use
<charliesome> anyone have any ideas for a method name?
<charliesome> i'm thinking either active_refinements or visible_refinements
<yorickpeterse> used_refinements
tonni has joined #ruby-lang
<yorickpeterse> or just "refinements"
<charliesome> used_refinements is good, can't believe i didn't think of that
<yorickpeterse> Sometimes the easiest things are the hardest to come up with
ben___ has joined #ruby-lang
ben___ has left #ruby-lang [#ruby-lang]
mars777 has quit [Quit: mars777]
bnagy has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<shtirlic> charliesome: why it's not current_refinements ?
<charliesome> i reckon used_refinements is more consistent with the rest of the refinements api
<shtirlic> charliesome: I just don't like used word ;)
<shtirlic> charliesome: as you said "all refinements currently in use"
sush24 has quit [Quit: This computer has gone to sleep]
<shtirlic> charliesome: or active_refinements
<charliesome> active_refinements was my first idea
<charliesome> but i felt like the active_ could be confused with rails related stuff
<shtirlic> charliesome: ;)
mixandgo has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
<yorickpeterse> ActiveRefinement: crapping refinements all over the place
<whitequark> let's just write semicolonless javascript
<kalleth> whitequark: coffeescript? ;/
mytrile has joined #ruby-lang
agile has quit [Ping timeout: 264 seconds]
Hakon has joined #ruby-lang
<charliesome> go go go… +1's, image macros, whatever
vlad_starkov has quit [Remote host closed the connection]
<judofyr> charliesome: +1
<charliesome> i finally figured out how refinements work
agile has joined #ruby-lang
<judofyr> charliesome: like, behind the scenes?
<charliesome> yeah
<judofyr> have you seen the latest patch too?
<charliesome> which one?
<judofyr> charliesome: hm. I might have been mistaken.
<judofyr> charliesome: but shugo mentioned that "A solution has been found at least in CRuby. I'm waiting for ko1's review." re: performance issue
<charliesome> ah interesting
<charliesome> i haven't actually checked - is there are pretty serious performance regression?
<judofyr> dunno
<judofyr> how is it implemented? :)
<whitequark> kalleth: I don't have anything against coffee, it's pretty awesome
<andrewvos> CoffeeScript is very cool. JavaScript sucks.
rohit has joined #ruby-lang
<charliesome> how can coffeescript be good if javascript isn't
<charliesome> 70% of a language is in the semantics and coffeescript does nothing in that respect
<judofyr> whitequark: any progress on Foundry?
cultureulterior_ has quit [Ping timeout: 240 seconds]
<kalleth> charliesome: coffeescript makes it slightly less vomit-inducing to dev in javascript
<kalleth> it makes me want to kill myself less at least
<kalleth> fuck knows how node.js devs do it
Axsuul has quit [Ping timeout: 252 seconds]
cultureulterior_ has joined #ruby-lang
<kalleth> that shit is whack
<charliesome> haven't we already agreed that people who like node.js lack good taste
rohit has quit [Read error: Connection reset by peer]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
toretore has joined #ruby-lang
<tonni> any recommendations for an extremely lean ruby-driven cms-machine that supports multiple languages?
slainer68 has joined #ruby-lang
<whitequark> judofyr: some
moonglum has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby-lang
aetcore has joined #ruby-lang
moonglum has joined #ruby-lang
<charliesome> whitequark: foundry looks interesting
rohit has joined #ruby-lang
heftig has quit [Quit: leaving]
rsl has joined #ruby-lang
shtirli__ has joined #ruby-lang
<whitequark> charliesome: if you're looking at the whitequark/foundry, it's not an actual repo
<whitequark> the development is private for now.
<charliesome> ah
<whitequark> this is an introductory article: http://whitequark.org/blog/2011/12/21/statically-compiled-ruby/
<charliesome> well the idea at least is intereseting
<whitequark> some things have changed, but overall it's the same
sandbags2 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
sush24 has joined #ruby-lang
shtirlic has quit [Ping timeout: 264 seconds]
dRbiG has joined #ruby-lang
<whitequark> judofyr: you probably haven't seen our discussion on #jruby
shtirli__ has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
sullenel has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
banisterfiend has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
dhruvasagar has joined #ruby-lang
rohit has quit [Quit: Leaving]
cyri_ has quit [Quit: cyri_]
postmodern has quit [Quit: Leaving]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
sullenel has quit [Quit: Leaving.]
sush24 has joined #ruby-lang
Croms has quit [Quit: Croms]
richardjapenga has quit [Read error: Connection reset by peer]
jgomez has joined #ruby-lang
moonglum has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Remote host closed the connection]
richardjapenga has joined #ruby-lang
heftig has joined #ruby-lang
<charliesome> whitequark: interesting read
leopard_me has joined #ruby-lang
imperator3 has joined #ruby-lang
imperator has joined #ruby-lang
imperator2 has joined #ruby-lang
carloslopes has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
sandbags2 has quit [Remote host closed the connection]
cardoni has joined #ruby-lang
rohit has joined #ruby-lang
m3nd3s has joined #ruby-lang
Hakon has joined #ruby-lang
rue has quit [Remote host closed the connection]
rohit has quit [Ping timeout: 240 seconds]
<judofyr> charliesome: he's a very nice quark
gjaldon has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Hakon has quit [Remote host closed the connection]
Hakon has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
gmci has joined #ruby-lang
gmci is now known as Guest92806
setmeaway has quit [Ping timeout: 246 seconds]
aetcore has quit [Remote host closed the connection]
<andrewvos> TIL: OpenStruct.new(JSON.parse(json))
kain_ has joined #ruby-lang
setmeaway has joined #ruby-lang
cyndis_ has joined #ruby-lang
<charliesome> night
weeb1e_ has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
agarcia_ has joined #ruby-lang
rue|w has quit [Read error: Operation timed out]
mihar_ has joined #ruby-lang
havenn has joined #ruby-lang
chris2_ has joined #ruby-lang
jaska__ has joined #ruby-lang
whitequa1k has joined #ruby-lang
BlaXpirit has joined #ruby-lang
jMCg_ has joined #ruby-lang
ericwood_ has joined #ruby-lang
<heftig> andrewvos: too bad it's not recursive
cyri_ has joined #ruby-lang
mwjcomputing has joined #ruby-lang
thorncp has quit [Ping timeout: 258 seconds]
NOKAH has joined #ruby-lang
wycats_ has joined #ruby-lang
davidbalber|away has quit [Ping timeout: 240 seconds]
znz_jp0 has joined #ruby-lang
richardjapenga has quit [Ping timeout: 240 seconds]
zigidias_ has joined #ruby-lang
davidbalber|away has joined #ruby-lang
richardjapenga has joined #ruby-lang
Spaceghostc2c_ has joined #ruby-lang
cschneid_ has joined #ruby-lang
<andrewvos> heftig: It isn't?
erikh_ has joined #ruby-lang
rue|w has joined #ruby-lang
setmeaway has quit [Ping timeout: 276 seconds]
agarcia has quit [*.net *.split]
kain has quit [*.net *.split]
zenspider has quit [*.net *.split]
Harzilein has quit [*.net *.split]
chris2 has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
weeb1e has quit [*.net *.split]
tockitj_ has quit [*.net *.split]
znz_jp has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
lewrker has quit [*.net *.split]
strmpnk has quit [*.net *.split]
mihar has quit [*.net *.split]
mccraig has quit [*.net *.split]
jMCg has quit [*.net *.split]
zigidias has quit [*.net *.split]
randym has quit [*.net *.split]
lzhz has quit [*.net *.split]
wycats has quit [*.net *.split]
ericwood has quit [*.net *.split]
cyndis has quit [*.net *.split]
faen has quit [*.net *.split]
whitequark has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
cschneid has quit [*.net *.split]
manveru has quit [*.net *.split]
jaska has quit [*.net *.split]
erikh has quit [*.net *.split]
Spaceghostc2c_ is now known as Spaceghostc2c
sush24 has quit [Quit: This computer has gone to sleep]
lewrker has joined #ruby-lang
lzhz has joined #ruby-lang
zmack has quit [Write error: Connection reset by peer]
mccraig has joined #ruby-lang
Hakon has quit [Ping timeout: 252 seconds]
<heftig> andrewvos: nope
manveru has joined #ruby-lang
thorncp has joined #ruby-lang
zmack has joined #ruby-lang
banisterfiend has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
sush24 has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<heftig> andrewvos: OpenStruct.new(JSON.parse '{ "foo": { "a": 1, "b": 2 }, "bar": 3 }').foo
<heftig> just converts the top-level hash to an openstruct
<heftig> not very useful, IMO
faen has joined #ruby-lang
nyuszika7h has joined #ruby-lang
havenn has joined #ruby-lang
outoftime has joined #ruby-lang
<andrewvos> meh
<andrewvos> Still nice
dhruvasagar has joined #ruby-lang
skipper has joined #ruby-lang
<judofyr> just be aware that OpenStruct is *really* slow
<andrewvos> judofyr: Why?
skipper is now known as Guest47589
<banisterfiend> cos it's pure ruby and uses method_missing i guess
randym has joined #ruby-lang
<andrewvos> method_missing is slow?
threedaymonk has joined #ruby-lang
strmpnk has joined #ruby-lang
<banisterfiend> r u 4 realz
<heftig> banisterfiend: no, worse. lots of define_method
tockitj_ has joined #ruby-lang
<heftig> ostruct.rb:154
<judofyr> actually, it was slow on initialize for us
<heftig> judofyr: yes, because it creates new methods on the singleton class
<lianj> heftig: just looked at the same line ^^
<heftig> that causes caches to be emptied
jMCg_ is now known as jMCg
<andrewvos> Quiet all I'm using OpenStruct for everything and you can't stop me!
havenn has quit [Ping timeout: 276 seconds]
mistym has joined #ruby-lang
Guest47589 has quit [Ping timeout: 245 seconds]
erichmenge has quit [Ping timeout: 246 seconds]
Spaceghostc2c has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
wnd has quit [Read error: Connection reset by peer]
wnd has joined #ruby-lang
erichmenge has joined #ruby-lang
<lianj> andrewvos: ruby -rostruct -e 'p OpenStruct.new(foo: 1).to_hash' fail
mistym has quit [Remote host closed the connection]
singpolyma has quit [Ping timeout: 246 seconds]
singpolyma has joined #ruby-lang
<judofyr> heftig: that + removing a link_to-call from a loop speed up one action quite a bit :)
mccraig is now known as mccraig_
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<heftig> judofyr: what?
cschneid has joined #ruby-lang
<lianj> ruby -rostruct -rjson -e 'p OpenStruct.new(JSON.load({foo: 1}.to_json)).to_json' even more fail
Spaceghostc2c has joined #ruby-lang
jxie has joined #ruby-lang
<judofyr> heftig: just that removing OpenStruct noticeably speed up our app :)
<heftig> i can believe that
<heftig> judofyr: just what was this about link_to?
<judofyr> heftig: oh, just another performance issue I had
rue_XIW has joined #ruby-lang
<lianj> ostruct.rb:204 and the for loop. wth
rue|w has quit [Ping timeout: 265 seconds]
cantonic has quit [Quit: cantonic]
srji has joined #ruby-lang
jds has joined #ruby-lang
znz_jp0 has quit [Quit: kill -QUIT $$]
<heftig> lianj: 204 is a recursion guard
rue has joined #ruby-lang
<heftig> if the ostruct contains itself, this way inspect will terminate (or not hit a systemstackerror)
<heftig> that's pretty standard. array and hash do the same stuff
<lianj> but globally in thread.current?
<heftig> yes.
<lianj> i put stuff in there once and felt pretty dirty
<heftig> nah
znz_jp has joined #ruby-lang
<heftig> lianj: it needs to be global
robotmay has quit [Remote host closed the connection]
robotmay has joined #ruby-lang
<heftig> er, well, thread-local
<heftig> you can't make it an instance variable because of multithreading
<heftig> otherwise two concurrent inspects could blow up
<lianj> hm good point, thanks
<lianj> yea for this Thread.current is nice
jaska__ has left #ruby-lang [#ruby-lang]
jaska has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
znz_jp has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby-lang
sailias has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
datanoise has joined #ruby-lang
kurko_ has joined #ruby-lang
mwjcomputing has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 252 seconds]
chezduck has joined #ruby-lang
mwjcomputing has joined #ruby-lang
NOKAH has quit [Quit: Leaving...]
banisterfiend has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
RantriX has joined #ruby-lang
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
rue|w has joined #ruby-lang
rue_XIW has quit [Ping timeout: 276 seconds]
carloslo_ has joined #ruby-lang
carloslopes has quit [Ping timeout: 255 seconds]
BigO has joined #ruby-lang
chris2_ is now known as chris2
Uranio has joined #ruby-lang
cogweh has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
srji has quit [Ping timeout: 244 seconds]
erichmenge has quit [Quit: Arrivederci!]
erichmenge has joined #ruby-lang
grzywacz has joined #ruby-lang
srji has joined #ruby-lang
sush24 has joined #ruby-lang
tonni has quit [Remote host closed the connection]
svyatov has quit [Quit: svyatov]
solars has quit [Ping timeout: 276 seconds]
RantriX has quit [Remote host closed the connection]
voker57__ has joined #ruby-lang
voker57_ has quit [Ping timeout: 252 seconds]
mars777 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
fletch` has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
aetcore has joined #ruby-lang
sush24 has quit [Client Quit]
imperator2 has quit [Ping timeout: 255 seconds]
rue|w has quit [Read error: Operation timed out]
imperator3 has quit [Ping timeout: 255 seconds]
imperator has quit [Ping timeout: 255 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
stonerfish has joined #ruby-lang
wyhaines has joined #ruby-lang
m3nd3s has joined #ruby-lang
dejongge has joined #ruby-lang
cogweh has left #ruby-lang ["- part"]
rippa has joined #ruby-lang
hakunin has joined #ruby-lang
voker57__ has quit [Read error: Operation timed out]
voker57__ has joined #ruby-lang
Harzilein has joined #ruby-lang
KA_ has joined #ruby-lang
Guest21979 has quit [Ping timeout: 246 seconds]
Guest63674 has joined #ruby-lang
gsav has joined #ruby-lang
thorncp has quit [Ping timeout: 240 seconds]
thorncp_ has joined #ruby-lang
gsav has quit [Client Quit]
tockitj_ has left #ruby-lang [#ruby-lang]
sush24 has joined #ruby-lang
sush24 has quit [Remote host closed the connection]
dejongge has quit [Read error: Connection reset by peer]
sj26 has quit [Ping timeout: 245 seconds]
neurodamage has quit [Ping timeout: 240 seconds]
neurodamage has joined #ruby-lang
miah has quit [Ping timeout: 255 seconds]
miah has joined #ruby-lang
dejongge has joined #ruby-lang
sj26 has joined #ruby-lang
fsvehla has joined #ruby-lang
banisterfiend has joined #ruby-lang
ulisescab has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 276 seconds]
heftig has quit [Quit: leaving]
gsav has joined #ruby-lang
steez has quit [Ping timeout: 240 seconds]
steez has joined #ruby-lang
steez is now known as Guest13066
dr_bob has quit [Quit: Leaving.]
jammi has quit [Read error: Operation timed out]
Kuukunen has quit [Read error: Operation timed out]
stardiviner has joined #ruby-lang
|Vargas| has quit [Quit: ...]
Kuukunen has joined #ruby-lang
jammi has joined #ruby-lang
dr_bob has joined #ruby-lang
jammi has quit [Read error: Operation timed out]
banisterfiend has quit [Read error: Connection reset by peer]
Kuukunen has quit [Ping timeout: 260 seconds]
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
bastilian has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
<zzak> judofyr: pleasant surprise to see your name on ruby-core this a.m. :)
<judofyr> zzak: yeah, after preview1 I've been following it again :)
m3nd3s has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
<zzak> woot!
jammi has joined #ruby-lang
Kuukunen has joined #ruby-lang
<injekt> :)
cardoni has quit [Quit: cardoni]
<zzak> injekt: you should really have a say here: https://bugs.ruby-lang.org/issues/5010
<zzak> it's an older thread, but there's been some discussion on it lately
<injekt> zzak: I've jumped in there already
<zzak> oh i see you now
ulisescab has quit [Ping timeout: 252 seconds]
chimkan_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
<kalleth> so
<kalleth> i was having a discussion this morning
<kalleth> Refinements
<kalleth> good or bad, i can't decide
KA_ has quit [Quit: KA_]
<judofyr> kalleth: yeeees?
<injekt> I don't like the idea
<injekt> personally
emptyflask has joined #ruby-lang
<kalleth> its that with current monkeypatching, yes, you can shoot your foot off
<kalleth> but
<andrewvos> What's the point really
<judofyr> I like lexical refinements
emptyflask has quit [Remote host closed the connection]
<kalleth> at different places in the same app th same call will have different behaviors
<kalleth> without any indication that that might be o
<kalleth> *so
<judofyr> but not a fan of module_eval refinements
<kalleth> seeing as i have a go at PHP for that, i can't really like that in ruby :)
emptyflask has joined #ruby-lang
anachronistic has joined #ruby-lang
voker57__ has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
<andrewvos> Complex Code --
voker57__ has joined #ruby-lang
<judofyr> andrewvos: I think lexical refinements are useful for DSL: 5.days.ago
<zzak> refinements are still a mystery to me, i havent had the time to read the discussions yet really
jarib has joined #ruby-lang
<andrewvos> judofyr: I'm starting to think Fluent Interfaces are out to get us all though.
<kalleth> zzak: basically, its locally scoped monkey patching of classes
<andrewvos> judofyr: I don't have exact evidence of my findings, but my gut feelings tell me to stay far away from Fluent Interfaces.
<kalleth> so you can modify Fixnum to respond to .blank? in one module but not in another
<zzak> kalleth: i thought refinements didnt have local rebinding
kain_ is now known as kain
<judofyr> zzak: it doesn't, but his statement didn't imply so?
<judofyr> I look at refinements as a great way to start discussing Rails' massive abuse of monkey-patching
<injekt> Does anyone in here have ruby 2.0.0-preview1 and using rbenv?
<judofyr> injekt: yup, working fine
<injekt> weird
<judofyr> it's so funny seeing everyone saying "meh, monkey-patching is bad anyway" and yet they still hold onto ActiveSupport
<judofyr> both preview1 and dev works fine
<injekt> judofyr: my rbenv global returns 2.0.0 but ruby -v returns 1.9
<judofyr> injekt: which ruby
<judofyr> injekt: and `rbenv version`
<injekt> judofyr: yeah both 1.9.3
<judofyr> there you have it
<judofyr> `rbenv version` should explain why it's using 1.9.3
<judofyr> (set by /Users/magnus/.rbenv/version)
richardjapenga has quit [Quit: Leaving]
<injekt> judofyr: right but global overrides that? or should?
<judofyr> injekt: if you have the shell hook you can also do "rbenv shell 2.0.0-preview1"
<judofyr> dunno, haven't used global
<zzak> judofyr: im massively confused, thats why i need to read!
<injekt> oh wait
<injekt> hrm
<injekt> it's using a version from another dir :S
<injekt> set by /some/project/.rbenv-version
mupilot has joined #ruby-lang
<injekt> I haven't even cd'd into that dir
<judofyr> zzak: what are you confused about?
<kalleth> judofyr: monkey patching isn't bad
<kalleth> you just need to do it carefully
<zzak> judofyr: refinements, its ok i just need to learn them and the implementation on my own
<judofyr> I prefer the term "duck punching"
<judofyr> zzak: I haven't looked into the implementation yet :)
<judofyr> zzak: I also believe ko1 is working on some performance improvements
kitallis has joined #ruby-lang
<judofyr> totally unrelated: http://bassethoundsrunning.tumblr.com/
<judofyr> zzak: I'm playing with a little language here. should it be object-oriented or not?
<judofyr> maybe I'll do objects, but no inheritance
<judofyr> but traits
<zzak> judofyr: you down with OOP?
<judofyr> zzak: I'm just wondering how it will work with concurrency :/
<zzak> what do objects have to do with concurrency?
mwjcomputing has quit [Quit: Leaving]
Mellett68 has joined #ruby-lang
<judofyr> concurrency don't work well with mutable state
agarcia_ has quit [Quit: Konversation terminated!]
bastilian has quit [Quit: Leaving...]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
<zzak> then pick one :)
icooba has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 252 seconds]
judofyr has quit [Remote host closed the connection]
setmeaway has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
esad has quit [Quit: Computer has gone to sleep.]
KA_ has joined #ruby-lang
heftig has joined #ruby-lang
MaddinXx has joined #ruby-lang
MSU has quit [Ping timeout: 260 seconds]
dejongge has quit [Read error: Connection reset by peer]
KA_ has quit [Client Quit]
KA_ has joined #ruby-lang
jnoon has quit []
jnoon has joined #ruby-lang
MSU has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
blazes816 has joined #ruby-lang
thatdutchguy has joined #ruby-lang
madish_ has joined #ruby-lang
icooba has joined #ruby-lang
mytrile has joined #ruby-lang
madish has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
sush24 has joined #ruby-lang
rekky has joined #ruby-lang
ryanlecompte has joined #ruby-lang
SoAwesomeMan has joined #ruby-lang
gregmoreno has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
dr_bob has joined #ruby-lang
cosah has quit [Ping timeout: 246 seconds]
dr_bob has quit [Client Quit]
sush24 has quit [Quit: This computer has gone to sleep]
lcdhoffman has joined #ruby-lang
stardiviner has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby-lang
grzywacz has quit [Ping timeout: 240 seconds]
areil has quit [Remote host closed the connection]
alvaro_o has joined #ruby-lang
JohnBat26 has joined #ruby-lang
swarley has joined #ruby-lang
__butch__ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby-lang
<matti> :>
mytrile has quit [Remote host closed the connection]
jgomez has quit [Quit: Leaving]
jds_ has joined #ruby-lang
CoverSlide|TPFR is now known as CoverSlide
jds has quit [Ping timeout: 260 seconds]
dasil003 has quit [Ping timeout: 276 seconds]
brianpWins has joined #ruby-lang
banisterfiend has joined #ruby-lang
SoAwesomeMan has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
datanoise has quit [Ping timeout: 276 seconds]
afgeneralist has joined #ruby-lang
gjaldon has quit [Quit: Leaving]
Nisstyre has quit [Remote host closed the connection]
fsvehla has quit [Quit: fsvehla]
sepp2k has quit [Read error: No buffer space available]
sepp2k has joined #ruby-lang
cantonic_ has joined #ruby-lang
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
madish_ has quit [Read error: Connection reset by peer]
madish has joined #ruby-lang
JohnBat26 has quit [Read error: Operation timed out]
anjen has joined #ruby-lang
Nisstyre has joined #ruby-lang
sush24 has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
qwerxy has quit [Ping timeout: 260 seconds]
qwerxy has joined #ruby-lang
anjen has quit [Quit: anjen]
workmad3 has quit [Ping timeout: 264 seconds]
cyri_ has quit [Quit: cyri_]
robbyoconnor has quit [Ping timeout: 276 seconds]
<brianpWins> if I use a back tick to do an operation can I get any kind of return/response/exit code from that operation?
JohnBat26 has joined #ruby-lang
datanoise has joined #ruby-lang
chrismcg is now known as zz_chrismcg
justinram has joined #ruby-lang
<ttilley> brianpWins: from an ugly as sin hidden global
<brianpWins> hmmmm. I'll take your distaste and find another way =)
<ttilley> brianpWins: $? contains in some versions of ruby the exit code as a numeric, but modern rubies contains a Process::Status object
<ttilley> with pid and exit code
slainer68 has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<ttilley> of whatever was last run, so make sure you connect that immediately after the command is run...
<ttilley> brianpWins: i'd suggest looking into the spawn set of apis though
<brianpWins> thanks ttilley I'll check all that out
<ttilley> pid = spawn([env,] command... [,options]); status = Process.waitpid(pid)
rsl has quit [Ping timeout: 240 seconds]
<ttilley> just don't forget to wait on the pid or it'll become a zombie
BigO has quit [Remote host closed the connection]
<brianpWins> I don't often require running commands with back ticks. Currently I'm debugging someone else's code. Is there a difference between running with back ticks vs using system() ? system will give me false if the cmd fails which is actually all I think I need right now. but why have two methods (system vs back ticks) ?
stardiviner has quit [Ping timeout: 240 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
<pabs> brianpWins: backticks collect the standard output of the command and return it as a string
<pabs> e.g.
<pabs> >> `ls`.length
<pabs> => 971
jxie_ has joined #ruby-lang
<brianpWins> if that's the only (major) difference then I'm good with system. I don't need the output for anything
datanoise has quit [Ping timeout: 260 seconds]
<brianpWins> thanks for the info
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 264 seconds]
cardoni has joined #ruby-lang
thorncp_ is now known as thorncp
<pabs> brianpWins: as far as i know that's it
banisterfiend has quit [Ping timeout: 260 seconds]
jbwiv has joined #ruby-lang
Carnage\ has joined #ruby-lang
cantonic has quit [Quit: cantonic]
qwerxy has quit [Quit: offski]
cultureulterior_ has quit [Quit: cultureulterior_]
spike|spiegel has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
cardoni has quit [Quit: cardoni]
rekky has quit [Quit: rekky]
datanoise has joined #ruby-lang
KA_ has quit [Read error: Connection reset by peer]
robotmay has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
emptyflask has quit [Remote host closed the connection]
BigO has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lele has left #ruby-lang ["Leaving"]
vlad_starkov has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
datanoise has quit [Read error: Operation timed out]
Croms has joined #ruby-lang
mistym is now known as mistym_lunch
vlad_starkov has quit [Ping timeout: 264 seconds]
rippa has joined #ruby-lang
vlad_starkov has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
rekky has joined #ruby-lang
lcdhoffman has joined #ruby-lang
isale-eko has joined #ruby-lang
benanne has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
unsymbol has quit [Ping timeout: 252 seconds]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 264 seconds]
mwjcomputing has joined #ruby-lang
unsymbol has joined #ruby-lang
lcdhoffman has quit [Ping timeout: 240 seconds]
sullenel has joined #ruby-lang
methods has joined #ruby-lang
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<naquad> are there any gems implementing stand alone caching
<naquad> ?
Hakon has joined #ruby-lang
<outoftime> naquad: what do you mean by stand alone caching?
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<naquad> outoftime, i need a gem that will implement caching abstraction layer. e.g. it should have different caching backends implemented (file, memory, memcached, ...) that could be selected via configuration
<outoftime> naquad: so the way ActiveSupport caching does?
<naquad> outoftime, ermmm where can i read about that?
<naquad> outoftime, thank you, will use that
<outoftime> naquad: no problem
elux has joined #ruby-lang
<outoftime> naquad: these docs probably also helpful - http://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-store
<naquad> outoftime, very! right now i've been looking for :epires_in. thank you again ^_^
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
kentos has joined #ruby-lang
havenn has quit [Ping timeout: 260 seconds]
mwjcomputing has quit [Ping timeout: 255 seconds]
datanoise has joined #ruby-lang
elux has quit [Quit: Bye!]
Hakon has quit [Quit: Leaving...]
mistym has quit [Remote host closed the connection]
Hakon has joined #ruby-lang
Uranio has quit [Quit: WeeChat 0.3.8]
mwjcomputing has joined #ruby-lang
havenn has joined #ruby-lang
KA_ has quit [Quit: KA_]
gix has quit [Ping timeout: 260 seconds]
carloslo_ has quit [Remote host closed the connection]
thinkdevcode has joined #ruby-lang
Axsuul has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
foucist has joined #ruby-lang
gix has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 246 seconds]
rekky has quit [Quit: rekky]
svyatov has joined #ruby-lang
spike|spiegel has quit [Ping timeout: 252 seconds]
dasil003 has joined #ruby-lang
headius has joined #ruby-lang
<foucist> anyone want to give me some feedback on how to code this https://github.com/foucist/spiral-test/blob/master/spiral.rb in a more professional manner?
<drbrain> foucist: you don't need the arrays, x, y = 0, 0; width, height = root, root
<drbrain> you don't need to_a on your ranges, they're already enumerable
<foucist> yeah i realized that about hte arras heh
<foucist> arrays*
<drbrain> and line 23 is awful long
mistym_lunch is now known as mistym
<brianpWins> Nanaimo eh. I'm in Van.
bluepojo has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
<foucist> brianpWins: yeah, in campbell river right now but heading to gabriola island, near nanaimo soon
<brianpWins> cool, I haven't spent to much time on any of the islands. Tofino of course but that's pretty much it.
<foucist> do you go to whistler much?
<brianpWins> a handful of times a year
<brianpWins> i bicycled to squamish on friday
<foucist> sounds like a long bike ride
<foucist> how long did it take? where did you start from
<brianpWins> started from my place near the Vancouver General Hospital got to the casino in squamish and then turned around. 5.5 riding hours 135.2km
<brianpWins> 1 flat tire =)
voker57__ has quit [Ping timeout: 255 seconds]
<brianpWins> http://www.strava.com/runs/27969552 <--- mapped route
mixandgo has quit [Quit: mixandgo]
gregmore_ has joined #ruby-lang
cirwin has joined #ruby-lang
sullenel has quit [Quit: Leaving.]
gregmoreno has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby-lang
KA_ has joined #ruby-lang
dedis has joined #ruby-lang
lenilson-dias has joined #ruby-lang
dedis has quit [Remote host closed the connection]
qpingu has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
lenilson-dias has left #ruby-lang [#ruby-lang]
mixandgo has joined #ruby-lang
esad has joined #ruby-lang
sailias has quit [Quit: Leaving.]
tonni has joined #ruby-lang
methods1 has joined #ruby-lang
<wmoxam> not more professional or anything
<wmoxam> just had some fun and changed the algorythm
banisterfiend has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
methods has quit [Ping timeout: 244 seconds]
<wmoxam> recursive ftwmeh, it's buggy
<wmoxam> fixed :p
benanne has quit [Quit: kbai]
swarley has quit [Read error: Connection reset by peer]
cardoni has joined #ruby-lang
swarley has joined #ruby-lang
kennyvb has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
kennyvb has joined #ruby-lang
KA_ has quit [Quit: KA_]
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has quit [Ping timeout: 250 seconds]
kennyvb has quit [Ping timeout: 252 seconds]
havenn has joined #ruby-lang
dedis has joined #ruby-lang
dasil003 has quit [Quit: dasil003]
dedis has quit [Remote host closed the connection]
whitequa1k has quit [Quit: leaving]
whitequark has joined #ruby-lang
kennyvb has joined #ruby-lang
<whitequark> I suck at ruby constant resolution.
* cirwin lends whitequark a copy of ruby 1.9.1
tenderlove has joined #ruby-lang
r0bgleeson has joined #ruby-lang
* whitequark shoots himself
* yorickpeterse cleans up the mess
* whitequark . o O ( I wonder how many rubyists died this way already... )
<whitequark> so, seriously now
<whitequark> it first goes through cref (Module.nesting) and tries to const_get the const in each module
lcdhoffman has joined #ruby-lang
<whitequark> and then does const_get at ddef
<whitequark> or that's how I understand it
vlad_starkov has joined #ruby-lang
<cirwin> first along cref, then up the type heirarchy
<whitequark> yeah, so while going through cref it does const_get(name, false).
<whitequark> (or that doesn't make sense because there isn't a way to change ddef without it going to cref)
<cirwin> what's ddef?
<whitequark> default definee
<cirwin> cool
<whitequark> I'm using terminology from this: http://yugui.jp/articles/846
<cirwin> I hadn't seen it shortened to ddef before
<banisterfiend> whitequark: so you're saying const lookup is different in instance_eval vs class_evla ? (since ddef is different)
kurko_ has quit [Quit: Computer has gone to sleep.]
cyri_ has joined #ruby-lang
<whitequark> banisterfiend: well, I do say that. I may be wrong.
<whitequark> let's check.
<banisterfiend> whitequark: ya just define a const on th singleton class of the module
BigO has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 256 seconds]
<whitequark> > @a = Object.new; class A; Con = 1; end; class B < A; @a.instance_eval { Con }; end
<whitequark> => 1
anachronistic has quit [Quit: anachronistic]
<whitequark> weird
<banisterfiend> oh wait..that can't be right, in the case of: module M; V = 10; end; M.class_eval { V } or M.instance_eval { V } it'll never be looked up, it doesnt look in self/ddef at all it's purely cref iirc
<whitequark> > "Ruby constant lookup is rather tricky" HELL YES
<whitequark> I never really understood the thing
<banisterfiend> sry, wrong chan
cardoni has quit [Quit: cardoni]
<drbrain> banisterfiend: OH YEAH!
<drbrain> NOM NOM NOM NOM NOM
<banisterfiend> hehe you must be as druk as me
<banisterfiend> drunk*
<drbrain> nope
<drbrain> that dog is all "cone of shame? NO! Cone of unstoppable eating!"
vlad_starkov has quit [Ping timeout: 244 seconds]
<whitequark> that all is strangely relevant to the cref discussion.
<whitequark> sigh
elux has joined #ruby-lang
<elux> hey guys..
<foucist> brianpWins: just got back from a quick run.. anyways that's a pretty serious bike ride heh :) but pretty much biking on roads and highways? or were there good bike paths?
<elux> when doing [1,2] | [2,3,4] .. but where the elements in the array are objects, which method is triggered to test equality of the objects in order to do the union?
<elux> i tried overriding == but no luck..
<banisterfiend> whitequark: if you look at the MRI code it's a bit weird, cos YARV originall had constants looked up in instance_eval/class_eval, but they then reverted it to match the 1.8 behaviour, but the 'reversion' looks like an obvious hack on the code to forcefully make it lookup consts the old way, it doesnt seem natural at all
<banisterfiend> they have some weird kind of flag they set iirc
BigO has joined #ruby-lang
<brianpWins> foucist: roads and highways
<whitequark> banisterfiend: doesn't seem so
nibbo has joined #ruby-lang
BigO has quit [Disconnected by services]
<foucist> wmoxam: pretty nice, though it would be nice to encapsulate the duplicate parts of those and just send << or unshift methods to it i guess
BigO_ has joined #ruby-lang
<heftig> elux: probably eql?
<elux> good idea.. ill try it
<whitequark> elux: eql? indeed. it's used to check if the objects have the same value
<whitequark> elux: also, if you override #eql? you need to override #hash too
<whitequark> otherwise all hell will break loose
<whitequark> weird behavior in Hash, Array#uniq and whatnot
isale-eko_ has joined #ruby-lang
<banisterfiend> whitequark: my internet is too shit to look that up, but there was some weird 'in_eval_context' thing they set that would change how constants were looked up, which wasnt in the 1.9.1 source
isale-eko_ has quit [Client Quit]
<whitequark> banisterfiend: ah I found it, http://rxr.whitequark.org/mri/source/vm_eval.c#1306
isale-eko has quit [Ping timeout: 240 seconds]
<elux> hrmm looks like it compares #hash values actually when doing |
ryanlecompte has quit [Remote host closed the connection]
<elux> it might not be wise fo me to override that tho just to get syntatic sugar when doing a |= b
ryanlecompte has joined #ruby-lang
<elux> with arrays of objects in a and b
erikh_ has left #ruby-lang [#ruby-lang]
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
erikh has joined #ruby-lang
<erikh> argh
<erikh> freenode
<erikh> y u so fail
agile has quit [Ping timeout: 245 seconds]
<erikh> znc's been trying to change my nick, so it can register me with nickserv, so I can talk in here
<erikh> but because I was in here, it wouldn't let me change my nick
<drbrain> erikh: I know ☹
<erikh> been doing this for like .. 9 hours
cyri_ has quit [Ping timeout: 245 seconds]
<elux> i have another idea..
gix has quit [Ping timeout: 240 seconds]
xeviox|awy has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
xeviox|awy is now known as xeviox
gregmoreno has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
kith has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
kith has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
<zzak> erikh: you never registered?
lcdhoffman has joined #ruby-lang
gix has joined #ruby-lang
cantonic has joined #ruby-lang
<erikh> no, I got disconnected
<whitequark> the rubyspec would be quite handy... if only it ever included _exec* specs
<banisterfiend> whitequark: instance_exec > instance_eval in all cases IMO
<whitequark> banisterfiend: there are valid cases for _eval family
<banisterfiend> instance_eval breaks when used with lambdas since 1.9.2
xeviox has left #ruby-lang ["Leaving"]
<banisterfiend> whitequark: ah i mean block-based instance_eval
<whitequark> banisterfiend: btw, the cref hack is present with _exec too
<whitequark> no it doesn't, nevermind
<whitequark> 2AM
<banisterfiend> i can't think of a situation i'd want instance_eval over instance_exec, esp since instance_eval breaks with 0-arity lambdas (though arguably it's a bad idea to pass a 0 arity lambda to instance_eval)
outoftime has quit [Quit: Leaving]
<whitequark> rb_obj_instance_exec calls yield_under
<whitequark> which indeed sets the NODE_FL_CREF_PUSHED_BY_EVAL flag
<banisterfiend> i wish i could read this links, but im currentl on the equivalent of a bad dialup connection ;)
<whitequark> well I've outlined the interesting parts
<whitequark> the cref changes are seemingly not the same, but I do not understand this good enough yet to say for sure
<whitequark> but the flag is definitely set on something
elux has quit [Quit: Bye!]
__butch__ has quit [Quit: Leaving.]
<banisterfiend> whitequark: what are you working ON?
<banisterfiend> on*
<whitequark> banisterfiend: my ruby implementation
<banisterfiend> whitequark: cool, is it a pure ruby one?
methods1 has quit [Quit: Leaving.]
<whitequark> a metacircular optimizing one, with an aim of compiling efficient (as in C) code for embedded environments
cyri_ has joined #ruby-lang
cardoni has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
zecoin has joined #ruby-lang
crudson has joined #ruby-lang
mjio has joined #ruby-lang
aetcore_ has joined #ruby-lang
aetcore has quit [Ping timeout: 240 seconds]
mupilot has quit [Read error: Operation timed out]
svyatov has quit [Quit: svyatov]
zecoin has quit [Read error: Connection timed out]
lenilson-dias has joined #ruby-lang
afgeneralist has quit [Ping timeout: 252 seconds]
sepp2k has quit [Remote host closed the connection]
<banisterfiend> whitequark: cool
lenilson-dias has quit [Remote host closed the connection]
<kke> does ruby only dup strings passed as arguments if they're modified? i benchmarked match_stuff(file_content) vs file_content[/stuff/] and only got 0.2% speed increase from the later (and the file is about 100kb)
<kke> so passing around large blobs of data isn't that bad?
esad has joined #ruby-lang
<foucist> does anyone know if there would be a good way to easily switch between .each & .reverse_each and .<< & .unshift .. i.e. pass in whether to use the opposite versions in a function?
<foucist> i was trying .instance_eval("rev ? send(:reverse_each):send(:each)") but it doesn't seem to work lol
m3nd3s has joined #ruby-lang
<kke> send(rev ? :reverse_each : :each)
<kke> without instance eval
<foucist> oh duh
methods has joined #ruby-lang
CaptainJet has quit []
dasil003 has joined #ruby-lang
<kke> or you could add directional_each to Array with something like class Array { def directional_search(direction=:forward, &block) { direction.eql?(:forward) each(block) : reverse_each(block)} and then do ['a', 'b'].directional_each(:back) do |foo| ...
dedis has joined #ruby-lang
<bluepojo> foucist: I'd do something like this: https://gist.github.com/4128376
mixandgo has quit [Quit: mixandgo]
<bluepojo> oh look
<bluepojo> that's what kke said
<bluepojo> hah
<foucist> kke: well there's also the << & unshift methods so i don't want something that specific :P
<bluepojo> Write a method for both on Array
<foucist> btw, send(rev ? :unshift : :<<) num
<foucist> erm, send(rev ? :unshift : :<<) num
<foucist> crap
dedis has quit [Remote host closed the connection]
<bluepojo> it's much cleaner just to open up the object and provide a new method, imo.
<foucist> bluepojo: true
<kke> foucist: send(rev ? :unshift : :<<, num)
agile has joined #ruby-lang
<foucist> thank goodness send has a 3rd arg :P
<foucist> 2nd* rather
thatdutchguy has quit [Remote host closed the connection]
<kke> send(method, arg1, arg2, arg3, arg4)
<bluepojo> it has variable args… everything after the method name is given as args to the method being called
<foucist> right, *arg
wyhaines has quit [Remote host closed the connection]
agile has quit [Ping timeout: 246 seconds]
dedis has joined #ruby-lang
mistym has quit [Remote host closed the connection]
BigO_ has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
<foucist> wmoxam: https://gist.github.com/4127990 heh
dasil003 has quit [Quit: dasil003]
Kingy has joined #ruby-lang
<crankharder> can i do matrix subtraction somehow? [10, 8, 2] - [1,2,3] => [9,6,-1]
<foucist> crankharder: i believe that requires a library
<crankharder> ok
<crankharder> Enumerable it is then
datanoise has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby-lang
havenn has quit [Remote host closed the connection]
afgeneralist has joined #ruby-lang
mixandgo has joined #ruby-lang
mixandgo has quit [Client Quit]
<burgestrand> crankharder: matrix in stdlib
<burgestrand> Matrix[[10, 8, 2]] - Matrix[[1,2,3]] # => Matrix[[9, 6, -1]]
<banisterfiend> burgestrand: sup burg, ltns, are you still as happy as you always used to be or is life grinding you down?
<methods> oh wow didn't realize Matrix was built in ?
<foucist> crankharder: lol [10, 8, 2].each_with_index.map {|x,i| x - [1,2,3][i]}
<banisterfiend> methods: it's stdlib
<methods> hm.. Matrix would be pretty good to subclass for a Vector class
<methods> actually i think i do remember it
<burgestrand> banisterfiend: always happy
<drbrain> require Matrix gives you Vector also
<burgestrand> banisterfiend: even when sweden is dark, cold, and bitter
<drbrain> require 'matrix' I mean
<methods> whoa.. i'll have to go and look at what they actually do though
<banisterfiend> burgestrand: hehe, hey have you heard much about 'visby' ? im thinking about going there, is it worthwhile? and when is the best time to go?
<burgestrand> banisterfiend: how are the sheep?
<foucist> why does matrix require Matrix[[]] ? that's a little annoying
<banisterfiend> burgestrand: i live in netherlands now :)
<burgestrand> banisterfiend: cool :)
<burgestrand> banisterfiend: august
<banisterfiend> burgestrand: cool, what have you heard about visby btw? (if anything)
<burgestrand> banisterfiend: http://www.visbysweden.com/
<banisterfiend> burgestrand: i'm just interested in it after watching kiki's delivery service ;)
<burgestrand> banisterfiend: medieval festival week in august :)
<burgestrand> (and late summer)
<burgestrand> banisterfiend: not much, it’s a city, on an island, have a few relatives that go there every year for summer holiday retreat
<burgestrand> foucist: because it takes rows.
<burgestrand> foucist: Matrix[row, row, row]
<banisterfiend> burgestrand: thx
<methods> yea at least vector class doesn't seem to have many things you'd want from a 3d vector class
<foucist> burgestrand: i figured, but if you've only got one row you'd think it'd auto-detect that ;)
<burgestrand> with stdlib you never know
<methods> length, length squared, cross product, normailze, dot product, ability to do basic math operations on scalar or another vector, nice initialization techniques etc..
agile has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
BlaXpirit has quit [Read error: Connection reset by peer]
Kingy has quit [Quit: Leaving]
<crankharder> is there some kind of Statistics in stdlib that I'm missing?
<crankharder> stddev for example
seanstickle has joined #ruby-lang
anachronistic has joined #ruby-lang
KA_ has joined #ruby-lang
afgeneralist has quit [Ping timeout: 276 seconds]
CaptainJet has joined #ruby-lang
Carnage\ has quit []
kurko_ has joined #ruby-lang
Averna has joined #ruby-lang
datanoise has joined #ruby-lang
zenspider has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
gsav_ has joined #ruby-lang
<foucist> that's an exceedingly long name for a library/gem
<methods> hey at least your not using java
<whitequark> it's pretty descriptive tho
gsav has quit [Ping timeout: 260 seconds]
gsav_ has quit [Ping timeout: 244 seconds]
<foucist> whitequark: LOL
r0bgleeson has quit [Ping timeout: 260 seconds]