ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
<seydar> someone teach me something new
<seydar> what's something cool everyone's found lately?
gsav has joined #ruby-lang
xyzodiac has joined #ruby-lang
<drbrain> seydar: I found something uncool
<drbrain> class A:: B; end
spuk has joined #ruby-lang
<postmodern> drbrain, uninitialized constant A?
<drbrain> postmodern: assume A
kurko_ has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
savage- has joined #ruby-lang
<postmodern> hu it defines A::B
<drbrain> there's lots of weird places you can put a space in ruby
<drbrain> too many, for my tastes
gsav has quit [Read error: Connection reset by peer]
tenderlove has quit [Remote host closed the connection]
ryanlecompte has quit [Ping timeout: 252 seconds]
runeb has joined #ruby-lang
BlaXpirit has quit [Quit: Quit Konversation]
<firefux> and confusing for beginners
sn0wb1rd has joined #ruby-lang
<seydar> drbrain: oh god, did you see peterc's post on unicode spaces?
tenderlove has joined #ruby-lang
<drbrain> seydar: I knew about that
jgomez has quit [Ping timeout: 246 seconds]
peterc has left #ruby-lang [#ruby-lang]
peterc has joined #ruby-lang
<drbrain> I think I've got a couple tweets using non-breaking spaces
<drbrain> zero-width spaces are more fun
<seydar> i knew about unicode ever since giles bowkett used the lambda character in archeopteryx, but i totally forgot about non breaking spaces
<drbrain> you can do lots of trolling with them
<seydar> oh god no
<seydar> why do those exist
<seydar> i want zero-width letters
<seydar> this is evil
<seydar> i need to delete that page
mupilot has joined #ruby-lang
datanoise has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
<seydar> oh wow that's actually kinda useful
peterc has left #ruby-lang [#ruby-lang]
petercooper has joined #ruby-lang
runeb has quit [Ping timeout: 255 seconds]
peterc has joined #ruby-lang
<seydar> drbrain: where are you working these days?
<drbrain> I'm about to import rdoc to ruby
peterc has quit [Client Quit]
peterc has joined #ruby-lang
peterc has left #ruby-lang [#ruby-lang]
wtfisgoingon has joined #ruby-lang
thinkdevcode has joined #ruby-lang
wtfisgoingon has left #ruby-lang [#ruby-lang]
tryagain has joined #ruby-lang
tryagain has left #ruby-lang [#ruby-lang]
whyAllIPBanned has joined #ruby-lang
<banisterfiend> drbrain: what does that mean?
<seydar> "where do you work?" "i'm about to put some bread in the oven"
Veejay has joined #ruby-lang
parndt has joined #ruby-lang
<drbrain> banisterfiend: rdoc is packaged in ruby, so I need to import it when it gets released
<banisterfiend> oh..
miah has quit [Quit: Derpops!]
<petercooper> test
<seydar> petercooper: acknowledge
<drbrain> petercooper: I see your test
kurko_ has quit [Quit: Computer has gone to sleep.]
mjio has quit [Ping timeout: 260 seconds]
<parndt> no need to get testy, petercooper ;)
spectra has quit [Ping timeout: 240 seconds]
mjio has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
gix has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
spectra has joined #ruby-lang
sn0wb1rd_ has joined #ruby-lang
sn0wb1rd has quit [Ping timeout: 260 seconds]
sn0wb1rd_ is now known as sn0wb1rd
whyAllIPBanned has quit [Ping timeout: 245 seconds]
<Ashkin> how can I 'unextend' a class instance? I've googled this a fair bit today and yesterday, but I've found nothing [very] useful; mostly just broken code. I want to add player movement handling to objects as the players' focus changes from one object to another, and remove them after. There are other ways to accomplish this, but being unable to find a way to unextend (or similar) is still frustrating. Is there a way to do this?
<drbrain> Ashkin: it's not part of ruby
thone_ has joined #ruby-lang
<petercooper> There's a way but don't do it.
<Ashkin> @petercooper: why?
<petercooper> because what drbrain said
<petercooper> Some people have hacked this functionality into MRI as an experiment but it's the sort of fiddling you wouldn't want to run in production
outoftime has quit [Quit: Leaving]
<drbrain> Ashkin: you should probably use a better design
chendo_ has joined #ruby-lang
<drbrain> if you're going to add and remove functionality multiple times, just leave it in
<Ashkin> I was really hoping i was just missing something. and yes: in this case i'm going to store a ref to the object and use a flag to disable any computer-controlled behavior
thone has quit [Ping timeout: 260 seconds]
WillMarshall has joined #ruby-lang
<zenspider> which is better?
<zenspider> You should look at the implementation of Array#== or its members.
<zenspider> You should look at your implementation of Array#== or the #== method of its members.
<zenspider> I was thinking also of #== on Array or its members
<zenspider> but that ... I dunno. this is a mess
seanstickle has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 256 seconds]
flexd has quit [Read error: Operation timed out]
<Ashkin> thanks @ drbrain and petercooper
shtirlic_ has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
savage- has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
ryanlecompte has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 264 seconds]
__butch__ has quit [Quit: Leaving.]
shtirlic_ has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
<swarley> I'm more interested in what use unextending could have practically
<swarley> I can't really think of a time i wanted to pull an extension out
sn0wb1rd has quit [Quit: sn0wb1rd]
<banisterfiend> swarley: google mixico for an idea
<zenspider> there is also the un gem
<zenspider> it's a bad idea tho
<banisterfiend> swarley: you can also implement a very pretty state machine thingy using unextending
<zenspider> it is just as pretty doing it through composition
<swarley> Oh, but from my experience with haskell, state can be achieved through much easier methods than extending and unextending
<zenspider> yeah... but then you can't read it
<zenspider> :P
<swarley> Lol, That's a given
sepp2k1 has quit [Remote host closed the connection]
<swarley> But really, can't you just use a sort of proxy method set to access an array to emulate state? A stack of states i guess.. Not to get all dr suessy
<swarley> whenever I've needed to have a state, I've always just used an array to check what was on top of the stack
<swarley> push and pop when something changes, etc
wmoxam has quit [Remote host closed the connection]
seydar has quit [Quit: leaving]
<blazes816> a stack of states is a serious structure so sturdy it can survive stoppage
<banisterfiend> swarley: more this: https://github.com/banister/state-ology
<banisterfiend> keep in mind i wrote that about 5 years ago, it was one of my first gems
<banisterfiend> in fact i think it was my first one
<swarley> ah that makes sense
gregmore_ has quit [Ping timeout: 255 seconds]
<swarley> I can see where you would use that
r0bglees0n has joined #ruby-lang
<banisterfiend> (it's an abomination)
<swarley> A little bit
swav has joined #ruby-lang
daro_ has joined #ruby-lang
chris2 has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: Leaving]
chris2 has joined #ruby-lang
stonerfish has joined #ruby-lang
mjio has quit []
parndt has quit [Remote host closed the connection]
faustman has joined #ruby-lang
daro_ has quit [Client Quit]
chendo_ has quit [Quit: Computer has gone to sleep.]
<drbrain> I think QuickCert was the first thing I cobbled together
<drbrain> it's terrible
lsegal has joined #ruby-lang
<swarley> the first thing i made waasssss.... I have no idea, i'm sure it was horrible
<swarley> I think it was my markov library
<swarley> Less than 100 lines of code lol
<swarley> Terrible
<swarley> Wait, maybe less than 300
thone_ has quit [Ping timeout: 240 seconds]
faustman has quit [Ping timeout: 260 seconds]
thone has joined #ruby-lang
<zzak> drbrain: not much has changed
headius has joined #ruby-lang
headius has quit [Client Quit]
rheddry has left #ruby-lang [#ruby-lang]
<drbrain> zzak: it's still terrible or I still cobble things together? :D
levifig has joined #ruby-lang
<zzak> both
brianpWins has quit [Quit: brianpWins]
<drbrain> come on, I've at least moved up to stitch
blazes816 has quit [Quit: blazes816]
<imperator> perhaps tatting
<imperator> or maybe crocheting
<drbrain> I'm a boy scout, tying a giant knot is one of the first things you learn
mjio has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
unsymbol has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
ryanf has joined #ruby-lang
Aiur has joined #ruby-lang
unsymbol has joined #ruby-lang
rippa has quit [Ping timeout: 260 seconds]
m3nd3s has joined #ruby-lang
tenderlove has joined #ruby-lang
fowl has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
tenderlove has quit [Remote host closed the connection]
runeb has joined #ruby-lang
unsymbol has quit [Ping timeout: 252 seconds]
runeb has quit [Ping timeout: 255 seconds]
m3nd3s has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
unsymbol has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
towski has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
chendo_ has quit [Quit: Computer has gone to sleep.]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chendo_ has joined #ruby-lang
swav has quit [Read error: Connection reset by peer]
<fowl> hallo, please to help? treetops give me error: TypeError: wrong argument type Class (expected Module)
swav has joined #ruby-lang
<fowl> treetop hates on me with great vigour
anannie has quit [Ping timeout: 264 seconds]
anannie has joined #ruby-lang
cirwin has quit [Ping timeout: 255 seconds]
swav has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
stonerfish has quit [Ping timeout: 276 seconds]
justinram has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
diegoviola has quit [Ping timeout: 264 seconds]
<rking> fowl: Can you elaborate on the conditions causing this?
<rking> Was it when you 'gem install treetop'd? was it when you used its API? Was it when you fed it an .mp3 as input?
<fowl> somewhere, a thing is evalled unhappily. It claims to expect the Module, but gets the Class (I give it the class, because these are what the examples are like)
<fowl> rking: ill put it on the gist
<rking> fowl: A gist??? Now u taek it 2 next levl.
robbyoconnor has joined #ruby-lang
<petercooper> What are you then doing to make it cry?
<petercooper> Ahh, I missed TestStr
<rking> fowl: Hehe, seriously?
<fowl> rking: this internet, all serious.
<rking> Oh OK, this is input not a DSL
<rking> fowl: So show me the code that drives this
<fowl> rking: scroll down sillykins
* rking == sillykins.
<rking> I clicked "Raw"
swarley has quit [Read error: Connection reset by peer]
<rking> fowl: That just runs straight to the binding.pry for me, then ^d'ing it goes right on through to the cozy exit(0)
<fowl> rking: omg just do pparse TestStr
swarley has joined #ruby-lang
<rking> =P
<rking> Surely there are handy ways to debug this
<rking> A generated compiler must come with tools
methods has joined #ruby-lang
<fowl> rking: i cant get to that point if its throwing exceptions
brownies has joined #ruby-lang
<brownies> hi
<brownies> i need a bit of help wrapping my head around the art of monkey-patching
<brownies> specifically, i've decided (for various reasons) that i want to monkey-patch the private method "decorate" in this file
<rking> fowl: Kk
<brownies> here is what i am trying, right now, from my APplicationController: http://pastie.org/private/bb91o8dpcmyakq0qttia
<fowl> `tt` compiles the grammar, i see it does some weird r0.extend(Type).. Type is a class, see halfway-down this page: http://thingsaaronmade.com/blog/a-quick-intro-to-writing-a-parser-using-treetop.html
rekky has joined #ruby-lang
<rking> Argh I hate it when people put line numbers in the place where you're trying to copy
<rking> Jerks
<rking> Same for "$"
<rking> *I know it's a shell command. You don't have to put "$"*
<rking> Yeah
rekky has quit [Client Quit]
<brownies> so i get the error: uninitialized constant ApplicationController::Devise::Controllers
<brownies> clearly a scoping issue, but i'm not sure how to sidestep it?
ryanf has quit [Ping timeout: 244 seconds]
<fowl> brownies: did you spell Device correctly
<brownies> yes, it's the Devise gem, see my github link above
<fowl> ah
stardiviner has joined #ruby-lang
<fowl> brownies: if you create Devise module inside ApplicationController class, its not the same module as ::Devise
<brownies> fowl: yeah, i get that, so how to do this properly?
afgeneralist has joined #ruby-lang
<brownies> do i just have to do it somewhere outside the ApplicationController class? or is there a way, within this class, to specify the right scope?
<fowl> brownies: i dunno, thats all rails voodoo, i'd ask in #rubyonrails
<rking> fowl: Did you write the rest of this freestyle or were you following another document?
<fowl> rking: freestyle. i dont get the error, i modeled it after that sexp parser that i verified worked
<fowl> by `dont get` i mean dont understand
<rking> Well, how many intermediate versions did you test?
<rking> BTW vim has a 'treetop' syntax. Pretty cool IMO
qpingu has quit [Quit: Leaving.]
<fowl> rking: are you trying to emulate sprint's tech support? are you going to tell me to restart my computer?
<zzak> how long do oranges last?
<rking> fowl: I'd prefer that you reformat it, actually.
<rking> zzak: I'd give them ~8 minutes.
<rking> (In a microwave)
<zzak> i've had these for about a month
<zzak> not sure if still fresh
<rking> fowl: You're being ultran00b on this.
Aria has joined #ruby-lang
<rking> Actually, I'm starting to think this is a troll and I took the bait.
krz has joined #ruby-lang
<rking> Just roll it back to the last version that worked
<rking> Do one that only parses typedefs, or only parses functions.
xyzodiac has quit [Quit: Computer has gone to sleep.]
<fowl> stop being a hater, the problem is its trying to extend some node with a class
<fowl> FUCK THE WORLD!
fowl has left #ruby-lang ["Leaving"]
charliesome has joined #ruby-lang
<rking> In case anyone doesn't know fowl, that's intentional drama.
<zzak> international ninnyism
rsl has quit [Quit: Computer has gone to sleep.]
shtirlic_ has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
afjudoka has joined #ruby-lang
<drbrain> zzak: if you update ruby, do the fiddle tests pass for you?
sn0wb1rd has joined #ruby-lang
<zzak> drbrain: i saw aarons commit, but havent tried it myself, been distracted by work; hoping to spend some time on it tonight tho
<drbrain> I'm seeing failures
sn0wb1rd has quit [Read error: Connection reset by peer]
<drbrain> since you don't have time I'll check out trunk again and run them
sn0wb1rd has joined #ruby-lang
<zzak> sec
<drbrain> running configure :D
<afgeneralist> Can anyone see my text?
<zzak> drbrain: its been in the back of my mind all day
<reactormonk> afgeneralist, no
<afgeneralist> dammit. this nickserv registration is driving me crazy
<afgeneralist> @reactormonk Thanks
afgeneralist is now known as shike
<zzak> drbrain: rdocing
<shike> Is the dramatic fellow by the name of 'fowl', chad fowler?
ramonmaruko has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
<rking> Haha, no
<drbrain> shike: no, chad is chad fowler
afjudoka has quit [Quit: Leaving]
<shike> Oh, okay.
<drbrain> zzak: odd
<zzak> is that what you get?
<drbrain> … but 0 tests ran
<zzak> cannot load file fiddle
<zzak> same thing with test-all
<zzak> whats the ci link again?
<zzak> nvm
<drbrain> maybe it's fixed in a subsequent commit
sn0wb1rd has quit [Quit: sn0wb1rd]
ryanlecompte has joined #ruby-lang
<zzak> does ci pass?
<drbrain> without my rdoc patch, 74 tests, 185 assertions, 0 failures, 0 errors, 0 skips
<drbrain> with my rdoc patch, failures
xyzodiac has joined #ruby-lang
Aiur has quit [Quit: Computer has gone to sleep.]
shike has quit [Ping timeout: 246 seconds]
dankest has joined #ruby-lang
<zzak> i didnt see any rdoc patches
<zzak> travis is green
slaytanic has quit [Quit: mmmb0p.]
<zzak> drbrain: did you commit to trunk?
<drbrain> I haven't committed them yet because the fiddle tests were failing
slaytanic has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
<zzak> weird
ryanf has quit [Ping timeout: 240 seconds]
<zzak> especially considering travis is green
ryanlecompte has quit [Ping timeout: 250 seconds]
<zzak> but we're both failing
swarley has quit [Ping timeout: 250 seconds]
seanstickle has quit [Quit: seanstickle]
brianpWins has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
<drbrain> it's ok, my patch is failing too
<drbrain> more rdoc bugs to fix
shtirlic_ has quit [Remote host closed the connection]
<zzak> lots of failures :)
rebelcan has quit [Ping timeout: 260 seconds]
imperator has left #ruby-lang ["Leaving"]
wmoxam has joined #ruby-lang
erikh has quit [Ping timeout: 260 seconds]
a3li has quit [Ping timeout: 260 seconds]
shike_ has joined #ruby-lang
jaymes has quit [Ping timeout: 260 seconds]
rebelcan has joined #ruby-lang
jaymes has joined #ruby-lang
nettsundere has quit [Remote host closed the connection]
a3li has joined #ruby-lang
mupilot has quit [Read error: Connection reset by peer]
hackeron_ has quit [Ping timeout: 260 seconds]
erikh has joined #ruby-lang
<drbrain> hrm, I see the failures in the logs on rubyci.org
<drbrain> btw, I don't think travis-ci runs test-all
ammar_ has quit [Ping timeout: 260 seconds]
mupilot has joined #ruby-lang
hackeron has joined #ruby-lang
hackeron has quit [Changing host]
hackeron has joined #ruby-lang
ammar has joined #ruby-lang
<zzak> i couldnt figure out rubyci.org, too verbose
ramonmaruko has joined #ruby-lang
shike_ has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
gsav has joined #ruby-lang
runeb has joined #ruby-lang
xyzodiac has joined #ruby-lang
qpingu has joined #ruby-lang
qpingu has quit [Client Quit]
ryanf has joined #ruby-lang
runeb has quit [Ping timeout: 252 seconds]
gsav has quit [Read error: Connection reset by peer]
shike has joined #ruby-lang
BigO has joined #ruby-lang
BigO has quit [Remote host closed the connection]
rekky has joined #ruby-lang
lcdhoffman has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
Glass_saga has quit [Remote host closed the connection]
towski has joined #ruby-lang
Glass_saga has joined #ruby-lang
ryanf has quit [Ping timeout: 260 seconds]
methods has joined #ruby-lang
methods is now known as Guest33710
sn0wb1rd has quit [Quit: sn0wb1rd]
towski has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby-lang
sn0wb1rd has quit [Client Quit]
Guest33710 has left #ruby-lang [#ruby-lang]
<mars777> Can you write a case stamens with a File.open in Ruby? If so how do you do that?
<zzak> mars777: what are you trying to do?
sn0wb1rd has joined #ruby-lang
ryanlecompte has joined #ruby-lang
jgomez has joined #ruby-lang
wmoxam_ has joined #ruby-lang
wmoxam has quit [Quit: leaving]
tenderlove has quit [Ping timeout: 260 seconds]
Glass_saga has quit [Remote host closed the connection]
Glass_saga has joined #ruby-lang
stardiviner has quit [Ping timeout: 255 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
ryanf has joined #ruby-lang
<B|aster> Hey I created a simple test with MiniTest and I got NameError: uninitialized constant MiniTest. I thought MiniTest was included by default with 1.9 ?
qpingu has joined #ruby-lang
<B|aster> this is what my test looks like
<rking> B|aster: No, the .rb exists, but it's not omnipresent.
<rking> B|aster: Still do require 'minitest/autorun' or whatever
<B|aster> thanks
Glass_saga has quit [Ping timeout: 252 seconds]
ATJ has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
gregmoreno has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 244 seconds]
stardiviner has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
stonerfish has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
<B|aster> just curious, is this a good channel for object design questions, or is there a better place for that?
<drbrain> B|aster: this channel is fine for that
VGoff has left #ruby-lang [#ruby-lang]
<erikh> mumble mumble opinions and assholes mumble mumble
VGoff has joined #ruby-lang
shike has quit [Remote host closed the connection]
runeb has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
wallerdev has quit [Quit: wallerdev]
sn0wb1rd has joined #ruby-lang
wallerdev has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
burgestrand has quit [Quit: Leaving.]
petercooper has quit [Ping timeout: 240 seconds]
ryanf has joined #ruby-lang
Croms has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
rohit has joined #ruby-lang
ramonmaruko has quit [Quit: Leaving.]
ramonmaruko has joined #ruby-lang
Gekz has quit [Read error: Connection reset by peer]
ramonmaruko has quit [Client Quit]
ramonmaruko has joined #ruby-lang
tenderlove has joined #ruby-lang
ryanf has quit [Ping timeout: 264 seconds]
ramonmaruko has quit [Client Quit]
Aria has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 255 seconds]
ramonmaruko has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mjio has quit []
rippa has joined #ruby-lang
mistym has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
tenderlove has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
tenderlove has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
codewrangler has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gregmoreno has joined #ruby-lang
rekky has quit [Quit: rekky]
runeb has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
ryanf has quit [Ping timeout: 255 seconds]
gregmoreno has quit [Ping timeout: 240 seconds]
areil has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
cirwin has joined #ruby-lang
BigO has joined #ruby-lang
eban1 has quit [Quit: WeeChat 0.3.8]
eban has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
eban has quit [Client Quit]
mpan has joined #ruby-lang
eban has joined #ruby-lang
chimkan_ has joined #ruby-lang
<mars777> Does anybody know how to write a case statement with a file.open?
ryanf has joined #ruby-lang
<cirwin> mars777: uh, yes — I'm not sure abot a useful one though
<cirwin> what are you trying to do?
dc5ala has joined #ruby-lang
<cirwin> mars777: hey, easiest to stay in the channel
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
<cirwin> you can just do case File.read("/path/to/file"); when /regex-to-search-for/; <do-stuff>; when /other-regex/; <do-other-stuff>; end
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<mars777> I ee
<mars777> I see
ryanf has quit [Ping timeout: 252 seconds]
sn0wb1rd has joined #ruby-lang
sn0wb1rd has quit [Client Quit]
mwjcomputing has joined #ruby-lang
ryez has joined #ruby-lang
BigO has quit [Remote host closed the connection]
mwjcomputing has quit [Ping timeout: 250 seconds]
srbaker has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
ryanf has joined #ruby-lang
<mars777> Is it possible you can write a a case statement for me I have done something like.
<mars777> myfile = File.open("temp.txt")
<mars777> myfile.each {|line| print line }
<mars777> This is a test file
<mars777> It contains some example lines
<mars777> but I think I want it as a case
<cirwin> mars777: do you want a case-statement for each line?
<mars777> Yes
<mars777> Ahh there I had to put the case under it
<mars777> I see
<mars777> Thanks
<cirwin> yeah, so each runs everything between the { } for each line
<cirwin> or between the "do end"
dc5ala has quit [Quit: Ex-Chat]
stardiviner has quit [Ping timeout: 246 seconds]
rohit has quit [Quit: Leaving]
tenderlove has joined #ruby-lang
Glass_saga has joined #ruby-lang
zmack has joined #ruby-lang
<mars777> If I was to search for another file within the case statement how would that be?
<cirwin> search in what way?
<cirwin> what are you trying to do?
zmack has quit [Remote host closed the connection]
<mars777> Search in one file, and then following the iterator in the case statement search in another file for one of the particular cases
<mars777> let me write it
<cirwin> use http://gist.github.com/ for long stuff
zmack has joined #ruby-lang
stonerfish has joined #ruby-lang
<mars777> I know thats wrong but thats kinda of the idea Im trying for
<cirwin> so you're trying to run the same case-statement against lines in the new file?
<mars777> yea
<cirwin> sounds like time for a method :)
srbaker has quit [Quit: Computer has gone to sleep.]
<cirwin> methods let you share code like that — so you can do the same thing with different inputs — they're pretty neat.
<mars777> hmm
<mars777> Thanks
<lianj> also. line is "a\n" and not "a" with file.each
brownies has left #ruby-lang [#ruby-lang]
chimkan_ has quit [Quit: chimkan_]
gjaldon has joined #ruby-lang
dr_bob has joined #ruby-lang
facest has joined #ruby-lang
faces has quit [Ping timeout: 260 seconds]
erichmenge has quit [Ping timeout: 276 seconds]
chimkan has joined #ruby-lang
erichmenge has joined #ruby-lang
gnufied has joined #ruby-lang
Gekz has joined #ruby-lang
Gekz has quit [Changing host]
Gekz has joined #ruby-lang
chimkan___ has joined #ruby-lang
rue|w has joined #ruby-lang
chimkan has quit [Ping timeout: 246 seconds]
grzywacz has joined #ruby-lang
chimkan___ is now known as chimkan
Mon_Ouie has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby-lang
chimkan___ has joined #ruby-lang
faces has joined #ruby-lang
facest has quit [Ping timeout: 260 seconds]
mars777 has quit [Quit: mars777]
judofyr has joined #ruby-lang
chimkan has quit [Ping timeout: 244 seconds]
chimkan___ is now known as chimkan
solars has joined #ruby-lang
jgomez has quit [Ping timeout: 246 seconds]
Averna has quit [Quit: Leaving.]
<yorickpeterse> Morning
<judofyr> morning!
workmad3 has quit [Ping timeout: 256 seconds]
Brainix has quit [Quit: Brainix]
chimkan has quit [Quit: chimkan]
<gnufied> moin moin
Axsuul has joined #ruby-lang
<charliesome> yorickpeterse: evening
gjaldon has quit [Quit: Leaving]
<reactormonk> ... my small webapp has ~ 10 sec startup time - what have I done
<reactormonk> what's a good way to store/load ruby objects?
<yorickpeterse> What framework?
Mon_Ouie has quit [Ping timeout: 246 seconds]
<reactormonk> yorickpeterse, none, I just load stuff from an xml db
pur-angst has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
GarethAdams has quit [Quit: Leaving...]
<yorickpeterse> "my small webapp" what are you using for the web stuff
<yorickpeterse> Just plain Rack? Sinatra? Rails? etc
<charliesome> does any know if Binding objects are lazily created by mri or not?
<drbrain> reactormonk: remove the "sleep 9"
<drbrain> charliesome: the ruby wrapper appears to be lazy
kitallis has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<reactormonk> yorickpeterse, just plain rack with some picky spliced in
<charliesome> reactormonk: ruby-prof it
<yorickpeterse> "picky spliced in"? Put the code in a pastebin and link it here
<reactormonk> charliesome, it's the fucking xml loading
<charliesome> hah
<reactormonk> that's why I'm asking about store/load
<charliesome> marshal is probably not a bad solution
<yorickpeterse> Marshal may not be compatible between different versions
<reactormonk> I put a 'Loading cards... ' above and 'Done' below. Takes most of the time
<cirwin> marshal is always a bad solution
<reactormonk> yorickpeterse, I don't care about lost data. It's only a cache
<charliesome> i'd just use marshal in that case then
<yorickpeterse> I have my doubts about it being a good idea to cache entire Ruby objects, especially if they're DOM trees
<reactormonk> not anymore
vlad_starkov has quit [Ping timeout: 252 seconds]
eb has quit [Remote host closed the connection]
swav has joined #ruby-lang
<yorickpeterse> I'd parse that and just shove it in a SQLite3 database
<yorickpeterse> That way you only have to parse things when importing data and not on every boot
<reactormonk> too complicated imo
<yorickpeterse> ...
<yorickpeterse> I think you'll spend less time doing that than optimizing this and then going back at it because it's still slow as balls
ebouchut has joined #ruby-lang
<judofyr> reactormonk: how big is that XML?
<reactormonk> judofyr, big
<reactormonk> 5MB
<judofyr> reactormonk: tried SAX-mode?
<postmodern> 5MB isn't that big
<postmodern> try 100MB of XML
<judofyr> yeah, 10 seconds sounds a bit much for 5MB
<reactormonk> judofyr, the DOM building is fast
<judofyr> reactormonk: so, what's slow? :)
<postmodern> maybe your using overly broad xpaths?
<reactormonk> postmodern, see source above
<erikh> zenspider: any chance you're around?
Axsuul has quit [Ping timeout: 240 seconds]
<postmodern> reactormonk, maybe try doing those xpaths all at once from the top-level
<postmodern> reactormonk, then zipping the results together or popping off each element
<postmodern> reactormonk, that way you only perform a couple xpaths, instead of a couple xpaths * N elements
<reactormonk> postmodern, hmm, yorickpeterse's approach might be faster - I gotta do this half a year
<postmodern> where N is large
<postmodern> yeah sounds better
<postmodern> get the data in a nice format, than work with it
apeiros_ has joined #ruby-lang
Brainix has joined #ruby-lang
vlad_starkov has joined #ruby-lang
blacktulip has joined #ruby-lang
ryanf has quit [Quit: leaving]
<reactormonk> WTF? I install stuff with gem in rvm, but ruby doesn't find the files...
<judofyr> reactormonk: what does this say: ruby -e'p Gem.path'
<judofyr> reactormonk: does it say the same as `gem env`?
<reactormonk> judofyr, just what it should - I even checked it's somewhere in lib
zenspider has quit [Ping timeout: 250 seconds]
<reactormonk> yep
<judofyr> reactormonk: try adding this first: gem "gem_name"
<reactormonk> judofyr, it's actually a dependency of a gem that's not found
<reactormonk> and bundle doesn't show it in Using...
<judofyr> ah, bundler makes things a bit more complicated
<judofyr> IIRC, it makes sure you can't require files that isn't in Gemfile.lock
<judofyr> reactormonk: check Gemfile.lock if the dependency is there
<reactormonk> nope, it's not
stardiviner has joined #ruby-lang
<reactormonk> I don't have mana-symbols installed atm
<reactormonk> ... yet gem install doesn't bail
<reactormonk> ... err, wait, now it does
<judofyr> :)
x0F has quit [Quit: Leaving]
tjadc has joined #ruby-lang
<reactormonk> but it's still not listed as dependency in Gemfile.lock
stonerfish has quit [Quit: Leaving.]
valeri_uF0 has left #ruby-lang [#ruby-lang]
valeri_ufo has joined #ruby-lang
<judofyr> reactormonk: you have it installed? try this in irb and see if the dependency is listed there: Gem::Specification.select { |x| x.name == "magic-cards" }
jgomez has joined #ruby-lang
<reactormonk> judofyr, yep, it is
<judofyr> reactormonk: then it's a bundler issue :/
<judofyr> sorry, can't help you there
<judofyr> reactormonk: you can of course manually add the dependency to your Gemfile
<reactormonk> judofyr, added the line into the Gemfile.lock, doesn't help
<judofyr> but it's kinda hackish
<reactormonk> judofyr, not overly, I use the other gem directly as well
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<reactormonk> judofyr, http://longhorn.tacc.utexas.edu:3000/ it runs :-)
JohnBat26 has joined #ruby-lang
<judofyr> reactormonk: nice!
<judofyr> reactormonk: still, I think you stumbled upon a Bundler bug :)
<reactormonk> judofyr, posted it in their channel so far
<judofyr> nice
joschi_ is now known as joschi
comboy_ has left #ruby-lang [#ruby-lang]
<reactormonk> let's bring it to github
<judofyr> heh, I feel like Bundler's github issues is a big black hole
<judofyr> 338 open issues
<judofyr> jesus
<reactormonk> 1.8k closed ones
faustman has joined #ruby-lang
qpingu has joined #ruby-lang
cirwin has quit [Ping timeout: 256 seconds]
<judofyr> reactormonk: I think this is a good way to see how well maintained an issue list is: https://github.com/carlhuda/bundler/issues?direction=asc&page=1&sort=comments&state=open
<judofyr> 3 pages of issues with no comments at all
<judofyr> that's 90 issues!
vlad_starkov has quit [Ping timeout: 246 seconds]
zz_chrismcg is now known as chrismcg
<reactormonk> roughly 1/4?
chrismcg is now known as zz_chrismcg
svyatov has quit [Quit: svyatov]
<judofyr> I just think it's weird that issues can stay there for 2 years without any comments
<lianj> there are 1.8k issues closed though
workmad3 has joined #ruby-lang
<reactormonk> lianj, backlog ;-)
<lianj> oh right
<judofyr> I think it would be better if they don't keep feature-requests-that-we-might-implement-later issues as open
qpingu has quit [Ping timeout: 240 seconds]
faustman has quit [Ping timeout: 264 seconds]
_lenny has joined #ruby-lang
rolfb has joined #ruby-lang
vlad_starkov has joined #ruby-lang
_lenny has quit [Client Quit]
thinkdevcode has quit [Remote host closed the connection]
Brainix has quit [Quit: Brainix]
qpingu has joined #ruby-lang
kain has quit [Quit: exit]
qpingu has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 260 seconds]
svyatov has joined #ruby-lang
schaerli has joined #ruby-lang
tridge_ has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
Darkspiel has joined #ruby-lang
svyatov has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
Darkspiel_ has joined #ruby-lang
Darkspiel has quit [Read error: Connection reset by peer]
shtirlic_ has joined #ruby-lang
riffraff has joined #ruby-lang
banisterfiend has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
svyatov has joined #ruby-lang
rippa has quit [Ping timeout: 245 seconds]
jayne has joined #ruby-lang
svyatov has quit [Quit: svyatov]
<judofyr> charliesome: nice attempt at solving #5634
<charliesome> it worked on the test case, it must be good
<charliesome> #5634 is a bugger thougn
<judofyr> charliesome: ko1 responded with another test case
<charliesome> yeah noticed that
<charliesome> trans is incredibly good at breaking things apparently
<judofyr> :)
<judofyr> charliesome: btw, are you interested in web frameworks, or do you only do low-level Ruby interpreter hacking these days?
<charliesome> my day job is rails, so sure
sush24_ has joined #ruby-lang
krzbrg has joined #ruby-lang
svyatov has joined #ruby-lang
krzbrg has quit [Remote host closed the connection]
krzbrg has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
<krzbrg> How does one exit system(sass --watch) in a Ruby application?
<krzbrg> (or any long-running process for that matter)
<yorickpeterse> system() is blocking so you can't really do anything after running it
<yorickpeterse> You're better off using Open3 for this kind of stuff
schaerli has quit [Remote host closed the connection]
<dkannan> krzbrg: most prob it will respond to some signals. eg. http://unicorn.bogomips.org/SIGNALS.html
shtirlic_ has quit [Remote host closed the connection]
shtirlic_ has joined #ruby-lang
<krzbrg> @yorickpeterse: good to know
<erikh> or Process.spawn
<krzbrg> @yorickpeterse: is there a way to simply pass the equivalent of ^C (ctrl+C)?
<erikh> krzbrg: you could send it a sigint with kill
dankest has quit [Quit: Leaving...]
<yorickpeterse> ^
<yorickpeterse> ^C sends SIGINT I believe
<erikh> BUT, you have to have another thread or process to do it, because system will wait until the program completes before continuing on with your program
<erikh> yep
<erikh> so you can go to your terminal and type kill -INT <pid>, or you can use Process.kill("INT", <pid_of_system_process>)
<erikh> but the real problem is stepping around system holding everything up to execute something else.
<krzbrg> ah, true
<erikh> if you're in the main thread, the process system() runs should trap the ^C when you press it
<erikh> if that's what you're asking.
m3nd3s has joined #ruby-lang
<erikh> what's the reason you want to send this to your program? is it just spending too long?
<krzbrg> I am running a Sinatra application; in one of the routes I need to be able to compile a few SASS files to CSS in a local directory.
spike|spiegel has joined #ruby-lang
<krzbrg> SASS cannot one-off compile; it watches the directory for changes. Sinatra waits for the command to finish before refreshing the page, however, because it is an ongoing process the Sinatra app will not respond until the process is manually terminated.
stardiviner has quit [Ping timeout: 246 seconds]
<krzbrg> If I background the process initially with system("$(command)&") the directory seems to compile correctly.
GarethAdams has joined #ruby-lang
<dominikh> sass can very well "one-off compile". having it watch for changes actually requires a flag
aritjd has joined #ruby-lang
<erikh> yyyeah
vlad_starkov has joined #ruby-lang
<erikh> you really don't want that problem
<erikh> probably want to look into what dominikh is suggesting.
shtirlic_ has quit [Remote host closed the connection]
spike|spiegel has quit [Client Quit]
<erikh> most of my day has been ensuring that a zone transfer happened in a test suite
sush24_ has quit [Quit: This computer has gone to sleep]
<erikh> turns out I juggled poorly and when I was depending on the zone transfer to work, the master hadn't been updated yet to accept transfer requests from the slave
<andrewvos> Hehe system in a http request nice one.
<andrewvos> system()*
<erikh> andrewvos: do you use mini_magick?
<andrewvos> erikh: Nope
<erikh> what do you use for resizing images?
<andrewvos> erikh: Not resized images before in Ruby.
<erikh> ah. well, lots of people use a combination of mini_magick and paperclip to accomplish this
<krzbrg> @dominikh: Hah! All these months using SASS and I never once ran it without the "--watch" flag as I aliased the command the first day I installed it.
<krzbrg> Thanks for pointing that out.
<dominikh> :)
spike|spiegel has joined #ruby-lang
<erikh> what's really fun is when you don't have imagemagick installed from packages or whatever and discover this by accident
<workmad3> erikh: what's even more fun is discovering this, then deciding to compile imagemagick by hand...
<erikh> yeah, you could actually use the ruby support that way
<erikh> anyhow, all I was trying to say is that it happens surprisingly often
<workmad3> :)
<workmad3> I've never actually been brave enough to attempt to build imagemagick by hand
<erikh> it's not hard
<erikh> it does take a while though
sush24_ has joined #ruby-lang
<workmad3> that's not what I've heard before :P
loreofc has joined #ruby-lang
<erikh> yeah, building software with autoconf seems to be something that's getting harder to do for the average software developer
<dominikh> burn
<workmad3> heh :) I've no trouble building software with autoconf
<erikh> I wasn't talking about anyone in particular
<workmad3> imagemagick, from what I've heard, needs all sorts of annoying dependencies to get it to build correctly
<erikh> it needs perl and a few graphics libraries
<workmad3> have to admit that I've also never cared enough to look into it in more detail though
tbuehlmann has joined #ruby-lang
<erikh> I mean, a great deal of what imagemagick does is wrap all those individual image libraries into a consistent interface
<erikh> everything else is gravy
zenspider has joined #ruby-lang
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
<erikh> if you want things like xpm and probably ttf support though, you're probably gonna need an X11 runtime
<erikh> that's when it gets gory
<krzbrg> If I wanted to get a code review on a relatively small ruby web application (~500 lines), where should I look?
vlad_starkov has quit [Ping timeout: 255 seconds]
<andrewvos> krzbrg: I'm waiting for some caching to expire. Is it on github?
<erikh> andrewvos: dude I emailed you a week ago
<erikh> I'mma cry now
<krzbrg> It can be.
<andrewvos> erikh: Aww shit man. Will take a look now sowwy :(
vlad_starkov has joined #ruby-lang
schaerli has joined #ruby-lang
runeb has joined #ruby-lang
runeb has quit [Remote host closed the connection]
aritjd has quit [Quit: Page closed]
runeb has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 246 seconds]
Darkspiel_ has quit [Quit: Leaving]
svyatov has quit [Quit: svyatov]
krz has quit [Quit: krz]
kurko_ has joined #ruby-lang
madish has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
kurko_ has quit [Ping timeout: 264 seconds]
replore_ has joined #ruby-lang
kurko_ has joined #ruby-lang
Croms has quit [Quit: Croms]
BlaXpirit has joined #ruby-lang
dc5ala has joined #ruby-lang
faustman has joined #ruby-lang
svyatov has joined #ruby-lang
hcy has joined #ruby-lang
hcy has left #ruby-lang [#ruby-lang]
sush24_ has joined #ruby-lang
runeb has quit [Remote host closed the connection]
workmad3_ has joined #ruby-lang
Ashkin has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
sush24_ has quit [Quit: This computer has gone to sleep]
burgestrand has joined #ruby-lang
krzbrg has quit [Remote host closed the connection]
tridge_ has quit [Remote host closed the connection]
sush24_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
sush24_ has quit [Client Quit]
workmad3_ is now known as workmad3
carloslopes has joined #ruby-lang
banisterfiend has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
imperator has joined #ruby-lang
xyzodiac has joined #ruby-lang
loreofc has quit []
tjadc has quit [Quit: No Ping reply in 180 seconds.]
tjadc has joined #ruby-lang
spike|spiegel has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Nisstyre has quit [Ping timeout: 240 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
stardiviner has joined #ruby-lang
Nisstyre has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
gnufied1 has joined #ruby-lang
gnufied1 has quit [Client Quit]
gnufied1 has joined #ruby-lang
tsov has joined #ruby-lang
gnufied has quit [Ping timeout: 264 seconds]
grzywacz has quit [Ping timeout: 246 seconds]
LanceHaig has left #ruby-lang ["Leaving"]
lufu has joined #ruby-lang
krz has joined #ruby-lang
imperator2 has joined #ruby-lang
<apeiros_> gah
* apeiros_ forgot everything about writing a ruby C extension :-S
rekky has joined #ruby-lang
banisterfiend has joined #ruby-lang
spectra has quit [Read error: Operation timed out]
rekky has quit [Client Quit]
erichmenge has quit [Quit: Arrivederci!]
<rolfb> apeiros_: congratulations :)
erichmenge has joined #ruby-lang
<apeiros_> oh, seems I'm wrong. I only forgot *almost* everything.
<apeiros_> rolfb: that's NOT a reason to congratulate! >:-(
spectra has joined #ruby-lang
<rolfb> apeiros_: oh, sorry .. i though we were all about not writing ruby c extensions and using jruby
<apeiros_> o0
<rolfb> :P
<apeiros_> no, no, we're not.
kurko_ has quit [Ping timeout: 256 seconds]
lufu has quit [Remote host closed the connection]
<rolfb> apeiros_: oh, ok :)
<apeiros_> jruby is nice & dandy, but there's a place for C
banisterfiend has quit [Remote host closed the connection]
<rolfb> right after A and B
<rolfb> and before D
<apeiros_> (though I wished somebody would replace C with a *sane* low level language, and no, it isn't go)
kurko_ has joined #ruby-lang
<judofyr> apieros: D?
<judofyr> Go is more of a Java replacement IMO
<apeiros_> judofry: looked promising
<judofyr> but?
carloslopes has quit [Remote host closed the connection]
<apeiros_> but last time I tried the tools were… hm… let's say: meh
<judofyr> I need to implement nick mutation in my tab-completion
<apeiros_> then again, that's like 4y ago
runeb has joined #ruby-lang
<apeiros_> judofry: right. it's annoying to tab-complete, backspace, re-type the fixed rest of the nick…
<judofyr> heh, I write apieros completely natural now
<apeiros_> btw., still that nice huge pink highlight for judofry?
<judofyr> orange
<judofyr> yes
<apeiros_> ^^
<judofyr> and notification
<apeiros_> lol
<apeiros_> so I know how to get your attention :D
<judofyr> well, it's same way if you write "judofyr" ;)
carloslopes has joined #ruby-lang
<telemachus> That's pretty big. And pink. Also, big.
faustman has quit [Ping timeout: 248 seconds]
<judofyr> it's not pink :(
<judofyr> god, I hate this code
* telemachus admits I am colorblind, but it looks pinkish to me.
runeb has quit [Ping timeout: 244 seconds]
<charliesome> holy shit the indentation in the date tests is the same as mri's c source
anannie has quit [Ping timeout: 264 seconds]
<erikh> oh, the honey badger whitespace?
anannie has joined #ruby-lang
<charliesome> is that the name for it?
<apeiros_> charliesome: you mean tab & space mixed?
<charliesome> yep
<telemachus> tabs, spaces all together?
<erikh> tabs, spaces, they just don't care, they just don't give a fuck
<erikh> unless you try and fix it
rippa has joined #ruby-lang
<erikh> and send them a diff
<apeiros_> by all the indentation fights
<erikh> then they give a fuck.
<apeiros_> I think everybody can agree that *this* is the most horrible variant of them all
<telemachus> apeiros_: Oddly, no.
<charliesome> but but but you save 7 bytes at a time!
<charliesome> " " vs. "\t"
<charliesome> there's a clear winner guys
<telemachus> When this comes up on Reddit/HN I always see a small but vocal crowd who swears it's the best
<telemachus> tab for indentation and spaces for alignment (they say)
svyatov has quit [Quit: svyatov]
<telemachus> I find it foul, but...
<erikh> the best solution for a project maintained by a team is a standard
<apeiros_> telemachus: we live in the wrong time. a few hundred years back they'd just send them off to another continent…
<telemachus> erikh: yes
<erikh> who cares what's in the standard. just a standard.
<telemachus> rational thought is rational
<erikh> sorry
<telemachus> erikh wins one interweb
<erikh> getting in a lot of trouble for those lately
<erikh> I'll stop now
<charliesome> if i ever design a language that takes off, the presence of a tab character is going to cause a parser warning
<telemachus> erikh: What for being rational?
<erikh> charliesome: oh, you should probably use python, i think it has that feature already
<charliesome> erikh: python complains if you mix tabs and spaces
<apeiros_> erikh: while I generally agree, there's some things I'd not accept. mixed indentation actually being one.
<charliesome> if you stick to one or the other it's quiet
<erikh> apeiros_: a standard implies that there is no 'mixed'
<charliesome> warn "USE SPACES DAMMIT" if src.include? "\t"
<apeiros_> I wouldn't mind tabs, spaces or what width (as long as it's <= 4 spaces)
<erikh> and has tools to enforce it.
<apeiros_> erikh: hm? not a mixed standard. a standard of mixed tabs & spaces.
<telemachus> apeiros_: I use 8 for C actually. Keeps my nesting low.
<erikh> charliesome: not that easy: echo "^V^I"
<erikh> apeiros_: right, i can't see anyone actually proposing that as a standard.
<telemachus> (also, somehow in C it helps me to "see" things better)
<apeiros_> erikh: but it's what core ruby does…
<erikh> apeiros_: no, it has no standard. that's different.
<apeiros_> at certain points it's very consistently indented, but with tabs & spaces mixed.
<telemachus> apeiros_: But not by standard, just by kind of default wtf-ism.
<telemachus> This came up on ruby-core at some point about a year or two ago
<apeiros_> erikh: na, it's 1 person standards… at least that's how it seemed to me. (i.e. a couple of people using that "standard"), it's not a project wide standard, yes. and it shouldn't be IMO.
<telemachus> steveklabnik started a mini-movement and for a while people were cleaning up files
<erikh> eh? why not?
<telemachus> Not sure how far it went
<erikh> eh, throw that shit in a pre-commit hook and call it a day
<apeiros_> mhm, stuff like that could be easily cleaned automatically.
<apeiros_> or semi-automatically if you don't trust full automatism.
<judofyr> I think `go fmt` is a great idea
<erikh> there are tools for most non-ruby languages that do what go fmt does
replore_ has quit [Remote host closed the connection]
<judofyr> yeah, but everyone uses `go fmt`
mytrile has joined #ruby-lang
<judofyr> perltidy has a trillion options and everyone tweaks it a bit
<erikh> eh
<erikh> I like options
<erikh> go fmt has options too, IIRC.
<judofyr> but the point of go fmt is that all code should look alike :)
<apeiros_> mhm, I pondered a "use lazy" pragma for my own language. only if you used that you could use whatever formatting you wanted. otherwise you were forced to comply to a certain rules.
<apeiros_> +set of
<judofyr> erikh: only three options: one for stripping comments, two for tab settings
xyzodiac has joined #ruby-lang
<erikh> yeah, I don't like that at all. even with perltidy I've found the defaults to be absolutely frustrating in spots.
<apeiros_> i.e., the idea is, that you can format however you want, but in order to do that you have to "stigmatize" the code
<erikh> the problem with "one size fits all" tools like this is that they indirectly imply how your code should be designed
<erikh> as the formatted code will look like shit if you do anything outside of the little box the formatter expects you to fit in
<apeiros_> I agree that not everything should be standardized
<apeiros_> but it's good to have a couple of rules
<apeiros_> I'd be actually interested in what cases I'd agree that compulsive formatting is bad (I can totally imagine that such cases exist)
sepp2k has joined #ruby-lang
<erikh> I mean, a pre-commit hook on the r-l svn that was grep -qE "^ *\t" would end this problem
Uranio has joined #ruby-lang
<erikh> for pretty much everything that was code
leopard_me has joined #ruby-lang
<erikh> I'm probably simplifying it a bit, but it's not much more complicated than that after you exclude files that shouldn't be considered.
<darix> apeiros_: you can still send them to another country to punish them. US. some military dictatorship in africa. i am sure we can find unwelcoming places for such people.
<erikh> invert it if you want to require tabs
<erikh> anyhow
<apeiros_> ^^
<apeiros_> alas, I can't send them :(
<apeiros_> have to wait until I assume world dictatorship.
<darix> all it costs you is a one way ticket:p
<apeiros_> but I'll work on that plan at five again.
<darix> and making sure they cant get a ticket back home :)
xyzodiac has quit [Ping timeout: 264 seconds]
pab|o has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
kitallis has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
rsl has joined #ruby-lang
flexd has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 256 seconds]
xyzodiac has quit [Ping timeout: 264 seconds]
pur-angst has quit [Read error: Connection reset by peer]
aetcore has joined #ruby-lang
xyzodiac has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tjadc has quit [Ping timeout: 246 seconds]
mistym has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
vlad_starkov has joined #ruby-lang
stonerfish has joined #ruby-lang
davidbalber|away is now known as davidbalbert
bstrie has joined #ruby-lang
stefff has joined #ruby-lang
imajes has quit [Ping timeout: 246 seconds]
mpan has quit [Quit: Leaving]
imajes has joined #ruby-lang
outoftime has joined #ruby-lang
m3nd3s has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
rolfb has quit [Quit: Leaving...]
shtirlic_ has joined #ruby-lang
pab|o has left #ruby-lang [#ruby-lang]
rippa has quit [Ping timeout: 248 seconds]
LanceHaig has joined #ruby-lang
sailias has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
tonni_ has quit [Remote host closed the connection]
anannie has quit [Ping timeout: 248 seconds]
anannie has joined #ruby-lang
pab|o has joined #ruby-lang
nick_h_ has quit [Ping timeout: 264 seconds]
nick_h has joined #ruby-lang
<imperator2> apeiros_, why not FFI?
<apeiros_> imperator2: because I struggle already enough without FFI :)
<apeiros_> but yeah, would actually be a nice exercise
<imperator2> i forced myself to learn it
<imperator2> plus, it works with jruby
<apeiros_> I know, but since this ext is for use with gosu, that's not quite useful :)
<erikh> FFI is great when you need the C preprocessor
<erikh> absolutely awesome
<erikh> and we all know that no C libraries use the C preprocessor
<imperator2> apeiros_, what's gosu?
<apeiros_> game lib
<imperator2> erikh, oh, believe me, it can be a pain
* imperator2 is converting his win32-api stuff to FFI, so it wasn't like i was using the C preprocessor anyway :)
<erikh> haha
<erikh> well, I'm pretty excited
runeb has joined #ruby-lang
<erikh> tonight I wrote integration tests
<imperator2> it did fall down on OSX with sys-proctable, though
<erikh> imperator2: did you ever find a workaround for mach stupidity?
<imperator2> it degenerated into a rat hole of deeply nested structs and i lost the will to live
m3nd3s has quit [Remote host closed the connection]
<erikh> imperator2: it all works great if you suid the ruby script
<erikh> :P
vlad_starkov has quit [Remote host closed the connection]
<erikh> but yeah, so integration tests
enebo has joined #ruby-lang
<erikh> I wrote a test that builds a master/slave redis pair and ensures they're talking to each other (by writing to the master and reading from the slave)
<erikh> another one that tests BIND zone transfers are setup properly
<erikh> and another one that ensures my syslog cluster gets log messages from client machines
<erikh> the machines all build on my box and are provisioned with vagrant and chef
<erikh> took around 4 hours to write the tests; the system that powers it took about a month to write
retro|cz has quit [Ping timeout: 244 seconds]
<erikh> knowing months ahead of time your shit won't break when it's deployed to production? priceless.
<imperator2> apeiros_, if there's a shared object, jruby should be able to use it
<imperator2> erikh, nice
mccraig_ has left #ruby-lang [#ruby-lang]
stonerfish has quit [Quit: Leaving.]
mccraig has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
<imperator2> of course, i'm fighting with ffi now....jiinxed myself
<erikh> imperator2: yeah, I'm pretty excited.
tonni has joined #ruby-lang
lcdhoffman has joined #ruby-lang
runeb has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
<apeiros_> hm, is there an equivalent to `return enum_for(__method__, *args) unless block_given?` for C-ruby?
mars777 has joined #ruby-lang
xyzodiac has joined #ruby-lang
runeb has joined #ruby-lang
mistym has joined #ruby-lang
rekky has joined #ruby-lang
runeb has quit [Remote host closed the connection]
<banisterfiend> apeiros_: you mean without resorting to rb_funcall? :P
stardiviner has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<apeiros_> banisterfiend: hm, rb_funcall would be a way. I wouldn't know how to do __method__ literally, but could hardcode the name
ryanlecompte has quit [Remote host closed the connection]
<banisterfiend> rb_funcall(self, rb_intern("__method__"), 0); would probably do the trick
<apeiros_> oh great, rb_yield_values is not documented in README.EXT
<banisterfiend> apeiros_: what are u working on
<apeiros_> and rb_yield only accepts a single value
<apeiros_> banisterfiend: small set of classes for gosu interface work
Uranio has quit [Quit: WeeChat 0.3.8]
shtirlic_ has quit [Remote host closed the connection]
<apeiros_> and since some of the classes are rather simple, I thought it'd be a good exercise to do them in C
gsav has joined #ruby-lang
gsav has quit [Client Quit]
<banisterfiend> apeiros_: cool
<apeiros_> ah, works. <3 grep
<banisterfiend> apeiros_: you dont use ack ?
<erikh> I use perl -ne 'print if /regex/
vlad_starkov has joined #ruby-lang
<judofyr> isn't the_silver_searcher the new cool thing?
chimkan has joined #ruby-lang
<apeiros_> banisterfiend: na, too lazy to learn it.
<apeiros_> I probably should
<apeiros_> but… not enough pain yet :)
<erikh> there's not much to learn
<banisterfiend> apeiros_: there's nothing to learn, you just type "ack blah"
<erikh> most of the args are the same you'd pass to grep
<erikh> unless you have files you want to search that aren't in it's visibility list
<erikh> then you have to use -a
<erikh> that's like, 100% of what you need to know
<apeiros_> ^^
<apeiros_> not quite
<apeiros_> brew install ack? :D
<banisterfiend> apeiros_: should work
wyhaines has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<erikh> yeah, or cpan App::Ack if you're a perl guy
<judofyr> I think you mean `cpanm App::Ack`
<judofyr> <3 cpanm
gnufied1 has quit [Quit: Leaving.]
* imperator2 has used ack for a while
BigO has joined #ruby-lang
<imperator2> got tired of grep -r not actually working
davidbalbert is now known as davidbalber|away
gsav has joined #ruby-lang
mistym is now known as mistym_meeting
robbyoconnor has joined #ruby-lang
ulisescab has joined #ruby-lang
methods has joined #ruby-lang
<imperator2> blarg, why is my struct not getting filled properly? grr...
schaerli has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
<apeiros_> your in-struct-ion was wrong…
davidbalber|away is now known as davidbalbert
<apeiros_> oh yay, recursive include is possible in C :D
<apeiros_> +infinite
<apeiros_> is there a way to suppress an expected warning?
Nisstyre has quit [Ping timeout: 260 seconds]
<workmad3> apeiros_: circular includes? you evil person :P
ryanlecompte has joined #ruby-lang
<apeiros_> workmad3: accident
<methods> i've seen it used for obfusticated contests
xyzodiac has quit [Quit: Computer has gone to sleep.]
<judofyr> I hate that Struct defines #hash and #eql?
<imperator2> apeiros_, what's the warning?
<imperator2> judofyr, why?
R_Macy has joined #ruby-lang
<apeiros_> unused variable (ruby passes in the VALUE of the class in the allocator, but I don't make any use of it)
<judofyr> imperator2: maybe I just need to stop using Struct as a simple way to do attr_accessor + #initialize
xyzodiac has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
<judofyr> imperator2: nah, just had some weird bugs where I expect object identity, but Struct uses value identity
aetcore has quit [Remote host closed the connection]
<imperator2> are #eql and #== the same for Struct? maybe one does object identity, i'd have to check
<banisterfiend> apeiros_: you should use include guards
<apeiros_> banisterfiend: hm? I just accidentally copied an include over. the whole thing is too small to bother with any automatisms IMO.
<imperator2> apeiros_, shouldn't cause a warning, can you pastie the snippet?
rippa has joined #ruby-lang
rue|w has quit [Ping timeout: 260 seconds]
sush24_ has joined #ruby-lang
bradland has joined #ruby-lang
<apeiros_> line 39 is line 15 in the pastie
ryanlecompte has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
mupilot has quit [Quit: mupilot]
ottbot has quit [Ping timeout: 260 seconds]
<judofyr> imperator2: Two structures are equal if they are the same object, or if all their fields are equal (using <code>eql?</code>).
<judofyr> imperator2: that is #eql?
<imperator2> judofyr, right, but what about #== ?
<judofyr> imperator2: same, but uses #== for the values
<imperator2> apeiros_, no need to assign the return value; i don't think i ever have for a C ext
|Vargas| has quit [Quit: ...]
<imperator2> in other news, it looks like they removed the "extending Ruby" section from the latest Pickaxe :(
mpan has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
chimkan has quit [Quit: chimkan]
isale-eko has joined #ruby-lang
ottbot has joined #ruby-lang
<apeiros_> imperator2: hu? what do you mean by "assign the return value"?
<imperator2> oh, i looked at the wrong thing
chimkan_ has joined #ruby-lang
<imperator2> do you actually need that parameter?
<imperator2> guess i'm not sure what you're trying to do if you're not making a standard constructor
<imperator2> btw, recommend one class per file, use rake-compiler to tie it all together
<apeiros_> imperator2: no, I don't need it. but ruby passes it in
<apeiros_> it's the alloc function:
<apeiros_> rb_define_alloc_func(rb_cRectangle, rb_shape_rect__allocate);
<apeiros_> arrr, wrong line
<apeiros_> same thing, just for rb_cPoint :)
<apeiros_> imperator2: it *is* a standard allocator
* imperator2 has to look at one of his C extensions again, it's been so long
<imperator2> doesn't look right, lemme check
<apeiros_> and by the standard, rb alloc passes in the class as first (and only) arg
<apeiros_> but I don't need it
<imperator2> yeah, i don't remember doing things that way, hold on
<apeiros_> afaik you need define_alloc to have YourClass.allocate working
runeb has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<imperator2> oh, i see - i use Data_Wrap_Struct(class, ...)
<imperator2> actually "klass" to avoid any C++ issues ;)
<apeiros_> :)
<apeiros_> trying with _class
<apeiros_> maybe it's as clever as some IDEs
havenn has joined #ruby-lang
mistym_meeting is now known as mistym
Uranio has joined #ruby-lang
mupilot has joined #ruby-lang
runeb has quit [Ping timeout: 245 seconds]
<apeiros_> meh, no, it isn't - shape_ext.c:38: warning: unused parameter ‘_class’
<imperator2> hm, been a while, wondering if rb_cPoint is class
anachronistic has joined #ruby-lang
<imperator2> http://pastie.org/5443268 for example of how I make my allocators
judofyr has quit [Remote host closed the connection]
<apeiros_> rb_cPoint is of type VALUE, and yes, it's a class
<apeiros_> following ruby-core style there. but I don't follow it everywhere.
<apeiros_> I'll github the full code in a few days anyway, if you want I can do it today
agile has quit [Ping timeout: 240 seconds]
mytrile has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
agile has joined #ruby-lang
<apeiros_> heh, from an optimization point of view, seems really premature… the pure ruby-struct version is about as fast as the C version…
<apeiros_> oh… no wonder. forgot to change the module in the test… *embarassed*
dankest has joined #ruby-lang
<apeiros_> ok, 5x faster.
<apeiros_> imperator2: gotta catch the train, will be back online in ~40min
faustman has joined #ruby-lang
bradland has quit [Quit: bradland]
<imperator2> btw, seems there's already a gosu lib
GarethAdams has quit [Quit: Leaving...]
brianpWins has quit [Quit: brianpWins]
<apeiros_> imperator2: yes, the one I'm using ;-)
<apeiros_> I said I intend to use what I write *with* gosu. I'm not writing the gosu lib
<apeiros_> jlnr is the author (or maintainer?) of gosu
mpan has quit [Ping timeout: 265 seconds]
* apeiros_ off now
apeiros_ has quit [Remote host closed the connection]
mupilot_ has joined #ruby-lang
mupilot has quit [Ping timeout: 246 seconds]
mupilot_ is now known as mupilot
chimkan_ has quit [Quit: chimkan_]
agarcia has quit [Quit: Konversation terminated!]
jbsan has quit [Ping timeout: 248 seconds]
chimkan has joined #ruby-lang
mlangenberg has joined #ruby-lang
replore_ has joined #ruby-lang
<mlangenberg> Hi all, I was learn a refactoring trick from someone. See I was looking at the following class: https://gist.github.com/37eada14976468cf77a3 and I noticed a switch statement around 'type'.
<mlangenberg> That always rings an alarm bell.
jbsan has joined #ruby-lang
<mlangenberg> Now I could do subclassing here, but what about extending an object with a specific module?
rekky has quit [Quit: rekky]
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
CoverSlide has quit [Ping timeout: 252 seconds]
blazes816 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<mlangenberg> i.e. what about this? https://gist.github.com/37eada14976468cf77a3
rekky has joined #ruby-lang
CoverSlide has joined #ruby-lang
xyzodiac has joined #ruby-lang
ryanlecompte has joined #ruby-lang
<mlangenberg> hm.. okay, I'm probably crazy.
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
apeiros_ has joined #ruby-lang
krz has quit [Quit: krz]
dr_bob has quit [Quit: Leaving.]
havenn has quit [Ping timeout: 260 seconds]
gregmoreno has joined #ruby-lang
krohrbaugh has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
justinram has joined #ruby-lang
chimkan has quit [Quit: chimkan]
<andrewvos> mlangenberg: Dude those links you posted are exactly the same.
thatdutchguy has joined #ruby-lang
<andrewvos> Also, that class is too small to refactor into three classes. This isn't Java.
havenn has joined #ruby-lang
replore_ has quit [Remote host closed the connection]
replore has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
<rking> andrewvos: Might I (semi-respectfully) step in between you and mlangenberg and disregard what you just said?
<rking> if-statements are a smell in OO
<rking> Refactoring conditional to polymorphism is usually a win
<rking> And it's not like you get billed by the class or anything.
<andrewvos> mlangenberg: The first link is less code?
<andrewvos> rking: You may not :)
xyzodiac has quit [Quit: Computer has gone to sleep.]
<mlangenberg> A refactoring does not always end up with less code.
<andrewvos> It should in 99% of cases?
<rking> mlangenberg: That other one doesn't take it far enough, IMO. The 'elsif recipient == ' stuff is a smell of the same thing.
ulisescab has quit [Ping timeout: 260 seconds]
<mlangenberg> totally right rking, unfortunately it is mapped directly from a database row (ActiveRecord)
<rking> I wouldn't resort to any fancy #extend stuff, either.
<rking> Just instantiate a different object.
<andrewvos> Honestly after actually looking at the class, I don't understand why so much functionality is inside one class and I would go with SRP.
<andrewvos> rking: 1, me: 0
replore has quit [Ping timeout: 260 seconds]
<andrewvos> Not that we're keeping score
<rking> andrewvos: Is that the total score, for all time so far?
<mlangenberg> That's why I am also exploring alternatives for subclassing. ActiveRecord does the instantiation, I can't decide to instantiate a subclass. (and I hate STI).
<andrewvos> rking: It gets reset every day.
<rking> OK
<rking> I'll just try to freeze it at that for the day, so I can lock away the win.
<andrewvos> mlangenberg: I also hate Sexually Transmitted Infections.
<andrewvos> rking: Your "I won on the internet" medal is in the post.
<andrewvos> OH SHIT it's home time. xxx
<mlangenberg> Haha, we call that a SOA in Dutch.
<rking> mlangenberg: Sounds cool then.
<mlangenberg> sure is Service Oriented
Uranio has quit [Ping timeout: 245 seconds]
headius has joined #ruby-lang
<rking> I mean the #extend idea.
<rking> ActiveRecord imposes some constraints
Uranio has joined #ruby-lang
<rking> (Though I'd also consider other options, such as delegating to an ivar that polymorphs from there.)
<mlangenberg> How could I use an ivar? What would be setting the ivar?
brianpWins has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
Uranio has quit [Client Quit]
tenderlove has joined #ruby-lang
Aiur has joined #ruby-lang
xyzodiac has joined #ruby-lang
__butch__ has joined #ruby-lang
<apeiros_> is there a shorter way to say (in C): `return (expression) ? Qtrue : Qfalse;` ?
banisterfiend has joined #ruby-lang
mrsolo has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
<rking> apeiros_: Hrm, I wonder if there's a macro for that.
<apeiros_> hm, true, instead reinventing the wheel I should probably just comb ruby.h
<zzak> i wrote a c extension
<rking> apeiros_: f_boolcast()
<zzak> it warns you when you require it
<apeiros_> rking: that's a function, not a macro?
<apeiros_> wtf? where's ruby.h? o0 (rvm)
<rking> apeiros_: Well, it's just defined in some random .c's, actually. But it is a macro
<mlangenberg> rking: thx, I bet I can get rid of a lot of 'if'-statement.s
<rking> ext/dl/dl.h also defines INT2BOOL(x) ((x)?Qtrue:Qfalse
R_Macy has quit [Ping timeout: 276 seconds]
<apeiros_> rking: oh, mkay
<apeiros_> I think I'll stick with my RBOOL
<apeiros_> which has the same def :)
<rking> Hehe, yeah. Doesn't seem to have a strong custom already.
swav has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
rsl has quit [Quit: Computer has gone to sleep.]
swav has joined #ruby-lang
dankest has quit [Quit: Leaving...]
R_Macy has joined #ruby-lang
swav has quit [Remote host closed the connection]
jgomez has quit [Ping timeout: 246 seconds]
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
robbyoconnor has quit [Quit: Konversation terminated!]
gix has quit [Ping timeout: 260 seconds]
Aiur has quit [Quit: Computer has gone to sleep.]
rsl has joined #ruby-lang
R_Macy has quit [Ping timeout: 276 seconds]
zmack has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
gix has joined #ruby-lang
kain has joined #ruby-lang
fushi has joined #ruby-lang
riffraff has quit [Quit: Leaving]
chimkan has joined #ruby-lang
Aiur has joined #ruby-lang
towski has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
<zzak> drbrain: weird, was there a bug in rdoc 3.12 with parsing rb_define_singleton_method?
robbyoconnor has joined #ruby-lang
mrsolo has joined #ruby-lang
areil has quit [Remote host closed the connection]
quatauta has joined #ruby-lang
mpan has joined #ruby-lang
jbsan has quit [Ping timeout: 264 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
isale-eko has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
Nisstyre-laptop has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
dankest has joined #ruby-lang
swav has joined #ruby-lang
rekky has quit [Quit: rekky]
quatauta has quit [Quit: Verlassend]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
lcdhoffman has joined #ruby-lang
rekky has joined #ruby-lang
havenn_ has joined #ruby-lang
havenn has quit [Read error: Operation timed out]
Nisstyre-laptop has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving.]
lcdhoffman has quit [Quit: lcdhoffman]
jbsan has joined #ruby-lang
mwjcomputing has left #ruby-lang ["Leaving"]
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
rekky has quit [Quit: rekky]
xyzodiac has quit [Quit: Computer has gone to sleep.]
havenn_ has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has joined #ruby-lang
elux has joined #ruby-lang
zigidias_ has quit [Quit: cookies!]
jgomez has joined #ruby-lang
rekky has joined #ruby-lang
thinkdevcode has joined #ruby-lang
havenn has joined #ruby-lang
mlangenberg has quit [Quit: mlangenberg]
enebo has quit [Quit: enebo]
davidbalber|away is now known as davidbalbert
runeb has joined #ruby-lang
slyphon has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
swav has quit [Remote host closed the connection]
imperator2 has quit [Quit: Leaving]
dankest has quit [Remote host closed the connection]
dankest has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
apeiros_ has quit [Remote host closed the connection]
eydaimon has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby-lang
mistym is now known as mistym_lunch
apeiros has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
apeiros_ has quit [Ping timeout: 252 seconds]
xyzodiac has joined #ruby-lang
fushi has quit [Quit: fushi]
mrsolo has joined #ruby-lang
bhus has joined #ruby-lang
seydar has joined #ruby-lang
benanne has joined #ruby-lang
rekky has quit [Quit: rekky]
pab|o has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has quit [Ping timeout: 265 seconds]
pab|o has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
bluepojo has joined #ruby-lang
dankest is now known as dankest|away
runeb has quit [Remote host closed the connection]
havenn has quit [Read error: Connection reset by peer]
mupilot has quit [Remote host closed the connection]
havenn has joined #ruby-lang
mupilot has joined #ruby-lang
dankest|away is now known as dankest
IPGlider has joined #ruby-lang
emptyflask has joined #ruby-lang
retro|cz has joined #ruby-lang
Dan- has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
havenn has quit [Remote host closed the connection]
countdigi has quit [Quit: Lost terminal]
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
nazty has joined #ruby-lang
dankest has quit [Ping timeout: 264 seconds]
runeb has joined #ruby-lang
retro|cz has quit [Ping timeout: 244 seconds]
mitchty_ is now known as mitchty
robbyoconnor has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby-lang
runeb has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
IPGlider has quit []
<foucist> dumb question.. how do you take an array like ["foo","bar"] and use it for nested keys like hash["foo"]["bar"] for any size of array?
rolfb has joined #ruby-lang
mistym has quit [Remote host closed the connection]
havenn has joined #ruby-lang
mpan has quit [Ping timeout: 252 seconds]
<methods> > h = {}; [:a,:b].each_slice(2) { |a,b| h[a]=b }; h
<methods> => {:a=>:b}
<methods> perhaps there is a nicer way though something like inject ?
<crankharder> ?> [:foo, :bar].inject({:foo => {:bar => 1}}){|h,v| h[v]}
<crankharder> => 1
xyzodiac has joined #ruby-lang
<crankharder> everyone stop and learn inject. now.
<whitequark> crankharder: don't use inject for that. ever again.
<whitequark> #each_with_object.
<whitequark> and inject (also collect) is named incorrectly. that should have been #reduce and #map, because that's what they do.
<havenn> imho #map should have been named #each!
<whitequark> each time you use #inject instead of #each_with_object, a kitten dies.
<whitequark> havenn: incorrect
<whitequark> #bang! methods modify the object they're applied to
<whitequark> #map doesn't
<manveru> map! does :)
<manveru> anw, what's wrong with inject in this case?
<banisterfiend> whitequark: how hard would it be to hack the ruby interpreter so it can write out snapshots of the running ruby program to disk for restoring later on (a la smalltalk images) ?
<manveru> i asked matz about that, he said it's not easy
<banisterfiend> ah too bad, even R can do that, but i guess it was a design decision from the beginning
qpingu has joined #ruby-lang
bhus has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
<methods> whitequark: actually i use to think that about bang methods too but then always noticed that some were actually not modifying the object and then later in a book i read a guy explain that really bang should only be used when you have something with a similar name like x vs x! where x! just means like a warning sign that you should think carefully when using it
<crankharder> you should think carefully when programming
apeiros_ has joined #ruby-lang
<methods> then use c :p
<methods> I'm jk
emptyflask has quit [Remote host closed the connection]
<anannie> In ruby is there a way to return more than one value from a function in real-time?
<manveru> hehe
<whitequark> banisterfiend: quite hard, but the interpreter I'm writing right now supports that as a design feature! :)
<manveru> anannie: return a, b
<whitequark> methods: yeah you're correct
<manveru> nothing in ruby is real-time though :P
<anannie> manveru: What if I am scanning a game board and I want to return the value of the array again and again?
<methods> why have each_with_object and inject ? just seems that inject also supports passing a symbol
sailias has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby-lang
<manveru> methods: inject uses the return value of the block for the next run, each_with_object always uses the same object
<anannie> manveru: I have a specific function @line for that, what I want is that it should read through the array, and hand it over line by line to another outside function which does the processing per line and waits for the next line
zigidias has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
<manveru> anannie: and what's the problem?
<anannie> manveru: I'm trying to make a game of life program
<methods> ah
<anannie> It would definitely be easier to push the entire array out just like that, but I want to struggle with this a bit and figure out the language properly in the process
krohrbaugh has joined #ruby-lang
<whitequark> methods: you can pass a symbol with &:foo
<manveru> well, multiple return values in ruby are just arrays
<whitequark> actually the fact that reduce accepts a symbol is an artefact from the time when that syntax was not available/was very slow
<whitequark> got to go
atmosx has joined #ruby-lang
schaerli has joined #ruby-lang
<anannie> Can I not define something like the IO's read functionality in Ruby?
methods has left #ruby-lang [#ruby-lang]
<anannie> Handing over the game board line by line would be very useful
<manveru> i'm not sure i understand what you're asking
<manveru> you want to yield each line?
schaerli has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
tenderlove has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
<anannie> Sorry about that manveru, something happened in the real world
carloslopes has quit [Remote host closed the connection]
havenn has joined #ruby-lang
carloslopes has joined #ruby-lang
rippa has quit [Ping timeout: 250 seconds]
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
<anannie> manveru: yield executes the entire block if I'm not mistaken, I just want to read an array line by line within an object like a file is read and then pass data on one line at a time, wait for execution, pass the next line and so on
<seydar> anannie: can you do some pseudocode for what you'd like to have happen?
schaerli has joined #ruby-lang
havenn has quit [Ping timeout: 245 seconds]
havenn has joined #ruby-lang
stonerfish has joined #ruby-lang
emptyflask has joined #ruby-lang
<anannie> def line; @line = @gameboard.map... (or something like that to read it line by line and pass it on to the variable); passing_variable_to_code_that_called_it; end
headius has quit [Quit: headius]
<anannie> so when someone can do x = object_name.line
<anannie> and it will iterate through feeding in x the value of each line on the "gameboard"
davidbalbert is now known as davidbalber|away
xyzodiac has quit [Quit: Computer has gone to sleep.]
amerine_ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
canton7 has quit [Excess Flood]
canton7 has joined #ruby-lang
amerine_ has left #ruby-lang [#ruby-lang]
<anannie> one easy solution is to of course shift the iteration through the other end and then feed specific line numbers and things, but I don't want to do that unless necessary, is there an elegant and pretty way out?
wyhaines has quit [Remote host closed the connection]
runeb has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<manveru> ?
<manveru> that's what blocks are for
<manveru> but if you really want to do it without, you can use enumerator
<manveru> >> e = %w[a b c d].each; e.next + e.next
<manveru> => "ab"
<anannie> is there no way to put this inside an object?
runeb has quit [Ping timeout: 260 seconds]
<anannie> Ah I see
<anannie> So I can pass an enumerator along and it will iterate through it on its own?
<manveru> yes
mistym_lunch is now known as mistym
soptnrs has joined #ruby-lang
<foucist> crankharder: what if i'm trying to add a value to a hash? [:foo, :bar].inject(hash){|h,v| h[v] << 1 }
<foucist> i have hash = Hash.new { |hash, key| hash[key] = [] } if that helps heh
enebo has joined #ruby-lang
zigidias has quit [Quit: cookies!]
<anannie> manveru: Okay I'm trying this out in command line and code and I'll let you know when I'll have it running. Thank you for your help.
soptnrs has left #ruby-lang [#ruby-lang]
mistym is now known as mistym_meeting
davidbalber|away is now known as davidbalbert
runeb has joined #ruby-lang
BigO has quit [Remote host closed the connection]
<foucist> crankharder: well, [:foo, :bar].reverse.inject(value) { |key, v| { v => key } } does the trick, but i want to add to an existing hash
BigO has joined #ruby-lang
pab|o has quit [Quit: Leaving]
soptnrs has joined #ruby-lang
soptnrs has left #ruby-lang [#ruby-lang]
soptnrs has joined #ruby-lang
havenn has quit [Remote host closed the connection]
soptnrs has left #ruby-lang [#ruby-lang]
headius has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
runeb has quit [Remote host closed the connection]
BigO has quit [Remote host closed the connection]
zigidias has joined #ruby-lang
chimkan has quit [Quit: chimkan]
tenderlove has joined #ruby-lang
<manveru> that doesn't help much, yeah :)
schaerli has joined #ruby-lang
BigO has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
sepp2k1 has joined #ruby-lang
<manveru> >> dict = Hash.new{|h,k| h[k] = Hash.new(&h.default_proc) }; dict[:foo][:bar] = 123; dict
<manveru> => {:foo=>{:bar=>123}}
<manveru> you basically want something like that?
sepp2k has quit [Ping timeout: 246 seconds]
rolfb has quit [Quit: Leaving...]
imperator has quit [Quit: Leaving]
burgestrand has joined #ruby-lang
aetcore has joined #ruby-lang
<manveru> >> dict = Hash.new{|h,k| h[k] = Hash.new(&h.default_proc) }; keys = [:foo, :bar]; keys[0..-2].inject(dict){|s,v| s[v] }[keys[-1]] = 123; dict
<manveru> => {:foo=>{:bar=>123}}
workmad3 has joined #ruby-lang
<manveru> prepare some kittens to sacrifice :)
<foucist> lol
schaerli has quit [Ping timeout: 260 seconds]
<foucist> argh, kitten blood runneth over my hands
<foucist> manveru: what's with the [0..-2] bit, it could be variable length keys
<foucist> and there could be multiple items with the same keys
<manveru> it means "take all elements of the array except the last one"
workmad3 has quit [Ping timeout: 245 seconds]
<manveru> it works as long as you have at least one key in the keys array
<foucist> i was doing something like keys.inject(dict){|s,v| s[v] } but that part [keys[-1]] = 123 was the key, so to speak :)
jgomez has quit [Ping timeout: 245 seconds]
mpan has joined #ruby-lang
mistym_meeting is now known as mistym
<seydar> how would i go about creating a fake IO that can be used to reopen other IOs?
<seydar> i want to recreate /dev/null in ruby
<seydar> ultimately: r, w = IO.pipe; r.reopen MyFakeIO.new
AndChat| has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 246 seconds]
chris2 has quit [Ping timeout: 256 seconds]
mpan has quit [Ping timeout: 248 seconds]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
headius has quit [Quit: headius]
chris2 has joined #ruby-lang
ryanf has joined #ruby-lang
afgeneralist has joined #ruby-lang
methods1 has joined #ruby-lang
sailias1 has quit [Quit: Leaving.]
Carnage\ has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
Guest61468 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
seydar has quit [Ping timeout: 260 seconds]
headius has joined #ruby-lang
xyzodiac has joined #ruby-lang
gmci has joined #ruby-lang
gmci is now known as Guest91972
chimkan_ has joined #ruby-lang
tenderlove has joined #ruby-lang
workmad3 has joined #ruby-lang
benanne has quit [Quit: kbai]
Nisstyre has joined #ruby-lang
headius has quit [Quit: headius]
tridge_ has joined #ruby-lang
BigO has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Quit Konversation]
<crankharder> can ruby, by itself, lock a method from being executed by multiple threads at the same time?
jbwiv has quit [Quit: Ex-Chat]
<crankharder> assuming the same machine is executing both threads
Brainix has joined #ruby-lang
<drbrain> crankharder: by itself? no, but you can use Monitor or Mutex
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
sailias has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
<crankharder> drbrain: based on the Monitor/Mutex docs i dont see how you'd create the same lock inside two different threads: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/monitor/rdoc/Monitor.html http://www.ruby-doc.org/stdlib-1.9.3/libdoc/monitor/rdoc/Mutex.html
zigidias has quit [Ping timeout: 260 seconds]
<drbrain> crankharder: also, include MonitorMixin
<drbrain> crankharder: but, you don't create the same lock in multiple threads
<drbrain> you create it in, say initialize
slyphon has quit [Quit: WeeChat 0.3.8]
<crankharder> got it, thanks
joast has quit [Quit: Leaving.]
<drbrain> I think include MonitorMixin makes the mutual exclusion transparent to you and your users
havenn has joined #ruby-lang
zigidias has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
joast has joined #ruby-lang
mjio has joined #ruby-lang
headius has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 246 seconds]
TheMoonMaster has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
emptyflask has joined #ruby-lang
Guest91972 has quit [Ping timeout: 265 seconds]
RickHull has joined #ruby-lang
<RickHull> hello fine folks of #ruby-lang, it's been a while
<RickHull> i was talking to a friend of a friend who works for Extole in san fran, and he convinced me to come to town in january for a week of interviews
<RickHull> please pm me if you recognize me from years past and have any relevant info xD
schaerli has joined #ruby-lang
<RickHull> i.e. who is hiring, places to stay, etc
enebo has quit [Quit: enebo]
datanoise has quit [Ping timeout: 260 seconds]
schaerli has quit [Ping timeout: 245 seconds]
blazes816 has quit [Quit: blazes816]
sailias has quit [Quit: Leaving.]
rue has quit [Ping timeout: 255 seconds]
krohrbaugh has quit [Quit: Leaving.]
<manveru> RickHull: i was just in SF last two weeks :)
rolfb has joined #ruby-lang
<manveru> you wanna move there?
<RickHull> if i get a job, yeah
rue has joined #ruby-lang
<lianj> manveru: did you enjoy it?
<manveru> there's a metric ton of jobs waiting to be filled...
<RickHull> that's what i hear
methods1 has left #ruby-lang [#ruby-lang]
<manveru> lianj: yeah
<lianj> manveru: with whole family?
<RickHull> any decent/cheap places to stay? i am ok with hostels / shared space in the right environment
<RickHull> i have some couches to crash on too
<manveru> flew back when it started getting cold and raining :)
<manveru> RickHull: i stayed at mirabelle in the mission, they are on airbnb
<RickHull> ok cool. I heard SOMA is ruby central
<manveru> but there are cheaper places like startuphouse
<RickHull> that sounds totally doable. maybe do some "networking"
gmci has joined #ruby-lang
gmci is now known as Guest65901
<manveru> hehe
<manveru> that was my plan, but then paypal screwed up and i had to find somewhere else
<RickHull> manveru: where are you based now?
<manveru> bavaria
<RickHull> oh shit, right
<manveru> yeah :P
<manveru> i'd love to live in SF for a while at least, just hard getting any kind of visa
ryanlecompte has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby-lang
enebo has joined #ruby-lang
RickHull1 has joined #ruby-lang
RickHull has quit [Ping timeout: 246 seconds]
chimkan_ has quit [Quit: chimkan_]
davidbalbert is now known as davidbalber|away
RickHull1 has quit [Read error: Connection reset by peer]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
RickHull has joined #ruby-lang
<RickHull> anyway, that sucks about the visa. shouldn't be like that
chimkan has joined #ruby-lang
tenderlove has joined #ruby-lang
<manveru> you timed out
<RickHull> yeah, weird
justinram has quit [Remote host closed the connection]
<manveru> so i have no idea what you said the last minutes
<manveru> but i fully agree :)
<RickHull> on a wired broadband connection
<RickHull> i said nothing for 6 or 7
<manveru> hm
<RickHull> i made a bad joke just before my disconnect notice, maybe karma. not worth repeating
krohrbaugh has joined #ruby-lang
mistym has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
gsav has quit [Ping timeout: 252 seconds]
thatdutchguy has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutc_ has joined #ruby-lang
aetcore has quit [Ping timeout: 245 seconds]
thatdutchguy has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutc_ has joined #ruby-lang
achiu has quit [Quit: WeeChat 0.3.9.1]
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
achiu has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
mwjcomputing has joined #ruby-lang
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
datanoise has quit [Ping timeout: 244 seconds]
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
<headius> anyone playing with mruby or otherwise want to chat about some C challenges?
<headius> trying to get it to build on a small 32-bit embedded processor and my C-fu is failing me a bit
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutc_ has joined #ruby-lang
anachronistic has quit [Quit: anachronistic]
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
<andrewvos> Oh that reminds me headius... zenspider following on from our conversation on compilers etc. yesterday, I was digging through parse.y in mruby and trying to understand how that bison syntax works. Pretty hardcore.
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutc_ has joined #ruby-lang
michpowershell has joined #ruby-lang
thatdutc_ has quit [Read error: Connection reset by peer]
<andrewvos> And was wondering it Mats just basically threw together that giant file in a few months :/
<andrewvos> Crazy shit.
mwjcomputing has quit [Ping timeout: 256 seconds]
thatdutchguy has joined #ruby-lang
michpowershell has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
<zzak> andrewvos: i think the syntax is part of iso standard
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
<zzak> also, the bison docs are great
<zzak> not that im any good, but they are very nice docs
thatdutchguy has quit [Read error: Connection reset by peer]
<headius> andrewvos: yeah that stuff is pretty insane
chimkan has quit [Quit: chimkan]
thatdutchguy has joined #ruby-lang
<headius> or at least it looks insane…I have never been a parser guy
thatdutchguy has quit [Read error: Connection reset by peer]
<andrewvos> zzak: Yeah I don't have the concentration for diging through docs so I dug through the mruby source rather :)
thatdutchguy has joined #ruby-lang
<zzak> its about half the size of MRI's
<andrewvos> headius: Yeah, pretty scary stuff!
thatdutchguy has quit [Read error: Connection reset by peer]
<andrewvos> headius: And it's all one file too. Not sure how I feel about that.
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
rolfb has quit [Quit: Leaving...]
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
<andrewvos> Holy shit ag is fast. It's almost creepy.
Carnage\ has quit []
krohrbaugh1 has quit [Quit: Leaving.]
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
ggreer has joined #ruby-lang
<ggreer> 8^)
thatdutchguy has quit [Read error: Connection reset by peer]
chimkan_ has joined #ruby-lang
thatdutchguy has joined #ruby-lang
krohrbaugh has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
thatdutchguy has joined #ruby-lang
thatdutc_ has quit [Read error: Connection reset by peer]
thatdutc_ has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
emptyflask has quit [Remote host closed the connection]
<rue> andrewvos: alias boo!=ag
<ggreer> andrewvos: glad you like ag
thatdutc_ has quit [Ping timeout: 255 seconds]
<andrewvos> ggreer: Write it?
<ggreer> I wrote most of it
<andrewvos> ggreer: Thanks!
<andrewvos> ggreer: Searchin .feature files by default makes me less angry every day.
<chris2> ag?
<chris2> ah that
<andrewvos> rue: Try it again, it works well now.
<ggreer> I really should update the ppa
thatdutchguy has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
<andrewvos> Nah, it's okay, I'm on OSX mostly :)
<ggreer> so am I, which is why I never update the ppa
mjio has quit []
afgeneralist has quit [Ping timeout: 260 seconds]
outoftime has quit [Quit: Leaving]
anjen has joined #ruby-lang
<rue> So long as it shows me file names, we’re good…that was kind of inconvenient.
Sambalero has joined #ruby-lang