apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
GaelanAintAround is now known as Gaelan
nathanstitt has quit [Quit: I growing sleepy]
Guest70563 has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
hashkey has joined #ruby-lang
mame0 has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby-lang
mistym has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
jerrytgarcia has quit [Quit: WeeChat 0.4.1]
jerrytgarcia has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
CaryInVictoria has joined #ruby-lang
CaryInVictoria has quit [Ping timeout: 264 seconds]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
havenwood has joined #ruby-lang
hashkey has quit [Quit: Leaving]
tylersmith has quit [Ping timeout: 268 seconds]
seanlerner has quit [Remote host closed the connection]
eugenejen has quit [Quit: eugenejen]
machuga|away is now known as machuga
<oddmunds> andrewvos: like "where's the 'J'?"?
vlad_starkov has joined #ruby-lang
ruby-lang147 has quit [Ping timeout: 250 seconds]
<zenspider> minitest version 5.0.8 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/09/minitest-version-5-0-8-has-been-released.html
<kith> is it possible to skip one iteration in ary.each?
CaryInVictoria has joined #ruby-lang
<kith> kinda like ary.each { |i| begin something rescue error skip one end }
<ryanf> kith: next
<ryanf> although actually
<ryanf> oh, wait, you want to skip the *next* one after the one that errors out?
<kith> no
<ryanf> oh
<kith> skip the one where the error occured
<ryanf> then why not just do "begin; something; rescue ExceptionClass; end"
<kith> i have rescue Timeout::Error
<kith> but my script hangs there
<zenspider> ZenTest version 4.9.4 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/09/ZenTest-version-4-9-4-has-been-released.html
sebastian has joined #ruby-lang
nathanstitt has joined #ruby-lang
sebastian has quit [Read error: Connection reset by peer]
bastilian has joined #ruby-lang
benanne has quit [Quit: kbai]
DEac-_ has quit [Ping timeout: 268 seconds]
hashkey has joined #ruby-lang
DEac- has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
mdedetrich has quit [Quit: Computer has gone to sleep.]
Gaelan is now known as GaelanAintAround
CaryInVictoria has quit [Remote host closed the connection]
GaelanAintAround is now known as Gaelan
imperator has quit [Quit: Valete!]
schaerli has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 268 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
CaryInVictoria has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
Coincidental has joined #ruby-lang
vlad_starkov has quit [Read error: Operation timed out]
thepumpkin has quit [Remote host closed the connection]
nisstyre has joined #ruby-lang
brianpWins has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
tharindu has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
CaryInVictoria has joined #ruby-lang
esad has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby-lang
lsegal has joined #ruby-lang
Gaelan is now known as GaelanAintAround
ryez has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby-lang
ryez has quit [Ping timeout: 250 seconds]
hogeo has quit [Remote host closed the connection]
GaelanAintAround is now known as Gaelan
CaryInVictoria has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
apeiros has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
vlad_starkov has joined #ruby-lang
apeiros has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 248 seconds]
nathanstitt has joined #ruby-lang
melodic_odyssey has joined #ruby-lang
konr` has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 248 seconds]
Forgetful_Lion has joined #ruby-lang
tharindu has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tharindu has joined #ruby-lang
symm- has joined #ruby-lang
gaurangagrawal has joined #ruby-lang
gauranga_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
ledestin has joined #ruby-lang
symm-_ has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
gaurangagrawal has quit [Ping timeout: 256 seconds]
rkowalick has joined #ruby-lang
rkowalick has quit [Client Quit]
hashkey has quit [Ping timeout: 240 seconds]
CaryInVictoria has joined #ruby-lang
tubbo has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
cored has joined #ruby-lang
choi0hun has joined #ruby-lang
sirupsen has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: Leaving]
knu has quit [Ping timeout: 248 seconds]
knu has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
nofxx has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
fuhgeddaboudit has joined #ruby-lang
fosky has quit [Remote host closed the connection]
wizrad has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Read error: No route to host]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
Gaelan is now known as GaelanAintAround
wizrad has left #ruby-lang ["Leaving"]
tomzx_mac has quit [Read error: Connection reset by peer]
jaimef has quit [Ping timeout: 240 seconds]
tomzx_mac has joined #ruby-lang
CaryInVi_ has joined #ruby-lang
CaryInVictoria has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby-lang
gauranga_ has quit [Remote host closed the connection]
tubbo has quit [Ping timeout: 276 seconds]
mistym has joined #ruby-lang
bastilian has quit [Quit: Linkinus - http://linkinus.com]
mj12albert has quit []
fuhgeddaboudit has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
jaimef has joined #ruby-lang
choi0hun has quit [Remote host closed the connection]
mootpointer has joined #ruby-lang
mootpointer has quit [Client Quit]
CaryInVi_ has quit [Remote host closed the connection]
CaryInVictoria has joined #ruby-lang
cored has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
mootpointer has joined #ruby-lang
scottschecter has quit [Ping timeout: 256 seconds]
CaryInVictoria has quit [Remote host closed the connection]
mj12albert has joined #ruby-lang
cads has joined #ruby-lang
cads has quit [Read error: Connection reset by peer]
cads has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_sta_ has quit [Read error: Operation timed out]
charliesome has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 260 seconds]
mootpointer has quit [Ping timeout: 264 seconds]
sirupsen has quit []
jonahR has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
nazty has joined #ruby-lang
mdedetrich has joined #ruby-lang
fuhgeddaboudit has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
tubbo has joined #ruby-lang
tubbo has quit [Ping timeout: 276 seconds]
kurko_ has quit [Ping timeout: 248 seconds]
kurko_ has joined #ruby-lang
melodic_odyssey has quit [Quit: Page closed]
CaryInVictoria has joined #ruby-lang
face has quit [Ping timeout: 264 seconds]
flip_digits has joined #ruby-lang
CaryInVictoria has quit [Ping timeout: 260 seconds]
sevvie has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Operation timed out]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
face has joined #ruby-lang
charliesome has quit [Ping timeout: 260 seconds]
crudson has left #ruby-lang [#ruby-lang]
MaddinXx has joined #ruby-lang
weems is now known as FROWNING
FROWNING is now known as weems
kurko_ has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
ryez has joined #ruby-lang
mbr_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mbr has quit [Read error: Connection reset by peer]
zz_dlu has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 240 seconds]
levifig has quit [Ping timeout: 240 seconds]
akahn has quit [Ping timeout: 240 seconds]
bri has quit [Ping timeout: 240 seconds]
waxjar has joined #ruby-lang
iliketurtles has joined #ruby-lang
bri has joined #ruby-lang
zz_dlu has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
levifig has joined #ruby-lang
iliketurtles has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
t0h has quit [Ping timeout: 264 seconds]
t0h has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
CaryInVictoria has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby-lang
skade has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 260 seconds]
hhatch has joined #ruby-lang
GeissT has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
sevvie has quit [Ping timeout: 264 seconds]
banister`sleep has quit [Quit: Computer has gone to sleep.]
hashkey has joined #ruby-lang
Bosox20051 has joined #ruby-lang
nofxx has quit [Ping timeout: 248 seconds]
schaerli has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
tbuehlmann has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 248 seconds]
kurko_ has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Operation timed out]
mbr_ has quit [Quit: leaving]
robbyoconnor has joined #ruby-lang
mbr has joined #ruby-lang
apeiros has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
sevvie has joined #ruby-lang
sevvie has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
babinho has joined #ruby-lang
akahn has joined #ruby-lang
jiuweigui has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
D9_ has quit [Ping timeout: 248 seconds]
Coincidental has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
workmad3 has joined #ruby-lang
mbj has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 264 seconds]
relix has joined #ruby-lang
mbj has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
face has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
corecode has left #ruby-lang ["ERC Version 5.3 (IRC client for Emacs)"]
Forgetful_Lion has quit [Read error: Operation timed out]
jonahR has quit [Quit: jonahR]
Forgetful_Lion has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
skade has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
CaryInVictoria has quit [Ping timeout: 256 seconds]
mbj has joined #ruby-lang
charliesome has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
mindriot101 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
grandy has quit [Ping timeout: 264 seconds]
Domon_ has quit [Ping timeout: 248 seconds]
Forgetful_Lion has joined #ruby-lang
symm-_ has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
apeiros has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
skade has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
norplr_ has quit [Ping timeout: 240 seconds]
norplr_ has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
benanne has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
elia has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
banisterfiend has joined #ruby-lang
workmad3 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
vlad_starkov has quit []
Kabaka has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Client Quit]
Forgetful_Lion has quit [Read error: Operation timed out]
<yorickpeterse> ReinH: regarding vim syn regions, oh?
<yorickpeterse> also morning
vlad_starkov has joined #ruby-lang
<ljarvis> I have an array I'd like to generate all combinations of (plus their inverted combinations), is there anything better than x.combination(2) + x.combination(2).map(&:reverse) ?
arBmind has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
stamina has joined #ruby-lang
arBmind has quit [Client Quit]
<yorickpeterse> #permutate
<yorickpeterse> err Array#permutate
<yorickpeterse> >> [1, 2, 3].permutate
<eval-in> yorickpeterse => undefined method `permutate' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/49609)
<yorickpeterse> errr
<yorickpeterse> >> [1, 2, 3].permutation
<eval-in> yorickpeterse => #<Enumerator: [1, 2, 3]:permutation> (https://eval.in/49610)
<yorickpeterse> >> [1, 2, 3].permutation.to_a
<eval-in> yorickpeterse => [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]] (https://eval.in/49611)
<yorickpeterse> it's pretty fast too
<ljarvis> oh duh
<ljarvis> i knew about that too
<ljarvis> thanks yorickpeterse
<yorickpeterse> it's funny since there are quite a few permutation libs for Ruby that are all a million times slower than a simple Array#permutation
<charliesome> whitequark: are you around?
Forgetful_Lion has quit [Read error: Operation timed out]
<whitequark> charliesome: yep
<whitequark> oh, talking about that syntax thingy
<charliesome> whitequark: so i was poking through your translation of the rhg
<charliesome> "EXPR_CLASS, /* immediate after `class', no here document. */"
<charliesome> couldn't that be achieved using the same state that leads to << being tLSHFT rather than a here document?
Forgetful_Lion has joined #ruby-lang
<whitequark> that would be EXPR_END
<whitequark> and EXPR_CLASS decays to EXPR_BEG, which correctly emits tCOLON3 for "class ::A"
<charliesome> ah right
<whitequark> well, to EXPR_VALUE actually, but same idea
<whitequark> so. syntax thingy!
<charliesome> i thought i outsmarted ruby's syntax, but then nope!
<charliesome> wait before syntax thingy
<whitequark> ok
<charliesome> let me show you this
<whitequark> listening
<charliesome> if you think ruby's complex
<charliesome> check out perl's appropriately named toke.c: https://github.com/mirrors/perl/blob/blead/toke.c
<whitequark> hahahaha nope I want to retain the little shreds of sanity I have left
<whitequark> #define LEX_INTERPCONST 2 /* NOT USED */
<whitequark> oh god
<charliesome> " * FUN1 : not used, except for not, which isn't a UNIOP"
<whitequark> "YADAYADA"
<charliesome> is that a triple negative
<charliesome> also don't knock the yada yada operator
<whitequark> "DORDOR" what
<whitequark> if (PL_madskills)
<whitequark> PL_skipwhite = newSVpvs("");
<whitequark> WHAT
toretore has quit [Quit: Leaving]
<charliesome> madskills hahaha what
<whitequark> so
<whitequark> thingy.
<whitequark> you know how you can do aset in masgn? a[1,2], b[3] = *z
<charliesome> yeah
<whitequark> which is translated to a node for "a.[](1,2)"
<whitequark> and aset code appends the actual value to it
Forgetful_Lion has quit [Read error: Operation timed out]
<whitequark> so I suggest to allow the same syntax for non-[] assignment
<whitequark> a(1) = a(1)
<whitequark> a(1, 2), b(3) = *c
<charliesome> slash has that
* whitequark nods
<whitequark> it should be trivial to implement
<whitequark> you think it's a good idea for ruby?
<charliesome> not sure, seems visual basicky
<whitequark> is it?..
Forgetful_Lion has joined #ruby-lang
<charliesome> basically i think it's a good idea if you do it as a generalization of ATTRASGN semantics
<charliesome> but a bad feature on its own
<whitequark> well, of course it's a generalization
<whitequark> I actually was surprised somewhat that it's not supported
<charliesome> maybe propose it
<charliesome> see what happens
<whitequark> maybe
<charliesome> i think it's unlikely to be accepted though
<whitequark> why?
<charliesome> well, as a generalization it would've been fine if it was in ruby from the beginning
<charliesome> but it makes little sense to introduce it now
<charliesome> even as a generalization
<whitequark> hm, perhaps
<charliesome> also yeah: https://eval.in/49612
<whitequark> dat syntax
<whitequark> btw
<whitequark> I request ocaml in eval.in
<charliesome> got a link to a preferred implementation?
<charliesome> i'll see what i can do
<whitequark> it has one :)
<charliesome> oh ok
<whitequark> ocaml.org
<whitequark> 4.x series please. 4.00.1 or 4.01, 4.01 is better.
<whitequark> (it's stable)
<whitequark> apt-get install ocaml-nox should do it
<charliesome> is the compiler safe to use on arbitrary code unsandboxed?
hashkey has quit [Quit: Leaving]
<charliesome> for compiled languages i run the compiler with strict resource limits but unsandboxed
<whitequark> which ones do you deem safe already?
<whitequark> stuff like gcc? then yes
<charliesome> yeah gcc is considered safe
Forgetful_Lion has quit [Read error: Operation timed out]
<charliesome> hah the ocaml i downloaded is 3.11
<whitequark> you certainly shouldn't run 2.95 unsandboxed ;)
<whitequark> it has... hundreds of crashbugs
<whitequark> charliesome: 3.11 vs 4.01 is like 1.9 vs 2.0, in ruby terms
<charliesome> so, insignificant?
<whitequark> well, the changes are more significant. it'd be neat to have 4.01 if it's not a problem
<whitequark> is that not a debian box?
Forgetful_Lion has joined #ruby-lang
<charliesome> ubuntu 10.04
<whitequark> yeah that ppa should work just fine
<charliesome> oh ok
<charliesome> my sandbox won't run on recent kernels :p
<yorickpeterse> pff
<charliesome> it's pretty hacked up
<yorickpeterse> dude bro use docker
<yorickpeterse> and go
<whitequark> sure, imo 10.04 is "recent"
<whitequark> recent ~ last 5 years :)
<charliesome> yorickpeterse: how about ptrace and c? ;)
<charliesome> whitequark: http://packages.ubuntu.com/lucid/ocaml-nox lists 3.11 as the most recent
<charliesome> i can probably compile 4.01 if you want me to
<whitequark> charliesome: https://launchpad.net/~avsm/+archive/ppa has debs for 4.01
<charliesome> oh whoops
<charliesome> no lucid package
<whitequark> hmm
<whitequark> try precise, it should work
<charliesome> i've had bad experiences running precise packages on lucid boxes
<charliesome> i'll just compile it it's no worry
<whitequark> oh sure then
elia has quit [Quit: Computer has gone to sleep.]
<charliesome> god damn gcc-4.7.2 is 558 MB
<charliesome> second only to ghc-7.4.2 at 667 MB
<whitequark> ghc is enormous for some reason
<whitequark> I never understood it
<whitequark> gigantic haskell compiler? :)
<charliesome> what is it with these ultra high level languages being so massive
<charliesome> i think racket is huge too
<whitequark> hmmm is it?
Forgetful_Lion has quit [Read error: Operation timed out]
schaerli has joined #ruby-lang
jxie has quit [Quit: leaving]
Forgetful_Lion has joined #ruby-lang
mbj has quit [Ping timeout: 268 seconds]
tharindu_ has joined #ruby-lang
<charliesome> whitequark: i'm lazy, can you give me some code that reads out of /etc/shadow or something in ocaml?
tharindu has quit [Ping timeout: 245 seconds]
<charliesome> need to test the sandbox
<whitequark> prerr_endline (input_line (open_in "/etc/shadow"))
<charliesome> cool
<charliesome> also, want ocamlopt? or is interpreted fine
<whitequark> it doesn't matter on such sizes really. interpreted has faster compile
<charliesome> ok
<charliesome> cool sandbox works
<charliesome> ship it
iliketurtles has joined #ruby-lang
grandy has joined #ruby-lang
Domon_ has joined #ruby-lang
<charliesome> whitequark: https://eval.in/49613
<charliesome> if you have the time, i'd appreciate some examples done up for ocaml to link to from the homepage
<whitequark> charliesome: you wrote 4.00.1 in the dropbox
<whitequark> so is it 4.00.1 or 4.01.0? :)
<charliesome> it's 4.00.1
<whitequark> ok
<charliesome> latest version according to http://ocaml.org/releases/
Forgetful_Lion has quit [Read error: Operation timed out]
<whitequark> guess someone forgot to update that
<whitequark> well, 4.00.1 is fine too
<whitequark> one sec, I'll write the examples.
<zzak> good morning!
<charliesome> zzak: morning
<charliesome> whitequark: also turns out i already had 4.00.1 compiled lol
Forgetful_Lion has joined #ruby-lang
nneko001__ has joined #ruby-lang
iliketurtles has quit [Ping timeout: 240 seconds]
<zzak> charliesome: hi!
<charliesome> zzak: congrats on the speaking spot at rubyconf
<charliesome> whitequark: so i'd really like to see method binding syntax in ruby
<charliesome> with : instead of .
<charliesome> dunno how many conflicts there would be with real world code
<charliesome> aka
<charliesome> [1,2,3].map(&2:*)
<charliesome> recv:mid would be equivalent to recv.method(mid)
<waxjar> you're gonna turn ruby into perl this way!
<zzak> charliesome: thanks!
<zzak> charliesome: im giving a talk in about 3 hours, so nerved :X
<whitequark> charliesome: a gigantic amount of conflicts
<charliesome> zzak: you'll be fine!
<whitequark> you aren't going to make that work
<charliesome> whitequark: :(
<whitequark> nevar
<whitequark> but
<charliesome> whitequark: know of any other syntax that could work? i like the idea
<whitequark> you totally can do &&2.*
<whitequark> it's slightly tricky but only a little bit
<charliesome> that's a bit ugly :(
<whitequark> &2:* too
<charliesome> the && reminds me of that crazy gcc extension to haha
<whitequark> it's confusing
<whitequark> charliesome: it's in C++11
<waxjar> whats wrong with [1,2,3].map &2.method(:*)
<whitequark> I think it's sort of analogous to *restargs or something
<charliesome> waxjar: it's unnecessary syntactic overhead imo
Forgetful_Lion has quit [Read error: Operation timed out]
<waxjar> it's also super clear
<whitequark> waxjar: use java, it's super clear
<waxjar> no it isnt :P
<whitequark> or pascal
<whitequark> dat english
schaerli has quit [Remote host closed the connection]
<charliesome> i see people doing 'my_method { |x| whatever(x) }' all the time
<whitequark> charliesome: so, y u no add examples
<charliesome> it'd be nice to have a more first-class-ish form for doing that: my_method(&self:whatever)
<charliesome> whitequark: deployed
<whitequark> charliesome: thx!
<charliesome> lol at the id difference between ocaml and the rest
Forgetful_Lion has joined #ruby-lang
<whitequark> charliesome: by the way, I really think that self:whatever is very ugly
<whitequark> : is never ever used in ruby with such meaning already
<whitequark> maybe unary | ? as in pipe
<whitequark> .map(|self.whatever)
<zzak> charliesome: thanks, ill do my best!
<charliesome> whitequark: |self.whatever is interesting
<charliesome> i can imagine it being a sort of partial application operator
<whitequark> yep
<whitequark> also |self.whatever(1)
<charliesome> yeah
<charliesome> also yeah maybe : wouldn't work in ruby
<whitequark> I'm totally sure it won't
<whitequark> p:a
<charliesome> it seems to work in slash, where i copied the idea from lua
vlad_starkov has quit [Remote host closed the connection]
<whitequark> guess slash has a saner parser. does it have symbols btw?
<charliesome> slash has single quoted atoms
<charliesome> but they're just strings
<whitequark> that explains
<charliesome> i want to add unary : to slash too
<whitequark> unary : or : bareword ?
<charliesome> : bareword sorry
<charliesome> so :foo would be equivalent to \x { x.foo }
<whitequark> dat haskell closure syntax
<charliesome> i also support \x . x.foo
<whitequark> dunno, it's your language
<charliesome> and λ x . x.foo :p
bastilian has joined #ruby-lang
<yorickpeterse> are you doing drugs/
<yorickpeterse> * ?
<whitequark> lol, that seems unnecessary
vlad_starkov has joined #ruby-lang
<whitequark> tho: your language, your rules.
* whitequark shrugs.
<charliesome> yorickpeterse: it seemed like a good idea at the time
<yorickpeterse> mistakes were made
<charliesome> i regret nothing
Forgetful_Lion has quit [Read error: Operation timed out]
<charliesome> i dunno, unicode in language syntax is underrated
<charliesome> think about all those operator possibilities
<whitequark> I think that user-definable operators, and especially user-definable fixity, is already too confusing
symm- has joined #ruby-lang
<charliesome> yeah
<charliesome> look at haskell for example
<whitequark> if you're doing math, then yes. if it's a general-purpose lang, hell no
<charliesome> their libraries use weird ass operators like ruby libraries monkey patch core types
<charliesome> often, and inappropriately
<whitequark> yeah, that's a side effect of how unification works
<whitequark> actually no, I dunno about haskell with its typeclasses
<charliesome> i don't have an issue with the whole typing part of it
<charliesome> it's just terrible to read and write
<whitequark> ocaml has + for integer, +. for float and +/ for rational for example
Forgetful_Lion has joined #ruby-lang
<charliesome> foo = <$%^> lol <?> whatever || seriously <?> 123
<whitequark> because its type system is not strong enough to express bounded polymorphism for numerics
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Forgetful_Lion has quit [Read error: Operation timed out]
enebo has joined #ruby-lang
hogeo has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
charliesome has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
adambeynon has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
hogeo has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
jp- has joined #ruby-lang
sharma_ has joined #ruby-lang
sush24 has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Ping timeout: 257 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
sr78ger has joined #ruby-lang
sharma__ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
sharma_ has quit [Ping timeout: 260 seconds]
mdedetrich has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
jiuweigui has quit [Quit: Gone...]
enebo has quit [Quit: enebo]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Read error: Operation timed out]
elia has joined #ruby-lang
mdedetrich has quit [Client Quit]
Forgetful_Lion has joined #ruby-lang
mark- has quit [Ping timeout: 260 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
mark- has joined #ruby-lang
sharma__ has quit [Ping timeout: 260 seconds]
ryez has quit [Ping timeout: 250 seconds]
Forgetful_Lion has joined #ruby-lang
sharma__ has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
relix has quit [Ping timeout: 256 seconds]
relix has joined #ruby-lang
esad has joined #ruby-lang
foucist has joined #ruby-lang
nofxx has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
<foucist> is there a way to define a method on the fly? instead of doing class Object; def tap2; yield(self); end; end why can't i do something like [1,2,3,4,5].send(yield(self), {|arr| p arr = arr.reduce(:+)/arr.size})
sharma__ has quit [Ping timeout: 268 seconds]
Forgetful_Lion has joined #ruby-lang
<waxjar> you can #instance_exec and #instance_eval stuff
<waxjar> or actually define an instance method: array = [1,2,3,4,5]; def array.tap2; yield self; end
<apeiros> foucist: btw., arr.reduce(:+)/arr.size is a broken impl for average
<apeiros> use .fdiv instead of /
<apeiros> also provide 0 as start value (gets you NaN for empty lists)
ledestin has quit [Ping timeout: 248 seconds]
<whitequark> NaN?
Forgetful_Lion has quit [Read error: Operation timed out]
<apeiros> 0/0 => NaN
<whitequark> oh, right.
<apeiros> which is somewhat appropriate for an average over an empty set
<apeiros> s/set/list/
<whitequark> better than NoMethodError, sure
<apeiros> the alternative would be a proper Exception
Forgetful_Lion has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
toretore has joined #ruby-lang
jxie has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
yfeldblum has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
<foucist> i've discovered that i can sorta fake the modified #tap behavior i want, by doing: [1,2,3,4,5].instance_exec { self.reduce(:+)/self.size}
ericwood has quit [Read error: Connection reset by peer]
<apeiros> foucist: "I've discovered" - seriously, why do you ask here if you don't read the responses? That's what waxjar told you 20min ago already…
<foucist> apeiros: i was researching instance_exec/eval based on his suggestion
<apeiros> ok
<foucist> the docs weren't that helpful tho, so it felt like a 'discovery' :P
justinmburrous has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Forgetful_Lion has quit [Read error: Operation timed out]
jiuweigui has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
GaelanAintAround is now known as Gaelan
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
vlad_starkov has joined #ruby-lang
schaerli has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
heftig has quit [Ping timeout: 260 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
Nisstyre-laptop is now known as nisstyre
Forgetful_Lion has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
heftig has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
nignaztic has joined #ruby-lang
nazty has quit [Read error: No route to host]
schaerli has quit [Remote host closed the connection]
dmitrykorotkov_ has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Read error: Operation timed out]
<maloik> Anyone see where I'm going wrong here? bad value for range
<maloik> ugh
<maloik> that's what I meant to paste
Forgetful_Lion has joined #ruby-lang
nicecomputerman has joined #ruby-lang
<apeiros> maloik: maybe a precedence issue.
<apeiros> put parens around your range
sevvie has joined #ruby-lang
nicecomputerman has left #ruby-lang [#ruby-lang]
nicecomputerman has joined #ruby-lang
<maloik> that seems to be a good start
nicecomputerman has quit [Client Quit]
<apeiros> if not, make sure (e.g. via binding.pry) your range values are what they should be.
nicecomputerman has joined #ruby-lang
<maloik> it's weird cause I thought I'd tried with parentheses
<maloik> how are you supposed to stub something like Time.now ?
<apeiros> Time.stub(:now) ?
<maloik> tried, fails
<apeiros> also see TimeCop
<maloik> I know TimeCop but it seemed like overkill here
<maloik> oh well
<apeiros> define "fails" (don't have the time to help, though)
GeissT has quit [Quit: MillBroChat AdIRC User]
retro|cz has quit [Read error: Operation timed out]
<apeiros> I haven't stubbed Time with stubbing lib. but I've redefined Time.now a couple of times and it worked just fine.
<nicecomputerman> sup yeeeall
tomzx_mac has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
dmitrykorotkov has joined #ruby-lang
dmitrykorotkov_ has joined #ruby-lang
<nicecomputerman> Let's try this again: What's up ladies and gentlemen?!
<maloik> apeiros: huh, thats weird? thats exactly what I did in the gist didn't I ?
<maloik> hi nicecomputerman
Forgetful_Lion has joined #ruby-lang
<nicecomputerman> @maloik -what's up brotha
schaerli has joined #ruby-lang
<maloik> okay are we being trolled ?
<nicecomputerman> Not by me. Lol
<apeiros> um, you use Time.now in your stub of Time.now? not sure that works out…
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nicecomputerman> i'm just super excited to be here. It took me a while to get IRC up and running
<apeiros> maloik: but as said, I did NOT use a stubbing lib
<apeiros> I just redefined the method.
<nicecomputerman> I realized I had to register my nick with freenode first. smh
<maloik> oh my bad
<nicecomputerman> It's been forever since I last used irc
<nicecomputerman> i think back in 2002 was the last time.
<apeiros> maloik: but I don't think plain redefining is what you should aim for. try to get it to work with your stubbing lib.
<nicecomputerman> anyways, here the deal yo. I'm learning ruby. i learned the basics of the language
<nicecomputerman> but I'm kinda like..stuck.. How do I apply this to web dev?
<nicecomputerman> or dev at all, really.
dmitrykorotkov_ has quit [Quit: http://quassel-irc.org - ????????????? ??????. ?????.]
<nicecomputerman> I went to railsinstaller and got set up with that, but honestly that's a step above where I want to be.. it's kinda, idk, too advanced.. i dont understand it
dmitrykorotkov_ has joined #ruby-lang
<nicecomputerman> Kinda sucks because I've been using computers since i was 10, im 28 now
<nicecomputerman> and I work as QA tester.. so i 'feel' like i understand software
<nicecomputerman> i guess i just dont know how to apply it..
<canton7> nicecomputerman, what are you actually trying to do? that's the bit I'm missing
<nicecomputerman> i want to build a nuclear reactor
<canton7> is it that you've got a good grasp and ruby and want to get into rails?
<nicecomputerman> @canton7 - pardon the sarcasm.. yes, that's pretty much exactly it.
dmitrykorotkov_ has quit [Client Quit]
dmitrykorotkov__ has joined #ruby-lang
<canton7> then there are about a billion and one decent tutorials which will get you started
<nicecomputerman> i have a good grasp of ruby and now i want to do something (anything) with it. Something beyond 'hello, world' or iterating through a list or something
<canton7> (also, this channel doesn't deal with rails stuff - that's #rubyonrails)
<canton7> ah, you're after projects?
dmitrykorotkov__ has quit [Remote host closed the connection]
<nicecomputerman> ..perhaps
Forgetful_Lion has quit [Read error: Operation timed out]
<canton7> there's always project euler. some of them are more mathematical than programming, but some are good
<nicecomputerman> Yea, like a small project. Maybe a collaborative one.. idk
<maloik> apeiros: went with timecop
<canton7> otherwise, figure out something you need in real life, and have a crack at writing it
<maloik> trying to figure out why I'm not getting proper failure messagess back from minitest now
<maloik> (rspec user here...)
Forgetful_Lion has joined #ruby-lang
scottschecter has joined #ruby-lang
<nicecomputerman> Using Ruby can I create an application that will accept a .txt file and sort it based on numeric values
<nicecomputerman> Either returning a new text file or outputting html
<canton7> cool. ever seen countdown? write two programs - one to solve the letters round, one to solve the numbers round
<canton7> that should keep you busy for a little while ;)
dmitrykorotkov__ has joined #ruby-lang
<nicecomputerman> oops
hogeo has quit [Remote host closed the connection]
<nicecomputerman> That's a list of professors and their salaries, from a community college system in my area
<nicecomputerman> I want to order that ish by salary.
Forgetful_Lion has quit [Read error: Operation timed out]
<nicecomputerman> In python:
<canton7> aah that was a quesiton, not a statement. gotcha
<nicecomputerman> f = open('salaries.txt', 'r+')
<nicecomputerman> ('salaries.txt', 'r+')
<nicecomputerman> ln = f.readline()
<nicecomputerman> while ln != '':
<nicecomputerman> if ln.find('$') != -1:
<nicecomputerman> usd_list = []
<nicecomputerman> usd_list.append(tuple(ln.split('$')))
<nicecomputerman> ln = f.readline()
<nicecomputerman> sorted(usd_list, key=lambda usd: usd[1])
<nicecomputerman> f2 = open('sorted_salaries.txt', 'r+')
<nicecomputerman> f2.write(str(usd_list))
<canton7> AHEM. pastebin please
Forgetful_Lion has joined #ruby-lang
dmitrykorotkov__ has quit [Quit: http://quassel-irc.org - ????????????? ??????. ?????.]
<nicecomputerman> sorry
<apeiros> puts File.readlines(path).sort_by { |line| line[/[\d,.]{5,}/].delete(",").to_f }
<apeiros> @ nicecomputerman ^ - something along those lines should do
<canton7> darn, just beat me
dmitrykorotkov__ has joined #ruby-lang
dmitrykorotkov__ has quit [Client Quit]
<apeiros> canton7 surely helps you remove the kinks this code probably still has :)
dmitrykorotkov has quit [Remote host closed the connection]
<canton7> meh. I had a very slightly different regex, but I was going to leave it where you left yours :P
<nicecomputerman> Doesnt work.
<canton7> you're learning ruby - you fix it ;)
<nicecomputerman> regex.. I guess i'll learn it now.
nertzy has joined #ruby-lang
<apeiros> you probably have to add provisions for lines without salaries in it. I'd probably just use grep(/\$[\d,.]{5,}/) to find those with a salary
<apeiros> puts File.readlines(path).grep(/\$[\d,.]{5,}/).sort_by { |line| line[/\$[\d,.]{5,}/].delete(",$").to_f }
<canton7> puts File.readlines(path).sort_by { |line| (line[/[\d,.]{5,}/] || '').delete(",").to_f }
<nicecomputerman> ^ works.
<nicecomputerman> Thanks
Gaelan is now known as GaelanAintAround
Forgetful_Lion has quit [Read error: Operation timed out]
sush24 has joined #ruby-lang
GaelanAintAround is now known as Gaelan
wallerdev has joined #ruby-lang
cads has quit [Ping timeout: 252 seconds]
dmitrykorotkov_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
<nicecomputerman> Apeiros
<nicecomputerman> Are you familiar with AppAacademy
<apeiros> no
<nicecomputerman> Im trying to get in but I think it'll be too hard.
<nicecomputerman> This guy went - apparently you helped him with something?
<nicecomputerman> http://www.wilborn.io/
dmitrykorotkov_ has quit [Quit: http://quassel-irc.org - ????????????? ??????. ?????.]
dmitrykorotkov__ has joined #ruby-lang
<apeiros> nicecomputerman: I'm here for ~8y, I helped a couple of people with something :)
<nicecomputerman> Lol.
Forgetful_Lion has quit [Read error: Operation timed out]
dmitrykorotkov__ has left #ruby-lang [#ruby-lang]
Forgetful_Lion has joined #ruby-lang
Gaelan is now known as GaelanAintAround
zz_dlu has quit [Quit: ZNC - http://znc.in]
GaelanAintAround has quit [Quit: Bye!]
Bosox20051 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
dmitrykorotkov has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
zz_dlu has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
GaelanAintAround is now known as Gaelan
banisterfiend has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has quit [Read error: Operation timed out]
CaryInVictoria has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
ericwood has joined #ruby-lang
<yorickpeterse> whitequark: oi, do you know if somebody was ever crazy enough to make a Ruby binding for Lemon?
tkuchiki has quit [Remote host closed the connection]
<yorickpeterse> racc doesn't look very nice tbh
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chris2> it's ok imo
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
tylersmith has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
loincloth has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
loincloth has quit [Ping timeout: 248 seconds]
Gaelan is now known as GaelanAintAround
Forgetful_Lion has quit [Read error: Operation timed out]
vlad_sta_ has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
schaerli has quit [Remote host closed the connection]
crzrcn has joined #ruby-lang
gtwhite has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Forgetful_Lion has joined #ruby-lang
<crzrcn> Is there a difference between %w[] and %w() to generate Array literals?
retro|cz has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
<whitequark> yorickpeterse: there's no point in it
<whitequark> you have to write a binding for each parser distinctly
<whitequark> also I heavily recommend against using that... you'll spend much more time integrating lemon than writing useful code
<whitequark> "doesn't look very nice" is a shitty excuse
<foucist> it seems that nobody has figured out a good looking DSL for parsing. . hence regexp & bnf looking ugly
<whitequark> there are, just in neither c nor ruby
<whitequark> (and bnf isn't bad; it's just that bison and yacc don't implement it.)
cstrahan has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zenspider has quit [Quit: bye]
apeiros has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
Forgetful_Lion has quit [Read error: Operation timed out]
CaryInVictoria has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
cstrahan has quit [Ping timeout: 268 seconds]
<nofxx> hehe, want to make a rspec/test run on any project w/o one line of test code ? tail -f production log + sitemap generator -> endless fun!
<nofxx> project/web project
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
mistym has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
wallerdev has joined #ruby-lang
sniffingcats has joined #ruby-lang
adambeynon has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
sush24 has quit [Quit: This computer has gone to sleep]
<yorickpeterse> whitequark: heh
Forgetful_Lion has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
<nofxx> Feel an urge to this be an oneliner... any better way? (@title ||= ''); @title += 'fu'
brianpWins has joined #ruby-lang
<nofxx> @title = "#{@title} fu"
elia has quit [Quit: Computer has gone to sleep.]
tubbo has joined #ruby-lang
<whitequark> @title = [@title, 'fu'].compact.join(' ')
vlad_starkov has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
<yorickpeterse> clearly you need a title factory here
<yorickpeterse> or just `@title = @title ? @title + 'fu' : ''
Forgetful_Lion has joined #ruby-lang
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_sta_ has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Operation timed out]
CaryInVictoria has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 268 seconds]
crzrcn has left #ruby-lang [#ruby-lang]
apeiros has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
kurko_ has joined #ruby-lang
elia has joined #ruby-lang
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
CaryInVictoria has joined #ruby-lang
<ryanf> whitequark: lately I've been really liking * instead of compact. not sure if other people find it readable though
<ryanf> so @title = [*@title, 'fu'].join(' ')
Forgetful_Lion has quit [Read error: Operation timed out]
<canton7> do you mean #concat?
<ryanf> who, me? no
<canton7> as * doesn't replace compact, surely? compact removes nils, and splat does nothing of the sort? or am I missing something?
Forgetful_Lion has joined #ruby-lang
bastilian has quit [Quit: Linkinus - http://linkinus.com]
cstrahan has joined #ruby-lang
schaerli has joined #ruby-lang
havenwood has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
<Mon_Ouie> You might mean flatten
<Mon_Ouie> or flatten(1)
<Mon_Ouie> Oh, I guess it works in the case of [@title, 'fu'] though (as nil.to_a #=> [])
hakunin has quit [Ping timeout: 245 seconds]
<canton7> ah if @title is nil. yeah that makes sense
<canton7> I think we've just shown that that snippet is non-obvious :P
schaerli has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
grandy has quit [Ping timeout: 268 seconds]
tubbo has quit [Ping timeout: 276 seconds]
Guest85414__ has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 261 seconds]
UziMonkey has quit [Ping timeout: 245 seconds]
franckverrot has quit [Ping timeout: 245 seconds]
norplr_ has quit [Ping timeout: 245 seconds]
IteratorP has quit [Ping timeout: 260 seconds]
mindriot101 has quit [Remote host closed the connection]
<rue> You don’t say
Forgetful_Lion has quit [Read error: Operation timed out]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
tshine has quit []
elia has quit [Quit: Computer has gone to sleep.]
lsegal has joined #ruby-lang
D9_ has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
hakunin has joined #ruby-lang
nofxx has quit [Ping timeout: 248 seconds]
ruby-lang626 has joined #ruby-lang
ruby-lang626 has quit [Client Quit]
Forgetful_Lion has quit [Read error: Operation timed out]
schaerli has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
nofxx has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
loincloth has joined #ruby-lang
schaerli has joined #ruby-lang
arope28 has quit [Quit: arope28]
Forgetful_Lion has joined #ruby-lang
loincloth has quit [Ping timeout: 248 seconds]
schaerli has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
tharindu_ has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
banisterfiend has joined #ruby-lang
banisterfiend has quit [Ping timeout: 264 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
gtwhite has quit [Quit: Page closed]
skade has quit [Quit: Computer has gone to sleep.]
schaerli has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
schaerli has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
symm- has quit [Ping timeout: 260 seconds]
stamina has quit [Ping timeout: 264 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
norplr_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
banisterfiend has joined #ruby-lang
mindriot101 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
mbj has joined #ruby-lang
kurko_ has quit [Client Quit]
Forgetful_Lion has quit [Read error: Operation timed out]
Bosox20051 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
CaryInVictoria has quit [Remote host closed the connection]
shevy has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
elia has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
D9_ has quit [Ping timeout: 248 seconds]
tubbo has joined #ruby-lang
stamina has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
grandy has joined #ruby-lang
UziMonkey has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
franckverrot has joined #ruby-lang
IteratorP has joined #ruby-lang
brianpWins has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
VTLob has joined #ruby-lang
Guest85414__ has joined #ruby-lang
D9_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
D9_ has quit [Ping timeout: 252 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
TheNotary has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
foucist has quit [Quit: leaving]
havenwood has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 252 seconds]
Forgetful_Lion has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
kurko_ has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
jaimef has quit [Excess Flood]
MaddinXx has quit [Remote host closed the connection]
CaryInVictoria has joined #ruby-lang
jaimef has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Bosox20051 has quit [Quit: Leaving]
Forgetful_Lion has joined #ruby-lang
nofxx has quit [Ping timeout: 260 seconds]
TheNotary has quit [Quit: Leaving]
pskosinski__ has joined #ruby-lang
sniffingcats has quit [Disconnected by services]
pskosinski__ is now known as sniffingcats
runeb has joined #ruby-lang
hashkey has joined #ruby-lang
adambeynon has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
jonahR has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
tylersmith has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
hogeo has joined #ruby-lang
hhatch has quit [Read error: Operation timed out]
s0ber has quit [Ping timeout: 245 seconds]
hogeo has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
D9_ has joined #ruby-lang
Bosox20051 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
shevy has left #ruby-lang ["I'll be back ... maybe"]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
<ljarvis> hurrah
Forgetful_Lion has joined #ruby-lang
<ljarvis> zzak: how was your talk?
toretore has quit [Quit: Leaving]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
nofxx has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
heftig has quit [Ping timeout: 260 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
znz_jp has quit [Ping timeout: 260 seconds]
relix has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
D9_ has quit [Ping timeout: 252 seconds]
Forgetful_Lion has joined #ruby-lang
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
tubbo has quit [Ping timeout: 276 seconds]
bastilian has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
cads has joined #ruby-lang
mbj has quit [Quit: leaving]
Forgetful_Lion has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
runeb has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
dmitrykorotkov_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
runeb has quit [Ping timeout: 252 seconds]
skade has joined #ruby-lang
dmitrykorotkov has quit [Ping timeout: 248 seconds]
thepumpkin has joined #ruby-lang
tubbo has joined #ruby-lang
jiuweigui has quit [Quit: Gone...]
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 245 seconds]
jbsan_ is now known as jbsan
CaryInVictoria has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Boohbah has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
Boohbah has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 268 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
banisterfiend is now known as banister`sleep
Forgetful_Lion has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has quit [Client Quit]
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
workmad3 is now known as wm3|zzz
bastilian has quit [Quit: Linkinus - http://linkinus.com]
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
bastilian has joined #ruby-lang
Coincidental has joined #ruby-lang
x0f has joined #ruby-lang
x0f_ has quit [Ping timeout: 260 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Ping timeout: 252 seconds]
kazuuu has joined #ruby-lang
kurko_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Boohbah has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
Boohbah has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
ruskie has quit [Ping timeout: 245 seconds]
benanne has quit [Quit: kbai]
izzy006 has joined #ruby-lang