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
chessguy has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 252 seconds]
spuk has joined #ruby-lang
<lianj> jaimef: @host_translation_table[client.to_s] or client
<jaimef> thanks. always know, if ugly, wrong.
keroppi has quit [Quit: keroppi]
<lianj> wasn't really wrong. if c = @host_translation_table[client.to_s]; c; else; client; end works too.. yours was just doing the hash table lookup twice
mjio has joined #ruby-lang
baba has quit [Ping timeout: 248 seconds]
cod3r has joined #ruby-lang
amerine has quit [Quit: Textual IRC Client: www.textualapp.com]
amerine has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
pskosinski has quit [Quit: pskosinski]
sebasoga has quit [Quit: Computer has gone to sleep.]
TheNotary has quit [Quit: Leaving]
woollyams has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
SquirmyBeast has quit [Quit: Page closed]
sepp2k has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
Averna has joined #ruby-lang
benwoody has joined #ruby-lang
Averna has quit [Client Quit]
d_roge has quit [Ping timeout: 246 seconds]
Averna has joined #ruby-lang
d_roge has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
tockitj has quit [Ping timeout: 245 seconds]
krohrbaugh has quit [Read error: Operation timed out]
bzalasky has joined #ruby-lang
agarie_ has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
agarie has joined #ruby-lang
lsegal has joined #ruby-lang
chessguy has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
marr has quit [Ping timeout: 264 seconds]
nibbo has quit [Ping timeout: 252 seconds]
nibbo has joined #ruby-lang
GeissT has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
totallymike has joined #ruby-lang
dankest has quit [Quit: Leaving...]
totallymike has quit [Quit: WeeChat 0.4.0]
dankest has joined #ruby-lang
dankest has quit [Client Quit]
mistym has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
kogent has quit [Quit: kogent]
dustint has joined #ruby-lang
tylersmith has joined #ruby-lang
tdy_ has quit [Ping timeout: 252 seconds]
erpuds has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
Domon has joined #ruby-lang
tsion has joined #ruby-lang
tsion has quit [Changing host]
tsion has joined #ruby-lang
jxie has quit [Ping timeout: 256 seconds]
jxie has joined #ruby-lang
jerrytgarcia has quit [Ping timeout: 240 seconds]
cod3r has quit [Ping timeout: 252 seconds]
seoaqua has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
hahuang65 has joined #ruby-lang
kain has quit [Quit: exit]
<postmodern> using the mail gem to send a multi-part message, but it seems to always put the text/plain part first, instead of the text/html part
cod3r has joined #ruby-lang
hahuang65 has quit [Ping timeout: 248 seconds]
<postmodern> ah found it, body.set_sort_order
CoverSlide has quit [Quit: Lost terminal]
joshH2 has quit [Quit: Nettalk6 - www.ntalk.de]
hahuang65 has joined #ruby-lang
joshH2 has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
slowhands has quit [Read error: Connection reset by peer]
tylersmith has quit [Quit: tylersmith]
<zzak> drbrain: hi!
<drbrain> zzak: hi!
<zzak> drbrain: long time, how was the doc conf?
<drbrain> it was good
aemeredith has joined #ruby-lang
Domon has quit [Remote host closed the connection]
<zzak> drbrain: did you present?
Domon has joined #ruby-lang
<drbrain> I did not
kain has joined #ruby-lang
<zzak> drbrain: have you voted for euruko yet?
retro|cz has joined #ruby-lang
wycats__ has quit [Ping timeout: 264 seconds]
<drbrain> I have not
kaiwren has quit [Quit: kaiwren]
havenn_ has quit [Remote host closed the connection]
<zzak> drbrain: "Join the party" at http://cfp.euruko2013.org/proposals and then vote!
<drbrain> will do when I can create reliable TCP connections again
<zzak> :D
bzalasky has quit [Remote host closed the connection]
<zzak> drbrain: bus wifi again?
<drbrain> coffee shop wifi
<drbrain> existing connections (like IRC) work
<zzak> man aaron's parse.y graphviz is _still_ running
bzalasky has joined #ruby-lang
tylersmith has joined #ruby-lang
<drbrain> heh
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
jovy88 has quit [Read error: Connection reset by peer]
<zzak> its almost been an hour
jovy88 has joined #ruby-lang
seoaqua has quit [Ping timeout: 252 seconds]
lele|w has quit [Ping timeout: 246 seconds]
seoaqua has joined #ruby-lang
lguardiola has quit [Ping timeout: 256 seconds]
<whitequark> yorickpeterse: ping
seoaqua has quit [Ping timeout: 240 seconds]
krz has joined #ruby-lang
krohrbaugh has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
lele|w has joined #ruby-lang
krohrbaugh has quit [Client Quit]
<zzak> drbrain: did you say youre going to rubykaigi?
<drbrain> zzak: I am!
<zzak> drbrain: i submitted a ⚡ talk this morning
<drbrain> are you going?
<zzak> but not sure if ill get to go
<zzak> need to get my passport figured out
<drbrain> do you have a passport?
<zzak> and try to budget that and euruko
<zzak> not yet
<drbrain> since the time is short I recommend against mailing in your application
<drbrain> go to the nearest passport office
<drbrain> it'll cost you the extra expedite fee you would already pay for by-mail, but you won't have to worry about time so much
<zzak> i love how vermont is one of the few who has one
bzalasky has joined #ruby-lang
<zzak> drbrain: thanks i will give that a try!
<drbrain> be sure you have all your stuff ready
<drbrain> form, photos, birth certificate or whatever
<drbrain> at the seattle office the turnaround time was a couple days
happydude has joined #ruby-lang
<zzak> so i need SS card?
<zzak> i lost it a while back and havent replaced
<drbrain> state.gov has a list of the acceptable forms of identification
<zzak> but i have birth cert and drivers license
<drbrain> I don't think I showed them my SS card
cordax has joined #ruby-lang
<drbrain> I think the passport form describes everything you need
<eam> I think you have to apply in person for your first passport no matter what
rue has joined #ruby-lang
<zzak> ahh, secondary identification only required without valid drivers license
<zzak> ok
<drbrain> bus time for me
<drbrain> later!
<zzak> lates
<drbrain> zzak: state.gov has all the information you need
cordax has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
<zzak> thanks!
kogent has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
happydude has quit [Read error: Connection reset by peer]
jxie has quit [Quit: leaving]
krohrbaugh has joined #ruby-lang
wallerdev has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
krohrbaugh has quit [Ping timeout: 264 seconds]
glebm has quit [Ping timeout: 252 seconds]
cored has quit [Ping timeout: 245 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
glebm has joined #ruby-lang
divout has joined #ruby-lang
<Hanmac> hm nokogiri for sample does include the lib source that it binds in its own code, is that the new style and should other gems do that too? or depends it on the size of the binded lib?
<whitequark> Hanmac: on the plus side this doesn't require you to install the dev files in your system
aemeredith has quit [Remote host closed the connection]
<whitequark> on the minus side this doesn't give you any security updates
<whitequark> I'd say it is net negative
<whitequark> except for maybe Windows, but you can distribute precompiled gems for mswin32
<Hanmac> on the minus side: you install a gem and then you need to compile the entire wxWidgets lib ;P "building native extension, that could take a *while*" ;P
<whitequark> Hanmac: or qt
<whitequark> "linking webkit... please get a vacation for a week"
lguardiola has joined #ruby-lang
<whitequark> "and don't you dare run this on a mere 32-bit machine or a 64-bit one with less than 8G RAM"
aemeredith has joined #ruby-lang
lguardiola has quit [Ping timeout: 245 seconds]
nickchow has joined #ruby-lang
kogent has quit [Quit: kogent]
bzalasky has quit [Remote host closed the connection]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
pcboy_ has joined #ruby-lang
jxie has joined #ruby-lang
thone_ has joined #ruby-lang
aemeredith has left #ruby-lang [#ruby-lang]
<whitequark> yorickpeterse: re symbols for identifiers. Basically yes. I thought about making them strings but there's not much sense in that.
jxie has quit [Client Quit]
jxie has joined #ruby-lang
<whitequark> as per block parameters... it's not weird in the way you state it. do..end is not a block argument. it's a literal block passed to the method.
<whitequark> there are several reasons I don't want it to go in the place of block-pass
thone has quit [Ping timeout: 264 seconds]
<whitequark> 1) we lose the ability to represent a not-well-formed AST for this: "foo(&bar) do end"
<whitequark> 2) it requires some extra hoops to convert one structure to the another in the grammar/builder
Axsuul has joined #ruby-lang
<whitequark> 3) it will require changes to the source maps which I'm not sure are right: https://gist.github.com/whitequark/d6d77787c3c4c4faa95a
<whitequark> (an expression source map for more-nested node always includes the expression source map for less-nested node)
zz_skinny_much is now known as skinny_much
<whitequark> 4) it's convenient for unparser and ruby implementations built on top of parser, and doesn't really matter much for everything else.
benlovell has joined #ruby-lang
mistym has quit [Remote host closed the connection]
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 252 seconds]
kogent has joined #ruby-lang
thone has quit [Read error: Operation timed out]
vbatts has quit [Ping timeout: 258 seconds]
benlovell has quit [Quit: Computer has gone to sleep.]
erpuds has quit [Quit: erpuds]
bzalasky has joined #ruby-lang
wycats__ has joined #ruby-lang
glebm has quit [Ping timeout: 252 seconds]
nickchow has quit [Quit: Linkinus - http://linkinus.com]
thone has joined #ruby-lang
<whitequark> 18>> *bar, foo = []
<eval-in> whitequark => /tmp/execpad-c33b32542d50/source-c33b32542d50:2: syntax error, unexpected ',', expecting '=' ... (http://eval.in/17339)
<whitequark> I seriously hate 1.8 right now.
krohrbaugh has joined #ruby-lang
glebm has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 240 seconds]
glebm has quit [Ping timeout: 245 seconds]
bzalasky has quit [Remote host closed the connection]
celinedior has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
glebm has joined #ruby-lang
zanegray has joined #ruby-lang
bzalasky has joined #ruby-lang
kogent has quit [Quit: kogent]
havenwood has joined #ruby-lang
<Hanmac> whitequark: ruby trunk is more cool, they have a feature like def meth(:a,:b,:c); end they are like key arguments but they are required
bzalasky has quit [Remote host closed the connection]
<whitequark> Hanmac: def meth(a:, b:), and I have this feature in my parser ;)
<whitequark> but I gotta support 1.8 runtime
<drbrain> whitequark: why?
<whitequark> drbrain: people want it. eg brakeman author.
<whitequark> I'd like to support such tools.
<drbrain> I'm planning to begin to phase out 1.8 support at the end of the year
<Hanmac> whitequark: ups you are right it was a:
<whitequark> drbrain: I'm at 1.9 for, I think, 4 years already... but still
<drbrain> you can so "no" :D
<whitequark> drbrain: but I don't want?
<Hanmac> PS: for some of my stuff it would be difficult to suport 1.9 because my current stuff needs prepend ...
<whitequark> 1.8 support is, I think, about 50 changed LOC across the codebase
<whitequark> without significant structural amendments
<drbrain> that's fortunate
<whitequark> well, I simply refuse to parse >=19 on 1.8 runtime. that simplifies lots of things
<whitequark> encoding, mainly
havenwood has quit [Remote host closed the connection]
seoaqua has joined #ruby-lang
havenwood has joined #ruby-lang
cod3r has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: Textual IRC Client: www.textualapp.com]
Hanmac has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby-lang
workmad3 has joined #ruby-lang
zanegray has quit [Quit: Leaving.]
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
krohrbaugh has joined #ruby-lang
Hanmac has joined #ruby-lang
tbuehlmann has quit [Read error: Connection reset by peer]
ra0zsojsg8 has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 260 seconds]
thebastl has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
kgrz has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
benlovell has joined #ruby-lang
benlovell has quit [Client Quit]
celinedior has quit [Quit: celinedior]
dr_bob has joined #ruby-lang
tomzx_mac has quit [Read error: Operation timed out]
ChuckJHardy has joined #ruby-lang
skinny_much is now known as zz_skinny_much
agarie_ has joined #ruby-lang
benlovell has joined #ruby-lang
agarie has quit [Ping timeout: 276 seconds]
Taranis has quit [Read error: Connection reset by peer]
corundum has quit [Ping timeout: 245 seconds]
Taranis has joined #ruby-lang
vbatts has joined #ruby-lang
woollyams has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lacrosse has quit [Ping timeout: 252 seconds]
solars has joined #ruby-lang
ammar_ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
seoaqua has quit [Quit: 离开]
aemeredith has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 264 seconds]
tockitj has joined #ruby-lang
tockitj has quit [Changing host]
tockitj has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Read error: Operation timed out]
francisfish has joined #ruby-lang
bzalasky has joined #ruby-lang
kgrz has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
thebastl has joined #ruby-lang
aemeredith has quit [Ping timeout: 256 seconds]
<yorickpeterse> morning
<whitequark> yorickpeterse: moo
<whitequark> read the backlog pls
<yorickpeterse> I am
<yorickpeterse> hmm
thebastl has quit [Ping timeout: 264 seconds]
thebastl has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
thebastl has joined #ruby-lang
<ddfreyne> Yeah, screw 1.8.x support. I kicked out 1.8.x support for nanoc too, starting with the next major release
blacktulip has joined #ruby-lang
thebastl has quit [Ping timeout: 268 seconds]
Hanmac has joined #ruby-lang
celinedior has joined #ruby-lang
mbj has joined #ruby-lang
<tockitj> guys, does anyone know how to check if method is invoked in sinatra response handler (get/post) via rspec ?
anildigital_work has quit [Quit: Connection closed for inactivity]
<tockitj> this is tricky
thone has quit [Ping timeout: 268 seconds]
<whitequark> mock objects?
<ddfreyne> whitequark: How's your Smalltalk adventure going?
judofyr has joined #ruby-lang
<whitequark> ddfreyne: I abandoned it, to be honest
<whitequark> I was curious but I've no idea where I can use this in real world
<judofyr> look, I made #expect for MiniTest: https://github.com/judofyr/minitest-chain
ndrst has quit [Ping timeout: 260 seconds]
<yorickpeterse> whitequark: GOD DAMN IT, STOP RETWEETING FUNNY JOKES
<whitequark> yorickpeterse: wat
<yorickpeterse> the state machine joke, the JS one, etc
<judofyr> retweetquark
<whitequark> yorickpeterse: why is this a problem
<Hanmac> i used finite state machine with Kara once ... i liked it and i try to use them for my own projects too if possible
<yorickpeterse> whitequark: SARCASM, JEEZ
<whitequark> yorickpeterse: i do not understand sarcasm. like, at all.
<yorickpeterse> So I've noticed
<whitequark> I still do not understand what you meant to say me, tbh
<whitequark> judofyr: but you broke #assert/#refute
<judofyr> whitequark: broke how? :(
<whitequark> well, there's just #assert ?
<judofyr> whitequark: (also, I didn't touch #refute)
<whitequark> assert expression_to_be_true
<judofyr> hm?
<ddfreyne> whitequark: Yeha, I don't think any Smalltalk implementation is useful in a real-world situation tbh
<whitequark> assert 2 + 2 == 4 works in vanilla minitest
<judofyr> whitequark: it does, but gives you crappy error message
<whitequark> judofyr: maybe just rename it to #expect?
<judofyr> whitequark: is there actually code that depends on #assert returning `true`?
mjio has quit []
<judofyr> I don't see how this breaks stuff
<judofyr> (also, it's opt-in)
<whitequark> judofyr: no no. see. if with your gem, I write just assert(2+2==4)
<whitequark> it silently won't work
<judofyr> it will
<whitequark> how so?
<judofyr> I call super
<whitequark> hm...
<whitequark> so, assert(expr_returning_nil).is(nil) will break
<ddfreyne> The only thing I don't like about minitest is assert_equal and the order of arguments. I usually do assert_equal expected, actual... but there has to be a better way
<judofyr> whitequark: then you do assert_nil(…)
<whitequark> judofyr: ugly :/
ChuckJHardy has quit [Ping timeout: 268 seconds]
<judofyr> whitequark: I guess I can add #expect too which always wraps
<whitequark> judofyr: please do
<judofyr> ddfreyne: the order is easier with chaining :)
<ddfreyne> judofyr: Somewhat, yes
<ddfreyne> judofyr: It's very smalltalky :)
<ddfreyne> self assert: 2+2 equals: 4
<ddfreyne> judofyr: Why #equal and not #equals?
<ddfreyne> (s)
joshH3 has joined #ruby-lang
<judofyr> ddfreyne: I had that initially, but it was difficult keeping everything consistent
joshH2 has quit [Ping timeout: 252 seconds]
<ddfreyne> judofyr: Because of difficulties with #not_equal etc?
<ddfreyne> Hmm yeah, the other stuff doesn't work well either
thone has joined #ruby-lang
dustint has quit [Ping timeout: 250 seconds]
thone has quit [Ping timeout: 264 seconds]
ChuckJHardy has joined #ruby-lang
FlyingLeap has quit [Quit: No Ping reply in 180 seconds.]
rwk1 has quit [Remote host closed the connection]
<judofyr> whitequark: there. added #expect.
gnufied has joined #ruby-lang
<whitequark> judofyr: cool. I might use that in my future projects, thanks
marr has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
<judofyr> whitequark: should be easy to add custom assertions too: def assert(*); super.tap { |c| c.extend(MyStuff) } end
lacrosse has joined #ruby-lang
<whitequark> judofyr: isn't that going to be, like, slow?
<judofyr> whitequark: probably. not sure if it would be noticeable
alessio_rocco has joined #ruby-lang
<whitequark> judofyr: do a benchmark?
<whitequark> here in parser, I have: 595 tests, 11993 assertions
<whitequark> I can very well see how that can be slow
<ddfreyne> That's a lot of test and assertions
jerrytgarcia has quit [Client Quit]
<whitequark> ddfreyne: tests are all handwirtten. assertions are expanded from a DSL but are also handwritten.
<whitequark> so, yes.
<whitequark> oh also, most of the testsuite [assertions] are ran against 4 parser versions
<judofyr> whitequark: is this expected on Parser? 595 tests, 10905 assertions, 31 failures, 2 errors, 0 skips
<whitequark> judofyr: yup I'm fixing source maps
aemeredith has joined #ruby-lang
<whitequark> judofyr: git pull, I've fixed some of these.
<Hanmac> what do you guys think? should it be possible in a method to get the parameters the super method wants?
<judofyr> Hanmac: like, #parameters?
<whitequark> Hanmac: self.class.superclass.instance_method(__callee__)
<whitequark> but don't do that
<whitequark> er, __method__.
<darix> Hanmac: why do you need that?
<Hanmac> whitequark, does not work 100%
<judofyr> whitequark: isn't it better do use the singleton's class ancestors?
<whitequark> judofyr: hmm maybe
<judofyr> whitequark: it went from user 0m11.815s -> user 0m12.188s
<judofyr> whitequark: with .extend on every assert
<Hanmac> darix because of the modules i include into my Classes, they overlay initialize , the class needs 1 parameter, but Object#initialize wants exactly 0
aemeredith has quit [Ping timeout: 245 seconds]
<whitequark> super()
<Hanmac> it might still not be 100% perfect
mbj has quit [Ping timeout: 264 seconds]
<whitequark> what?
<whitequark> snooping parameters is worse anyway
<ddfreyne> Hanmac: Sounds like you're doing something wrong, because it shouldn't ever be necessary
<whitequark> ^
<Hanmac> ddfreyne: whitequark: https://github.com/OpenRubyRMK/game-engine/tree/master/data/scripts/2.0 you can both look at my code and comment / make issue reports if you have ideas to improv it ... i am open for critic
<whitequark> judofyr: hmm that's acceptable
scottschecter has quit [Quit: WeeChat 0.4.0]
aemeredith has joined #ruby-lang
<injekt> moin
<judofyr> whitequark: yeah, I'm a bit surprised myself
aemeredith has quit [Read error: Connection reset by peer]
<judofyr> inkjet: moin moin
aemeredith has joined #ruby-lang
adambeynon has joined #ruby-lang
<injekt> hah unicorn are changing their name
<injekt> thankfully
<whitequark> Moin ... is a Frisian and Low German greeting ... meaning "hello" and in some places "goodbye".
<whitequark> ^ wat
<ddfreyne> injekt: unicorn who?
<ddfreyne> whitequark: We use "salut" in Flemish Dutch to mean "goodbye" but in French it means "hello"
<judofyr> ddfreyne: http://getunicorn.io/
<injekt> ddfreyne: ^
<injekt> whitequark: heh, like ciao
<Hanmac> injekt does it finaly evolved into a duocorn? ;P
<ddfreyne> Oh, weird that they'd pick Unicorn as a name
<injekt> exactly
<injekt> ah they called it unirest?
<injekt> oh maybe that's a different one
<whitequark> yeah
<whitequark> it's just that there is a lot of things called unirest
<judofyr> as opposed to Parser?
<injekt> lol
<ddfreyne> boom
<whitequark> judofyr: generic name <> specific, ambiguous name
<judofyr> :)
<ddfreyne> whitequark: I'll call my next program "program"
<whitequark> ddfreyne: but it doesn't describe what it does!
<whitequark> though, if it will program for you... sure
tsion has quit [Quit: Leaving]
<injekt> gem install gem
<whitequark> injekt: gem gem gem
<whitequark> aka `make make`
<judofyr> whitequark: your pull request is still open :( https://github.com/simplabs/melbourne/pull/2
<whitequark> oh I forgot about that already
thone has joined #ruby-lang
<whitequark> even deleted the repo
corundum has joined #ruby-lang
thone has quit [Read error: Operation timed out]
<yorickpeterse> does codeclimate auto update for FOSS repos?
<whitequark> yeah
<yorickpeterse> Hm, then it probably just sticks to the master branch
<whitequark> yeah
<whitequark> foundry's codegen also makes it go mad
<yorickpeterse> in code climate's defense, it is a bit complex
<Hanmac> whitequark: so, do you want to look at my code?
<whitequark> yorickpeterse: I wonder what would CC say about this: http://llvm.org/docs/doxygen/html/SelectionDAGISel_8cpp.html
thone has joined #ruby-lang
<whitequark> the dependency graph is marvelous
<whitequark> Hanmac: no time, sorry
<yorickpeterse> whitequark: I think it would cry in a corner
thone has quit [Read error: Operation timed out]
<whitequark> yorickpeterse: and if we feed it parse.y?
<yorickpeterse> I wouldn't be surprised if it simply failed to do that
<yorickpeterse> "Cowardly refusing to parse this monster" etc
<whitequark> if ruby was written in ruby, we could joke that parse.y cannot parse parse.y
<whitequark> also
<whitequark> how do you think bison recognizes its own grammar? ;)
<yorickpeterse> ehh
<ddfreyne> Hmm, interesting. Bootstrapped parse.y.c?
<whitequark> in racc, the AST for itself is constructed by hand
rwk1 has joined #ruby-lang
<whitequark> not sure about bison but I think largely same
<whitequark> treetop uses a bootstrapped parser.
mbj has joined #ruby-lang
thone has joined #ruby-lang
<ddfreyne> whitequark: Grammars for grammars are usually fairly simple
<whitequark> ddfreyne: yeah
GarethAdams has joined #ruby-lang
<whitequark> I'd personally write an LL RDP
<ddfreyne> Same :)
<whitequark> (your grammar is most certainly not LL(k) for k > 1 :
<whitequark> *:)
<ddfreyne> I wrote a LL(1) RDP for an XML-like syntax a few weeks back
<ddfreyne> Customer delivers something that looks like XML but actually isn't. AAARRRGGGHHHH
<whitequark> LOL
<ddfreyne> There was an existing parser (which did the "parsing" by splitting a string on < etc... yikeswtf)
<ddfreyne> I rewrote it to use an XML parser... then it turns out it's not actually XML
<ddfreyne> Sometimes I would like to be able to see my own face when I find out retarded shit like this
ohsix has quit [Ping timeout: 240 seconds]
<whitequark> ddfreyne: you do not want that. trust me
<whitequark> you'll be scared by your own murderous rage
<ddfreyne> haha
ohsix has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
<ddfreyne> whitequark: Plenty of retarded stuff out there. Today I discovered that unloading a package in VisualWorks Smalltalk takes significantly longer than loading it...
<ddfreyne> (Which explains why it's discouraged to do so)
<ddfreyne> That's like "rm somefile" being 5x as long as "cp blah somefile"
ChuckJHardy has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
<whitequark> how does it unload packages?
<whitequark> something about tracing references? :)
thone has quit [Read error: Connection reset by peer]
<ddfreyne> whitequark: Maybe... not sure. I have the feeling there's a combinatorial explosion when unloading, too
<whitequark> ...
<ddfreyne> whitequark: When loading packages, it doesn't track dependencies either, so you have to put the packages in the right order
<ddfreyne> whitequark: So package A contains class Foo and package B contains a method on Foo, then you need to put the packages in the order A,B because B,A will cause it to crash
<ddfreyne> whitequark: If you have a few hundred packages then that relaly sucks
<whitequark> ruby does neither, however...
Taranis has quit [Read error: Connection reset by peer]
Taranis has joined #ruby-lang
Axsuul has quit [Ping timeout: 252 seconds]
ChuckJHardy has joined #ruby-lang
<ddfreyne> whitequark: It has a dialog in which you can modify the order. But you can't drag packages... it has a UP and a DOWN button and it moves the package up/down one place. If you have to move a package all the way to the top... then you're clicking like a spaz :P
<whitequark> :D
<whitequark> proprietary sw at its best
<ddfreyne> whitequark: Often, it doesn't even tell you what the problem is. It just crashes with a really weird stack trace...
<ddfreyne> Actually, most crashes happen because of a misconfiguration in some way. Very bad error reporting...
<ddfreyne> whitequark: Packages are basically serialised object memory (compiled objects with code) and memory isn't always reliable and sometimes gets corrupted... which means your commits can get corrupted in the VCS too
<ddfreyne> It's really icky :D
Averna has quit [Quit: Leaving.]
thone has joined #ruby-lang
adambeynon has quit [Quit: Computer has gone to sleep.]
<antbody> Worst software I've ever used was used for FPGA design ;<
<antbody> If you selected something, then you needed to click in empty space before you could delete it.
<antbody> Every single thing you tried to do had something similar.
tsion has joined #ruby-lang
tsion has quit [Changing host]
tsion has joined #ruby-lang
<ddfreyne> BUT... my professional Smalltalk career ends in 9 days and 3 hours :D
<antbody> When you compiled the design, it took like 6 fucking hours
<antbody> And after the six hours it told you, nope, can't compile.
<antbody> Oh and you couldn't select anything in groups, so if you had a design with like 100 elements and needed to remove then all, you'd delete them one by one.
<antbody> God the memories...
kgrz has quit [Ping timeout: 252 seconds]
<ddfreyne> antbody: haha
<whitequark> ando: which software?
adambeynon has joined #ruby-lang
Henry_ has joined #ruby-lang
<antbody> I'll try to look it up, it was made by some Finnish university
<whitequark> academic code
<whitequark> you can finish at that :D
Henry_ has left #ruby-lang [#ruby-lang]
<antbody> yeah...
<whitequark> I wonder why LLVM is so damn good
<judofyr> I like BankID's Java Applet in Firefox on OS X: the "Ok" button is disabled until you press the Cmd-button
<antbody> Still studying. I still can't believe that people can become doctors and can't code for shit.
<whitequark> antbody: their job does not include coding
<whitequark> and/or their mind is simply trained at another (tbh more important) class of problems
<whitequark> but universities should just hire/enroll good (open-minded!) professional programmers for these tasks.
<antbody> Still, I don't find that having being a researches should exclude being a good coder.
<antbody> Though maybe they just don't have the enthusiasm towards coding.
<whitequark> it's not mutually exclusive. but researchers see coding as a means to achieve their final goal, not even a task of its own
<whitequark> most simply don't care
ikrima has quit [Quit: Computer has gone to sleep.]
<antbody> we meet again
<antbody> No wonder finnish people turn out as alcoholics when they have to use software like that.
nXqd has joined #ruby-lang
nXqd has left #ruby-lang [#ruby-lang]
aemeredith has quit [Remote host closed the connection]
cod3r has joined #ruby-lang
thebastl has joined #ruby-lang
<ddfreyne> Mmmm... salmiakki koskenkorva... mmmmm.
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
<antbody> ddfreyne: hah, most foreigners (asuming you're one) don't really like salmiakki :p
<ddfreyne> antbody: I know ;)
<ddfreyne> I'm from Germany/Belgium
<ddfreyne> Salmiakki is awesome
<yorickpeterse> lol Rails:
<ddfreyne> It's pretty much impossible to get in Belgium though
<yorickpeterse> > Turn Mongo logging to WARN
<yorickpeterse> > Disables all logging apparently
<whitequark> yorickpeterse: lolmongo?
tsion has quit [Quit: Leaving]
<yorickpeterse> Mongoid in this case
<yorickpeterse> I have no idea
<yorickpeterse> worked fine in another Rails app
<yorickpeterse> oh wait, it probably re-uses the Rails logger
<whitequark> all hail functional languages
ndrst has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 245 seconds]
thone has quit [Ping timeout: 252 seconds]
<yorickpeterse> omg bro, do you even lambda calculus
tsion has joined #ruby-lang
alessio_rocco has joined #ruby-lang
<whitequark> grrrr
<whitequark> literals are bitches
<ddfreyne> <whitequark> I _literally_ had no idea how bitchy they were before
<whitequark> ddfreyne: sorry what
<ddfreyne> I'm quoting your punny alter ego in another dimension
<whitequark> oh. literally :D
tsion has quit [Client Quit]
rippa has quit [Ping timeout: 240 seconds]
thebastl_ has joined #ruby-lang
<yorickpeterse> literalquark
toretore has joined #ruby-lang
rippa has joined #ruby-lang
dhruvasagar has joined #ruby-lang
thebastl has quit [Ping timeout: 252 seconds]
bzalasky has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
<yorickpeterse> pop quiz question:
<yorickpeterse> why the fuck is it so hard to wrap your lines (apparently)?
<andrewvos> What?
<whitequark> yorickpeterse: sublime already wraps the line, correctly handling indentation
<whitequark> ie it wraps " foobar" to
<whitequark> foo
rsync_ has quit [Quit: rsync_]
<whitequark> bar
<yorickpeterse> As in, a hard or soft wrap?
<andrewvos> A medium wrap
<yorickpeterse> because the latter is just as bad as not wrapping at all
<andrewvos> A light wrap
cod3r is now known as baba
<whitequark> yorickpeterse: soft
<whitequark> I think it has hard wraps somewhere
<whitequark> but I never used that
<judofyr> antbody: re: salmiakki: http://www.youtube.com/watch?v=nJBBakWOeEQ
<yorickpeterse> whitequark: ....
<whitequark> wat
<yorickpeterse> soft wrapping is a crime against humanity
<whitequark> why
<yorickpeterse> because fuck trying to read a line that's 200 characters long
<yorickpeterse> "OH BUT IT WRAPS ON MY EDITOR"
thebastl_ has quit [Read error: Connection reset by peer]
<whitequark> yorickpeterse: fix yours
<yorickpeterse> ... yeah lets fix it for every other possible tool out there instead of fixing the input
<yorickpeterse> that's like saying "works on my box"
<whitequark> which other tools should also be fixed?
<whitequark> also man autogenerated code
<yorickpeterse> Github, whatever git client you may use, your browser, other people's editors, `cat`, `grep`, everything
<yorickpeterse> basically everything you use to view code at some point
<whitequark> your console wraps the lines
<whitequark> browser, same
<whitequark> github sucks if it doesn't
<yorickpeterse> whitequark: yes, and they are both fucking terrible at it
<whitequark> again: autogenerated code may have lines as long as it's possible
<whitequark> and your tool SHOULD handle it
<yorickpeterse> I don't care about auto generated code since I don't have to edit it
<whitequark> (SHOULD not as in RFC2119)
<yorickpeterse> oh shit, I think I hit the "code clusterfuck" jackpot
<yorickpeterse> here somebody wrapped it half assed, which is even worse
krohrbaugh has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
sush24 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
<tommylommykins> slightly longer than 200 lines
<tommylommykins> at least I had the sense not to actually inflict that on my workmates
krohrbaugh has quit [Ping timeout: 256 seconds]
ndrst has quit [Quit: WeeChat 0.4.0]
dhruvasagar has joined #ruby-lang
<yorickpeterse> ...wow
ndrst has joined #ruby-lang
<whitequark> is that autogenerated?
thone has joined #ruby-lang
<tommylommykins> whitequark: I wrote it myself
<tommylommykins> it's not that hard, just repeated condensing of code
<yorickpeterse> you're an evil person
<tommylommykins> I realised the more-sensible-looking-version was made up of all sensibly-lengthed one-line functions, no I just tapped my way to victory
r0bgleeson has quit [Ping timeout: 252 seconds]
thone has quit [Read error: Operation timed out]
thebastl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
Mon_Ouie has joined #ruby-lang
dhruvasagar has joined #ruby-lang
mikestok has joined #ruby-lang
<antbody> judofyr: haha :D
srbaker has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
srbaker has quit [Client Quit]
Domon has quit [Remote host closed the connection]
ChuckJHardy has quit [Ping timeout: 264 seconds]
mikestok has quit [Quit: Computer has gone to sleep.]
dr_bob has quit [Ping timeout: 245 seconds]
thone has joined #ruby-lang
ruskie has quit [Excess Flood]
mytrile_ has joined #ruby-lang
mytrile has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
llakey has quit [Ping timeout: 252 seconds]
llakey has joined #ruby-lang
thone has quit [Ping timeout: 256 seconds]
jaymes_ has quit [Ping timeout: 252 seconds]
tallship has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
jaymes has joined #ruby-lang
tallship has joined #ruby-lang
thone has joined #ruby-lang
benlovell has quit [Quit: Computer has gone to sleep.]
thone has quit [Read error: Operation timed out]
JohnBat26 has joined #ruby-lang
JohnBat26 has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
ruskie has joined #ruby-lang
thebastl has joined #ruby-lang
charliesome has joined #ruby-lang
madb055 has joined #ruby-lang
nertzy2 has left #ruby-lang [#ruby-lang]
nertzy has joined #ruby-lang
ChuckJHardy has joined #ruby-lang
kstuart has quit [Read error: Operation timed out]
thebastl has quit [Ping timeout: 245 seconds]
krohrbaugh has joined #ruby-lang
baba has quit [Ping timeout: 268 seconds]
kstuart has joined #ruby-lang
ChuckJHardy has quit [Ping timeout: 255 seconds]
krohrbaugh has quit [Ping timeout: 252 seconds]
kstuart has quit [Ping timeout: 264 seconds]
kstuart has joined #ruby-lang
<whitequark> antbody: btw, that thing you linked me to is totally awesome
<whitequark> I need to use it somewhere
ChuckJHardy has joined #ruby-lang
<ddfreyne> whitequark: what link?
benlovell has joined #ruby-lang
<judofyr> ddfreyne: http://tce.cs.tut.fi/
<judofyr> I think
kstuart1 has joined #ruby-lang
<whitequark> yup
ChuckJHardy has quit [Ping timeout: 264 seconds]
kstuart has quit [Ping timeout: 252 seconds]
swygue has quit [Read error: Operation timed out]
mbj has joined #ruby-lang
madb055 has quit [Quit: Konversation terminated!]
postmodern has quit [Quit: Leaving]
madb055 has joined #ruby-lang
ChuckJHardy has joined #ruby-lang
thebastl has joined #ruby-lang
beiter has joined #ruby-lang
jovy88 has quit [Read error: Connection reset by peer]
thone has joined #ruby-lang
sebasoga has joined #ruby-lang
ChuckJHardy has quit [Ping timeout: 264 seconds]
jxie has quit [Quit: leaving]
jovy88 has joined #ruby-lang
divout has quit [Remote host closed the connection]
thone has quit [Ping timeout: 248 seconds]
kstuart1 has quit [Read error: Connection reset by peer]
kstuart has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
krz has quit [Quit: krz]
mikestok has joined #ruby-lang
skaczor has joined #ruby-lang
carloslopes has joined #ruby-lang
divout has joined #ruby-lang
ChuckJHardy has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
rsl has joined #ruby-lang
krohrbaugh has joined #ruby-lang
joshH3 has quit [Quit: Nettalk6 - www.ntalk.de]
tomzx_mac has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
spuk has quit [Ping timeout: 264 seconds]
rwk1 has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 255 seconds]
kurko__ has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 248 seconds]
rwk1 has joined #ruby-lang
spuk has joined #ruby-lang
dhruvasagar has joined #ruby-lang
odcinek has joined #ruby-lang
odcinek has quit [Read error: Connection reset by peer]
mytrile has joined #ruby-lang
scampbell has joined #ruby-lang
adambeynon has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
thebastl has joined #ruby-lang
rwk1 has quit [Ping timeout: 256 seconds]
mytrile_ has quit [Ping timeout: 264 seconds]
kurko__ is now known as kurko_
odcinek has joined #ruby-lang
Qwak has joined #ruby-lang
mistym has joined #ruby-lang
mikestok has quit [Quit: Computer has gone to sleep.]
My_Hearing has joined #ruby-lang
thebastl has quit [Ping timeout: 248 seconds]
<antbody> whitequark: Glad you found something positive :p
<antbody> Though the course was really interesting, you'd have your own custom ASIP setup within hours of design, running your code.
idkazuma has joined #ruby-lang
herpless___ has quit [Quit: Connection closed for inactivity]
Mon_Ouie has quit [Ping timeout: 264 seconds]
ChuckJHardy has quit [Ping timeout: 276 seconds]
mistym has quit [Remote host closed the connection]
Uranio has joined #ruby-lang
cored has quit [Ping timeout: 260 seconds]
<whitequark> yeah
rwk1 has joined #ruby-lang
mikestok has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
thone has joined #ruby-lang
sailias has joined #ruby-lang
thone has quit [Ping timeout: 252 seconds]
ammar_ has quit [Read error: Connection reset by peer]
glebm has joined #ruby-lang
lguardiola has joined #ruby-lang
ChuckJHardy has joined #ruby-lang
swygue has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
wmoxam has joined #ruby-lang
r0bgleeson has joined #ruby-lang
kain has quit [Read error: Connection reset by peer]
kain has joined #ruby-lang
rwk1 has quit [Ping timeout: 264 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
tdy_ has joined #ruby-lang
kurko_ has joined #ruby-lang
breakingthings has joined #ruby-lang
mistym has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
dustint has joined #ruby-lang
krohrbaugh has joined #ruby-lang
tbuehlmann has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 245 seconds]
oneirophren has joined #ruby-lang
Uranio has quit [Remote host closed the connection]
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby-lang
srbaker has joined #ruby-lang
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
kgrz has joined #ruby-lang
<khaase> can anyone explain $_ to me?
<khaase> ie, it's scoping
<khaase> ie, how do I implement something like Regexp#~
<khaase> $_ seems to be scoped like a local variable
<yorickpeterse> it's a magic variable so it's a bit of a mix
<khaase> yeah, so, how do I access the $_ of the calling scope in a method?
<charliesome> khaase: binding_of_caller!
<khaase> ok, how do I do this in a serious project without hacks?
<yorickpeterse> khaase: you don't, because you're not supposed to
<charliesome> khaase: serious question: why?
enebo has joined #ruby-lang
<yorickpeterse> return the value instead or store it somewhere
<charliesome> "without hacks", but you're using $_ :p
<khaase> charliesome: to mimic regexp
<yorickpeterse> wat
<khaase> yorickpeterse: ok, so, not all objects are born equal?
<whitequark> khaase: short answer: not possible.
<whitequark> frame-locals are a very evil hack.
<yorickpeterse> khaase: first explain what you're trying to achieve
<whitequark> same for $+, $&, $\d+, etc
<yorickpeterse> there might be better ways to solve it
<yorickpeterse> "mimic regexp" is too abstract
<khaase> an object that can be used as drop in replacement for regular expressions in as many cases as possible
<khaase> ~some_regexp
<khaase> uses $_
<whitequark> khaase: this is not going to work.
<whitequark> Ruby is checking for location of a regexp literal in such cases.
<khaase> well, it works if I write the method in C and do rb_lastline_get()
<khaase> but that would kinda sucks
<yorickpeterse> or just use #scan and friends and wrap the MatchData object
pskosinski has joined #ruby-lang
<khaase> whitequark: oh, really?
<khaase> uhm
<khaase> what
<khaase> that sucks
<whitequark> khaase: as far as I know
<ddfreyne> khaase: Maybe you can abuse this in almost-sinatra
mistym has quit [Remote host closed the connection]
<khaase> hahaha
<charliesome> whitequark: are you referring to regexp in conditional?
<whitequark> charliesome: that too
<charliesome> wait does regexp define #~ ?
<whitequark> but in general, the frame-local to use is tied to location of regexp literal
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby-lang
rtl_ has left #ruby-lang [#ruby-lang]
<whitequark> or, hmm
rtl has joined #ruby-lang
wmoxam has quit [Client Quit]
<ddfreyne> whitequark: Oh wow, that is evil
<whitequark> ddfreyne: YES
<whitequark> the special vars really should die
<whitequark> they inhibit too much optimizations
wmoxam has joined #ruby-lang
<charliesome> the special vars are what makes ruby ruby
<whitequark> charliesome: go away
<charliesome> well, they're one of the things
<ddfreyne> gtfo charliesome
<charliesome> :~)
<yorickpeterse> charliesome: correct, they make Ruby non webscale
<injekt> special vars are what makes ruby perl
<injekt> :D
<whitequark> a somewhat fine solution would be restricting their scope to be strictly lexical
<whitequark> a special var is set where the literal is, period
<whitequark> I was surprised it wasn't so already
<yorickpeterse> hey hey
<yorickpeterse> this is MRI we're talking about
alessio_rocco has quit [Ping timeout: 255 seconds]
<charliesome> could it not just check if you've used a certain global in the scope
<yorickpeterse> nuff said
<whitequark> charliesome: eval
<whitequark> and binding
alessio_rocco has joined #ruby-lang
wallerdev has joined #ruby-lang
<charliesome> whitequark: you can do anything with eval and binding so i'd be surprised if special variables are the worst you can do
<khaase> so, is there any code quality tool that works with Ruby 2.0?
<whitequark> khaase: no.
<khaase> hmm
<whitequark> tldr: ruby_parser is shit and patches not welcome.
<ddfreyne> whitequark: does parser parse Ruby 2.0?
<khaase> whitequark: but you did a rewrite, no?
<whitequark> ddfreyne: yes
<ddfreyne> I need to play around with that :)
<whitequark> khaase: yes, but it's not (yet) compatible with ruby_parser
<whitequark> by AST format
<whitequark> patches are welcome :)
scottschecter has joined #ruby-lang
<ddfreyne> whitequark: So what's up with ruby_paser?
<whitequark> ddfreyne: it doesn't support 2.0
<whitequark> and issues and pull requests are just sitting there for months without any attention, etc
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<whitequark> it is not likely that it will gain 2.0 support any time soon.
rwk1 has joined #ruby-lang
<yorickpeterse> and didn't zen said no to keyword arg support?
<charliesome> wait seriously?
<whitequark> yorickpeterse: he already reopened
<charliesome> you can't call yourself ruby_parser and not, you know, parse ruby
<yorickpeterse> whitequark: ah
<whitequark> charliesome: it doesn't currently do that anyway, see /issues ;)
<charliesome> whitequark: i love how nearly all the issues are yours
outoftime has joined #ruby-lang
<ddfreyne> whitequark: Does parse have modes for 1.8.x, 1.9.x and 2.0.x?
<yorickpeterse> Completed 200 OK in 49561ms (Views: 3322.4ms | ActiveRecord: 91.6ms | Mongo: 42115.3ms)
<yorickpeterse> WEBSCALE
<yorickpeterse> Fucking internet connection is shit today
<injekt> Flexa: lolmongo
<whitequark> ddfreyne: 1.8.7, 1.9.3 (distinct from earlier 1.9.x), 2.0.0 and trunk
<whitequark> parser.
<khaase> what, did that nearly take a minute?
<whitequark> it's also in readme
<injekt> er
<injekt> yorickpeterse: ^
<ddfreyne> yeah, parser*
<yorickpeterse> injekt: actually it's our internet
<ddfreyne> whitequark: ok cool. I was too lazy to checkout the README :>
<injekt> yorickpeterse: :(
<yorickpeterse> Our Mongo dev DB is hosted by Amazon and our interbutts is shit
<yorickpeterse> especially since there's about 10 of us atm streaming music
<injekt> interbutts!
<whitequark> a clbuttic mistake
<charliesome> yorickpeterse: why on amazon?
<charliesome> why not locally
<yorickpeterse> charliesome: said DB is 120GB
<charliesome> ouch
<yorickpeterse> most of us have Macbook Airs
<charliesome> can't you emsmallenate it
<yorickpeterse> I'm the only one who has a copy of it
<yorickpeterse> (locally)
<yorickpeterse> but I don't actually use i
<TTilus> uhh, i need to move .rvm directory and looks like it is far from being a simple task
<yorickpeterse> * it
rwk1 has quit [Ping timeout: 248 seconds]
<TTilus> anybody done it?
<TTilus> how?
<charliesome> TTilus: maybe ask #rvm
<yorickpeterse> charliesome: also, emsmall what?
<injekt> TTilus: why do you need to move it?
<charliesome> yorickpeterse: can't you make a smaller version of it?
<charliesome> that doesn't have all the data
<injekt> TTilus: also moving it will screw up the rbconfig paths
kstuart has quit [Quit: kstuart]
<yorickpeterse> charliesome: probably could but nobody can be bothered
<yorickpeterse> we're moving offices anyway
kstuart has joined #ruby-lang
<TTilus> injekt: reorganizing things
wesside has joined #ruby-lang
oneirophren has quit [Ping timeout: 256 seconds]
<TTilus> injekt: need to find another way...
<whitequark> TTilus: not a good reason to have such a PITA
<injekt> TTilus: best bet: rm -rf .rvm
<injekt> because rvm is shit
<charliesome> use chruby
<TTilus> whitequark: well, i foolishly assumed it would just be mv old new
<khaase> TTilus: for moving stuff with rvm, you have to install it with --moveable
<injekt> TTilus: you can't move stuff around like that because of paths
<TTilus> charliesome: i am, this is somebody elses old deployment
<injekt> lol @ --moveable
<khaase> hehe, yeah
<khaase> we use that for binary builds
<khaase> I mean, I use rbenv locally
<injekt> ah on travis?
<khaase> yeah
<ddd> rvm is shit only if you're thinking that because of all the features. for the core of its job, its fucking excellent at it
<khaase> well, we don't have that in production yet
rippa has joined #ruby-lang
<khaase> but soon
<injekt> ddd: what job is that?
<injekt> rvm has like 100 jobs no?
<whitequark> ddfreyne: esipecially when it doesn't work without `rvm implode`
<charliesome> ddd: i'd go the other way round
<khaase> soon every passing ruby commit will update our preinstalled ruby-head
<charliesome> rvm is great when you need all its features
<ddd> however, having been on the dev team and leaving because of the feature bloat, i do agree that its gotten bloated
<charliesome> but crap if you only need to switch rubies
<ddd> but its core job of handling and installing multiple rubies its great at
<injekt> khaase: nice!
<whitequark> charliesome: does anyone need that
<ddd> charliesome: bullshit
<whitequark> ALL of rvm features
<charliesome> well maybe not all
<charliesome> but you get the point i'm trying to make
<ddd> whitequark is the only one making a valid complaint. too many features
<khaase> rvm is esp. painfull if just are working on one ruby implementation, and just want to go into rvm and change something for that
<ericwood> how does the fact that rvm has lots of features interfere with its usage?
<khaase> I tried a few times to dive into that code
<ericwood> idk, maybe I'm the exception
<khaase> and got the horrors
<khaase> rbenv is really nice in that regard
<whitequark> shims :(
<ddfreyne> gemsets were added to rvm as part of a feature request for me... but I never used them :(
<charliesome> khaase: try chruby next time you're setting up a machine
<injekt> khaase: yeah, I got fed up with shims then stopped using any ruby version manager, then noticed I had something similar to chruby so just started using that instead
<ddd> ericwood: because its slowed down considerably because of all the convoluted function calls, most of which carry some little shim for some additional feature / capability, and its suffering from feature creep *badly*
<khaase> maybe
<khaase> didn't have issues with rbenv so far
<khaase> and the code base is really simple to dive into
<ericwood> I guess that's valid
<ddd> but 2.0 is a new rewrite, so it should improve and since it will be modular you can jus tload a core set, and drop everything else
dr_bob has joined #ruby-lang
wyhaines has joined #ruby-lang
<ericwood> I do like how rvm will download and install ruby versions, idk if rbenv does that
dr_bob has quit [Read error: Connection reset by peer]
<whitequark> ruby-build
thebastl has joined #ruby-lang
<whitequark> but you can also do wget; tar xvf; ../configure; make; make install
<ddd> yeah, i personally do like that you can download and install, and i like that you can choose between either a binary or source install
<charliesome> even still compiling manually is not hard
<whitequark> for something you do at most once a few months it's not hard
<whitequark> srsly
<ericwood> lol
* ericwood shrugs, types "rvm install" and grins
<injekt> I compile manually then use chruby
<ddd> i don't think its a matter of 'hard', more along the lines of a single command to get it done and over with and have it centrally controlled
<ddd> which is great in my mind
<ericwood> yeah
<whitequark> ddd: ericwood: I just use system ruby.
<wmoxam> ericwood: I just type 'rbenv install'
<wmoxam> :p
<ddd> whitequark: which would explain why you're not a candidate for its use then
<ericwood> stop liking things I don't like!
<whitequark> ddd: well when I needed 2.0 I switched to chruby
<whitequark> and compiled it myself
<whitequark> took me what, one minute?
<whitequark> hah.
<ericwood> you must have a super crazy machine, then, to build it in 1 min
<khaase> hmmm... I switch between common and uncommon ruby implementations a ton
<khaase> and I don't want to be bothered with how to install them
<khaase> some of them
<ericwood> I switch between JRuby and MRI a lot
<ddd> my refusal to use rbenv is totally a personal dislike of sstephenson, especially after his bullshit FUD fest upon release (half of his complaints were invalid AND he failed to actually do any checking), not due to the final product itself.
<ericwood> ddd: yes
<ddd> but if i were to change off of rvm ever, it would be to chruby most likely
<ericwood> I think that has a lot to do with me not feeling like jumping ship
<khaase> ddd: main reason I didn't switch at the time
<ddd> i like chruby's approach
<charliesome> dunno why rbenv needs to be so complex with its shims and all that crap
<ericwood> I felt bad for Wayne during all of those shenanigans
<ericwood> :(
<ddd> mpapis and I spent weeks fighting off that crap
<ddfreyne> Yeah, Wayne's a nice guy
<ddd> nevermind the trolls that sprouted
<ericwood> I'd be really sad if I were him and my project got trashed by jerks :\
<ddd> he was hopping mad. he was going to quit working on rvm all together if mpapis remear and I hadn't of talked him out of it
<ericwood> :(
<ericwood> shit like that had a lot to do with _why leaving...
<ddd> that was utter bullshit sstephenson pulled. most of it lies and half truths with a vicious attitude in delivering 'differences'
<ericwood> hpricot got trashed iirc
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
<ddd> all it was was a project launch hype stunt. one with no class
<ericwood> yep :\
<injekt> hpricot didn't really get trashed, nokogiri was a better alternative, it was basically that simple
<zzak> good morning!
<ddd> morning zzak
<charliesome> zzak howdy
<injekt> hey zzak
<injekt> zzak: I was away yesterday sorry I didn't reply
<whitequark> injekt: I think it was burnout
<whitequark> _why really did a lot of things.
glebm has quit [Quit: Computer has gone to sleep.]
<zzak> injekt: np!
<zzak> charliesome: ddd hi!
<injekt> whitequark: possibly yeah
<ddd> i've yet to try out nokogiri in isolation. i probably should
<whitequark> ddd: it's an okayish libxml wrapper
<ddd> _why left prior to me entering into the ruby world, but from everything i've seen of his work, his book for new users, etc, really wish he'd find the heart to come back.
<injekt> libxml2 is meh on its own
<whitequark> injekt: all use expat!
boytoy has quit [Ping timeout: 264 seconds]
<whitequark> btw, what's better?
<whitequark> it's fast, secure, and somewhat convenient to use
<wmoxam> ddd: what was said about rvm that was so damn upsetting?
<injekt> whitequark: I never looked into expat
<whitequark> injekt: it was a joke
<whitequark> my statement about expat
noop has quit [Ping timeout: 252 seconds]
My_Hearing is now known as Mon_Ouie
<injekt> whitequark: oh hah I didn't know about it till now
<ddd> wmoxam: that rvm executed 'dangerous and arbitrary code', that it was somehow dangerous to use, that it used a cd hack that no one could get by (the cd 'hack' always was and always will be an opt-out/in feature. it was changed to opt-in after the debacle, but it was ALWAYS an opt-* feature.
glebm has joined #ruby-lang
odcinek has quit [Quit: odcinek]
<ddd> wmoxam: also he TOTALLY and UTTERLY failed to mention the md5 checksum security feature on all .rvmrc files, he straight out lied in relation to the arbitrary code execution, etc
<wmoxam> ddd: or he was misinformed
<ddd> wmoxam: he straight out said HE had checked all this out
<charliesome> wmoxam: when you make bold statements, you don't rely on being "informed". you check em
<ddd> so for you to directly and viciously target the way he did you have an OBLIGATION to be informed
<wmoxam> IMO that's overly dramatic
<wmoxam> as far as I can remember it was the HN crowd that ripped on RVM
<wmoxam> HN hates everything
ra0zsojsg8 has quit [Quit: Leaving.]
glebm has quit [Client Quit]
<charliesome> wmoxam: except golang
<ddd> wmoxam: when you increase technical support levels *drmatically* for a project through lies, innuendos, and falsities, such that they have to spend several weeks dealing with the aftermath simply so you can launch your own project and get as much exposure as possible.. you're in the wrong
<ddd> not to mention that we spent weeks dealing with companies that suddenly were thinking they had utterly dangerous software they were having their businesses rely on.. wow
melter has joined #ruby-lang
<ddd> the smarter ones knew better and even stood up for rvm but its the ones that didn't and the new users that were just going around on forums, MLs, etc and just regurgitating sstephenson's FUD to the point that users were getting spooked away from RVM.. yeah thats a problem.
<ddd> in the commercial world you could sue for defamation. what does an OSS do? spend developer time on triage rather than actually developing. Our support levels quadrupled *easily* after that fiasco.
<ddd> and to top it off, not once would he publicly respond to our *technical* discourse on the falseness of his initial claims such that we could hav eput it to rest. To me, that points out that he *enjoyed* the trouble he caused Reveled in it if you ask me. </anger>
<ddd> -
<wmoxam> um
<yorickpeterse> dat wall
<wmoxam> they still list the same points against RVM now as then
wesside has quit [Quit: Ice cream truck!]
swygue has quit [Ping timeout: 245 seconds]
<wmoxam> So is this still an issue?
solars has quit [Read error: Operation timed out]
erpuds has joined #ruby-lang
GeissT has quit [Quit: MillBroChat AdIRC User]
alessio_rocco has quit [Remote host closed the connection]
jxie has joined #ruby-lang
<ddd> wmoxam: its all been debunked. he never changed his wiki
<ddfreyne> whitequark: ah btw, another VisualWorks Smalltalk WTF: moving a file copies it and deletes the original
<ddfreyne> whitequark: Which is not only incredibly slow, moving a file to the same filename deletes it
<ddd> but the community as a whole has been updated, the technical points covered, and as a result the support levels are now back to what they should be. He doesn't want to update, just makes him look bad, not us.
melter_ has joined #ruby-lang
<ddd> sorry, wife took the computer to look up some numbers
<ddd> ddfreyne: isn't that the way that Windows implements its mv as well? one reason moving files is so slow under it.
ChuckJHardy has quit [Quit: leaving]
swav has joined #ruby-lang
<ddfreyne> ddd: no
thebastl has quit [Remote host closed the connection]
|Vargas| has quit [Quit: ...]
thebastl has joined #ruby-lang
<ddd> ahh, updates file reference if on same logical disk, copies then deletes upon success when moving to separate physicals. (Was googling it)
sush24 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gjaldon has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
thebastl has quit [Ping timeout: 272 seconds]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
kogent has joined #ruby-lang
rgn has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<whitequark> judofyr: why wudofyr?
forrest has joined #ruby-lang
rwk1 has joined #ruby-lang
<judofyr> whitequark: http://wirc.pl/
<rgn> judofyr: what's it look like, i'm using irccloud
marr has quit [Ping timeout: 256 seconds]
rwk1 has quit [Ping timeout: 252 seconds]
<judofyr> rgn: yeah, it's similar
wudofyr has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
<ddfreyne> irssi + dircproxy ftw
oneirophren has joined #ruby-lang
<yorickpeterse> weechat bitches
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
ikrima has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
thebastl has joined #ruby-lang
glebm has joined #ruby-lang
benlovell has quit [Quit: Computer has gone to sleep.]
anachronistic has joined #ruby-lang
<injekt> irssi + tmux
<ndrst> weechat +1
<Smol> ^^
<yorickpeterse> injekt: irssi is for scrubs
<yorickpeterse> what are you, a scrub?
<zzak> no
<rgn> before i quit the daily irc habit i switched from irssi to weechat few months before
<GarethAdams> what's a scrub?
<andrewvos> rgn: You that blogger guy?
<rgn> rgn: no
<rgn> andrewvos: ^
<gnufied> GarethAdams: usually someone new, used by gamers I think. nub scrub
<andrewvos> rgn: Are you that guy who talks to himself?
* rue tackles
* GarethAdams is disappointed
<GarethAdams> no one answered "a scrub is a guy that can't get no love from me"
<yorickpeterse> wat
<injekt> GarethAdams: :D
<injekt> yorickpeterse: srsly tlc
<yorickpeterse> tlc?
<injekt> bro :(
tbuehlmann has quit [Remote host closed the connection]
<gnufied> if you play MOBAs you know scrub
thone has joined #ruby-lang
<GarethAdams> yorickpeterse: http://www.youtube.com/watch?v=pKV8uSX2nEQ#t=0m43s
TheNotary has joined #ruby-lang
<GarethAdams> better match - http://www.youtube.com/watch?v=pKV8uSX2nEQ#t=0m54s
fragamus has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
banister`sleep has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 272 seconds]
DEac- has quit [Ping timeout: 240 seconds]
DEac- has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
carloslopes has joined #ruby-lang
xcombelle has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
<zzak> rue: are you goin to euruko?
<zzak> we should have an irc chat IRL
_carloslopes has joined #ruby-lang
<yorickpeterse> and a key signing party!
* yorickpeterse is super excited
carloslopes has quit [Read error: Connection reset by peer]
<zzak> me too!
krohrbaugh has joined #ruby-lang
<yorickpeterse> can't wait to spend 2 hours typing over a GPG key that was printed on paper
wyhaines has quit [Remote host closed the connection]
<tockitj> yorickpeterse, yay! (:
<tockitj> psst! (try exchanging sha-256 fingerprints)
<tockitj> lots less to type
gix has quit [Ping timeout: 264 seconds]
<zzak> yorickpeterse: i cant wait to see greece
krohrbaugh has quit [Client Quit]
<zzak> yorickpeterse: ive never been to europe
odcinek has joined #ruby-lang
krohrbaugh has joined #ruby-lang
marr has joined #ruby-lang
<yorickpeterse> :)
<zzak> have you been to greece before?
rwk1 has joined #ruby-lang
gix has joined #ruby-lang
<yorickpeterse> Yeah, but that was years ago
<zzak> did you go to the parthenon?
<mbj> Is there a ruby library (other than perftools) that allows to measure cpu time?
<mbj> s/perftools/rubyprof/
workmad3 has quit [Ping timeout: 248 seconds]
<yorickpeterse> zzak: can't remember exactly, not sure if it even was Athens
<yorickpeterse> home tiem, bbiab
<zzak> lates
rwk1 has quit [Ping timeout: 272 seconds]
vlad_starkov has quit []
sush24_ has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby-lang
vlad_starkov has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
sush24_ has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
__butch__ has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
DomKM has joined #ruby-lang
<darix> mbj: absolute_time - maybe this helps?
DomKM has quit [Client Quit]
DomKM has joined #ruby-lang
dc5ala has joined #ruby-lang
<mbj> darix: Thx this is better, but I need to have access to the number of cpu time spend on a specific task.
srbaker has quit [Quit: Computer has gone to sleep.]
<mbj> darix: The absolute_time gem does only provide the number of ticks that have passed between to measurements. If the task was delayed by IO it will still be counted.
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<whitequark> ugh time
<darix> mbj: how does rubyprof handle this?
<spike|spiegel> mbj:ruby-prof does..
<mbj> darix: c extension
<darix> mbj: naw i mean ... does it count the time + waiting or without
<mbj> spike|spiegel: I'm looking for a pure ruby solution that does not require c extensions. Maybe there is something in the os specific libraries that I can hook via ffi?
<spike|spiegel> cpu time is architecture specific
<mbj> darix: The operation system does some accounting for you, on linux for example you can use http://linux.die.net/man/3/clock
<spike|spiegel> on x86 you hit rdtsc insn
kennyvb has quit [Quit: ZNC - http://znc.in]
Squarepy has joined #ruby-lang
<whitequark> spike|spiegel: that does not account for time spent in other tasks
<whitequark> or rather, it does and it's the problem
kennyvb has joined #ruby-lang
<spike|spiegel> the question was related to cpu time, hence the answer.. if it was about "I want the 'real' time the cpu(s) on my machine spent running this chunck of code", that's going to be different
mistym is now known as mistym_lunch
<darix> mbj: how about things like valgrind? do they track cpu cycles as you want?
<darix> code mapping from valgrind back to ruby might be a problem but hm
<mbj> darix: interesting idea
<darix> callgrind in your case of course
<darix> later
io_syl has joined #ruby-lang
<mbj> darix: hehe, just found it by googling also ;)
srbaker has joined #ruby-lang
io_syl has quit [Client Quit]
francisfish has joined #ruby-lang
io_syl has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
<spike|spiegel> mbj: any particular reason to need cpu cycles? ruby is so inefficent (and thank GC too) it's going to blame all the wrong things
<whitequark> spike|spiegel: well it will blame the right thing, ruby :p
<whitequark> but yeah
<spike|spiegel> I had a patched ruby-prof that tracked gc time inside wall time, so that I can see and correctly atrribute time to GC... and even that had given me headaches
flori has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
<mbj> I like the idea, but an empty fs cache on a CI box will blow up where my devbox will not.
<mbj> Realtime is not the correct metric here.
flori has joined #ruby-lang
<mbj> But better than no metric ;)
<spike|spiegel> good lord, that thing is jusk yuck
<spike|spiegel> mbj: you do know that Timeout lib spawns one thread per timeout requested right?
<mbj> spike|spiegel: yeah
<mbj> spike|spiegel: I still like the intention behind this ;)
tbuehlmann has joined #ruby-lang
banister`sleep has quit [Ping timeout: 268 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
krohrbaugh has quit [Quit: Leaving.]
solars has joined #ruby-lang
adambeynon has joined #ruby-lang
g0bl1n has joined #ruby-lang
rwk1 has joined #ruby-lang
<g0bl1n> My main ruby app forks a new process, which I get the PID. That new process launches a system app (sinatra rackup). When I kill the PID, the sinatra process keeps alive. If I kill the Process.getpgid(PID) only the parent process is killed. Any hint on how to kill the PID and the rackup sinatra child ?
Silex^^ is now known as Silex
vlad_sta_ has joined #ruby-lang
<whitequark> trap(:TERM) { kill the child }
retro|cz has quit [Ping timeout: 256 seconds]
cruffinski has joined #ruby-lang
rwk1 has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
cruffinski has quit [Remote host closed the connection]
vlad_sta_ has quit [Client Quit]
vlad_starkov has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
pkrnj has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 252 seconds]
Silex has quit [Quit: WeeChat 0.3.8]
gnufied has quit [Quit: Leaving.]
erpuds has quit [Quit: erpuds]
Silex has joined #ruby-lang
jovy88 has quit [Read error: Connection reset by peer]
odcinek has quit [Quit: odcinek]
jovy88 has joined #ruby-lang
celinedior has quit [Quit: celinedior]
anachronistic has quit [Quit: anachronistic]
odcinek has joined #ruby-lang
sepp2k has joined #ruby-lang
divout has quit [Remote host closed the connection]
<g0bl1n> whitequark: thanks, now using Process.spawn instead of Process.fork + system
krohrbaugh has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby-lang
r0bgleeson has joined #ruby-lang
mrsolo has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
odcinek has quit [Quit: odcinek]
vlad_sta_ has joined #ruby-lang
symm- has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 268 seconds]
melter_ has quit [Ping timeout: 264 seconds]
melter has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Remote host closed the connection]
bnagy has quit [Ping timeout: 252 seconds]
bnagy has joined #ruby-lang
Uranio has joined #ruby-lang
thone has quit [Remote host closed the connection]
thone has joined #ruby-lang
srbaker has joined #ruby-lang
sailias has quit [Quit: Leaving.]
noop has joined #ruby-lang
<amerine> drbrain: ^5
noop has quit [Quit: Leaving]
rwk1 has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
francisfish has quit [Remote host closed the connection]
noop has joined #ruby-lang
JohnBat26 has joined #ruby-lang
mbj has quit [Read error: Operation timed out]
rwk1 has quit [Ping timeout: 264 seconds]
mistym_lunch is now known as mistym
<drbrain> amerine: ?
<amerine> drbrain: just accept the internet high five with a smile.
krz has joined #ruby-lang
<drbrain> ok: ✋
<drbrain> I think capp and drbdump are ready for a release tonight
<drbrain> I need to scrutinize for another hour or so, though
sebasoga has quit [Quit: Computer has gone to sleep.]
<zzak> drbrain: got an appointment at 8:30am on friday at the vermont passport agency
headius has joined #ruby-lang
erpuds has joined #ruby-lang
swav has quit [Ping timeout: 272 seconds]
<yorickpeterse> whitequark: writing some docs for parser, doing it in CUSTOMIZATION.md (are the caps needed?)
idkazuma has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
robbyoconnor has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
imajes has quit [Excess Flood]
<whitequark> yorickpeterse: it's a common convention
<whitequark> you can drop it in doc/ if you want
imajes has joined #ruby-lang
<yorickpeterse> already did
<yorickpeterse> and pushed :>
krohrbaugh has joined #ruby-lang
<whitequark> yorickpeterse: very well thanks
<yorickpeterse> the begin/end column combination is pretty neat as well
<yorickpeterse> Ripper only provides line numbers and starting columns
gnufied has joined #ruby-lang
<whitequark> yorickpeterse: also a PITA to support
<whitequark> when you have parenthesized/begin;1;2;end expressions
<whitequark> I'm trying to figure it out for days already
<whitequark> I think I'll just add a (begin) node for each ()/beginend pair
mytrile has joined #ruby-lang
<yorickpeterse> whitequark: https://github.com/whitequark/parser/blob/master/lib/parser/diagnostic/engine.rb#L7 what does this imply? As in, what kind of warnings?
noop_ has joined #ruby-lang
<yorickpeterse> (docs? what docs?)
<whitequark> yorickpeterse: (docs) select one of the two: a) working parser b) documented parser
<whitequark> I have timeframes, you know
<yorickpeterse> hehe, I know
<whitequark> now to explanation...
<whitequark> (you can probably grep it by "diagnostic\(?:warning", or just look in lib/parser.rb)
goshakkk has joined #ruby-lang
<whitequark> there is stuff like "put space there". it's a parser warning in ruby
<yorickpeterse> aah
dc5ala has quit [Quit: Ex-Chat]
<yorickpeterse> hm, I probably don't need that for now
<whitequark> I'd expect something like that from linter :)
<yorickpeterse> I don't do semantics for the time being
<yorickpeterse> I don't want to make yet-another-<insert code style tool name here>
Squarepy has quit [Quit: Leaving]
<whitequark> it's "syntax"
mbj has joined #ruby-lang
<whitequark> you only do semantics :)
noop has quit [Ping timeout: 256 seconds]
<yorickpeterse> eeeeh, I think we have a different definition of semantics
<yorickpeterse> for me that would be shit such as "herp derp line too long, get out"
<yorickpeterse> or "This method violates Robert Downey Jr's law"
FlyingLeap has joined #ruby-lang
mytrile has quit [Ping timeout: 268 seconds]
oneirophren has quit [Ping timeout: 256 seconds]
mytrile has joined #ruby-lang
<whitequark> >Semantics contrasts with syntax, the study of the combinatorics of units of a language (without reference to their meaning)
krohrbaugh has quit [Quit: Leaving.]
<yorickpeterse> in that case I was wrong
<yorickpeterse> either way, I don't want to deal with shit such as "It would be nicer to insert X here"
<yorickpeterse> I'd rather focus on "This shit's broken yo"
<whitequark> mmm yeah
<whitequark> well, syntactic linters are much easier to write anyway
<yorickpeterse> most of it can be done using regular expressions as well
<whitequark> NO
<whitequark> just no.
<whitequark> think of "foo / 1 #/"
<whitequark> I mean this is a thing which a syntactic linter must catch first and foremost. and it'll fail
<yorickpeterse> stuff such as detecting spaces around ) (and other easier "rules") can be done with it just fine
<yorickpeterse> I'm not saying that you should, but it's generally the easy solution people go for
beiter has quit [Read error: Operation timed out]
calmeal has joined #ruby-lang
symm- has quit [Quit: Leaving...]
calmeal has left #ruby-lang [#ruby-lang]
beiter has joined #ruby-lang
symm- has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
<ddfreyne> REGULAR EXPRESSIONS ARE NOT A PROPER SUBSTITUTE FOR PARSERS
noop_ has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
<ddfreyne> Repeat after me.
vlad_starkov has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
<rue> Syntax error
<eam> they're an integral component of most parsers!
vlad_starkov has joined #ruby-lang
<yorickpeterse> ddfreyne: hey, it's better than a custom parser based on StringScanner
<TTilus> work wonders in tokenizer
<yorickpeterse> because I can at least understand most regular expressions
<whitequark> TTilus: like exponential behavior?
<TTilus> whitequark: exactly!
<whitequark> TTilus: I mean there is actually an issue in RP for that, or there was
<tockitj> ddfreyne, what about #instance_eval ? (:
<whitequark> whereas if you do the DFA-NFA conversion properly... (like ragel does and awk also)
IamBPAfree has joined #ruby-lang
<IamBPAfree> hi
<whitequark> TTilus: see also http://swtch.com/~rsc/regexp/regexp1.html
beiter has quit [Read error: Operation timed out]
Hanmac has quit [Read error: Operation timed out]
vlad_starkov has quit [Client Quit]
rwk1 has joined #ruby-lang
swav has joined #ruby-lang
<yorickpeterse> whitequark: hm, it seems Builders::Default#n() isn't actually used
<yorickpeterse> at least, when I subclass it and override it nothing changes
<IamBPAfree> how do I search an array to see if it CONTIANS something. I know that if i use array.include? 'mytext' it will search the array for the element 'mytext'. But what I need is not an exact match. Like the array element my be 'thisismytextstring' but I need to search all the elements in the array for 'mytext' and need it to be TRUE when compared to the element 'thisismytextstring'
<yorickpeterse> IamBPAfree: myarray.select { |element| element =~ /some_regex/ }
<mistym> Or ary.any? {}, which returns a boolean instead of an array.
imajes has quit [Excess Flood]
krz has quit [Quit: krz]
rwk1 has quit [Ping timeout: 258 seconds]
<TTilus> IamBPAfree: array.grep /mytext/
mbj has quit [Ping timeout: 256 seconds]
<IamBPAfree> thanks for the suggestions....I think I can get .any? {}. boolean should be fine for my purposes.
mbj has joined #ruby-lang
<TTilus> whitequark: i wast aware that many regex implementations are that bbad
imajes has joined #ruby-lang
<whitequark> TTilus: MOST of them
vlad_starkov has joined #ruby-lang
<whitequark> yorickpeterse: it is indeed used
<TTilus> whitequark: sadly
<yorickpeterse> whitequark: hmmmm
<TTilus> IamBPAfree: !array.grep(/mytext/).empty?
swygue has joined #ruby-lang
<TTilus> IamBPAfree: but .any? is a better idea
<yorickpeterse> whitequark: hm, it seems that in the Git HEAD it does work
pkrnj has quit [Ping timeout: 268 seconds]
<yorickpeterse> but not with the currently released Gem
mbj has quit [Ping timeout: 246 seconds]
<mistym> .any? also calls fewer methods and is ever so slightly faster than !ary.grep(//).empty?, if that matters to you
<whitequark> yorickpeterse: you probably want to use HEAD anyway
<yorickpeterse> probably
mbj has joined #ruby-lang
<yorickpeterse> heh, invalid Gemspec
<whitequark> yorickpeterse: how so
<yorickpeterse> ERROR: While executing gem ... (Gem::InvalidSpecificationException) ["bin/bin/ruby-parse", "bin/bin/ruby-rewrite"] are not files
<whitequark> whoops
<yorickpeterse> (don't want to use a bundle local config since I'll then probably forget about it)
<whitequark> however... that's weird
<whitequark> gem build works for me
<yorickpeterse> you're using some regex to get two files, which is a bit silly
<whitequark> or no, it doesn't
<whitequark> yorickpeterse: fixed
<yorickpeterse> http://pastie.org/7710858 my change
g0bl1n has quit [Quit: g0bl1n]
<whitequark> yeah I did the same
<yorickpeterse> brb, trying to find where the fuck my cat is
pygmael has left #ruby-lang [#ruby-lang]
sush24_ has quit [Quit: This computer has gone to sleep]
thebastl has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
krohrbaugh has joined #ruby-lang
imajes has joined #ruby-lang
melter has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby-lang
<yorickpeterse> stupid cat
<yorickpeterse> never comes back when I want him to
<ndrst> yorickpeterse: get a dog then
gjaldon has quit [Remote host closed the connection]
<yorickpeterse> can't
<ndrst> allergic?
<yorickpeterse> Can't commit to it since I'm generally home late
<yorickpeterse> plus I live on the 2nd floor
mbj has quit [Ping timeout: 252 seconds]
mrfelix has joined #ruby-lang
<yorickpeterse> I also believe dogs should be able to walk outside freely (similar to cats)
xcombelle has quit [Remote host closed the connection]
<ndrst> aggreed. does your cat has access to the outside world?
<yorickpeterse> yes
<yorickpeterse> which is where he's now
<ndrst> catching some other animals. nice (:
<yorickpeterse> It's going to rain in a bit so he'll be back
<ndrst> ahh i stumbled uppon your debugging with pry article some time ago yorickpeterse
<yorickpeterse> :)
sush24 has joined #ruby-lang
TheNotary has quit [Ping timeout: 252 seconds]
mbj has joined #ruby-lang
jovy88 has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
sebasoga has joined #ruby-lang
jovy88 has joined #ruby-lang
erpuds has quit [Quit: erpuds]
vlad_starkov has quit [Ping timeout: 258 seconds]
mbj has quit [Ping timeout: 260 seconds]
erpuds has joined #ruby-lang
workmad3 has joined #ruby-lang
Burgestrand has joined #ruby-lang
TheNotary has joined #ruby-lang
rwk1 has joined #ruby-lang
thone_ has joined #ruby-lang
shirokuro11 has joined #ruby-lang
thone has quit [Ping timeout: 258 seconds]
mbj has joined #ruby-lang
rwk1 has quit [Ping timeout: 258 seconds]
yalue has quit [Read error: Connection reset by peer]
shirokuro11 has quit [Remote host closed the connection]
IamBPAfree has left #ruby-lang [#ruby-lang]
jerrytgarcia has joined #ruby-lang
swygue has quit [Ping timeout: 258 seconds]
jerrytgarcia has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
wyhaines has joined #ruby-lang
io_syl has quit [Client Quit]
rippa has quit [Ping timeout: 240 seconds]
pygmael has joined #ruby-lang
io_syl has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 240 seconds]
<drbrain> zzak: woo!
TheNotary has quit [Quit: Leaving]
tbuehlmann has quit [Remote host closed the connection]
goshakkk has quit [Quit: Computer has gone to sleep.]
tdy_ has quit [Ping timeout: 252 seconds]
<zzak> drbrain: have you staid at the grand pacific before?
<drbrain> where is that?
<zzak> they mention it on the rubykaigi site
<drbrain> ah, no
<drbrain> but that is where I am staying
<zzak> 5 night rate for 30sqm room with wifi is 13,000JPY/night
<zzak> that is not too bad
<drbrain> I got a deal with breakfast for 14900¥
<zzak> the amex deal?
<drbrain> Ebi helped me book it
<drbrain> she scouts out deals
<drbrain> oh good! you can take the limousine bus from Narita
<drbrain> after hours of airplane, take the limousine bus
<drbrain> it's less stressful than taking the trains
<zzak> you pay on arrival right?
<drbrain> I paid in advance (because of the deal) but yes, otherwise you pay on arrival
<zzak> nice
<drbrain> have you arranged flights?
<zzak> i will in the next week or two
<yorickpeterse> zzak: book a hostel, much more fun
glebm has quit [Ping timeout: 272 seconds]
<zzak> drbrain: i found a flight for $870 roundtrip from united on hipmunk
mbj_ has joined #ruby-lang
<drbrain> that's a fantastic deal
<zzak> yeah, hopefully its still there when i get paid
<zzak> yorickpeterse: i would, but having never been to japan before.. hah
<yorickpeterse> so?
<yorickpeterse> they all speak English
<yorickpeterse> http://j-hostel.com/ here, I stayed here for a week
<zzak> booked my room
<yorickpeterse> Not the best but the people are very nice and it's super close to interesting stuff
tdy_ has joined #ruby-lang
<zzak> its only 65,000jpy for 5 nights
<zzak> yorickpeterse: maybe i will try it next time
mbj has quit [Ping timeout: 240 seconds]
<yorickpeterse> you better :P
_carloslopes has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
pkrnj has joined #ruby-lang
<zzak> drbrain: if i book this flight ill arrive at narita around 9pm on wednesday the 29th
<zzak> drbrain: you know about rubyhiroba on sunday too right?
<drbrain> I didn't
<zzak> its free
vlad_sta_ has quit [Ping timeout: 258 seconds]
<drbrain> thanks
workmad3 has quit [Ping timeout: 246 seconds]
<ddfreyne> Flying to Japan takes a long time… better be worth it ;)
<zzak> you make the time back on the flight home
<drbrain> ha!
tdy_ has quit [Quit: WeeChat 0.4.0]
tdy_ has joined #ruby-lang
scampbell has quit [Quit: Leaving]
melter_ has joined #ruby-lang
francisfish has joined #ruby-lang
tockitj has quit [Read error: Operation timed out]
blacktulip has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
rwk1 has quit [Ping timeout: 256 seconds]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
dustint has quit [Quit: Leaving]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 257 seconds]
headius has quit [Quit: headius]
wmoxam has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby-lang
joshH2 has joined #ruby-lang
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 252 seconds]
jacktrick has joined #ruby-lang
cored has quit [Ping timeout: 256 seconds]
breakingthings has quit []
francisfish has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
mbj_ has quit [Ping timeout: 240 seconds]
krohrbaugh has quit [Quit: Leaving.]
forrest has quit [Quit: Leaving]
bengov has joined #ruby-lang
enebo has quit [Quit: enebo]
bengov has left #ruby-lang [#ruby-lang]
cored has joined #ruby-lang
cored has joined #ruby-lang
mistym has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
krohrbaugh has joined #ruby-lang
<zenspider> YAY! I'm adding a plugin system to minitest and the first plugin I'm gonna publish will turn on minitest/pride permanently :D
idkazuma has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
rwk1 has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 260 seconds]
<injekt> wat
<zenspider> RAWR
rwk1 has quit [Ping timeout: 240 seconds]
<jaimef> File.open(raw,"w") { |f| f.puts %x{~/br-admin/bin/shell ec2-describe-instances 2>&1} } # something cleaner than this?
postmodern has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
<zenspider> you realize that's a one-liner, right?
<ericwood> ohhai jaimef
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
rwk1 has joined #ruby-lang
<zenspider> I suppose you could do:
<zenspider> system "~/br-admin/bin/shell ec2-describe-instances &> raw"
setmeaway has joined #ruby-lang
* jaimef wonders if he knows ericwood
erpuds has quit [Quit: erpuds]
<ericwood> jaimef: #austin-ruby
<jaimef> oh right
<ericwood> we are basically best friends
<jaimef> we met irl?
<ericwood> maybe at one of the lunches, I can't always relate faces to nicks
vlad_sta_ has quit [Remote host closed the connection]
<jaimef> ahh
<ericwood> I'm that one kid who makes everyone feel old
outoftime has quit [Quit: Leaving]
mrfelix has quit [Quit: Textual IRC Client: www.textualapp.com]
krohrbaugh1 has quit [Quit: Leaving.]
fosky has quit [Read error: Connection reset by peer]
<zenspider> ericwood: damn you. there's always one.
benanne has joined #ruby-lang
ParkQ has joined #ruby-lang
nXqd has joined #ruby-lang
lguardiola has quit [Quit: Leaving]
krohrbaugh has joined #ruby-lang
mikestok has quit [Quit: Computer has gone to sleep.]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 272 seconds]
jovy88 has quit [Read error: Connection reset by peer]
idkazuma has quit [Remote host closed the connection]
jovy88 has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
<blowmage> zenspider: eagerly awaiting bits of the new minitest
<blowmage> and by bits i guess i mean just code :)
<zenspider> blowmage: I know. I'm sorry. I'm gonna try to get it up soon
<zenspider> I'm addicted to polishing atm
krohrbaugh has quit [Quit: Leaving.]
<blowmage> are you gonna have a prerelease gem for folks to see the code before its published? or put it on github?
nXqd has quit [Ping timeout: 268 seconds]
mikestok has joined #ruby-lang
arubin has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
<zenspider> blowmage: it'll go up to github soonish
<zenspider> ARGH
kogent has joined #ruby-lang
<zenspider> I have a method redefined problem
<zenspider> BUT I AM ONLY ENTERING THE FILE ONCE!
<zenspider> ARGH
<blowmage> i'd love to help but i gotta run
<blowmage> i'll try to be online later if you want a second pair of eyes
<zenspider> omg I'm so stupid
<zenspider> so. fucking. stupid
mikestok has quit [Client Quit]
<zenspider> why does anyone pay me?
<GarethAdams> if it helps, I don't!
idkazuma has joined #ruby-lang
idkazuma has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
sebasoga has quit [Quit: Computer has gone to sleep.]
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
marcosvanetta has joined #ruby-lang
vlad_starkov has joined #ruby-lang
toretore has quit [Quit: Leaving]
rwk1 has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
krohrbaugh has quit [Quit: Leaving.]
wyhaines has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
GarethAdams has quit [Quit: Leaving...]
kurko__ has joined #ruby-lang
jbsan has joined #ruby-lang
<zenspider> does anyone have a URL to a good tutorial/guidelines/whatever on writing specs?
<zenspider> I'd rather not write one if I can help it.
<benwoody> zenspider: http://betterspecs.org/ maybe? i don't agree with all the items there, but it's something
CoverSlide has joined #ruby-lang
<zenspider> yeah... I was just looking at that
<zenspider> there's nothing there to get you started tho
<zenspider> and yeah... the writing is pretty terrible
<zenspider> "Mocking makes your specs faster but they are difficult to use. You need to understand them well to use them well. Read more about."
<zenspider> where "Read more about." is not a link at all.
<zenspider> and no, mocking doesn't make your tests faster.
kurko__ is now known as kurko_
<zenspider> any others?
krohrbaugh has joined #ruby-lang
benanne has quit [Quit: kbai]
rwk1 has joined #ruby-lang
<zenspider> that page just proves that nobody uses `ri` anymore :(
<zzak> zenspider: hows your minitest rewrite going?
<zenspider> zzak: about done