apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
thisirs has quit [Read error: Connection reset by peer]
georgedrummond has quit [Remote host closed the connection]
agarie has joined #ruby-lang
gregmoreno has joined #ruby-lang
zastern has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 252 seconds]
zastern has joined #ruby-lang
postmodern has joined #ruby-lang
<Spaceghost|cloud> drbrain is a ruby hero regardless of recognition, but that's not to say he shouldn't be recognized.
Andromeda has quit [Remote host closed the connection]
Andromeda has joined #ruby-lang
glebm has joined #ruby-lang
zastern has quit [Ping timeout: 256 seconds]
crynix has quit [Remote host closed the connection]
Andromed_ has joined #ruby-lang
brianpWins_ has quit [Quit: brianpWins_]
Andromed_ has quit [Ping timeout: 252 seconds]
myappleguy has joined #ruby-lang
Andromeda has quit [Ping timeout: 260 seconds]
dominikh has quit [*.net *.split]
felipe has quit [*.net *.split]
mame0 has quit [*.net *.split]
a3li has quit [*.net *.split]
KillerFox has quit [*.net *.split]
_ko1 has quit [*.net *.split]
shinh has quit [*.net *.split]
neurodamage has quit [*.net *.split]
Raynes has quit [*.net *.split]
dvorak has quit [*.net *.split]
jaymes_ has quit [*.net *.split]
llakey has quit [*.net *.split]
jashank has quit [*.net *.split]
TTilus has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
Caius has quit [*.net *.split]
djinni` has quit [*.net *.split]
chimkan has quit [*.net *.split]
tylersmith has quit [*.net *.split]
My_Hearing has quit [*.net *.split]
wudofyr has quit [*.net *.split]
amerine has quit [*.net *.split]
mksm_ has quit [*.net *.split]
t0h_ has quit [*.net *.split]
ggreer has quit [*.net *.split]
rtl has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
[dmp]_ has quit [*.net *.split]
joschi has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
lupine has quit [*.net *.split]
tsou has quit [*.net *.split]
singpolyma has quit [*.net *.split]
badeball has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
norplr has quit [*.net *.split]
yalue has quit [*.net *.split]
baz_ has quit [*.net *.split]
Paradox has quit [*.net *.split]
rwjblue_ has quit [*.net *.split]
yellow5 has quit [*.net *.split]
whitequark has quit [*.net *.split]
krohrbaugh has quit [*.net *.split]
MartynKeigher has quit [*.net *.split]
melter has quit [*.net *.split]
narya has quit [*.net *.split]
jbsan has quit [*.net *.split]
brianpWins has quit [*.net *.split]
mitchty has quit [*.net *.split]
Nisstyre-laptop has quit [*.net *.split]
heftig has quit [*.net *.split]
m4t- has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
linc01n has quit [*.net *.split]
conceal_rs__ has quit [*.net *.split]
manveru has quit [*.net *.split]
hagabaka has quit [*.net *.split]
corundum has quit [*.net *.split]
FastJack has quit [*.net *.split]
xsdg has quit [*.net *.split]
rondale_sc has quit [*.net *.split]
tsou has joined #ruby-lang
nyuszika7h has quit [Read error: Connection reset by peer]
yellow5 has joined #ruby-lang
tomzx_mac has joined #ruby-lang
xyzodiac has joined #ruby-lang
Paradox has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
yalue has joined #ruby-lang
mwjcomputing has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
techlife has quit [Ping timeout: 264 seconds]
dustint has quit [Ping timeout: 260 seconds]
KM has joined #ruby-lang
idkazuma has joined #ruby-lang
TheNotary has quit [Quit: Leaving]
kain has quit [Quit: exit]
techlife has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
davemaurakis has joined #ruby-lang
symm-_ has joined #ruby-lang
bitcycle has joined #ruby-lang
<bitcycle> Hey all. Ruby newb here. I'm wondering how to drop into the ruby interactive shell from a script.
symm- has quit [Ping timeout: 258 seconds]
kain_ has quit [Quit: exit]
spuk has joined #ruby-lang
bitcycle has quit [Quit: Page closed]
xyzodiac has quit [Quit: Computer has gone to sleep.]
mbull9 has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
xxaM has quit [Ping timeout: 260 seconds]
xxaM has joined #ruby-lang
<drbrain> I don't need another
torrieri has quit [Quit: Leaving...]
marr has quit [Ping timeout: 258 seconds]
crynix_ has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
mwjcomputing has quit [Ping timeout: 252 seconds]
krohrbaugh has joined #ruby-lang
lupine_85 has quit [Changing host]
lupine_85 has joined #ruby-lang
lupine_85 is now known as lupine
benanne has quit [Quit: kbai]
TheNotary has joined #ruby-lang
crynix_ has quit [Remote host closed the connection]
nano has joined #ruby-lang
nano has left #ruby-lang [#ruby-lang]
davemaurakis is now known as 6JTAACQNO
NoMethodError has joined #ruby-lang
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
NoMethodError has quit [Client Quit]
NoMethodError has joined #ruby-lang
NoMethodError has quit [Client Quit]
towski has quit [Remote host closed the connection]
agarie_ has joined #ruby-lang
agarie has quit [Read error: Connection reset by peer]
postmodern has quit [Changing host]
postmodern has joined #ruby-lang
megha has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
spuk has quit [Ping timeout: 240 seconds]
dankest has quit [Quit: Leaving...]
spuk has joined #ruby-lang
dankest has joined #ruby-lang
techlife has quit [Ping timeout: 252 seconds]
TheNotary has quit [Quit: Leaving]
TheNotary has joined #ruby-lang
<TheNotary> instead of having an irb, does anyone know what java people do to get anything done?
KM is now known as Guest35746
powershellyoda has joined #ruby-lang
powershellyoda has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
stardiviner has joined #ruby-lang
postmodern_ has joined #ruby-lang
postmodern_ has quit [Client Quit]
postmodern has joined #ruby-lang
dingus_khan has joined #ruby-lang
lsegal has joined #ruby-lang
dankest has quit [Read error: Connection reset by peer]
glebm has quit [Ping timeout: 258 seconds]
glebm has joined #ruby-lang
techlife has joined #ruby-lang
17WABD1LB has joined #ruby-lang
singpolyma has joined #ruby-lang
_ko1 has joined #ruby-lang
t0h_ has joined #ruby-lang
baz_ has joined #ruby-lang
m4t- has joined #ruby-lang
jbsan has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
MartynKeigher has joined #ruby-lang
rtl has joined #ruby-lang
conceal_rs__ has joined #ruby-lang
dvorak has joined #ruby-lang
xsdg has joined #ruby-lang
FastJack has joined #ruby-lang
ggreer has joined #ruby-lang
a3li has joined #ruby-lang
norplr has joined #ruby-lang
jashank has joined #ruby-lang
[dmp]_ has joined #ruby-lang
linc01n has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
llakey has joined #ruby-lang
djinni` has joined #ruby-lang
dominikh has joined #ruby-lang
hagabaka has joined #ruby-lang
heftig has joined #ruby-lang
whitequark has joined #ruby-lang
cHarNe2 has joined #ruby-lang
wudofyr has joined #ruby-lang
rondale_sc has joined #ruby-lang
joschi has joined #ruby-lang
megha has joined #ruby-lang
melter has joined #ruby-lang
felipe has joined #ruby-lang
mitchty has joined #ruby-lang
badeball has joined #ruby-lang
manveru has joined #ruby-lang
jaymes_ has joined #ruby-lang
mksm_ has joined #ruby-lang
shaman42_ has joined #ruby-lang
Caius has joined #ruby-lang
Raynes has joined #ruby-lang
narya has joined #ruby-lang
rwjblue has joined #ruby-lang
KillerFox has joined #ruby-lang
mame0 has joined #ruby-lang
neurodamage has joined #ruby-lang
amerine has joined #ruby-lang
shinh has joined #ruby-lang
dostoyevsky has joined #ruby-lang
TTilus has joined #ruby-lang
corundum has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
17WABD1LB has quit [Read error: Connection reset by peer]
krohrbaugh has quit [Quit: Leaving.]
nyuszika7h_ has joined #ruby-lang
megha is now known as Guest99477
dankest has joined #ruby-lang
sirbrillig has joined #ruby-lang
chao_ has left #ruby-lang [#ruby-lang]
scottschecter has joined #ruby-lang
scottschecter has quit [Client Quit]
mistym has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
Andromeda has joined #ruby-lang
srbaker has joined #ruby-lang
<whitequark> very well, I've only a hundred tests or so to write
swav has quit [Ping timeout: 258 seconds]
<ryanf> TheNotary: I think the answer is IDEs
<whitequark> >> :+@
<eval-in> whitequark => :+@ (http://eval.in/15027)
Andromeda has quit [Remote host closed the connection]
Andromeda has joined #ruby-lang
charliesome_ has joined #ruby-lang
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
6JTAACQNO has quit [Remote host closed the connection]
Andromeda has quit [Ping timeout: 264 seconds]
epitron has joined #ruby-lang
m4t- has quit [Ping timeout: 245 seconds]
m4t- has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
r0bby_ has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
srbaker has quit [Quit: Computer has gone to sleep.]
Gaelan has joined #ruby-lang
r0bby_ has quit [Ping timeout: 258 seconds]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Client Quit]
<whitequark> 18>> proc { |a, &b| b }.call { 1 }
<eval-in> whitequark => /tmp/execpad-a07f9a2f73b0/source-a07f9a2f73b0:2: wrong number of arguments (0 for 1) (ArgumentError) ... (http://eval.in/15028)
<whitequark> 18>> proc { |a, &b| b }.call(1) { 2 }
<eval-in> whitequark => #<Proc:0x4021dd34@/tmp/execpad-dadd37c465cb/source-dadd37c465cb:2> (http://eval.in/15029)
<whitequark> since when does 1.8 accept block arguments to blocks?..
<whitequark> 18>> proc { |&foo.bar| }.call { 2 }
<eval-in> whitequark => /tmp/execpad-4db5c07c0d0c/source-4db5c07c0d0c:2: undefined local variable or method `foo' for main:Object (NameError) ... (http://eval.in/15030)
<whitequark> lolwhat
dingus_khan has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
Gaelan has joined #ruby-lang
dankest has quit [Quit: Leaving...]
<whitequark> 18>> break()
<eval-in> whitequark => /tmp/execpad-fa32fa0558e3/source-fa32fa0558e3:3: void value expression (http://eval.in/15031)
<whitequark> wat, why is this an error
<whitequark> 18>> a && ()
<eval-in> whitequark => /tmp/execpad-a5d8be2fc2bc/source-a5d8be2fc2bc:2: undefined local variable or method `a' for main:Object (NameError) (http://eval.in/15032)
<whitequark> 18>> ().foo
<eval-in> whitequark => /tmp/execpad-a0109fb317aa/source-a0109fb317aa:2: undefined method `foo' for nil:NilClass (NoMethodError) (http://eval.in/15033)
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
TheNotary has quit [Remote host closed the connection]
TheNotary has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
<whitequark> 18>> proc { break(1) }.call
<eval-in> whitequark => 1 (http://eval.in/15034)
woollyams has joined #ruby-lang
<yorickpeterse> HELLO, I'M IN COREA. KBAI
Guest99477 has quit [Quit: WeeChat 0.4.0]
fire has joined #ruby-lang
<whitequark> yorickpeterse: hah
<whitequark> wanna hack on parse.y?
nertzy3 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> Get out
<yorickpeterse> I'm on holidays
<yorickpeterse> and I'm hungry
bushido has joined #ruby-lang
nertzy2 has quit [Ping timeout: 276 seconds]
<whitequark> yorickpeterse: :/
<whitequark> holidays are intended for that
<yorickpeterse> Not if I'm 9k KM away from home
<yorickpeterse> I came here for two reasons: holidays and visiting my partner in crime
<yorickpeterse> I am guilty of coding on the plane though
<whitequark> in crime?
<yorickpeterse> partner in crime, girlfriend, waifu, etc
<whitequark> heh
woollyams has quit [Quit: Computer has gone to sleep.]
krohrbaugh has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 258 seconds]
jhn has joined #ruby-lang
jhn has quit []
sirbrillig has quit [Quit: leaving]
dingus_khan has quit [Ping timeout: 276 seconds]
skade has joined #ruby-lang
<TheNotary> The more I work on this java plugin, the more I appreciate Matz's sheer brilliance
<TheNotary> the two languages are a completely different coding experience
sush24 has joined #ruby-lang
* whitequark is considering switching to Java almost seriously
<whitequark> writing a ruby parser is a PITA of enormous proportions
<lianj> why you write a ruby parser?
<whitequark> lianj: because RP does not report precise locations
<whitequark> and is, generally, a piece of crap
<whitequark> (RP = ruby_parser)
<lianj> why not use ripper?
<whitequark> because it is an implementation detail of MRI?
<whitequark> and, well, is generally a piece of crap
<whitequark> my main target platform is JRuby, btw.
<whitequark> before you ask "why not use JRubyParser": at least because "main" != "only"
<whitequark> yay 67% grammar coverage! 5% more than 300 TLOC and a two hours earlier
<lianj> :)
<lianj> at least youre a parsing pro when finished
<whitequark> I'm unfortunately already a parsing pro; what I'm doing now is a boring and trivial task of unfucking parser actions
snafoo__ has joined #ruby-lang
<whitequark> Minero Aoki is a genius; he could decipher the intent behind parse.y
Tectonic has joined #ruby-lang
<lianj> yea, but i think thats what makes ruby so enjoyable
<lianj> annoying to implement, but its pleasant to use
<whitequark> no, not really
<whitequark> 95% of annoyance is features which you would only use 1% of time, if ever
<whitequark> for some of them, I didn't even *suspect* you could do that at all
<whitequark> like, I dunno, nested heredocs
<whitequark> or %%% or this:
<whitequark> >> eval("%\0foo\0")
<eval-in> whitequark => "foo" (http://eval.in/15035)
<lianj> but thats the beauty
snafoo_ has quit [Ping timeout: 252 seconds]
<whitequark> some of the annoying to implement parts are justified. but not much of them.
<whitequark> there's also the part where a line of code can have three different meanings depending on unlimited preceding and one line of subsequent context
postmodern has quit [Quit: Leaving]
<lianj> but thats the beauty
<lianj> :P
<whitequark> then please stop using this beauituful language for any real work, kthxbye
<lianj> hah
<whitequark> or the part where you can do this
<whitequark> >> begin; raise "foo"; rescue Exception => FOO; end; FOO
<eval-in> whitequark => #<RuntimeError: foo> (http://eval.in/15036)
<lianj> thats nice, i always define constants like that
<whitequark> grrr
* whitequark bites lianj
snafoo__ has quit [Quit: Leaving]
<lianj> ruby gives you more features and you hate the
<lianj> *them
<whitequark> exactly. less is more.
<lianj> not for the code golfing language #1
<whitequark> the key word is "me". it's not about *me*. it's about collaboration, and featuritis makes collaboration harder, for various reasons
<lianj> writing runnable but wtf ruby code saves your job
<whitequark> not that the opposite extreme "there's only one way to do it" doesn't work either. first, because you are not clever enough to design it correctly, and second, because people will hate you anyway
* whitequark slaps lianj around a bit with a large trout
<lianj> im off, it late, and sorry for being such an ass
<whitequark> please, place the "Coding & Collaboration Antipatterns" back to the shelf, it's harming your consciousness.
skade has quit [Quit: Computer has gone to sleep.]
krohrbaugh has quit [Quit: Leaving.]
chessguy has quit [Read error: Connection reset by peer]
chessguy has joined #ruby-lang
r0bby_ has joined #ruby-lang
bzalasky has joined #ruby-lang
skade has joined #ruby-lang
r0bby_ has quit [Client Quit]
rippa has joined #ruby-lang
crynix has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
skade has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
kain has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
Gaelan_ has joined #ruby-lang
Gaelan has quit [Read error: Connection reset by peer]
Gaelan_ has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
bzalasky has joined #ruby-lang
myappleguy has quit [Quit: Leaving.]
Gaelan has quit [Ping timeout: 258 seconds]
krohrbaugh has joined #ruby-lang
Andromeda has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
<TTilus> whitequark: there sure are quite a few dark corners in ruby
<TTilus> i remember one particular that bit me once
Andromeda has quit [Read error: Connection reset by peer]
Andromeda has joined #ruby-lang
<TTilus> out of scope "next"
<whitequark> huh?
sush24 has joined #ruby-lang
jg_ has joined #ruby-lang
ootoovak has joined #ruby-lang
pcboy__ has joined #ruby-lang
<TTilus> basically def foo; ...; arr.each { bar }; ...; end; def bar; ...; next; ...; end
<TTilus> that was 1.8
<TTilus> 1.9 doesnt allow that anymore
ootoovak has quit [Client Quit]
ootoovak has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
<TTilus> that bar was extracted from foo and later on got called from elsewhere too
pcboy_ has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
<TTilus> after that daemons started flying out of my nose
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
Gaelan has joined #ruby-lang
<rue> Ooh, I like that error const trick.
<rue> I’m gonna start using it
<rue> You know, when I can write Ruby again…
<TTilus> "can"? whats keeping you from?
mistym has quit [Remote host closed the connection]
ericmathison has joined #ruby-lang
stonerfish has joined #ruby-lang
Gaelan has quit [Ping timeout: 255 seconds]
ryanf_ has joined #ruby-lang
ryanf_ has quit [Client Quit]
charliesome has joined #ruby-lang
<whitequark> TTilus: heh
ootoovak has quit [Quit: ootoovak]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
tsion has joined #ruby-lang
dhruvasagar has joined #ruby-lang
torrieri has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
heftig has quit [Quit: Quitting]
mytrile has joined #ruby-lang
Gaelan has joined #ruby-lang
<rue> TTilus: Lack of time…
torrieri has quit [Quit: Leaving...]
stonerfish has quit [Quit: Leaving.]
<rue> Work is FRP coffeescript (which is fun), and spare time is consumed by other things
<whitequark> rue: link?
<whitequark> FPR coffeescript is either total bullshit or quite interesting
<whitequark> *FRP
sush24_ has joined #ruby-lang
torrieri has joined #ruby-lang
sush24 has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
unlikely_monkey has quit [Remote host closed the connection]
<apeiros> FRP?
<whitequark> apeiros: functional reactive programming, I assume
<apeiros> o0
<apeiros> thx
<whitequark> a really neat concept
<whitequark> I'd call it a generalization of the signal-slot system found in Qt, Gtk, etc
<whitequark> however from what I understand, it still needs quite a bit of polishing before it is (if ever) applicable to large real-world systems
<rue> It works pretty well.
<rue> And MS has it on WP, through .Net’s Rx at least
<rue> And I think they might support rxjs there too
Gaelan has quit [Ping timeout: 258 seconds]
<charliesome> .net has some cool stuff going for it, but its a shame it's so windows centric
<charliesome> mono doesn't count
<apeiros> aaaahahaha, awesome: http://divshot.github.io/geo-bootstrap/
<apeiros> twitter bootstrap theme :)
<apeiros> rue: thanks
ootoovak has joined #ruby-lang
crynix has quit [Remote host closed the connection]
<rue> Mm, '92
<r0bglees0n> charliesome: yeah, F# looks cool
<rue> whitequark: I like it a lot. Decomposing/combining/etc. the streams into data flows requires a change in thinking, but I find it a very good model
bzalasky has quit [Remote host closed the connection]
solars has joined #ruby-lang
<whitequark> rue: I agree here
agarie_ has quit [Remote host closed the connection]
chendo has joined #ruby-lang
ootoovak has quit [Quit: ootoovak]
heftig has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
heftig has quit [Client Quit]
dc5ala has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
alessio_rocco has joined #ruby-lang
Gaelan has joined #ruby-lang
Gaelan has quit [Ping timeout: 240 seconds]
marr has joined #ruby-lang
robbyoconnor has joined #ruby-lang
swav has joined #ruby-lang
chimkan has joined #ruby-lang
<rue> But yes, things have conspired to the point that I wasn’t even aware that 2.0 was out…
postmodern has joined #ruby-lang
ootoovak has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
pygmael has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Burgestrand has joined #ruby-lang
pygmael has quit [Client Quit]
woollyams has joined #ruby-lang
pygmael has joined #ruby-lang
chendo has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
My_Hearing has joined #ruby-lang
pygmael has quit [Quit: pygmael]
nyuszika7h_ is now known as nyuszika7h
Andromeda has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
andromeda25 has joined #ruby-lang
<whitequark> rue: um, it's in the topic for... ages
<rue> I don’t read the topic?
<whitequark> isn't it on the top of window somewhere?
<whitequark> like, it's hard to not read it unless you specifically avoid that
andromeda25 has quit [Remote host closed the connection]
Andromeda has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
Gaelan has joined #ruby-lang
* whitequark idly wonders what's up with moscow metro [underground?]
<whitequark> like 1.5 years ago I suddenly started to see policemen everywhere. back in the days, there weren't much of them, but that didn't take long to escalate
<whitequark> today, they're like every 25 meters, and with helmets and bulletproof vests
<whitequark> and it's not like something's happening, they just stay there and do nothing.
<whitequark> also, tons of CCTV cameras. I think they aim for 100% coverage
<rippa> whitequark: I usually see police in helmets on days of sport events
<rippa> nera Sportivnaya station
* whitequark checks the news
<whitequark> no, no sport events, it seems. fukushima?.. didn't expect that
Gaelan has quit [Ping timeout: 240 seconds]
wizonesolutions has quit [Quit: No Ping reply in 180 seconds.]
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
Tectonic has quit []
pygmael has joined #ruby-lang
fire has quit [Ping timeout: 256 seconds]
baba has joined #ruby-lang
benanne has joined #ruby-lang
<whitequark> 18>> :+@
<eval-in> whitequark => :+@ (http://eval.in/15038)
mbj has joined #ruby-lang
krohrbaugh has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
<discopig> hi
<injekt> morning
krohrbaugh has quit [Ping timeout: 256 seconds]
jxie has quit [Quit: leaving]
<whitequark> moo
<whitequark> mbj: hi
jxie has joined #ruby-lang
<r0bglees0n> 18>> RUBY_VERSION
<eval-in> r0bglees0n => "1.8.7" (http://eval.in/15039)
<r0bglees0n> 19>> RUBY_VERSION
<eval-in> r0bglees0n => "1.9.3" (http://eval.in/15040)
<r0bglees0n> 20>> RUBY_VERSION
<eval-in> r0bglees0n => "2.0.0" (http://eval.in/15041)
<r0bglees0n> nice
<injekt> 10>> RUBY_VERSION
<eval-in> injekt => /tmp/execpad-2903b84a075e/source-2903b84a075e:2: NameError: Uninitialized constant RUBY_VERSION (http://eval.in/15042)
<injekt> :D
vlad_starkov has joined #ruby-lang
<whitequark> 10>> @0
<eval-in> whitequark => nil (http://eval.in/15043)
<whitequark> kewl
<injekt> 10>> TOPLEVEL_BINDING
<eval-in> injekt => #<Data:0x40202014> (http://eval.in/15055)
<injekt> wow 1.0 literally had no introspection
<whitequark> 19>> methods
<eval-in> whitequark => [:to_s, :public, :private, :include, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untru ... (http://eval.in/15057)
<whitequark> errr
<whitequark> 10>> methods
<eval-in> whitequark => /tmp/execpad-1e224fde3598/source-1e224fde3598:2: NameError: undefined local variable or method `methods' for main(Object) (http://eval.in/15058)
<whitequark> what
<injekt> aye
<whitequark> what the fuck
<whitequark> how are you supposed to use that
<injekt> :D
<injekt> 10>> __id__
<eval-in> injekt => /tmp/execpad-852eb5a898f6/source-852eb5a898f6:2: NameError: undefined local variable or method `__id__' for main(Object) (http://eval.in/15059)
<r0bglees0n> 10>> Class.new {}
<eval-in> r0bglees0n => #<Module 0x40201e84> (http://eval.in/15060)
<whitequark> wat
<injekt> haha
<whitequark> 10>> Module.new {}
<eval-in> whitequark => #<Module 0x40201e84> (http://eval.in/15061)
<whitequark> hey, why isn't that Class?
<tsion> 10>> Class
<eval-in> tsion => Class (http://eval.in/15062)
<injekt> 10>> Class.ancestors
<eval-in> injekt => /tmp/execpad-302aa47d4195/source-302aa47d4195:2: NameError: undefined method `ancestors' for Class(Class) (http://eval.in/15063)
<injekt> *sigh*
<r0bglees0n> 10>> lambda { }
<eval-in> r0bglees0n => #<Proc:0x40201e98> (http://eval.in/15064)
<whitequark> 10>> lambda { |@a| }.call(1); @a
<eval-in> whitequark => 1 (http://eval.in/15065)
<injekt> :D
<whitequark> goes all the way down to 1.0
<injekt> aye
<whitequark> matz should remove syntax more often :/
<whitequark> like, BEGIN{}, and rescue => FOO
<injekt> rescue =>FOO is funny
<whitequark> it makes me angry.
<whitequark> it makes me want punch people's faces.
<whitequark> HULK CRASH
<tsion> What's rescue => FOO? Doesn't warn about changing the constant, or what?
<whitequark> >> begin; raise "foo"; rescue => FOO; end; FOO
<eval-in> whitequark => #<RuntimeError: foo> (http://eval.in/15066)
<tsion> Or just the fact that you can use a constant there at all
<whitequark> also works: @foo, @@foo, anything you can have at lhs
maxmanders has joined #ruby-lang
<whitequark> >> def a=(f); p f; end; begin; raise "foo"; rescue => self.a; end
<eval-in> whitequark => #<RuntimeError: foo> ... (http://eval.in/15067)
<r0bglees0n> begin; raise "foo"; rescue => $!; end; $!
<r0bglees0n> >> begin; raise "foo"; rescue => $!; end; $!
<eval-in> r0bglees0n => /tmp/execpad-b61285a51e3a/source-b61285a51e3a:2:in `rescue in <main>': $! is a read-only variable (NameError) ... (http://eval.in/15068)
<whitequark> attribute assignment, whatever
<injekt> >> begin; raise "foo"; rescue => $_; end; print
<eval-in> injekt => foonil (http://eval.in/15069)
<r0bglees0n> >> Net::HTTP.get_response URI.parse("http://www.google.com")
<eval-in> r0bglees0n => /tmp/execpad-6d2207bd12b4/source-6d2207bd12b4:2:in `<main>': uninitialized constant Net (NameError) (http://eval.in/15070)
<r0bglees0n> >> require "net/http"; Net::HTTP.get_response URI.parse("http://www.google.com")
<whitequark> r0bglees0n: won't work.
<eval-in> r0bglees0n => (http://eval.in/15071)
<whitequark> sandbox.
woollyams has quit [Quit: Computer has gone to sleep.]
<whitequark> *good* sandbox
<r0bglees0n> :)
<injekt> >> require 'nokogiri'
<eval-in> injekt => (http://eval.in/15072)
<r0bglees0n> >> !!!!true
<eval-in> r0bglees0n => true (http://eval.in/15073)
<injekt> >> require 'nokogiri'; Nokogiri.HTML("<a href='..'></a>").at("a")[:href]
<eval-in> injekt => (http://eval.in/15074)
<r0bglees0n> >> %
<eval-in> r0bglees0n => /tmp/execpad-77a2ceea6dc0/source-77a2ceea6dc0:2: unterminated string meets end of file ... (http://eval.in/15075)
<injekt> >> require 'nokogiri'; p Nokogiri.HTML("<a href='..'></a>").at("a")[:href]
<eval-in> injekt => (http://eval.in/15076)
<injekt> oh you
<whitequark> >> foo = "%d"; foo %( 1 )
<eval-in> whitequark => "1" (http://eval.in/15077)
<r0bglees0n> loop { fork }
<whitequark> >> def foo(a); p "g#{a}"; end; foo %( 1 )
<eval-in> whitequark => "g 1 " ... (http://eval.in/15078)
<tsion> whitequark: That's horrible
<whitequark> tsion: YES
<tsion> I don't get why it doesn't parse %( 1 ) as a string literal in the first case
<manveru> >> %i[a]
<eval-in> manveru => [:a] (http://eval.in/15079)
<whitequark> tsion: because lexer snoops the state of the parser and if the lexed tIDENTIFIER is a lvar, switches to EXPR_END
<manveru> >> %i[1]
<eval-in> manveru => [:"1"] (http://eval.in/15080)
vlad_starkov has quit [Remote host closed the connection]
<whitequark> otherwise to EXPR_BEG
<r0bglees0n> >> RUBY_VERSION
<eval-in> r0bglees0n => "2.0.0" (http://eval.in/15081)
<injekt> >> %I[a]
<eval-in> injekt => [:a] (http://eval.in/15082)
<injekt> >> %I["#{'a'}"]
<eval-in> injekt => [:"\"a\""] (http://eval.in/15083)
<injekt> lol "" oops
<whitequark> also "begin end while" is distinct from any other modifier while
<whitequark> grrrrrr
<whitequark> that is an enormous PITA to implement
<injekt> >> 1 until 2
<eval-in> injekt => nil (http://eval.in/15084)
<tsion> whitequark: Have you / are you working on a Ruby implementation?
<whitequark> tsion: also https://github.com/whitequark/parser
Gaelan has joined #ruby-lang
<tsion> whitequark: Wasn't working on embedded system the goal of mruby? How does this compare?
<whitequark> Foundry [the language] won't use complete Ruby syntax, just the sane parts, but I'm writing and contributing to the community an universal and good parser because that's a neat thing to do.
<whitequark> tsion: no
<whitequark> tsion: mruby is for embedding into applications on desktops/servers.
<tsion> Ok
<whitequark> this is a terminological confusion
<tsion> It's been a while since I read anything about mruby.
skade has joined #ruby-lang
<whitequark> (today's smartphones are in the cateogry of desktops/servers, btw)
<whitequark> you technically can use mruby on microcontrollers but that doesn't make any sense
<injekt> >> "foo" while 1
<eval-in> injekt => (http://eval.in/15085)
<injekt> >> "foo" until 1
<eval-in> injekt => nil (http://eval.in/15086)
vlad_starkov has joined #ruby-lang
<whitequark> >> begin "foo" end until 1
<eval-in> whitequark => nil (http://eval.in/15087)
<whitequark> >> begin p "foo" end until 1
<eval-in> whitequark => "foo" ... (http://eval.in/15088)
<whitequark> injekt: it also fails on some expressions
<whitequark> in particular, bare literals.
<injekt> whitequark: heh yeah
<whitequark> >> begin $a=1 end until 1
<eval-in> whitequark => nil (http://eval.in/15089)
<whitequark> or maybe not
<whitequark> RP behaves weird when I pass a literal, though
<whitequark> not that it would make any semantic difference
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<injekt> ->{}.(1 until 1)
<whitequark> wat
<injekt> >> ->{}.(1 until 1)
<eval-in> injekt => /tmp/execpad-fb8032f14747/source-fb8032f14747:2: syntax error, unexpected modifier_until, expecting ')' ... (http://eval.in/15090)
<injekt> heh
Gaelan has quit [Ping timeout: 264 seconds]
<whitequark> hrm I think it's disallowed in the arg context
<injekt> yeah
<whitequark> >> ->{}.((1 until 1))
<eval-in> whitequark => /tmp/execpad-201fce2f6d4e/source-201fce2f6d4e:2:in `block in <main>': wrong number of arguments (1 for 0) (ArgumentError) ... (http://eval.in/15091)
<injekt> :D
* whitequark headdesks
<injekt> >> ->x{}.((1 until 1))
<eval-in> injekt => nil (http://eval.in/15092)
<injekt> >> ->x{x.to_s}.((1 until 1))
<eval-in> injekt => "" (http://eval.in/15093)
<injekt> har
<tsion> whitequark: I don't envy you writing a Ruby parser. :P
<r0bglees0n> >> loop {}
<eval-in> r0bglees0n => (http://eval.in/15094)
<injekt> >> loop until loop
<eval-in> injekt => nil (http://eval.in/15095)
<whitequark> this is probably the most complicated parser on earth
<injekt> >> loop until loop loop "de doop"
<eval-in> injekt => /tmp/execpad-f2e9f7dfe5e0/source-f2e9f7dfe5e0:2:in `loop': wrong number of arguments (1 for 0) (ArgumentError) ... (http://eval.in/15096)
<whitequark> I mean srsly
woollyams has joined #ruby-lang
<whitequark> you're going to deliberately try and stack complex concepts on top of each other to exceed this, and even then it's not a given that you succeed
<whitequark> most certainly you'll just screw it up :D
<injekt> \o/
maxmanders has quit [Quit: Computer has gone to sleep.]
ootoovak has quit [Quit: ootoovak]
sepp2k has joined #ruby-lang
<whitequark> what, there is rescue..then?!
<whitequark> >> begin; rescue => a; then a; end
<eval-in> whitequark => nil (http://eval.in/15097)
<injekt> yeah
<injekt> I saw that somewhere in stdlib
<injekt> >> File.basename('foo.txt', '.*') # a fav tidbit of mine
<eval-in> injekt => "foo" (http://eval.in/15098)
<whitequark> grrr, I want more than code coverage
<whitequark> I want SC/CC
<mbj> whitequark: hi
vlad_starkov has quit [Remote host closed the connection]
<whitequark> mbj: I've almost finished covering keywords with tests
<whitequark> now, there are block args and method/command calls with complex args
<whitequark> left
<whitequark> also the weird "begin..end while" thingy which is so evil I need to radically change the way parser works, ugh
ootoovak has joined #ruby-lang
<mbj> whitequark: nice, I'll go through the commits later
vlad_starkov has joined #ruby-lang
<mbj> whitequark: isnt begin end while just like "single_statement while" ?
<whitequark> mbj: no :(
<whitequark> it's like do{}while in C
<whitequark> but just for that exact form, "begin..end while". not eg "( ) while", which has almost the same parse tree
<mbj> whitequark: heh
<mbj> whitequark: Bad luck
tbuehlmann has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
alessio_rocco has quit [Remote host closed the connection]
jvrmaia has joined #ruby-lang
<My_Hearing> Didn't they want to remove that behavior at some point?
My_Hearing is now known as Mon_Ouie
<whitequark> Mon_Ouie: maybe
baba has quit [Quit: WeeChat 0.4.0]
<whitequark> yay 72.15% grammar coverage
<whitequark> up from 69.98%!
lewis1711 has joined #ruby-lang
<Burgestrand> If I release two platform-specific gems for x86_64-linux and universal-linux on rubygems, which one will have precedence if I install it on a 64-bit linux system?
myappleguy has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
Gaelan has joined #ruby-lang
lewis1711 has left #ruby-lang [#ruby-lang]
mytrile has quit [Remote host closed the connection]
Gaelan has quit [Ping timeout: 245 seconds]
fire has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Andromeda has quit [Remote host closed the connection]
cored has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
krohrbaugh has joined #ruby-lang
cored has joined #ruby-lang
Burgestrand has quit [Quit: Burgestrand]
wallclockbuilder has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby-lang
jxie has quit [Quit: leaving]
maxmanders has quit [Client Quit]
cored has quit [Ping timeout: 258 seconds]
symm-_ has quit [Ping timeout: 256 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
dhruvasagar has quit [Read error: Operation timed out]
wasserspiegel has joined #ruby-lang
dhruvasagar has joined #ruby-lang
postmodern has quit [Quit: Leaving]
cored has quit [Ping timeout: 256 seconds]
cored has joined #ruby-lang
singpolyma has quit [Quit: Lost terminal]
dc5ala has quit [Quit: Ex-Chat]
cored has quit [Ping timeout: 245 seconds]
maxmanders has joined #ruby-lang
cored has joined #ruby-lang
Gaelan has joined #ruby-lang
ootoovak has quit [Quit: ootoovak]
Gaelan has quit [Ping timeout: 256 seconds]
heftig has joined #ruby-lang
wallclockbuilder has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby-lang
ootoovak has joined #ruby-lang
ootoovak has quit [Client Quit]
tsion has quit [Quit: Leaving]
woollyams has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby-lang
soknee has joined #ruby-lang
chessguy has joined #ruby-lang
<whitequark> yorickpeterse: YAY!!!
<whitequark> 5.
<whitequark> and it's not me, it's zenspider's "test_wtf_7" and "raise "no3" which he's gonna fix himself
skade has quit [Quit: Computer has gone to sleep.]
soknee has quit [Client Quit]
cored has quit [Ping timeout: 276 seconds]
cored has joined #ruby-lang
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 258 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
soknee has joined #ruby-lang
myappleguy has left #ruby-lang [#ruby-lang]
TheNotary has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
TheNotary has joined #ruby-lang
Gaelan has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
Gaelan has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<whitequark> >> END{}
<eval-in> whitequark => nil (http://eval.in/15184)
<whitequark> def f; END{}; end
<whitequark> >> def f; END{}; end
<eval-in> whitequark => /tmp/execpad-892620e74b0c/source-892620e74b0c:2: warning: END in method; use at_exit ... (http://eval.in/15187)
<whitequark> 19>> def f; END{}; end
<eval-in> whitequark => /tmp/execpad-c2f27f5e3209/source-c2f27f5e3209:2: warning: END in method; use at_exit ... (http://eval.in/15188)
<whitequark> 18>> def f; END{}; end
<eval-in> whitequark => /tmp/execpad-729fb06bba4e/source-729fb06bba4e:2: warning: END in method; use at_exit ... (http://eval.in/15190)
<tbuehlmann> can't you try that locally? :p
<whitequark> tbuehlmann: 1.8
<whitequark> broken for some reason for me.
<whitequark> but yeah I can use http:/eval.in
<whitequark> *://
cored has quit [Ping timeout: 245 seconds]
chessguy has quit [Remote host closed the connection]
<yorickpeterse> whitequark: noice
chendo has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
soknee has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
<whitequark> anyone knows a gem which extracts changelogs from git logs?
vlad_starkov has quit [Remote host closed the connection]
<whitequark> something like git-log.grep(/^[+-*]/).join("\n").append_to('CHANGELOG.md')
<yorickpeterse> ugh, `git log` for changelogs is stupid
<whitequark> yorickpeterse: why not? I format the entries which should go to changelog in a certain way
<whitequark> namely, prepend +/-/* and write a sensible message
<whitequark> also rebase.
<yorickpeterse> Because a changelog should be easy to digest, not some text form of your VCS log
chrismar035 has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 256 seconds]
<whitequark> yorickpeterse: ok?
<yorickpeterse> I don't want to browse through numerous commits to figure out that they are related to a single feature
<yorickpeterse> it's much easier to just say "Foo now supports bar" instead of a bunch of related commits
chrismar035 has left #ruby-lang [#ruby-lang]
<whitequark> yorickpeterse: who says that would be *you*?
<whitequark> the whole point is that I'm doing that
<whitequark> when there's a bunch of related commits only the last one will have the changelog sigil
<yorickpeterse> and how do you define related commits?
<whitequark> I don't automate that
<whitequark> look, when developing a feature, I'm going to commit it like this:
<whitequark> "omg this new feature is kool but broken yet"
<whitequark> "less brokenness in the new feature"
<whitequark> "+ implement TheNewFeature."
<whitequark> and only the first line of the last commit is being pulled to changelog
<yorickpeterse> easiest way is to just add a Rake task that does `sh('git log --format=short > CHANGELOG')`
<yorickpeterse> or CHANGELOG.raw or w/e
<whitequark> garaio-changelog seems to be the right thing but...
<whitequark> um... commits_nach_kategorie_gruppiert.each do |kategorie, commits|
<mbj> german identifiers...
<whitequark> yes.
<mbj> bah
<whitequark> oh mbj you can translate that for me right? :3
<mbj> Yeah I can ;)
<whitequark> yeah, garaio-changelog looks exactly like something I'd want to use, kewl
<mbj> commits_nach_kategorie_gruppiert => commits_grouped_by_category
<mbj> whitequark: does it have tests?
<whitequark> mbj: I was mostly joking, it's clear enough as it is and google translate is my friend
<whitequark> hmm
<whitequark> yea
<whitequark> it 'erstellt Commits aus einer Zeile' do :/
<mbj> Lol, who programms like this
<tbuehlmann> creates commits from a row
* whitequark idly wonders how would an rspec DSL in german look like
<mbj> If the author uses german examples he should also port rspec to german before:
<mbj> es 'erstellt Commits aus einer Zeile' tue
<tbuehlmann> heh, `es 'foo' do`
<yorickpeterse> welp, suppose it's time for some late night coding
<whitequark> I've seen some languages with russian keywords, identifiers, etc
<whitequark> it's HORRIBLE
<yorickpeterse> In hindsight, I probably shouldn't have taken a 3 hour nap around 16:00
<mbj> whitequark: German identifiers are something I hate most at university
<mbj> whitequark: Another reason why I quit before I waste more time
<tbuehlmann> and the author had to upload it to schwachkopfknotenpunkt instead of github
<mbj> tbuehlmann: lol
<whitequark> tbuehlmann: schwchwhat
<yorickpeterse> Kernel.achtung 'wo ist mein handy'
<tbuehlmann> indeed
<tbuehlmann> haha
<mbj> yorickpeterse: Kern.achtung ;)
<yorickpeterse> heh
<whitequark> tbuehlmann: google suggests "weak head node point"
<tbuehlmann> but that's pretty cool
<whitequark> tbuehlmann: they even have TESTS for that
<tbuehlmann> pretty good translation, actually
Banistergalaxy has joined #ruby-lang
<whitequark> like, red-green-bugfix
<tbuehlmann> yup
<tbuehlmann> every library should have that method
<tbuehlmann> ..will write a module providing it..
soknee has joined #ruby-lang
<yorickpeterse> gem install ❨╯°□°❩╯︵┻━┻
jxie has joined #ruby-lang
chrismar035_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
alessio_rocco has joined #ruby-lang
jastix has joined #ruby-lang
jvrmaia has quit [Remote host closed the connection]
jvrmaia has joined #ruby-lang
enebo has joined #ruby-lang
kevinfagan has quit [Ping timeout: 256 seconds]
kevinfagan has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 246 seconds]
jxie has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
soknee has quit [Quit: Leaving.]
Gaelan has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Gaelan has quit [Ping timeout: 264 seconds]
sailias has joined #ruby-lang
chrismar035_ has quit [Quit: chrismar035_]
io_syl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
chendo has quit [Ping timeout: 260 seconds]
unlikely_monkey has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
mrfelix has joined #ruby-lang
singpolyma has joined #ruby-lang
MartynKeigher has joined #ruby-lang
jhn has joined #ruby-lang
face has quit [Read error: Connection reset by peer]
face has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby-lang
ykk` has joined #ruby-lang
ykk` has quit [Remote host closed the connection]
ykk` has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
<ykk`> anyone here ever work with any gems that use ffmpeg?
davidstump has joined #ruby-lang
<TheNotary> list the specific question to ffmpeg too plz, ykk`.
davidstump has left #ruby-lang [#ruby-lang]
Banistergalaxy has quit [Ping timeout: 245 seconds]
kennyvb has quit [Quit: ZNC - http://znc.in]
chessguy has joined #ruby-lang
kennyvb has joined #ruby-lang
mytrile has joined #ruby-lang
kennyvb has quit [Quit: ZNC - http://znc.in]
kennyvb has joined #ruby-lang
caen23_ has joined #ruby-lang
caen23_ has quit [Client Quit]
jxie has quit [Quit: leaving]
caen23 has joined #ruby-lang
Gaelan has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
jxie has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
Gaelan has quit [Ping timeout: 264 seconds]
TheNotary has quit [Ping timeout: 246 seconds]
caen23 has left #ruby-lang [#ruby-lang]
jvrmaia has quit [Remote host closed the connection]
TheNotary has joined #ruby-lang
ykk` has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
akahn has quit [Ping timeout: 248 seconds]
akahn has joined #ruby-lang
zmike has joined #ruby-lang
jxie has quit [Remote host closed the connection]
jxie has joined #ruby-lang
mwjcomputing has joined #ruby-lang
ykk` has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
workmad3 has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
cored has quit [Ping timeout: 252 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
wasserspiegel has quit [Ping timeout: 256 seconds]
Gaelan has joined #ruby-lang
nXqd has joined #ruby-lang
breakingthings has joined #ruby-lang
Gaelan has quit [Ping timeout: 256 seconds]
tomzx_mac has joined #ruby-lang
apeiros has quit [Ping timeout: 264 seconds]
solars has quit [Ping timeout: 256 seconds]
nXqd has quit [Ping timeout: 256 seconds]
nXqd has joined #ruby-lang
gix has quit [Ping timeout: 246 seconds]
gix has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
marr has joined #ruby-lang
davidstump has joined #ruby-lang
Erlkoenig has joined #ruby-lang
<Erlkoenig> /\A(HDMI)(_CEC)+\z/.match("HDMI_CEC_CEC") why doesn't this match the 2nd _CEC? The result array contains only one "_CEC"...
davidstump has left #ruby-lang [#ruby-lang]
davidstump has joined #ruby-lang
davidstump has left #ruby-lang [#ruby-lang]
skade has joined #ruby-lang
swav has joined #ruby-lang
alessio_rocco has quit [Remote host closed the connection]
<TTilus> Erlkoenig: it matches both, but (...)+ produces one capture
Gaelan has joined #ruby-lang
swav has quit [Ping timeout: 256 seconds]
<Erlkoenig> uh. can't i get an array of the matches?
<Erlkoenig> i could also just do split("_")
<TTilus> >> /\A(HDMI)(_CEC)+\z/.match("HDMI_CEC_CEC").to_s
<eval-in> TTilus => "HDMI_CEC_CEC" (http://eval.in/15224)
wallclockbuilder has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
__butch__ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
__butch__ has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
zzak_ has joined #ruby-lang
Burgestrand has joined #ruby-lang
adambeynon has joined #ruby-lang
io_syl has joined #ruby-lang
wallerdev has joined #ruby-lang
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Swimming_Bird has joined #ruby-lang
<rue> Split if you can
skade has joined #ruby-lang
<injekt> yorickpeterse: ERROR: Could not find a valid gem '❨╯°□°❩╯︵┻━┻' (>= 0) in any repository :(
<tbuehlmann> yeyeye, I'm on it.. some time.. :p
<injekt> Erlkoenig: yeah just split or use scan
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
TheNotary has quit [Ping timeout: 276 seconds]
thone_ has joined #ruby-lang
Mon_Ouie has quit [Remote host closed the connection]
jastix has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Burgestrand]
Mon_Ouie has joined #ruby-lang
thone has quit [Ping timeout: 276 seconds]
baba has joined #ruby-lang
trappist has left #ruby-lang [#ruby-lang]
fire has quit [Ping timeout: 255 seconds]
bzalasky has joined #ruby-lang
krohrbaugh has joined #ruby-lang
xxaM has quit [Ping timeout: 260 seconds]
anonymuse has joined #ruby-lang
TheNotary has joined #ruby-lang
<marr> >> "HDMI_CEC_CEC".scan(/[^_]+/)
<eval-in> marr => ["HDMI", "CEC", "CEC"] (http://eval.in/15225)
<marr> Erlkoenig: is it better ?
<lianj> split("_")
<tbuehlmann> injekt, module ❨╯°□°❩╯︵┻━┻; end # => class/module name must be CONSTANT :(
TheNotary has quit [Ping timeout: 248 seconds]
krohrbaugh has quit [Quit: Leaving.]
lsegal has joined #ruby-lang
<Erlkoenig> hmm scan is interesting
<marr> sticking with split is advised when you don't need anything fancy
<Erlkoenig> i need scan/split on 200 strings. if it takes <1min it's okay.
<Erlkoenig> scan does support more regex magic
dhruvasagar has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
sush24_ has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
TheNotary has joined #ruby-lang
<yxhuvud> Erlkoenig: http://ruby-doc.org/stdlib-1.9.2/libdoc/strscan/rdoc/StringScanner.html may be useful depending on use case
workmad3 has quit [Ping timeout: 240 seconds]
<Erlkoenig> oh thanks... i think the .scan method solves my problem
Luwe has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: No route to host]
r0bby has joined #ruby-lang
mytrile has joined #ruby-lang
brianpWins has joined #ruby-lang
mrfjor has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
anonymuse has quit [Quit: Leaving...]
skade has quit [Quit: Computer has gone to sleep.]
hahuang65 has joined #ruby-lang
zmike has quit [Quit: Выходжу]
skade has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
symm- has joined #ruby-lang
rue_XIV has joined #ruby-lang
rue has quit [Ping timeout: 255 seconds]
mytrile has joined #ruby-lang
yankeefan04 has joined #ruby-lang
cored has quit [Ping timeout: 245 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
yankeefan04 has quit [Remote host closed the connection]
enebo has joined #ruby-lang
workmad3 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
jastix has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
ruby-lang944 has joined #ruby-lang
ruby-lang944 has quit [Client Quit]
kenips has joined #ruby-lang
jastix has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
crackity_jones has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby-lang
Luwe has quit [Quit: leaving]
jhn has quit []
tomzx_mac has quit [Read error: Operation timed out]
davidstump has joined #ruby-lang
tenderlo_ has quit [Remote host closed the connection]
droptone_ is now known as droptone
bzalasky has quit [Remote host closed the connection]
davidstump has quit [Ping timeout: 256 seconds]
cwd1 has joined #ruby-lang
ykk` has quit [Remote host closed the connection]
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 256 seconds]
mytrile has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
krohrbaugh has joined #ruby-lang
crackity_jones has quit [Quit: Computer has gone to sleep.]
Gaelan has joined #ruby-lang
cwd1 has quit []
nXqd has quit [Remote host closed the connection]
sxross has joined #ruby-lang
sxross has quit [Remote host closed the connection]
Gaelan has quit [Ping timeout: 252 seconds]
nXqd has joined #ruby-lang
Andromeda has joined #ruby-lang
torrieri has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
tomzx_mac has joined #ruby-lang
knu has quit [Remote host closed the connection]
apark has joined #ruby-lang
knu has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
wallerdev has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
apeiros has joined #ruby-lang
davidstump has joined #ruby-lang
enebo has quit [Quit: enebo]
nXqd has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby-lang
nXqd has joined #ruby-lang
ykk` has joined #ruby-lang
davidstump has quit [Ping timeout: 245 seconds]
torrieri has quit [Quit: Leaving...]
Luwe has joined #ruby-lang
realDAB has joined #ruby-lang
r0bglees0n has quit [Ping timeout: 264 seconds]
rue has joined #ruby-lang
rue_XIV has quit [Ping timeout: 245 seconds]
ykk` has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
thone has joined #ruby-lang
realDAB has quit [Quit: realDAB]
thone_ has quit [Ping timeout: 240 seconds]
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
randalla1ordon has joined #ruby-lang
davidstump has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
randallagordon has quit [Ping timeout: 260 seconds]
Luwe has quit [Ping timeout: 264 seconds]
a3li has quit [Ping timeout: 248 seconds]
Gaelan has joined #ruby-lang
a3li has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
enebo has joined #ruby-lang
torrieri has joined #ruby-lang
brixen has quit [Quit: ZNC - http://znc.sourceforge.net]
brixen has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
enebo has quit [Quit: enebo]
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
Axsuul has joined #ruby-lang
crackity_jones has joined #ruby-lang
ykk` has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
glebm has quit [Ping timeout: 264 seconds]
tbuehlmann has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
wmoxam has joined #ruby-lang
tylersmith has joined #ruby-lang
shortcutmedia has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
apark has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0/20130326150557]]
yalue has quit [Read error: Connection reset by peer]
Asher1 has quit [Quit: Leaving.]
dingus_khan has joined #ruby-lang
Asher has joined #ruby-lang
davidstump has quit [Remote host closed the connection]
dingus_khan has quit [Read error: Operation timed out]
dingus_khan has joined #ruby-lang
glebm has joined #ruby-lang
r0bglees0n has joined #ruby-lang
srbaker has joined #ruby-lang
mytrile has joined #ruby-lang
shortcutmedia has quit [Quit: Leaving]
shortcutmedia has joined #ruby-lang
norio has joined #ruby-lang
davidstump has joined #ruby-lang
mytrile has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
torrieri has joined #ruby-lang
Luwe has joined #ruby-lang
davidstump has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
Andromeda has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
Andromeda has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
enebo has joined #ruby-lang
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
Luwe has quit [Ping timeout: 246 seconds]
shortcutmedia has quit [Quit: Leaving]
postmodern has joined #ruby-lang
Andromeda has quit [Ping timeout: 248 seconds]
t_ has quit [Ping timeout: 260 seconds]
MaddinXx_ has joined #ruby-lang
chendo has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
s0ber_ has joined #ruby-lang
TheNotary has quit [Ping timeout: 240 seconds]
s0ber has quit [Ping timeout: 240 seconds]
s0ber_ is now known as s0ber
jonahR has joined #ruby-lang
chendo has quit [Ping timeout: 248 seconds]
idkazuma has joined #ruby-lang
xxaM has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
MaddinXx_ has quit [Remote host closed the connection]
TheNotary has joined #ruby-lang
zachlatta has joined #ruby-lang
<zachlatta> What are the advantages of using a for loop over each do?
kenips has quit [Remote host closed the connection]
<zachlatta> for i in 0...5 vs (0...5).each do |i|
micaeked has joined #ruby-lang
<lianj> zachlatta: no ones uses for i in bar
<zachlatta> What is for generally used for then?
alessio_rocco has joined #ruby-lang
<lianj> maybe that ruby provides you more options? :P
dingus_khan has quit [Ping timeout: 255 seconds]
<lianj> zachlatta: only difference is
<lianj> >> for i in [1,2]; end; p i
<eval-in> lianj => 2 ... (http://eval.in/15237)
<lianj> >> [1,2].each{|i| }; p i
<eval-in> lianj => /tmp/execpad-a607d080d05b/source-a607d080d05b:2:in `<main>': undefined local variable or method `i' for main:Object (NameError) (http://eval.in/15238)
<zachlatta> Is that any better than [1,2].each_do |i| p i end
<zachlatta> ?
<lianj> yea, that what most people use
<zachlatta> I'm sorry for misunderstanding, but for that do most people use each_do or for?
<lianj> .each
fosky has joined #ruby-lang
<lianj> >> p Enumerable.instance_methods
<eval-in> lianj => [:to_a, :entries, :sort, :sort_by, :grep, :count, :find, :detect, :find_index, :find_all, :select, :reject, :collect, :map, :flat_map, :collect_concat, :inject, :reduce, :partition, :group_by, :first, ... (http://eval.in/15239)
<zachlatta> Alright, thanks! I also found this question on StackOverflow http://stackoverflow.com/questions/3294509/for-vs-each-in-ruby
TheNotary has quit [Ping timeout: 260 seconds]
krohrbaugh has joined #ruby-lang
enebo has quit [Quit: enebo]
krohrbaugh has quit [Read error: Operation timed out]
alessio_rocco has quit [Remote host closed the connection]
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Max SendQ exceeded]
Swimming_Bird has joined #ruby-lang
TheNotary has joined #ruby-lang
mytrile has joined #ruby-lang
<canton7> yeah, the scoping is about it, plus #each is more idiomatic
vlad_starkov has joined #ruby-lang
intellitech has quit [Quit: intellitech]
dingus_khan has joined #ruby-lang
ootoovak has joined #ruby-lang
Swimming_Bird has quit [Ping timeout: 276 seconds]
tallship has joined #ruby-lang
tallship has quit [Remote host closed the connection]
tallship has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
dingus_khan has quit [Ping timeout: 256 seconds]
Andromeda has joined #ruby-lang
woollyams has joined #ruby-lang
Andromeda has quit [Ping timeout: 255 seconds]
wmoxam has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby-lang
melter has quit [Quit: Client exiting]
woollyams has quit [Quit: Computer has gone to sleep.]
ootoovak has quit [Quit: ootoovak]
ootoovak has joined #ruby-lang
ootoovak has quit [Client Quit]
sepp2k has quit [Remote host closed the connection]
<dingus_khan> zachlatta: according to what I've read in Eloquent Ruby, it's idiomatically correct to use each-do over a for loop, but they both technically work...?
intellitech has joined #ruby-lang
krohrbaugh has joined #ruby-lang
norio has quit [Remote host closed the connection]
unlikely_monkey has joined #ruby-lang
dingus_khan has quit [Ping timeout: 264 seconds]
krohrbaugh has quit [Read error: Operation timed out]
tylersmith has quit [Quit: tylersmith]
spuk has quit [Ping timeout: 260 seconds]
srbaker has joined #ruby-lang
spuk has joined #ruby-lang
ootoovak has joined #ruby-lang
dingus_khan has joined #ruby-lang
soknee has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<TheNotary> dingus_khan, My understanding is that each-do is encouraged over for loops. In fact (in 1.9 at least) for loops are wildly more efficient than .each, yet most rubyist don't use for loops unless they're attempting to achieve a specific benchmark.
soknee has quit [Client Quit]
<TheNotary> my philosophy thus far is do it pretty, and counter-efficiently, and in most cases that works out great. I've recently been thinking more about efficiency upon working on a public gem though... I'm not sure if i'm going to replace the each loops or not now that you mention it. I actually forgot about that aspect of ruby.
oddmunds has quit [Ping timeout: 252 seconds]
<whitequark> TheNotary: huh wat, wildly more efficient?..
<TheNotary> in any regard, Java is a much more suitible language if you'd like to write some ugly code ;) It's almost manditory per syntax
<TheNotary> well... let me google this, it's like 2x faster isn't it though?
unlikely_monkey has quit [Remote host closed the connection]
<whitequark> this is really strange, because for loops are a syntactic sugar for each..do :)
<whitequark> but lemme verify
<TheNotary> hmm... I'm not finding anything... I don't know what language I could be thinking of if not... oh... jquery duh
Swimming_Bird has joined #ruby-lang
<lianj> whitequark: for i in [1,2]; end; p i vs [1,2].each{|i| }; p i
<lianj> cant be only syntactic sugar
Swimming_Bird has quit [Max SendQ exceeded]
<TheNotary> nvm, I'm completely wrong if this is news to whitequark
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Max SendQ exceeded]
<whitequark> lianj: well, for some value of syntactic sugar
<whitequark> it does rebind the variable indeed but that's about the only difference
Swimming_Bird has joined #ruby-lang
mrfelix has quit [Quit: Textual IRC Client: www.textualapp.com]
<whitequark> `each` is marginally faster.
vlad_starkov has joined #ruby-lang
<whitequark> pretty much the same on 2.0
<whitequark> also this:
<whitequark> >> puts RubyVM::InstructionSequence.disasm(-> { for i in []; end })
<eval-in> whitequark => == disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/execpad-be3983841cc3/source-be3983841cc3> ... (http://eval.in/15258)
ykk` has quit [Read error: Connection reset by peer]
<whitequark> >> puts RubyVM::InstructionSequence.disasm(-> { [].each do |i| end })
<eval-in> whitequark => == disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/execpad-9a86f3bb3a20/source-9a86f3bb3a20> ... (http://eval.in/15259)
ykk` has joined #ruby-lang
Markvilla has joined #ruby-lang
oddmunds has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
MartynKeigher has quit [Quit: http://www.martynkeigher.com]
dingus_khan has quit [Ping timeout: 252 seconds]