imperator changed the topic of #ruby-lang to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
kurko_ has quit [Ping timeout: 252 seconds]
raggi has joined #ruby-lang
kurko_ has joined #ruby-lang
<raggi> anyone in here have admin to ruby-talk@ruby-lang.org?
<raggi> i'm trying to get on again so i can post rack ANN mails, but FML is failing on me
sush24 has joined #ruby-lang
mjio has quit []
ryez has quit [Ping timeout: 245 seconds]
mjio has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
ronaldo__ has joined #ruby-lang
jsaak has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
mjio has quit []
justinra_ has quit [Remote host closed the connection]
blahwoop has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 240 seconds]
mjio has joined #ruby-lang
<darix> moin raggi
rcvalle has quit [Ping timeout: 255 seconds]
sailias has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
usedtire has joined #ruby-lang
KA_ has quit [Quit: KA_]
yfeldblum has quit [Ping timeout: 272 seconds]
Darkspiel has quit [Read error: Connection reset by peer]
usedtire has quit [Ping timeout: 245 seconds]
rcvalle has joined #ruby-lang
Rarrikins has joined #ruby-lang
<raggi> hey
<raggi> nvm, done now
Rarrikins_a has quit [Ping timeout: 255 seconds]
jxie has quit [Quit: leaving]
jxie has joined #ruby-lang
yfeldblum has joined #ruby-lang
sailias has quit [Quit: Leaving.]
rins has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
breakingthings has joined #ruby-lang
blahwoop has quit [Ping timeout: 255 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
blahwoop has joined #ruby-lang
rins has quit [Ping timeout: 246 seconds]
rins has joined #ruby-lang
rins_ has joined #ruby-lang
rins has quit [Ping timeout: 248 seconds]
GarethAdams has quit [Quit: Leaving...]
rins_ has quit [Ping timeout: 276 seconds]
rins has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
blahwoop has quit [Ping timeout: 255 seconds]
mistym has joined #ruby-lang
mistym_ has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby-lang
mjio has quit []
jxie has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
blahwoop has joined #ruby-lang
jxie has quit [Client Quit]
jxie has joined #ruby-lang
Guest53544 has quit [Quit: Leaving]
sailias has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
jesse has quit [Excess Flood]
jesse has joined #ruby-lang
larrylv has joined #ruby-lang
jsaak has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
Rarrikins_q has joined #ruby-lang
Rarrikins has quit [Ping timeout: 248 seconds]
joast has quit [Quit: Leaving.]
mjio has joined #ruby-lang
GarethAdams has joined #ruby-lang
itsmeduncan has joined #ruby-lang
srbaker has joined #ruby-lang
<Spaceghost|cloud> matti: You're a jerk. Leaving us offtopic'ers alone. :(
bzalasky has joined #ruby-lang
joast has joined #ruby-lang
megha is now known as gia
mistym has quit [Remote host closed the connection]
Rarrikins_q_n has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
Rarrikins_q has quit [Ping timeout: 276 seconds]
blahwoop has quit [Ping timeout: 272 seconds]
mwjcomputing has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
<matti> Spaceghost|cloud: Am I?
<matti> Spaceghost|cloud: :)
<Spaceghost|cloud> matti: You are. :(
<matti> Spaceghost|cloud: You have some passive-aggressive people there ;p
rins has quit [Ping timeout: 255 seconds]
itsmeduncan has quit [Quit: itsmeduncan]
<matti> Spaceghost|cloud: I am on always on Zed's channel.
<Spaceghost|cloud> matti: That's foucist's channel.
<Spaceghost|cloud> I'm talking about the good channel. :(
<matti> H.
<matti> Spaceghost|cloud: :)
<matti> Spaceghost|cloud: Do you really need grumpy systems person there? With bunch of Rails dudes? :)
wyhaines has joined #ruby-lang
fjfish has joined #ruby-lang
imperator has quit [Quit: Leaving]
<Spaceghost|cloud> matti: I'm not a rails dude. :(
<Spaceghost|cloud> The name came to me because we happen to all have made friends on #rubyonrails
<matti> Ah.
<matti> I see.
francisfish has quit [Ping timeout: 265 seconds]
<Spaceghost|cloud> It's actually just a group of people. There's one rule, no assdicks.
<Spaceghost|cloud> Other than that, it's an unfortunate name that we all happen to be tied together through.
mwjcomputing has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
stonerfish has joined #ruby-lang
alvaro_o_ has joined #ruby-lang
stonerfish has quit [Client Quit]
alvaro_o__ has quit [Read error: Operation timed out]
jperry2 has quit [Quit: jperry2]
Rarrikins_q_n has quit [Ping timeout: 240 seconds]
Rarrikins has joined #ruby-lang
karasawa has joined #ruby-lang
Rarrikins_m has joined #ruby-lang
Rarrikins has quit [Ping timeout: 260 seconds]
toretore has quit [Quit: This computer has gone to sleep]
emocakes has quit [Quit: emocakes]
toretore has joined #ruby-lang
toretore has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Rarrikins_m_w has joined #ruby-lang
linc01n has quit [Quit: ZNC - http://znc.in]
blahwoop has joined #ruby-lang
Rarrikins_m has quit [Ping timeout: 255 seconds]
linc01n has joined #ruby-lang
lcdhoffman has joined #ruby-lang
mjio has quit []
linc01n has quit [Client Quit]
linc01n has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
linc01n has quit [Client Quit]
bzalasky has quit [Remote host closed the connection]
linc01n has joined #ruby-lang
postmodern has joined #ruby-lang
linc01n has quit [Client Quit]
linc01n has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
KA_ has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
karasawa has quit [Ping timeout: 276 seconds]
Rarrikins_m_w_x has joined #ruby-lang
raggi has left #ruby-lang ["Leaving..."]
linc01n has quit [Quit: ZNC - http://znc.in]
Mon_Ouie has quit [Ping timeout: 272 seconds]
linc01n has joined #ruby-lang
Rarrikins_m_w has quit [Ping timeout: 248 seconds]
linc01n has quit [Client Quit]
linc01n has joined #ruby-lang
dankest has joined #ruby-lang
sailias has quit [Quit: Leaving.]
linc01n has quit [Client Quit]
linc01n has joined #ruby-lang
linc01n has quit [Client Quit]
linc01n has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
Rarrikins_m_w_x has quit [Ping timeout: 240 seconds]
larrylv has joined #ruby-lang
swav__ has joined #ruby-lang
swav_ has quit [Ping timeout: 272 seconds]
Aria has quit [Remote host closed the connection]
swav_ has joined #ruby-lang
swav__ has quit [Read error: Connection reset by peer]
kentos has quit [Ping timeout: 265 seconds]
kurko_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
charliesome has joined #ruby-lang
retro|cz has quit [Ping timeout: 248 seconds]
karasawa has joined #ruby-lang
davidbalber|away is now known as davidbalbert
tdy_ has joined #ruby-lang
stevechiagozie has joined #ruby-lang
mjio has joined #ruby-lang
GarethAdams has joined #ruby-lang
kentos has joined #ruby-lang
karasawa has quit [Ping timeout: 264 seconds]
blahwoop has quit [Ping timeout: 265 seconds]
jef_abraham has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 272 seconds]
blahwoop has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
jef_abraham has quit [Quit: jef_abraham]
njerichelimo has joined #ruby-lang
tdy_ has quit [Quit: WeeChat 0.3.9.2]
davidbalbert is now known as davidbalber|away
breakingthings has quit []
lcdhoffman has quit [Quit: lcdhoffman]
chimkan has joined #ruby-lang
r0bby_ has joined #ruby-lang
jef_abraham has joined #ruby-lang
madish has quit [Remote host closed the connection]
chimkan has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mjio has quit []
jef_abraham has quit [Quit: jef_abraham]
mistym has joined #ruby-lang
kentos has quit [Quit: Leaving]
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
larrylv has quit [Remote host closed the connection]
mjio has joined #ruby-lang
gregmoreno has joined #ruby-lang
blahwoop has quit [Ping timeout: 260 seconds]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
dafalcon` has quit [Ping timeout: 240 seconds]
dankest is now known as dankest|away
dankest|away has quit [Quit: Leaving...]
dankest has joined #ruby-lang
xalei has joined #ruby-lang
alec has joined #ruby-lang
jef_abraham has joined #ruby-lang
nertzy2 has joined #ruby-lang
jonahR has quit [Quit: jonahR]
mjio has quit []
nertzy has quit [Ping timeout: 276 seconds]
dankest is now known as dankest|away
dankest|away has quit [Quit: Leaving...]
dwu1 has joined #ruby-lang
serhart has quit [Quit: Leaving.]
jef_abraham has quit [Quit: jef_abraham]
jef_abraham has joined #ruby-lang
robbyoconnor has joined #ruby-lang
r0bby_ has quit [Ping timeout: 252 seconds]
gregmoreno has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
jef_abraham has quit [Ping timeout: 252 seconds]
jef_abraham has joined #ruby-lang
gia has quit [Ping timeout: 248 seconds]
njerichelimo has quit [Ping timeout: 256 seconds]
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
ryez has joined #ruby-lang
ramonmaruko has quit [Read error: Connection reset by peer]
gia has joined #ruby-lang
FastJack has quit [Quit: leaving]
ramonmaruko has joined #ruby-lang
tjadc has joined #ruby-lang
njerichelimo has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
FastJack has joined #ruby-lang
dankest has joined #ruby-lang
dhruvasagar has joined #ruby-lang
|Vargas| has quit [Quit: ...]
Mon_Ouie has joined #ruby-lang
charliesome_ has joined #ruby-lang
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
<charliesome> whitequark: what is "binding as block"
banisterfiend has quit [Ping timeout: 240 seconds]
gja has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<whitequark> charliesome: proc{}.binding
<charliesome> oh
<whitequark> so evil
<charliesome> yet useful
<charliesome> i have some dangerous ideas
chimkan_ has quit [Quit: chimkan_]
dankest has quit [Quit: Leaving...]
workmad3 has joined #ruby-lang
havenn has joined #ruby-lang
<cirwin> charliesome: if only there aws always a block passed to each function, binding.callers would be so easy :)
<ryanf> charliesome: that's in the context of the list of suggestions for ruby 2.0?
<ryanf> i.e., taking it out?
gia has quit [Quit: WeeChat 0.3.9.2]
<ryanf> ah no, that was "remove Proc binding" http://www.ruby-forum.com/topic/2694161
mytrile has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
megha has joined #ruby-lang
|Vargas| has joined #ruby-lang
sush24 has joined #ruby-lang
gnufied has joined #ruby-lang
dr_bob has joined #ruby-lang
megha has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
larrylv has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
yadav has joined #ruby-lang
judofyr has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Sinestro has quit [Quit: Textual IRC Client: www.textualapp.com]
solars has joined #ruby-lang
retro|cz has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
schaerli has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
tenderlove has joined #ruby-lang
<charliesome> cirwin: they could pass { raise LocalJumpError } to each function ;)
<cirwin> yeah :)
yadav has quit [Remote host closed the connection]
xalei has quit [Remote host closed the connection]
cirwin has quit [Quit: Leaving.]
apeiros_ has joined #ruby-lang
retro|cz has quit [Ping timeout: 248 seconds]
ronaldo__ has quit [Quit: eyb]
apeiros_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
megha has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tenderlove has quit [Ping timeout: 248 seconds]
jxie has quit [Quit: leaving]
apeiros_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<yorickpeterse> Morning
<apeiros_> moin
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
headius has quit [Quit: headius]
megha has quit [Ping timeout: 276 seconds]
<judofyr> morning
havenn has quit [Ping timeout: 260 seconds]
<yorickpeterse> whitequark: fix your blog links, they point to localhost:4000
gnufied has quit [Quit: Leaving.]
<yorickpeterse> (in your latest article)
<whitequark> yorickpeterse: ow crap
vlad_starkov has quit [Remote host closed the connection]
<whitequark> yorickpeterse: fixed
vlad_starkov has joined #ruby-lang
<yorickpeterse> heh
gnufied1 has joined #ruby-lang
agarcia has joined #ruby-lang
blacktulip has joined #ruby-lang
<apeiros_> there's nothing like starting the year with reading some rails 1.2.3 code…
<apeiros_> %-S
<whitequark> software archaeology!
<Muz> Hah, my Just Before Christmas project at work involves a Rails 1.2.5 project.
<Muz> That seemingly /requires/ 1.8.6. Needless to say, I'm still working on figuring out what the fuck it does exactly. So far there've been tears and laughter and moments of sheer disbelief.
havenn has joined #ruby-lang
<apeiros_> Muz: yeah, I totally sympathize with your situation
<apeiros_> one may bitch about rails, but there's no denying that there was a lot of progress, and that the conventions help a lot in digging into foreign code…
<Muz> The "funny" thing about this is how the people who did work on this 6 years ago have either left the corp, or moved on elsewhere and have magically been struck by mass amnesia.
<apeiros_> (the absence of those conventions in early rails projects is just mind blowing…)
<Muz> It's a sodding production tool that is still broadcast critical that all of 3 people know and support to a limited extent. I've been tasked with speccing up something to deprecate it and retain functionality.
<apeiros_> Muz: reminds me that I should plan my own leave properly :D
<Muz> Sadly, it's the most interesting thing I've had to work on in the past few weeks, so I'm willing to stick it out until I've finished serving my notice period and can move on :D
<Muz> As much as I dislike Rails, the current state of it is a significant step forwards from what it used to be for sure. The same goes for Ruby's core.
sush24 has quit [Quit: This computer has gone to sleep]
tenderlove has joined #ruby-lang
zmack has joined #ruby-lang
<manveru> i'm still trying to find a remote ruby job without rails :P
<manveru> but all those job sites make it damn near impossible to find anything
<manveru> or maybe i'm just really weird
<apeiros_> you probably are :-p
<apeiros_> still in austria?
<lianj> "sysadmin who know ruby" like?
<manveru> germany
<manveru> lianj: more like rubyists who knows sysadmin
tenderlove has quit [Ping timeout: 264 seconds]
<manveru> but if i had a choice, i'd just as well use go
<manveru> it's just that finding jobs with that is even harder
<lianj> ^^
gja has joined #ruby-lang
<Muz> I think half the problem is that recruiters and non-technical types will put Rails onto a Ruby posting in order to raise awareness
<Muz> And ultimately, the collateral damage of deterring a small special subset of neckbeard is minimal compared to the additional attention and appeal it ultimately brings.
<Muz> I've certainly had bottom-feeders^Wrecruiters modify my CV to claim I have Rails experience in the past. The bastards.
<manveru> you really think the normal ruby community is that small?
<jMCg> Heh.. The manager currently repsonsible for the Ops team I work in went on saying: We don't need any ruby programmers in our Ops Team. If we need any ruby programmers for Ops, I'd put them in a Programmers team.
<Muz> The amount that finds a Rails job actively unattractive enough to decline it instead of sucking it up? Comparatively, yes.
<manveru> :)
<manveru> then they are not a company worth working for
<jMCg> Awesome, that's exactly what we're need. Someone sitting in a different district of the city, with all the (java and python) developers, when all of our infrastructure is written in Ruby.
vlad_starkov has quit [Remote host closed the connection]
<manveru> yeah... i'd prefer not searching for languages at all
<manveru> i can learn those in a few weeks if needs be
<whitequark> manveru: y u hate rails?
<Muz> Magic.
<Muz> Too much fucking magic.
<whitequark> just curious. I, for example, prefer to avoid them because webdev. But if I only need to write the backend, it's fine.
<charliesome> haha
<charliesome> too much magic in rails
<charliesome> you can say that again
<manveru> rails is freaking big
<whitequark> manveru: puppet or chef aren't?
<Muz> I've a history in working primarily with backend and service level systems here. Web dev I've dabbled a bit in, but it's not comfortable territory.
<judofyr> it got some nice SQL-injections and remote code execution though
<manveru> they are too
<Muz> throwing in a metric fuckton of voodoo magic that requires a hardhat and pickaxe to spelunk through does not help.
<whitequark> manveru: so what job are you expecting to find?
<Muz> Less so when it's 6 fucking years old.
<charliesome> judofyr: i have an rce that triggers during deserialize now
<manveru> whitequark: chef at least is somewhat sane :)
<judofyr> charliesome: I've seen one. have you refined it even more?
<whitequark> Muz: for a 6 year old project rails is in pretty good state. the cost of legacy breakage is high, through.
<charliesome> yeah f5 it
<Muz> I suppose part of it is compounded by never really bothering to get too in depth with learning Rails, but it's not exactly an appealing task either.
<Muz> whitequark: sure, but even modern day rails has too much magic for my tastes. At least it's a bit more consistant and not quite so crack-addled.
<manveru> anything with generators in it is a big red flag for me
<judofyr> manveru: totally agree
<whitequark> manveru: I never ever use generators in rails. I've no idea why were they added.
<judofyr> I so hate scaffolding
<whitequark> it doesn't really make life harder
<manveru> because it made the blog example doable in 15 minutes? :)
dwu1 has quit [Quit: Leaving.]
<charliesome> the only generator i ever use is rails g model
<Muz> The generators are great if you want to build yet another sodding Twitter clone.
<whitequark> manveru: I bet you I'd write that without generators in 15 minutes either.
tbuehlmann has joined #ruby-lang
<Muz> The moment you stray from that and take help from 20 different people on #RubyOnRails you've got a shitheap of a mess.
<manveru> yeah, easier these days
schaerli has quit [Remote host closed the connection]
<manveru> but generators were in rails from the start
<manveru> and the whole config mess
<manveru> and bundler proliferation
<whitequark> meh
<whitequark> manveru: and why do you hate bundler now?
<judofyr> whitequark: btw, is there actually market for Ruby-on-embedded-devices?
<charliesome> bundler is the best thing that has happened to ruby
<Muz> Bundler's great if people use it properly and don't leave lock files all over the place with poorly specified Gemfiles.
<whitequark> ^ that
<judofyr> well, bundler-the-concept is awesome
<manveru> because imho it creates more problems than it solves
<charliesome> gemsets are so ghetto
<judofyr> haven't looked at the implementation
<charliesome> i had to install an old misbehaving rails 2.x app ages ago
<charliesome> it was so bad
<charliesome> i needed to compile its own ruby
<whitequark> judofyr: I hope so. Otherwise I have problems ;)
* Muz gives it a moment before the RVM whine kicks in from someone.
<manveru> no, not this time
<judofyr> whitequark: ah. was just wondering if you know the market.
* Muz grins
<whitequark> judofyr: I know what the embedded programmers want. But it's half of the problem.
<charliesome> whitequark: plan to take on rubymotion?
<whitequark> charliesome: nay
<charliesome> i reckon a rubyos would be damn cool
<whitequark> charliesome: iphones are nowhere like embedded
<whitequark> it's more powerful than your pc from 5 years ago
<charliesome> yeah but you aren't targeting just strictly embedded though are you?
<whitequark> charliesome: a rubyos? here you are. like 2/3 of embedded applications include an RTOS ;)
<charliesome> surely you could take your compiler and target it at x86 or arm
<whitequark> charliesome: I'm not. but embedded is something I at least remotely know how to make money with.
rolfb has joined #ruby-lang
<whitequark> plus embedded needs more treatment than x86 or arm. a superset of features if you'd like
<charliesome> whitequark: can i have a free foundry license to play with an x86 rubyos?
retro|cz has joined #ruby-lang
<whitequark> charliesome: I'm fairly certain it would be just free for personal use
<whitequark> even if not FOSS.
<charliesome> awesome!
<whitequark> the mess with license enforcement simply never works.
<whitequark> especially if you give your sw to professional embedded programmers, for whom debuggin assembly is a routine ;)
<manveru> a ruby os? on mruby or rbx or something?
<whitequark> manveru: forget about interpreters, they're shit
<charliesome> manveru: on whitequark's awesome static ruby compiler
<whitequark> manveru: forget about JIT, it's hungry as hell.
<charliesome> whitequark: i wrote a javascript os with the world's slowest js vm
KA_ has quit [Quit: KA_]
<whitequark> charliesome: port it to raspberry pi
<charliesome> it'd run like a dog
<whitequark> you'll get fucking famous across roflprogrammers
<whitequark> *along
<Muz> Has anyone actually done anything cool with a rPi yet?
<manveru> static ruby compiler sounds like an oxymoron
<Muz> Other than using it like they would any standard machine, but having it run at a fraction of the speed.
<Muz> whitequark: a rhetorical question. I've plenty of my own thoughts on why it's a joke.
<manveru> i'd never get a pi for pretty much that reason
<whitequark> Muz: it still might make sense to read past the title
<whitequark> charliesome: does it get slower with time? :D
<charliesome> whitequark: rofl gc
<Muz> But I'm supposed to be "working".
<whitequark> Muz: but you aren't anyway
<manveru> bbl, reading first :)
<whitequark> manveru: there are some alternatives listed at the end of my rpi article
<whitequark> charliesome: le sigh
<manveru> ok
AZAZ has joined #ruby-lang
<manveru> only embedded stuff i've done was with arduino and mforth
AZAZ has quit [Client Quit]
<manveru> brb
gja has quit [Quit: This computer has gone to sleep]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
<whitequark> charliesome: you might want to rewrite the codegen of jsos with Furnace::SSA
<whitequark> and possibly begin optimizing it ;)
<charliesome> whitequark: i am not as smart as you
<charliesome> also jsos triple faults these days
<whitequark> charliesome: this is why *I* wrote Furnace::SSA for you :)
<charliesome> i broke it somehow and i don't know how to fix it
<charliesome> ever seen a FAT16 driver in javascript?
<whitequark> in fact I more or less rewrote llvm infrastructure, because I'm not that smart either
<whitequark> my attempt of writing it was a pathetic failure
<whitequark> charliesome: yea seen your webiste
<whitequark> *website.
<charliesome> :p
<whitequark> charliesome: optimizing SSA is trivial, that's the good part
<whitequark> and the algorithms are googled even more trivially
<charliesome> reading the wikipedia page right nopw
nyuszika7h has joined #ruby-lang
<richardburton> hey there
<whitequark> charliesome: I'll write some nice docs for furnace-ssa, with examples and patterns. but in the meantime you can just dive in the llvm sources
<richardburton> would anyone mind giving me some advice on how i can refactor this code?
dhruvasagar has quit [Ping timeout: 248 seconds]
<charliesome> whitequark: so how does ssa work with loops
<whitequark> charliesome: phi nodes!
<whitequark> or with conditions, for that matter
<charliesome> so conditions use phi nodes, loops turn into recursion?
<whitequark> or are you asking how to identify loops in the code? dominators, then
Future[Chimp] has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<whitequark> charliesome: no, both loops and conditions use phi nodes
<charliesome> oh
<whitequark> it's pretty simple actually. understanding CPS (which is mathematically equivalent to SSA) is way harder :)
<charliesome> i understand cps
<whitequark> continuation-passing style?
<charliesome> yeh
<whitequark> it took me an imperial fuckton of time to make any sense of it
<charliesome> like nodejs amirite
havenn has quit [Remote host closed the connection]
<charliesome> but i've written a few cps-ey things in c if that counts
<whitequark> ... well, it could be phrased that way
dc5ala has joined #ruby-lang
havenn has joined #ruby-lang
<whitequark> and you're saying you are less clever than me!
<whitequark> hah
<charliesome> trust me i have no clue about half the stuff you talk about
<apeiros_> richardburton: line 99-105 and 108-115 are the same code. make that a class and take *_data as initialization value
<apeiros_> so you have e.g. @today.visits instead of @visits_today
<whitequark> charliesome: it took me roughly half a year (effectively) to learn.
<whitequark> a year of wall time.
ryanf has quit [Ping timeout: 256 seconds]
<richardburton> apeiros_: thanks
<richardburton> i felt like there is something wrong there
<apeiros_> richardburton: also "#{CURRENCY}" is a rather bad way to say CURRENCY
<apeiros_> (since CURRENCY already is a string)
<richardburton> any chance you could gist that for guidance?
<charliesome> whitequark: it is a continual learning process i guess
<richardburton> ah great point thank you
<apeiros_> richardburton: sorry, no, got work to do on my own
<charliesome> i am trying to learn this stuff as fast as i can
<whitequark> charliesome: continual as in what?
<tbuehlmann> richardburton, I see you adapted some code from yesterday :)
<charliesome> the more you know the more you know that you don't know
schaerli has joined #ruby-lang
nertzy3 has joined #ruby-lang
<whitequark> charliesome: ... and the better you see what should you learn next
havenn has quit [Ping timeout: 240 seconds]
<richardburton> tbuehlmann: yeh, thanks!
<richardburton> so helpful :)
<whitequark> charliesome: also, some areas feel more or less finished to me. at least that's what I think when the state of the art is same now and 20yrs ago.
nertzy2 has quit [Ping timeout: 276 seconds]
<manveru> whitequark: your ruby sounds kinda like mirah, but more awesomer :)
<whitequark> manveru: blergh, I don't have any fat hosted runtimes!
<manveru> yeah
<manveru> i'm no fan of the jvm
<whitequark> but yeah, they're similar
<manveru> but if i have to do android, that's the way i do it
<charliesome> the jvm sounds awesome except for the fact that you have to use the jvm
rue|w has joined #ruby-lang
<whitequark> manveru: JVM is absolutely cool. It's just that not every problem in this world is best solved with JVM.
<whitequark> manveru: you might want to follow RubyFlow, headius' last brainchild
<whitequark> he explicitly targets android, among other things
<whitequark> mirah seems dead to me
<manveru> it's been years since i used it last
<manveru> so you got a point :)
<andrewvos> charliesome: My thoughts EXACTLY.
havenn has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<yorickpeterse> I just suggested XML for something
<charliesome> xml is seriously useful
<yorickpeterse> 5 years later: XML ohgodwhy
<yorickpeterse> charliesome: when used properly, yes
<whitequark> yorickpeterse: so did you suggest to use it for markup?
<manveru> whitequark: got a link? rubyflow is a news since only from what i can tell
<manveru> *news site
JohnBat26 has joined #ruby-lang
<yorickpeterse> whitequark: Markup for a PDF generator instead of raw Prawn calls
<yorickpeterse> Because that's one of the few use cases where it's actually a good idea to use XML
nertzy3 has quit [Ping timeout: 252 seconds]
<yorickpeterse> (users want to be able to customize these PDFs using an interface)
<whitequark> manveru: sec
<whitequark> yorickpeterse: harmful.cat-v.org/software/xml/s-exp_vs_XML
<whitequark> so much awesomeness
<yorickpeterse> Like I mentioned, when used in consideration XML is fine
<whitequark> yeah
<yorickpeterse> <yorick:node type="square" color="red" background="green" font="10"> <value type="string">trololol</value> </yorick:node>
<whitequark> manveru: rubyflux.
nertzy3 has joined #ruby-lang
socialcoder has joined #ruby-lang
<socialcoder> hello
<socialcoder> I have a "simple" challenge in front of me given to me by a friend. need a bit of advice
<socialcoder> he wants me to create a script for user sign up and login
<socialcoder> but without database
<socialcoder> he wants the script to store and retrieve data from a notepad file
<apeiros_> ew
<manveru> a what?
<whitequark> socialcoder: File.read, File.write.
<manveru> YAML::Store :)
<charliesome> flat file databases are underrated
<yorickpeterse> plot twist: databases eventually store stuff in files
<apeiros_> lol :)
<apeiros_> sqlite, single file too
<socialcoder> I am a beginner and he is kinda testing my knowledge...I am stuck at the notepad thingy
<socialcoder> I havent studied that yet
<charliesome> yorickpeterse: not mongodb!
<charliesome> it doesn't store anything
<manveru> as long as you7re comfortable reading binary in notepad
<apeiros_> socialcoder: ok, so that constraint is probably to avoid that you go too far
<yorickpeterse> charliesome: I think our 400GB DB says otherwise
<socialcoder> guys..pls..debate later...help first :)
<yorickpeterse> socialcoder: http://rubymonk.com/ is a good start
<apeiros_> socialcoder: what whitequark said, File.read & File.write
<charliesome> yorickpeterse: you have 400gb in mongo? o:
<socialcoder> File.read File.write how do I execute it
<socialcoder> can u give a sample code
<manveru> ...
<apeiros_> socialcoder: `ri File.read`
<charliesome> File.read("/dev/urandom")
<apeiros_> gives you the docs of the File.read method
<matti> Ohai manveru
<apeiros_> (assuming you properly installed ruby /w docs)
<socialcoder> the deocs aint there in my command..I gave ri
<yorickpeterse> charliesome: plot twist: we don't shard
<socialcoder> nope...no docs
<apeiros_> socialcoder: ruby-doc.org
<apeiros_> socialcoder: but seriously, install the docs
<whitequark> yorickpeterse: but it doesn't scale
<apeiros_> with rvm it's `rvm docs generate`
<socialcoder> rvm docs generate I see
<socialcoder> thanks guys
<socialcoder> bye
workmad3 has joined #ruby-lang
<yorickpeterse> whitequark: CTO hated it until the most recent update and now it's somewhat usable from what I can tell
<judofyr> btw, I noticed that chruby *always* sets GEM_HOME to ~/.gem/ruby/1.9.3. could this cause any problems with C-extensions and/or JRuby or something?
hemangpatel has joined #ruby-lang
<yorickpeterse> Mind you we have a bit of a weird setup to work around several issues
<manveru> yorickpeterse: 2.2?
<socialcoder> rvm docs generate not working
<kalleth> is there a way i can attach a logging method to each method in a class to log each method call?
<hemangpatel> Hello.
<socialcoder> rvm is not recognised as internal...
<kalleth> i.e. class Foo, for each method called on an instance of Foo, log me something
<hemangpatel> I'm php guy. Now my hands on ruby.
<judofyr> hemangpatel: heya
<yorickpeterse> manveru: 2.2.2
<manveru> kalleth: delegator or set_trace_func
<kalleth> set_trace_func seems a bit too overkill
<kalleth> delagator?
<socialcoder> rvm docs generate not working
<hemangpatel> So i'm finding good resources.
<yorickpeterse> whitequark: e.g. the user facing side is read-only with one tiny exception (literally one option)
<judofyr> sometimes I wish IRC had threads…
<whitequark> kalleth: alias method chain pattern.
<kalleth> judofyr: patent that shit
<hemangpatel> So any suggestions for me . Thanks !
<yorickpeterse> hemangpatel: http://rubymonk.com/
* yorickpeterse feels like a sale's person
<yorickpeterse> err, sales
<charliesome> kalleth: a system and mechanism for communications system supporting concurrent conversations
<judofyr> hemangpatel: well, what are you looking for? books? libraries?
<hemangpatel> yes books..
<hemangpatel> http://rubymonk.com/ is good
<hemangpatel> But i need to learn from very basic.
<judofyr> hemangpatel: I'm a fan of The Ruby Programming Language: http://shop.oreilly.com/product/9780596516178.do
<hemangpatel> judofyr: thanks
emocakes has joined #ruby-lang
<charliesome> judofyr: that book shows its age
<hemangpatel> Documentation is also good
<judofyr> hemangpatel: you might find _why's poignant guide amusing and interesting: http://mislav.uniqpath.com/poignant-guide/
<judofyr> hemangpatel: or you might think it's very, very annoying
<kalleth> charliesome: lol
<kalleth> charliesome: are you steve jobs in disguise
<charliesome> yes
<kalleth> cool, buy me a yacht
<judofyr> hemangpatel: use http://ruby-doc.org/ (1.9 core) for documentation about classes and methods (kinda like php.net/<insert function name>)
<kalleth> oh god i remember doing that judofyr
<kalleth> it got to the stage where i didnt need google i'd just remember the exact function
<hemangpatel> judofyr : ok..great help
<judofyr> hemangpatel: for more language-level documentation, I think Run Paint Run Run's book could be useful: http://ruby.runpaint.org/
<kalleth> but i'd still need to check the docs every time i used it because it could be str_pos or strpos or strpos(needle, haystack) or strpos(haystack, needle) depending on what branch of witchcraft was runnign
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
<judofyr> although it's a bit specification-y
<whitequark> judofyr: yeah runpains' book is one of the best
<whitequark> *runpaint's
<judofyr> whitequark: well, not a very good beginner's book though
<hemangpatel> ahh lots of stuff.
<judofyr> but it's a good reference
<whitequark> judofyr: it
<whitequark> *it's a reference
<hemangpatel> judofyr : do i need only command line to run the code ?
<hemangpatel> on linux
<manveru> yeah
<hemangpatel> ok
<judofyr> hemangpatel: yes. although on some distributions you might need to install extra packages to get all the features (e.g. OpenSSL)
megha has joined #ruby-lang
<hemangpatel> Thanks a lot.. good bye.
<judofyr> hemangpatel: also, make sure that you're using Ruby 1.9.3 (ruby -v)!
<hemangpatel> see you later guys
<yorickpeterse> whitequark: "$ gut status" seems I'm not the only one that seems to type "gut"
<hemangpatel> judofyr : why ?
<judofyr> hemangpatel: because it's recent. many Linux distributions also ship with Ruby 1.8 (for legacy reasons), but you don't want to start learning that :)
<whitequark> yorickpeterse: indeed
<judofyr> hemangpatel: I think e.g. Debian/Ubuntu has a sperate ruby1.9-package
<hemangpatel> judofyr : ok
<hemangpatel> bye
sspiff has joined #ruby-lang
sspiff has quit [Changing host]
sspiff has joined #ruby-lang
<hemangpatel> judofyr : ubuntu 12.10 has 1.9.3
<judofyr> hemangpatel: then you're good to go :)
hemangpatel has left #ruby-lang ["Leaving"]
nkr has joined #ruby-lang
gnufied2 has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
gnufied1 has quit [Ping timeout: 252 seconds]
<richardburton> apeiros_: is this the right idea?
<charliesome> richardburton: you want an instance variable (@foo), not a class variable (@@foo)
<richardburton> thanks
<charliesome> also that class is basically an obfuscated function call
<richardburton> so should i just put it into a single method?
tejas has joined #ruby-lang
tejas has quit [Changing host]
tejas has joined #ruby-lang
<richardburton> (i was wondering that)
<judofyr> richardburton: well, depends. are there going to be many other related data?
<judofyr> also, where does sdlw_data come from?
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
gja has quit [Ping timeout: 255 seconds]
<judofyr> richardburton: you might be able to put it inside Metric somehow
<judofyr> richardburton: but this really depends. just try some things and use what you think is best :)
richardburton has quit [Quit: Leaving.]
havenn has quit [Ping timeout: 264 seconds]
jbsan has joined #ruby-lang
<manveru> also TODAY might be weird
<manveru> unless this is really short lived
tejas has left #ruby-lang ["Leaving"]
richardburton has joined #ruby-lang
<richardburton> ah great point
<richardburton> thanks
<richardburton> right now Metric is defining the db
<manveru> also, if your site is utf-8 anyway, use £ :)
<richardburton> ah i got an error when i added in the symbol
<manveru> add # Encoding: UTF-8 at the top of your file
socialcoder has quit []
tbuehlmann has quit [Remote host closed the connection]
chrismcgh has left #ruby-lang [#ruby-lang]
<postmodern> judofyr, no it wont cause problems
<postmodern> judofyr, since it uses ~/.gem/$RUBY_ENGINE/$RUBY_VERSION
nertzy2 has joined #ruby-lang
nertzy3 has quit [Ping timeout: 256 seconds]
<apeiros_> richardburton: I'd probably just do something like this: http://pastie.org/5642032
<apeiros_> richardburton: and you *probably* don't want dates as constants
<apeiros_> or do you expect your app to be rebooted daily?
<richardburton> ok
<richardburton> awesome
judofyr has quit [Remote host closed the connection]
<richardburton> so with dates as constants
<richardburton> the app has been working fine
<richardburton> should i set them as instance vars?
dr_bob has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
<apeiros_> richardburton: the point is that TODAY will be set to the startup date and never changed.
holgerno has joined #ruby-lang
<apeiros_> so when you start your app on 2012-01-07, it'll still use that date on 2012-01-08 as today…
<manveru> calling Date.today is really not that expensive... :)
ryanf has joined #ruby-lang
<richardburton> manveru: thanks
<richardburton> i have no sense yet for what is and isn't a bad thing to repeatedly call
<richardburton> is there a good blog post or rule of thumb
<richardburton> i'm guessing large db calls?
<injekt> caching is a dangerous game
<manveru> trial and error and benching :)
goshakkk has joined #ruby-lang
<whitequark> richardburton: profiling
<manveru> there are only two hard things in computing... caching, naming, and off-by-one errors
<injekt> :D
<manveru> actually invalidating caches, but still
<richardburton> haha
<whitequark> manveru: that's the most important part
<whitequark> caching is easy :D
<manveru> true that :)
cultureulterior_ has joined #ruby-lang
judofyr has quit [Ping timeout: 260 seconds]
holgerno has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ryanf has quit [Read error: Operation timed out]
havenn has joined #ruby-lang
<richardburton> this has worked perfectly
<richardburton> thanks everyone
jxie has joined #ruby-lang
s1n4 has joined #ruby-lang
jacktrick has joined #ruby-lang
swav_ has quit [Read error: Connection reset by peer]
swav has joined #ruby-lang
havenn has quit [Ping timeout: 265 seconds]
gnufied2 has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
tenderlove has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
rcvalle has quit [Quit: Leaving]
tenderlove has quit [Ping timeout: 255 seconds]
imperator has joined #ruby-lang
gnufied has joined #ruby-lang
sepp2k has joined #ruby-lang
carloslopes has joined #ruby-lang
judofyr has joined #ruby-lang
rcvalle has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
itsmeduncan has joined #ruby-lang
tenderlove has joined #ruby-lang
<whitequark> just had an idea
<whitequark> I actually make do something like this with foundry: http://pastie.org/5642223
<whitequark> s,make,can,
tenderlove has quit [Ping timeout: 260 seconds]
holgerno has joined #ruby-lang
esad has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 272 seconds]
itsmeduncan has quit [Quit: itsmeduncan]
dr_bob has joined #ruby-lang
<judofyr> whitequark: ehm. what is this?
<judofyr> whitequark: why does it have to be faster_you_bastards! and not just `def calculate; … end`
schaerli has joined #ruby-lang
<lianj> whitequark: doesnt rbx do it on the fly already anyway?
<judofyr> lianj: don't think it goes as far as SIMD instructions
leopard_me has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
itsmeduncan has joined #ruby-lang
itsmeduncan has quit [Client Quit]
<emocakes> ffi looks noice
banisterfiend has joined #ruby-lang
Guedes0 has left #ruby-lang [#ruby-lang]
schaerli has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 260 seconds]
lele|w has quit [Ping timeout: 264 seconds]
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kain has joined #ruby-lang
thone has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
thone has joined #ruby-lang
lele|w has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
vlad_starkov has quit [Remote host closed the connection]
lele|w has quit [Read error: Connection reset by peer]
<imperator> emocakes, it is...mostly
lele|w has joined #ruby-lang
thone has quit [Ping timeout: 265 seconds]
<judofyr> emocakes: nice cross-platform support too
<banisterfiend> how do i delete rvm without deleting the installed rubies?
vlad_starkov has joined #ruby-lang
<charliesome> banisterfiend: copy the rubies out
<charliesome> rvm implode
<charliesome> copy them back
francisfish has joined #ruby-lang
<banisterfiend> charliesome: there's no way to just uninstall rvm and tell it to keep the rubies?
<injekt> banisterfiend: just delete everything but rubies?
<judofyr> LEAVE ME RUBIES ALONE
<judofyr> MY*
<injekt> you cant change the install location, so just remove everything else
<charliesome> banisterfiend: i dunno, but i know rvm likes to control its little .rvm dir
<rue|w> Werdos
<charliesome> s/little/humongous/
<charliesome> judofyr: "LEAVE ME RUBIES ALONE" sounded better
<judofyr> charliesome: a typrovement
<emocakes> ffi just looks useful from the 'i want to code fast stuff in C, but wrap it nicely' perspective
<banisterfiend> alternatively how do i tell rvm to stop automatically creating crippled bundler environments
<rue|w> emocakes: Also from “I can’t be sure the user has a compiler installed” perspective
<charliesome> whitequark: what's the technical barrier to putting faster_you_bastards! around the entire program
<injekt> banisterfiend: just delete everything and start again?
<banisterfiend> injekt: i would except i have pretty bad internet right now it would take a long time to install all my rubies
<injekt> banisterfiend: ah ok, well yeah I would just delete everything in .rvm except the rubies directory
<judofyr> for some reason, I think "rubies" sounds really silly
<injekt> agreed
<judofyr> juuubies
lcdhoffman has joined #ruby-lang
<injekt> bubies
<injekt> banisterfiend: or just dont load rvm into your shell and figure that part out when you have internet
fjfish has quit [Ping timeout: 252 seconds]
<judofyr> I like how we have alternative layers of crap and good in Ruby
<judofyr> e.g. bundler fixes rubygems
vlad_sta_ has joined #ruby-lang
<injekt> hehe fixes
<judofyr> *improves
<imperator> emocakes, plus, works with JRuby
tenderlove has joined #ruby-lang
<imperator> although I've learned that sometimes it's better to use the Java API instead of using C functions
vlad_starkov has quit [Ping timeout: 260 seconds]
<emocakes> for types etc
thone has joined #ruby-lang
<emocakes> I'm guessing
<emocakes> and threads?
<imperator> no. well, maybe, but i'm just referring to how to do certain things
<imperator> e.g. i was trying to use C functions for temp files, but then realized java had a pretty nice (and better) api for it already, so i just used that
<imperator> it is nice to be able to mix ruby's features with C: begin; fh = open(file); ... ; ensure; close(fh); end
tenderlove has quit [Ping timeout: 276 seconds]
thone has quit [Ping timeout: 260 seconds]
tbuehlmann has quit [Ping timeout: 272 seconds]
tbuehlmann has joined #ruby-lang
<retro|cz> Anyone using debugger gem with 1.9.3-p362? I'm getting old "undefined symbol: ruby_current_thread " bug from ruby-debug. :(
<retro|cz> Same for 1.9.3-p327
<banisterfiend> retro|cz: is this the debugger gem or ruby-debug ?
<retro|cz> banisterfiend, debugger gem in gemfile
<retro|cz> damn
<retro|cz> probably my bad
<banisterfiend> retro|cz: check the debugger gem's github issues
megha has quit [Quit: WeeChat 0.3.9.2]
<retro|cz> I found ruby-debug19 in Gemfile also.
<retro|cz> It was hidden there in mongodb group.
<retro|cz> banisterfiend, how are you doing with binding_of_caller Ruby 2.0 porting?
tbuehlmann has quit [Remote host closed the connection]
<banisterfiend> retro|cz: haven't looked at it a lot in depth yet, but we've isolated the issue i think
<banisterfiend> i've got a debugging environment setup i've just been busy getting a new pry release out of the door
tbuehlmann has joined #ruby-lang
<banisterfiend> after that i'll probably have more time for messing around in gdb
<judofyr> banisterfiend: doesn't Ruby 2.0 ship with the same functionality now?
<banisterfiend> judofyr: yes, but it's broken :)
<retro|cz> banisterfiend, this is your blocker - http://bugs.ruby-lang.org/issues/7635 ?
<banisterfiend> so we're trying to fix it
<banisterfiend> retro|cz: exactly
<retro|cz> banisterfiend, I'll try to see what I can do with it later.
<retro|cz> probably nothing :)
<judofyr> nooooobuuuu. we neeeeeeeeed you!
<banisterfiend> retro|cz: you'll ned ruby built with -O0
<retro|cz> banisterfiend, ok, thanks
<banisterfiend> and full debugging symbols, even macro stuff since the segfault happens in a macro
<judofyr> banisterfiend: do you know anything about the segfaults in the newest Ruby 1.9.3?
jacktrick has quit [Quit: Leaving]
<banisterfiend> judofyr: no but i think people were getting even more segfaults than normal with binding_of_caller using it :)
<banisterfiend> judofyr: is it all cfp stuff?
<retro|cz> banisterfiend, something like export optflags="-O0 -ggdb3"; rvm install ruby-head ?
<judofyr> banisterfiend: I have no idea :)
<banisterfiend> retro|cz: ruby-head is trunk?
<retro|cz> banisterfiend, yup
<retro|cz> banisterfiend, or better, I hope
<banisterfiend> retro|cz: cool, you'll probably also need to grab the ruby wrapper for debug_inspector from ko1's branch to make life easier
holgerno has quit [Ping timeout: 256 seconds]
megha has joined #ruby-lang
<retro|cz> banisterfiend, thanks
<judofyr> banisterfriend
madish has joined #ruby-lang
tbuehlmann has quit [Read error: Operation timed out]
thone has joined #ruby-lang
tenderlove has joined #ruby-lang
thone_ has joined #ruby-lang
thone has quit [Ping timeout: 248 seconds]
scottschecter has joined #ruby-lang
tenderlove has quit [Ping timeout: 265 seconds]
vlad_sta_ has quit [Read error: Connection reset by peer]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
s1n4 has quit [Quit: peace out]
x0F_ is now known as x0F
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
roolo has joined #ruby-lang
nertzy2 has quit [Ping timeout: 240 seconds]
Uranio has joined #ruby-lang
<roolo> Hi, is it possible to get same shell environment for running commands from ruby?
<roolo> * shell commands
<yorickpeterse> eh?
<Uranio> roolo: I guest that when you need run shell command, is a good time for program with bash instead of ruby
<roolo> yorickpeterse: Wut? ;) You have some shell environment in your terminal (system variables and so) i want to run shell comands in ruby scripts which will behave same as in terminal
<apeiros_> roolo: by default, env is passed on unchanged
banisterfiend has quit [Ping timeout: 255 seconds]
<apeiros_> i.e., a child will have the parent's env
<roolo> Uranio: If you don't know answer, don't answer ;)
<apeiros_> roolo: a ;-) doesn't make an impolite statement polite. behave.
nertzy2 has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
<Uranio> roolo: I just sayd what think about running command in ruby
karasawa has joined #ruby-lang
<roolo> apeiros_: It was not supposed to be inpolite
<judofyr> roolo: ah, yeah. Dir.chdir won't call PROMPT_COMMAND, no :)
<roolo> judofyr: Please refer to "I've tried" section
<apeiros_> roolo: if you run `cd` that is run in a subshell
<apeiros_> you can't change the env of your parent from a child
<apeiros_> and that's not just a ruby thing, that's an OS thing and is good that way too.
<yorickpeterse> I suppose you cna use the Open3 family for this
<yorickpeterse> * an
<yorickpeterse> God damn it
<roolo> apeiros_: I don't want to change parent from child
<roolo> apeiros_: I wan't child to behave as similar as posible as parent
banister_ has joined #ruby-lang
<apeiros_> roolo: yes, yes, you do. if you expect this code to work: `cd foo`; `echo pwd`
<apeiros_> this will not print foo as the pwd since the parent process working directory won't be changed
<judofyr> well, it depends on if you have setup rvm to use cd-hook or PROMTP_COMMAND-hook
<apeiros_> the two `` are two separate children
<apeiros_> afaik, rvm changes cd somehow to get the desired result. you can probably emulate that change in ruby.
<roolo> apeiros_: nn, i expect `cd foo && pwd` will output .../foo -- it works
<roolo> apeiros_: in adition i want it behaves same as in terminal
<roolo> yorickpeterse: Thanks, looks promising, will check
<Uranio> puts Dir.pwd if Dir.chdir('foo')
rsl has joined #ruby-lang
<roolo> apeiros_: In terminal it changes gemset (gemset is just one thing which could be done)
<apeiros_> ok, I see
<apeiros_> the env is shared, but maybe some files are not being sourced
ryez has quit [Ping timeout: 245 seconds]
jperry2 has joined #ruby-lang
<apeiros_> hm, sourcing ~/.rvm/scripts/rvm didn't help here
tbuehlmann has joined #ruby-lang
<whitequark> judofyr, lianj: because in that piece of code, static typing is enforced
<whitequark> it is not ever evaluated in the host interpreter
<whitequark> rubinius would be able to use SIMD, if only it didn't have to care about integer/float boxing
dhruvasagar has quit [Ping timeout: 272 seconds]
<judofyr> whitequark: what is the overall status of the project btw?
<whitequark> judofyr: expect compiled 5.times { trace "Odelay!" } in several days
<whitequark> and I mean actually compiled, with type inference and whatnot. No shortcuts.
<apeiros_> trace?
<whitequark> apeiros_: you don't always have luxury of full POSIX-compatible I/O
<whitequark> think of it as of a "p" which doesn't involve stdout
karasawa has quit [Remote host closed the connection]
<judofyr> whitequark: not bad. I should continue on my little language too.
kiddorails has quit [Ping timeout: 256 seconds]
<judofyr> whitequark: maybe I should just pick a boring/known syntax/semantics and play with that…
<whitequark> judofyr: at this point of time, every syntax/semantics you could invent is already known
kiddorails has joined #ruby-lang
<judofyr> exactly :)
<whitequark> it's the combinations which matter
<judofyr> whitequark: although I should probably finish my web framework, ORM or data-structure-thingie first
<apeiros_> judofyr: you mean… Projects.sample ? :)
<judofyr> so many projects
<judofyr> so little time
<apeiros_> totally :(
<judofyr> apieros: nah, that's actually only what I'm currently working on. well, except for Rails exploits.
<apeiros_> oh, sorry judofry
* lianj likes ruby for its forgiving syntax
jonahR has joined #ruby-lang
<roolo> yorickpeterse: Please send me your plaster cast and my slaves will build your statue in midle of my kingdom! -- It's working thank you a lot
mercwithamouth has joined #ruby-lang
<lianj> although its a combination of syntax and lang
<judofyr> apieros: working on something cool lately?
<judofyr> damn you, now all I can think about: "I'm at the combination Pizza Hit and Taco Bell" — http://www.youtube.com/watch?v=EQ8ViYIeH04
<lianj> judofyr: like new sploits?
<judofyr> lianj: I think there'll be a new Rails release today :)
<judofyr> when the U.S. wakes up
kurko_ has joined #ruby-lang
<lianj> good i dont use rails. my cgi bash blog is unbreakable
<judofyr> lianj: I mean, it's just a SQL-injection and a remote code execution (by the excellent charliesome) :-)
<judofyr> in Rails 3+
<lianj> another or the one that hit the news latly?
<judofyr> lianj: another. but it was found after the one that hit the news
<judofyr> way worse SQL-injection
<judofyr> and well, RCE is always bad
<judofyr> I'll have to give charliesome a lot of credit though
<lianj> always fun to see someone try sql injection on your rails site if you dont even use activerecord
banister_ has quit [Remote host closed the connection]
<judofyr> I should probably finish the data-structure-thingie first. it's just a little tricky to debug :(
pkrnj has joined #ruby-lang
sailias has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby-lang
methods has joined #ruby-lang
methods has quit [Client Quit]
vmoravec has quit [Quit: Leaving]
jtoy has joined #ruby-lang
ortuna has joined #ruby-lang
Rarrikins has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
rondale_sc has joined #ruby-lang
ortuna has quit [Client Quit]
breakingthings has joined #ruby-lang
scottschecter has quit [Remote host closed the connection]
Rarrikins_p has joined #ruby-lang
Rarrikins has quit [Ping timeout: 246 seconds]
vmoravec has joined #ruby-lang
GarethAdams has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
goshakkk has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jtoy__ has joined #ruby-lang
jtoy has quit [Read error: Connection reset by peer]
jtoy__ is now known as jtoy
jtoy has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
vmoravec has quit [Remote host closed the connection]
Rarrikins_p_g has joined #ruby-lang
Rarrikins_p has quit [Ping timeout: 255 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
tenderlove has joined #ruby-lang
vmoravec has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
Rarrikins_p_g_e has joined #ruby-lang
outoftime has joined #ruby-lang
richardburton has joined #ruby-lang
Rarrikins_p_g has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
<gnufied> tenderlove: you there?
lcdhoffman has joined #ruby-lang
Rarrikins_p_g_e_ has joined #ruby-lang
Rarrikins_p_g_e has quit [Ping timeout: 256 seconds]
tenderlove has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has quit [Client Quit]
megha has joined #ruby-lang
richardburton has quit [Ping timeout: 248 seconds]
karasawa has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Rarrikins_p_g_e_ has quit [Ping timeout: 248 seconds]
sailias has quit [Quit: Leaving.]
Rarrikins has joined #ruby-lang
sailias has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
thisirs has joined #ruby-lang
lcdhoffman_ has joined #ruby-lang
lcdhoffman has quit [Ping timeout: 260 seconds]
vmoravec has quit [Quit: Leaving]
Rarrikins_m has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 248 seconds]
havenn has joined #ruby-lang
Rarrikins has quit [Ping timeout: 248 seconds]
rcvalle has quit [Ping timeout: 252 seconds]
carloslopes has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby-lang
karasawa has quit [Ping timeout: 248 seconds]
Rarrikins_m_r has joined #ruby-lang
lcdhoffman_ has quit [Ping timeout: 248 seconds]
serhart has joined #ruby-lang
Rarrikins_m has quit [Ping timeout: 248 seconds]
lcdhoffman has joined #ruby-lang
vmatiyko has joined #ruby-lang
Rarrikins_m_r_c has joined #ruby-lang
Rarrikins_m_r_c_ has joined #ruby-lang
Rarrikins_m_r has quit [Ping timeout: 255 seconds]
TerabyteST has joined #ruby-lang
Rarrikins_m_r_c has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby-lang
vmoravec has joined #ruby-lang
atadesk has joined #ruby-lang
TerabyteST has quit [Ping timeout: 248 seconds]
Rarrikins_m_r_c_ has quit [Ping timeout: 260 seconds]
Rarrikins has joined #ruby-lang
tenderlove has quit [Ping timeout: 240 seconds]
rcvalle has joined #ruby-lang
Rarrikins_c has joined #ruby-lang
Rarrikins has quit [Ping timeout: 260 seconds]
rcvalle_ has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
lcdhoffman has quit [Ping timeout: 248 seconds]
rcvalle has quit [Ping timeout: 248 seconds]
Rarrikins_c_t has joined #ruby-lang
mistym_ has joined #ruby-lang
agnitio has joined #ruby-lang
megha has quit [Quit: WeeChat 0.3.9.2]
karasawa has joined #ruby-lang
Rarrikins_c has quit [Ping timeout: 240 seconds]
mistym_ has quit [Changing host]
mistym_ has joined #ruby-lang
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
Antiarc has joined #ruby-lang
mistym_ has joined #ruby-lang
<Antiarc> Hey folks - I'm working on a database driver, and I have one exceptionally small piece of code that *must* run, but it can apparently be prevented from running via Timeout if you get really unlucky, putting the whole driver into a bad state. Is there any accepted way to suppress Timeout from working for a code block? All I can think is to monkeypatch Thread#raise to allow for suppressing it for the duration of my method, but that seems
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<Antiarc> begin..ensure doesn't work, because if the Timeout thread fires while my thread is in its ensure block normally, then the exception jumps out of the ensure block immediately.
sabfer has joined #ruby-lang
rcvalle__ has joined #ruby-lang
<judofyr> Antiarc: there has been some talk on ruby-core about having interruptible code-blocks, but nothing has landed yet
<Antiarc> Hrm. Okay.
rcvalle_ has quit [Ping timeout: 248 seconds]
<judofyr> Antiarc: here's the issue: https://bugs.ruby-lang.org/issues/6762
havenn has quit [Ping timeout: 260 seconds]
<Antiarc> Thanks a ton. That's hitting the points I'm concerned about :)
<judofyr> Antiarc: actually, it seems to have been landed in Ruby 2.0.0
<Antiarc> Okay. I still have to support 1.8.7 with this, so I'm stuck for the time being.
<Antiarc> Nice to know though!
karasawa has quit [Ping timeout: 264 seconds]
<judofyr> Antiarc: 2.0.0 is coming soon too ;)
<Antiarc> I'm very glad it's in 2.0.0, just wish there were an existing solution. If not, I'll live with it.
carloslopes has joined #ruby-lang
serhart has quit [Quit: Leaving.]
gnufied has quit [Quit: Leaving.]
holgerno has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
rins has joined #ruby-lang
tjadc has quit [Read error: Connection reset by peer]
carloslopes has quit [Ping timeout: 264 seconds]
nkr has quit [Quit: leaving]
<imperator> are we getting structured warnings in 2.0?
nkr has joined #ruby-lang
megha has joined #ruby-lang
serhart has joined #ruby-lang
ambethia has joined #ruby-lang
methods has joined #ruby-lang
cultureulterior_ has quit [Read error: Connection reset by peer]
<judofyr> imperator: nope. what kind of structure do you want?
cultureulterior_ has joined #ruby-lang
ambethia has left #ruby-lang [#ruby-lang]
blahwoop has joined #ruby-lang
atadesk has quit [Quit: Leaving.]
jonahR_ has joined #ruby-lang
retro|cz has quit [Remote host closed the connection]
jonahR has quit [Ping timeout: 276 seconds]
jonahR_ is now known as jonahR
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
adamjleonard has joined #ruby-lang
<apeiros_> imperator: as in - use the same mechanism as exceptions for warnings (+resume)?
Banistergalaxy has quit [Ping timeout: 248 seconds]
retro|cz has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
jef_abraham has quit [Quit: jef_abraham]
|Vargas| has quit [Quit: ...]
havenn has joined #ruby-lang
yfeldblum has quit [Quit: Leaving]
Banistergalaxy has joined #ruby-lang
gjaldon has joined #ruby-lang
<andrewvos> How in the shit do I set a ruby version with rbenv?
lcdhoffman has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
<judofyr> andrewvos: `rbenv shell …` for the current shell
<judofyr> andrewvos: `rbenv local …` for this directory (it writes a file)
<judofyr> andrewvos: `rbenv global …` for the default Rub
<judofyr> Ruby
<andrewvos> rbenv: no such command `shell'
<judofyr> andrewvos: then you need to add this to your config: eval "$(rbenv init -)"
<judofyr> that is, .bash_profile
<andrewvos> Wait
<andrewvos> I'm having a bad day
havenn has quit [Ping timeout: 248 seconds]
<andrewvos> So how do I execute a command?
<andrewvos> Under a specific ruby
wyhaines has joined #ruby-lang
<judofyr> without changing?
Uranio has quit [Quit: WeeChat 0.3.8]
kiddorails has quit [Ping timeout: 255 seconds]
<andrewvos> I don't really care. I want to just execute "bundle exec <bla>" under 1.9.3
<judofyr> rbenv shell 1.9.3 && bundle exec
<andrewvos> So if I prefix it with something, that would be great
blazes816 has joined #ruby-lang
<judofyr> this will not change the Ruby version in the current shell: ( rbenv shell 1.9.3 && bundle exec )
<judofyr> or maybe this works: `rbenv which 1.9.3` -S bundle exec
<judofyr> *shrugs*
<andrewvos> judofyr: The former works. Thanks!
<andrewvos> Heh
<andrewvos> bundle: command not found
<judofyr> andrewvos: rbenv rehash
<judofyr> andrewvos: one of the reason I no longer use rbenv :)
<andrewvos> What's rehash about?
<andrewvos> Shit I need to buy a book now?
tenderlove has joined #ruby-lang
<judofyr> andrewvos: rbenv doesn't change your $PATH when you change the Ruby
<judofyr> andrewvos: instead it has a catalog with binstubs
<andrewvos> judofyr: Ok I give up. rbfu will be installed now :)
kogent has quit [Quit: kogent]
<judofyr> andrewvos: chruby is the shit :)
* andrewvos compiles and installs 1.9.3 for the third time :( :(
<judofyr> andrewvos: chruby can use rbenv's installations: https://github.com/postmodern/chruby
<judofyr> just set: RUBIES=(~/.rbenv/versions/*)
<andrewvos> judofyr: rbfu is teh win
<injekt> lul
<judofyr> I think rbfu and chruby are pretty much the same thing
<injekt> I'm pretty sure they do the same thing
<injekt> eh
<judofyr> or, same concept
<judofyr> same solution
<judofyr> different implementation
<andrewvos> They do the same thing, but one of them is teh win
<judofyr> whatever dude
<injekt> yeah BRO
<andrewvos> (Because I'm used to it)
<injekt> I came second on the readme for Op so I mad
<andrewvos> hehe
<injekt> i gave up on version managers, i only ever use 1 version anyway
tenderlove has quit [Ping timeout: 264 seconds]
<judofyr> injekt: hm. what about RCs?
<injekt> judofyr: what about them? I have a 'ruby' which is 1.9 and a 'ruby2' which points to the latest 2.0 install
<judofyr> oki :)
<injekt> I usually keep the ruby source code lying around too so I can quickly switch tags and build a copy i might need
<judofyr> yeah, I have a git clone too
ryanv-raptor has joined #ruby-lang
<judofyr> still like to install the official releases
<judofyr> current status: compiling rust
<injekt> sure, version manages make this faster but i dont think i really use them enough i seem to have issues with the damn version managers anyway
<injekt> yeah me too
<injekt> ugh not @ rust
<judofyr> injekt: what do you think about Rust?
<injekt> judofyr: I LOVE its type system, but i just can't deal with the syntax
yfeldblum has joined #ruby-lang
<injekt> rust has some awesome stuff, and i think it'll be real popular, but I'm a Go dude
<judofyr> Go just seems a bit too … high-level? though
<judofyr> at least for certain tasks
<injekt> oO
<judofyr> Go is a Java-killer
<injekt> like what?
<judofyr> Rust is a C-killer
<judofyr> injekt: forced GC
<injekt> I disagree, I think it's way lower than java
<injekt> heh
stevechiagozie has joined #ruby-lang
<injekt> I'll probably screw around with rust as the 'next lang' but right now I chose go over rust because it's a little more stable and I prefer the syntax
<judofyr> I like go to :)
rcvalle__ has quit [Ping timeout: 248 seconds]
<judofyr> too*
<judofyr> I like goto too
TerabyteST has joined #ruby-lang
<injekt> I built our work web api in go rather than sinatra
Mon_Ouie has joined #ruby-lang
<bstrie> injekt: you can be both a go dude and a rust dude, they're really quite different :)
<bstrie> go is what you get if you combine python and C, rust is what you get if you combine haskell and C++
<injekt> bstrie: I'm sure I could, and yeah they're very different. I just had to choose one to fully immerse myself into
<injekt> Yeah some rust stuff reminded me a lot of haskell
<bstrie> yeah rust is way too immature to really bother learning right now
<bstrie> unless you like compiler hacking and language design
goshakkk has quit [Quit: Computer has gone to sleep.]
<judofyr> who doesn't like compiler hacking and language design?
<Mon_Ouie> People who don't like progr… never mind :)
<injekt> Mon_Ouie did a funny
vmatiyko has quit [Quit: Page closed]
retro|cz has quit [Ping timeout: 248 seconds]
carloslopes has joined #ruby-lang
<injekt> I really like go fmt
<injekt> Ruby needs something like that
<injekt> although that would be very hard to build :)
havenn has joined #ruby-lang
<judofyr> yes, I'm a big fan of gofmt too
<judofyr> s/too/also/
<judofyr> err
<bstrie> injekt: how about a tool to transpile ruby to go, then run gofmt, then transpile it back
<judofyr> put the "also" some words earlier
<injekt> bstrie: D:
<injekt> judofyr: lol
<judofyr> injekt: I need a Englishfmt
wyhaines has quit [Remote host closed the connection]
<judofyr> injekt: well, we do have ruby_parser
<injekt> :/
<injekt> yeah..
<judofyr> and ruby2ruby :)
kiddorails has joined #ruby-lang
<judofyr> or we can hack it up with regexen!
vlad_starkov has quit [Remote host closed the connection]
<injekt> yeah that sounds most viable
<injekt> maybe we shouldn't write it in ruby either
<injekt> that'll be slow
<injekt> we can write it in a go-rust hybrid
rcvalle has joined #ruby-lang
<judofyr> grust
<judofyr> grust-rbfmt
<injekt> lol
<injekt> rugo
mytrile has quit [Remote host closed the connection]
<judofyr> gotta go
judofyr has quit [Remote host closed the connection]
blahwoop has quit [Ping timeout: 255 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
zhul_mechanos has joined #ruby-lang
blahwoop has joined #ruby-lang
<imperator> what can't be solved with regexen?
willdrew has joined #ruby-lang
<blahwoop> my stds
FiXato has quit [Remote host closed the connection]
setmeaway has quit [Ping timeout: 272 seconds]
<imperator> have you tried?
<injekt> that would be an interesting expression
FiXato has joined #ruby-lang
kiddorails1 has joined #ruby-lang
kiddorails has quit [Ping timeout: 248 seconds]
asaaki has joined #ruby-lang
retro|cz has joined #ruby-lang
sush24 has joined #ruby-lang
setmeaway has joined #ruby-lang
holgerno has quit [Quit: Leaving...]
cored has joined #ruby-lang
rue|w has joined #ruby-lang
thisirs has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 256 seconds]
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
kiddorails1 has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
goshakkk has joined #ruby-lang
apeiros_ has quit []
agarcia has quit [Quit: Konversation terminated!]
rue|w has quit [Ping timeout: 260 seconds]
megha has joined #ruby-lang
richardburton has joined #ruby-lang
dankest has joined #ruby-lang
richardburton has quit [Ping timeout: 240 seconds]
cored has quit [Quit: leaving]
cored has joined #ruby-lang
RubyHead has joined #ruby-lang
cored has quit [Client Quit]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
gregmoreno has joined #ruby-lang
megha has quit [Quit: WeeChat 0.3.9.2]
megha has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
pkrnj has quit [Ping timeout: 255 seconds]
atadesk has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
rue|w has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
emocakes has quit [Quit: emocakes]
tenderlove has joined #ruby-lang
solars has quit [Ping timeout: 272 seconds]
pkrnj has joined #ruby-lang
megha has quit [Quit: WeeChat 0.3.9.2]
atadesk has quit [Quit: Leaving.]
holgerno has joined #ruby-lang
tenderlove has quit [Ping timeout: 248 seconds]
dankest has quit [Quit: Leaving...]
blahwoop has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 248 seconds]
ssl has joined #ruby-lang
vlad_starkov has joined #ruby-lang
njerichelimo has quit [Ping timeout: 240 seconds]
sn0wb1rd has joined #ruby-lang
kiddorails has joined #ruby-lang
bfreeman has joined #ruby-lang
tbuehlmann has joined #ruby-lang
ryanf has joined #ruby-lang
ryanf has quit [Client Quit]
agnitio has quit [Quit: Leaving]
<JMcAfreak> out of context, the last four lines would be very, um... interesting
apeiros_ has joined #ruby-lang
__butch__ has joined #ruby-lang
wallerdev has joined #ruby-lang
<naquad> is there some gem implementing dispatcher pattern (thats where i can subscribe to specific kind of messages then send them from some other place) which plays nice with EventMachine?
<manveru> oh, rc1 of 2.0 is out
ryanv-raptor has quit [Quit: Leaving.]
schaerli has joined #ruby-lang
<manveru> naquad: like a message queue?
tenderlove has joined #ruby-lang
solars has joined #ruby-lang
<naquad> manveru, kind of
ddd has quit [Ping timeout: 245 seconds]
holgerno has quit [Quit: Linkinus - http://linkinus.com]
blahwoop has joined #ruby-lang
njerichelimo has joined #ruby-lang
megha has joined #ruby-lang
roolo has quit [Quit: Linkinus - http://linkinus.com]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
glebm has quit [Read error: No route to host]
glebm has joined #ruby-lang
macmartine has joined #ruby-lang
swav has quit [Read error: Connection reset by peer]
swav has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
madhadron has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
brianpWins has quit [Quit: brianpWins]
jef_abraham has joined #ruby-lang
rcvalle has quit [Ping timeout: 248 seconds]
toretore has joined #ruby-lang
<madhadron> Why in blazes are read and write called something different on SSLSocket and TCPSocket?
<naquad> madhadron, because those are different system calls
<naquad> and they're actually different in implementation and behavior
<naquad> send/recv
<madhadron> Fair enough. The correct question should be why doesn't SSLSocket have a send method.
<naquad> send can accept flags, able to raise errors (broken pipe, conn reset, etc)
<naquad> madhadron, because openssl is insane. thats the only thing that comes to my mind
<madhadron> *sigh*
alan_sebastian has joined #ruby-lang
karasawa has joined #ruby-lang
<madhadron> I must say, I'm looking forward to not writing Ruby on a regular basis.
gjaldon has quit [Quit: Leaving]
<manveru> openssl is insane in every language :)
alan_sebastian has left #ruby-lang [#ruby-lang]
<manveru> that's the joy with shared libraries
<pabs> you're in the wrong channel for that
<madhadron> manveru: The interface to it need not be.
<manveru> well, you can add your method
<pabs> and re: ssl, there are a large number of things that can potentially happen when you read or write to an ssl socket
<pabs> if you want a send method extend the class and create it
<pabs> or override the base class
<naquad> i have a hash containing symbols as keys and array of Proc instances as values. when i add to this array i return hash of Proc as unique id. now i need to implement quick removal by this id. to do this i'm traversing all hash and remove it from arrays. i'm doing it like that: delete_if {|p| p.hash == h} - but it seems to be inefficient way. is there anything better? i can change the structure if its required
<madhadron> pabs: Yes, that's the answer I'm reluctantly coming to.
<madhadron> pabs: The base class of SSLSocket is Object, though
<madhadron> And here I am writing an SDK and contemplating monkey patching the standard library.
ivanoats has quit [Remote host closed the connection]
<manveru> naquad: how large are those arrays?
<naquad> manveru, not big, 5-20 elements max
rcvalle has joined #ruby-lang
<naquad> total ~10 arrays
<manveru> then leave it like that
<manveru> anything more complex would make it slower, imho :)
<manveru> if you want to maintain order, that is
<naquad> hm, i've just remembered about set
<naquad> does it maintain order?
<manveru> no
<naquad> order is important
<naquad> crap :(
<manveru> set is an hash
<naquad> manveru, it uses hashing, but its not a hash
<madhadron> naquad: Use an Array of 2 element lists (an association list) and Array#assoc to search
<naquad> omg
<naquad> hm
<naquad> but then it maintains the order, because since 1.9.x hash maintains the order
alan_sebastian has joined #ruby-lang
<manveru> insertion order, and you're not guaranteed that this won't change
sulo has joined #ruby-lang
<andrewvos> What happened to erikh?
<manveru> it's an implementation detail, not set in stone :)
<manveru> though by now i fear a lot of people rely on it already
Axsuul has joined #ruby-lang
<madhadron> naquad: If you look at ordered dictionary-ish data structures in other languages, you'll find they tend to use an association list, or an association tree if they're aiming for better lookup performance.
hahuang65_ has joined #ruby-lang
<manveru> andrewvos: i think he started at a new company or something
cultureulterior_ has quit [Quit: cultureulterior_]
<manveru> madhadron: assoc is pretty good i think
<madhadron> manveru: Sure, it's O(n), just like any other assoc on an association list since the dawn of Lisp
<manveru> but given that Proc#hash is very cheap, not sure how much that would save
mistym is now known as mistym_lunch
<manveru> so is delete_if
<manveru> both do a linear search
marr has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
<manveru> assoc has the issue that you have to find the element again in order to delete it
<manveru> and it only finds one entry, which might be ok for this case though
alan_sebastian has quit [Client Quit]
<madhadron> manveru: You typically would recurse until false
<manveru> in ruby?
<madhadron> But if you need fast lookup, it's best to maintain a bimap
io_syl has joined #ruby-lang
<madhadron> manveru: Sufficiently in the dark ages where there's no tail call recursion?
<manveru> in ruby there is no tail recursion unless you compile a custom ruby :)
<madhadron> When you insert key -> [Proc], also insert Proc -> key, index in another structure so you can find it again without traversal
<madhadron> I guess since there's Ruby on the JVM, that would have to be true.
<manveru> yeah, headius tries to make sure tail-call-optimization doesn't go standard
<manveru> until the JVM gets it, that is
<manveru> 2034 or sometime around there
<madhadron> Right.
<manveru> but anyway, we speak about 20 elements per array
<madhadron> Right, any optimization in this case is premature
<madhadron> Just traverse and delete
<manveru> i think the overhead of maintaining an index would be slower
solars has quit [Ping timeout: 246 seconds]
<manveru> aye
<naquad> ok, will do with simple traverse. thanks for help people
njerichelimo has quit [Quit: Leaving]
thone_ has quit [Ping timeout: 276 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
thone has joined #ruby-lang
micaeked has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
TerabyteST has quit [Quit: terabytest]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
mistym_ has quit [Remote host closed the connection]
mrsolo has joined #ruby-lang
jbwiv has joined #ruby-lang
<jbwiv> guys, is there a way to filter backtraces with a regex in rdb? the backtraces I'm getting are incredibly long, yet I'm only looking for a few particular lines
<apeiros_> jbwiv: backtraces are ordinary arrays
breakingthings has quit []
<apeiros_> Array#grep e.g. should work just fine
<jbwiv> apeiros_: hmmm...I mean in rdb via the bt or where commands
zmack has quit [Remote host closed the connection]
<apeiros_> oh, fun, I somehow read drb and thought you were getting backtraces from a remote process :)
<apeiros_> don't know then
<jbwiv> apeiros_: lol. ok.
justinram has joined #ruby-lang
kogent has joined #ruby-lang
TerabyteST has joined #ruby-lang
sush24 has joined #ruby-lang
kogent has quit [Remote host closed the connection]
kogent has joined #ruby-lang
rue|w has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
larrylv has joined #ruby-lang
brianpWins has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
jef_abraham has quit [Remote host closed the connection]
jef_abraham has joined #ruby-lang
havenn has joined #ruby-lang
aedorn has joined #ruby-lang
swav_ has joined #ruby-lang
havenn has quit [Read error: Operation timed out]
Mon_Ouie has quit [Ping timeout: 248 seconds]
retro|cz has joined #ruby-lang
rue|w has quit [Ping timeout: 260 seconds]
swav has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
jtoy has quit [Quit: jtoy]
xcombelle has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
blahwoop has quit [Ping timeout: 255 seconds]
larrylv has joined #ruby-lang
stevechiagozie has joined #ruby-lang
KA_ has joined #ruby-lang
sulo has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
S1kx has quit [Quit: Leaving]
schaerli has joined #ruby-lang
blahwoop has joined #ruby-lang
Future[Chimp] has quit [Quit: Leaving]
larrylv has quit [Remote host closed the connection]
headius has joined #ruby-lang
davidbalber|away is now known as davidbalbert
MaddinXx has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
emocakes has joined #ruby-lang
srbaker has joined #ruby-lang
megha has joined #ruby-lang
larrylv has joined #ruby-lang
carloslopes has joined #ruby-lang
adamjleonard has quit [Quit: Linkinus - http://linkinus.com]
sepp2k has quit [Remote host closed the connection]
larrylv has quit [Remote host closed the connection]
<yorickpeterse> Remember children, recursion can be a bitch to debug: http://pastebin.com/raw.php?i=wBMQUBD0
mytrile has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
<darix> yorickpeterse: stack depth isnt too bad imho :p
jbsan_ has joined #ruby-lang
slyphon has joined #ruby-lang
jbsan has quit [Ping timeout: 252 seconds]
jbsan_ is now known as jbsan
<yorickpeterse> Is it actually possible to modify the trace line on the fly? In this case it would help tremendously if each line would state the node type (or something similar) that was processed at that time
<yorickpeterse> darix: also mind you this will grow *fast* depending on the amount of code being processed
<yorickpeterse> (this is from parsing the code of OpenStruct)
vlad_starkov has joined #ruby-lang
<canton7> yorickpeterse, you could always break the recursion out into an explicit stack, then just inspect the stack
<yorickpeterse> wat
<darix> yorickpeterse: hmmm ... things like puma have cleaned up stack traces .... maybe as part of a general exception handler?
<yorickpeterse> I don't want to remove lines because it's actually helpful, I want to add some info to them without having to wrap everything in a giant begin/rescue
<yorickpeterse> (gotta catch em all)
<yorickpeterse> But I doubt that's possible without some grotesque hack
karasawa has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
richardburton has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
<canton7> yorickpeterse, http://pastie.org/5643888
megha has quit [Quit: WeeChat 0.3.9.2]
<yorickpeterse> yeah that doesn't work in my case
<yorickpeterse> since every iteration is for a unique element
<yorickpeterse> I can't exclude iterations
richardburton has quit [Ping timeout: 240 seconds]
<canton7> hmm? you can *always* replace normal recursion with stack-based recursion? You might have another factor which makes it messier though...
<yorickpeterse> ehm no, I'm iterating over Ruby code
<yorickpeterse> I can't just randomly exclude something becaues something deep down might be different
<canton7> I'm afraid I'm not understanding why you're thinking of excluding things...
<yorickpeterse> Oh wait, I misread the example. I thought it would exclude the iteration if the stack was not empty
zmack has joined #ruby-lang
<yorickpeterse> Even so, in my case this won't reduce the call stack's size
<canton7> it's not about reducing the stack size -- the stack will be the same size
<canton7> it's about being able to easily inspect the stack
<yorickpeterse> That would require some manual intervention, which I'm not really a fond of
blahwoop has quit [Ping timeout: 264 seconds]
<canton7> righto, cool
jtoy has joined #ruby-lang
jef_abraham has left #ruby-lang [#ruby-lang]
blahwoop has joined #ruby-lang
sulo has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
richardburton has joined #ruby-lang
megha has joined #ruby-lang
breakingthings has joined #ruby-lang
ddd has joined #ruby-lang
carloslopes has joined #ruby-lang
tbuehlmann has joined #ruby-lang
norc has quit [Quit: Lost terminal]
sulo has quit [Read error: No route to host]
sepp2k has joined #ruby-lang
ebouchut has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ryanv-raptor has joined #ruby-lang
ryanv-raptor has quit [Client Quit]
KA_ has quit [Quit: KA_]
sulo has joined #ruby-lang
dankest has joined #ruby-lang
toretore has quit [Quit: Leaving]
megha has quit [Quit: WeeChat 0.3.9.2]
madhadron has left #ruby-lang [#ruby-lang]
kurko_ has joined #ruby-lang
mistym_lunch is now known as mistym
rolfb has joined #ruby-lang
swav has joined #ruby-lang
swav_ has quit [Read error: Connection reset by peer]
larrylv has joined #ruby-lang
larrylv has quit [Ping timeout: 248 seconds]
RubyHead has quit [Remote host closed the connection]
sabfer has quit [Read error: No route to host]
sabfer has joined #ruby-lang
<yorickpeterse> whitequark: so my linter is slowly turning into a Ruby interpreter, pretty cool stuff
<yorickpeterse> A very limited one that is
richardburton has quit [Quit: Leaving.]
davidbalbert is now known as davidbalber|away
postmodern has joined #ruby-lang
<whitequark> yorickpeterse: that's called "partial evaluation"
<yorickpeterse> that's the boring name
<whitequark> yorickpeterse: I have a kind of a hard problem here
<yorickpeterse> Not sure how I'm going to deal with more complex values. I can resolve stuff such as `index = 0; numbers[index] = 10` but it becomes a bit annoying when using hashes as values (or something else)
<yorickpeterse> also do tell
<whitequark> so I have a source like this: http://pastie.org/5644128
solars has joined #ruby-lang
<whitequark> and it transforms into an optimized SSA form like this: http://pastie.org/5644131
<whitequark> but the problem is that I need to have a way to map errors back to the source
<whitequark> including, sometimes, the whole inference path
<yorickpeterse> Hmmm
<yorickpeterse> well, I'd start by storing the file + line number somewhere
<whitequark> the problem is that I need to show *why* that type is present there
<yorickpeterse> I'm afraid the only answer I can give at this time is "eehhh"
<whitequark> oh ok.
<yorickpeterse> I'm fist deep in my own code so I'm not of much use atm :/
<banisterfiend> yorickpeterse: the average fist is only a few cm
<yorickpeterse> haha
bfreeman_ has joined #ruby-lang
bfreeman has quit [Read error: Connection reset by peer]
yalue has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
MaddinXx has quit [Remote host closed the connection]
<whitequark> yorickpeterse: I think what I'll do is to add a field to each instruction
<whitequark> or maybe even to each value
nyuszika7h has quit [Remote host closed the connection]
<yorickpeterse> What type of output is this actually?
<yorickpeterse> As in, what tool generated it and such
<whitequark> which will either point directly to a source location, or there'll be a singly linked list of transformations applied to that source location
<whitequark> yorickpeterse: foundry
<whitequark> well it's the default Furnace::SSA formatter
mrsolo has quit [Quit: This computer has gone to sleep]
<whitequark> but this is how Foundry LIR looks like
<yorickpeterse> Ah
<whitequark> (lowlevel intermediate representation.)
nyuszika7h has joined #ruby-lang
<yorickpeterse> Is it homebrew or based on some standard?
mrsolo has joined #ruby-lang
<whitequark> yorickpeterse: well, Furnace::SSA is very closely modelled after LLVM
benanne has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<yorickpeterse> Hm, I think I really should start messing around with LLVM one day
karasawa has quit [Ping timeout: 276 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
zmack has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
goshakkk has quit [Quit: Computer has gone to sleep.]
xcombelle has quit [Remote host closed the connection]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
goshakkk has joined #ruby-lang
ryanf has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
kiddorails has quit [Ping timeout: 255 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
larrylv has joined #ruby-lang
leopard_me has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
larrylv has quit [Ping timeout: 240 seconds]
voker57 has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 256 seconds]
karasawa has joined #ruby-lang
ssl has quit [Remote host closed the connection]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 256 seconds]
rolfb has joined #ruby-lang
yalue has quit [Quit: Leaving]
karasawa has quit [Ping timeout: 240 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
dc5ala has quit [Quit: Ex-Chat]
mrsolo has joined #ruby-lang
serhart has quit [Quit: Leaving.]
kogent_ has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
kogent_ has quit [Remote host closed the connection]
kogent_ has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent_ is now known as kogent
llaskin has joined #ruby-lang
<llaskin> anyone have experience running 1.9.3 on Windows?
<tbuehlmann> well, just installed it yesterday
<tbuehlmann> does that count as experience?
goshakkk has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
apeiros_ has quit [Remote host closed the connection]
<andrewvos> llaskin: What?
<andrewvos> llaskin: Question please
<llaskin> I managed to install 1.9.3 and ruby-debug-ide however, I'm getting errors in is_binary_data? and also this: https://gist.github.com/4478661 which seems ....strange
<llaskin> i expected the result on line 6 to be "Automation Test Same Shard01-07-2013--11-59-40 Site"
<llaskin> without the \s and []
<andrewvos> llaskin: Why is ot strange?
<andrewvos> Use puts instead of p then.
workmad3 has joined #ruby-lang
<llaskin> i'm also seeing these "Exception in DebugThread loop: undefined method `is_binary_data?' for "[[\"Automation Test Same Shard01-07-2013--11-59-40 Site\"]]":String
<llaskin> "
<andrewvos> I have no idea about that :)
<tbuehlmann> llaskin, can you provide a minimalist example for this?
<llaskin> sure one sec tbuehlmann
ebouchut has joined #ruby-lang
<llaskin> hrm
<llaskin> might be harder then I thought
lcdhoffman has joined #ruby-lang
KA_ has joined #ruby-lang
dankest has quit [Quit: Leaving...]
karasawa has joined #ruby-lang
jMCg has quit [Remote host closed the connection]
ebouchut has quit [Ping timeout: 276 seconds]
neocoin has quit [Remote host closed the connection]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
serhart has joined #ruby-lang
<andrewvos> llaskin: Print out RUBY_VERSION to see hwhat version pf ruby you're really running.
bantic has joined #ruby-lang
<andrewvos> of
<andrewvos> what
<andrewvos> *
<andrewvos> *
<llaskin> C:\Ruby193\bin>irb
<llaskin> irb(main):001:0> puts RUBY_VERSION
<llaskin> 1.9.3
<andrewvos> hm
sabfer has quit [Quit: sabfer]
alec has quit [Quit: back at putzis, slothrop curls in a wide crisp sheeted bed beside solange, asleep and dreaming about zwolfkinder, and bianca smiling, he and she riding on the wheel, their compartment become a room, one hes never seen, a room in a great complex of apartm]
<andrewvos> Do you need to require syck or something?
<llaskin> nope
<andrewvos> Or yaml? I have no idea.
<llaskin> never required syck
charliesome has joined #ruby-lang
karasawa has quit [Ping timeout: 252 seconds]
<andrewvos> Well try both.
<andrewvos> Unless someone who knows more than me chimes in.
aedorn has quit [Quit: Leaving]
<andrewvos> I read somewhere that that method has been deprecated.
jmeeuwen has quit [Ping timeout: 255 seconds]
tbuehlmann has quit [Remote host closed the connection]
<charliesome> "Additional notes"
<charliesome> "Never create Ruby strings longer than 23 characters"
<charliesome> ok.
<lianj> :D
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
<llaskin> andrew yea, is_binary_data is deprecated
<llaskin> this might be a wierd netbeans interaction
sspiff has quit [Remote host closed the connection]
nyuszika7h has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
nyuszika7h has joined #ruby-lang
dankest has joined #ruby-lang
<andrewvos> charliesome: Did you read it?
<andrewvos> charliesome: It's a good post as far as I can recall.
<charliesome> yeah i've read it a while ago
<charliesome> it's good
<charliesome> the title is only *slightly* linkbaity though
<andrewvos> heh
<andrewvos> Hacker News
Rarrikins_c_t has quit [Ping timeout: 276 seconds]
jmeeuwen has joined #ruby-lang
sailias has quit [Quit: Leaving.]
slyphon has quit [Ping timeout: 240 seconds]
Rarrikins_c_t has joined #ruby-lang
rondale_sc has quit [Quit: rondale_sc]
andrewhl has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
karasawa has joined #ruby-lang
alec has joined #ruby-lang
alec has quit [Client Quit]
alec has joined #ruby-lang
karasawa has quit [Ping timeout: 252 seconds]
mjio has joined #ruby-lang
madhadron has joined #ruby-lang
dankest has quit [Quit: Leaving...]
sush24_ has joined #ruby-lang
sush24 has quit [Read error: Connection reset by peer]
zhul_mechanos has quit [Remote host closed the connection]
zhul_mechanos has joined #ruby-lang
serhart has quit [Quit: Leaving.]
jtoy has joined #ruby-lang
sulo has quit [Remote host closed the connection]
sailias has joined #ruby-lang
sabfer has joined #ruby-lang
mjio has quit []
mjio has joined #ruby-lang
rondale_sc has joined #ruby-lang
rondale_sc has quit [Client Quit]
srbaker has quit [Ping timeout: 252 seconds]
scottschecter has joined #ruby-lang
srbaker has joined #ruby-lang
kurko_ has quit [Ping timeout: 276 seconds]
TerabyteST has quit [Quit: terabytest]
sepp2k1 has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
<madhadron> Does anyone have a pointer to how to set up RDoc for a project?
slyphon has joined #ruby-lang
<madhadron> As in, how do I get index.html to have something sane, how do I tell certain files to not be there?
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
mercwithamouth has quit [Ping timeout: 276 seconds]
zhul_mechanos has quit [Quit: zhul_mechanos]
karasawa has quit [Ping timeout: 248 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
Rarrikins_c_t has quit [Ping timeout: 246 seconds]
pkrnj has joined #ruby-lang
Rarrikins has joined #ruby-lang
mjio has quit []
Rarrikins_c has joined #ruby-lang
Rarrikins has quit [Ping timeout: 260 seconds]
breakingthings has quit []
mistym has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
blahwoop has quit [Ping timeout: 265 seconds]
mjio has joined #ruby-lang
kurko_ has joined #ruby-lang
karasawa has joined #ruby-lang
jtoy has quit [Quit: jtoy]
slyphon has quit [Ping timeout: 276 seconds]
blahwoop has joined #ruby-lang
kurko_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mpan has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
slyphon has joined #ruby-lang
solars has quit [Ping timeout: 276 seconds]
serhart has joined #ruby-lang
willdrew has quit [Ping timeout: 276 seconds]
alan_sebastian has joined #ruby-lang
mistym has joined #ruby-lang
alan_sebastian has quit [Client Quit]
nignaztic has joined #ruby-lang
nazty has quit [Read error: No route to host]
towski has joined #ruby-lang
dvorak has quit [Quit: leaving]
spuk has joined #ruby-lang
kogent_ has joined #ruby-lang
<madhadron> This is bizarre. I have a method in a module, and code farther down that module that calls it at evaluation time...
<madhadron> And it's giving me: undefined method `default_xml_library' for Splunk:Module (NoMethodError)
sush24_ has quit [Quit: This computer has gone to sleep]
kogent has quit [Read error: Operation timed out]
kogent_ is now known as kogent
<madhadron> Apparently, if you have a module A with a method in one file and code that calls it, and you include that file in another file that also puts code in module A, it can't find the method when the other code is executed.
hell_razer has joined #ruby-lang
<madhadron> No, worse.
<madhadron> Running this code — https://gist.github.com/4479722 — from the commandline results in
<madhadron> a.rb:6:in `<module:A>': undefined method `f' for A:Module (NoMethodError)
<madhadron> from a.rb:1:in `<main>'
<lianj> madhadron: ofc it does
<micaeked> madhadron: def self.f
itsmeduncan has joined #ruby-lang
<madhadron> micaeked: …that works.
<madhadron> Let's see if it works in the full size code base.
<lianj> madhadron: def f defines a instance method. def self.f defines a class method
<madhadron> On a module. Joy.
<madhadron> How do I just get a function in a namespace?
<lianj> ?
<madhadron> Modules are namespaces, in the absence of anything else. How do I define a function in the namespace that I can call after it's defined, both locally and from functions elsewhere, without having to prefix it with ModuleName. ?
<lianj> you cant
<lianj> unless you extend the main scope with that module
<madhadron> I see. So modules aren't actually namespaces, they're just the closet thing Ruby has.
mercwithamouth has joined #ruby-lang
<lianj> not sure what you want :) maybe show code
ryanf has quit [Ping timeout: 264 seconds]
<madhadron> Nevermind. It's not part of the public API so I can hack it. Anything extending the time I have to write Ruby isn't to be contemplated.
<lianj> maybe its worth learning ruby first ;)
kogent has quit [Quit: kogent]
<madhadron> lianj: I have. I just keep running across corner cases where the language design was obviously screwed up.
<madhadron> I mean, it's better than Perl or PHP, but still in the same category as those.
<madhadron> That sounds very close to a troll, I realize, but this project has largely been an exercise in frustration.