bright_day has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
Nisstyre-laptop has quit [Quit: Leaving]
beho has quit [Remote host closed the connection]
Rarrikins_a_w has quit [Ping timeout: 245 seconds]
Rarrikins_a_w has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tenderlove has quit [Ping timeout: 255 seconds]
RickHull1 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 255 seconds]
bright_d_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
AntiTyping has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kurko__ has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby-lang
kurko_ has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
bright_d_ has quit [Quit: Leaving...]
wyhaines has quit [Read error: Connection reset by peer]
geopet has quit [Quit: geopet]
wyhaines has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
carloslopes has joined #ruby-lang
havenn has joined #ruby-lang
Bwild has quit [Ping timeout: 252 seconds]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
iamjarvo has joined #ruby-lang
Averna has joined #ruby-lang
carloslopes has quit [Read error: Connection reset by peer]
mistym_ has quit [Read error: No route to host]
mistym_ has joined #ruby-lang
carloslopes has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
bright_day has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
bright_day has quit [Client Quit]
Bwild has joined #ruby-lang
<cirenyc>
Is there a good way to get the length (in lines of code) of a class and then similarly a count for each method in a class?
bright_day has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
bright_day has quit [Client Quit]
<zenspider>
cirenyc: why?
<cirenyc>
zenspider: Toying around w/ using the counts for code quality checks.
tomzx_mac has joined #ruby-lang
Rarrikins_a_w has quit [Ping timeout: 256 seconds]
<zenspider>
cirenyc: so when I write my code with lots of extra returns do I score better or worse than someone who writes code with lots of semicolons?
toretore has quit [Quit: Leaving]
Rarrikins_a_w has joined #ruby-lang
<andrewvos>
zenspider: Are you still maintaining autotest? Thought it would be perfect by now.
<andrewvos>
zenspider: Do
<andrewvos>
gahh
<cirenyc>
zenspider: To answer your question, my leaning would be towards better in that example...but...obiviously these wouldn't be hard checks.
<zenspider>
cirenyc: my point being, line counts don't reflect on quality at all
<zenspider>
a;b;c vs a\n\nb\n\nc
<zenspider>
they're the same code
<cirenyc>
I realize your point.
<andrewvos>
zenspider: Do you really use perforce or am I just missing some inside joke?
<zenspider>
andrewvos: I very much use perforce
<andrewvos>
zenspider: Why exactly?
<cirenyc>
zenspider: That said, a class w/ 10000 lines of code may be something at least worth looking into, no?
<cirenyc>
Or maybe a method with 200 lines?
<andrewvos>
cirenyc: A 10000 line class in Ruby might not be bad.
<zenspider>
andrewvos: superior tool that stays the fuck out of my way. unlike git (and pretty much everything else)
lcdhoffman has quit [Quit: lcdhoffman]
<zenspider>
cirenyc: not necessarily, no
<cirenyc>
andrewvos: Okay, make a million.
<cirenyc>
*it
<andrewvos>
zenspider: Git stays out of my way. What do you use perforce for?
<zenspider>
andrewvos: everything
<zenspider>
and no, git doesn't stay out of your way. you need to understand how the internals work to use it at all
JoelMcCracken has joined #ruby-lang
s1n4 has quit [Quit: leaving]
<zenspider>
cirenyc: if there is only one path through the million line method, then I'd say it isn't any more complex (conceptually) than a single path 10 line method
swav has quit [Ping timeout: 248 seconds]
<andrewvos>
cirenyc: Is this 10000 line file covered by tests? It is probably better off than 100 Java classes.
<zenspider>
again, line counts mean fuck-all
brianpWins has quit [Quit: brianpWins]
<zenspider>
your line counter will also completely miss dynamically generated classes and methods... which arguably is more important than all that boring statically written code
<andrewvos>
zenspider: Surely you understand the internals more than 99% of the population though?
<zenspider>
andrewvos: not in the least
<zenspider>
it's a horrible tool. why should I get good at something that is horrible?
imajes has quit [Excess Flood]
<cirenyc>
zenspider: I see your points. Do you have an answer to the question?
<zenspider>
cirenyc: write a ruby parser
imajes has joined #ruby-lang
<zenspider>
since you're insisting on NIH, you might as well do that too while you're at it
<cirenyc>
nih?
<zenspider>
not-invented-here
<cirenyc>
and i'm insisting on nih how?
<zenspider>
really? you're going to play coy?
idkazuma has quit [Remote host closed the connection]
<zenspider>
I've given you several reasons why the path you're going down is not well thought out. Despite that, you ask "Do you have an answer to the question", implying that you're going to go ahead with it anyhow. You obviously haven't researched this. You obviously haven't looked to see if anyone else has done this. If you did, you wouldn't have asked the question to begin with.
<zenspider>
but gosh... I couldn't possibly come to the conclusion that you're insisting on NIH, could I?
* zenspider
goes back to working on a similar tool that actually works
swav has joined #ruby-lang
innohero has joined #ruby-lang
<cirenyc>
Thanks for the pleasant response, zenspider. I was completely unfamiliar w/ NIH prior to a few minutes ago. Not being coy, not purposefully ignoring your suggestion. I was simply toying around w/ an idea, stupid one or not and more to learn a thing or two, and had a question that I thought I'd present to IRC.
<zenspider>
NIH is a good acronym to know. don't confuse it with national institute of health
ivanoats has quit [Remote host closed the connection]
<zenspider>
slightly different
<cirenyc>
It was the first result in a google search and one that I'm more familiar with.
<cirenyc>
And with all the possibilities many acronyms have, I thought it best to just ask.
<zenspider>
anyone have a good scheme for making it possible for plugins to extend your OptionParser setup? it looks messy
<zenspider>
I guess I'd have to have a chain of blocks to run inside my main processor
<zenspider>
blech
<drbrain>
zenspider: I've passed the OptionParser instance to a special method in the plugin
<zenspider>
passing it down? hrm
<zenspider>
example?
<zenspider>
I was thinking the plugin would register a block to run... but that could work too
sandbags has quit [Remote host closed the connection]
<postmodern>
drbrain, URL returns text/xml, shouldn't that result in a Mechanize::Page
<drbrain>
Mechanize::Page is for HTML, but text/xml is not necessarily HTML
Vektur has joined #ruby-lang
<postmodern>
drbrain, it's pretty close
<postmodern>
drbrain, and Nokogiri can handle XML
<postmodern>
ok going back to open-uri
<drbrain>
postmodern: not all XML has <meta content-type> or <title> or ...
<postmodern>
drbrain, all XML should have a DOCTYPE
<drbrain>
did something about setting the pluggable parser not work?
<drbrain>
would feeding the body through nokogiri after the fact not work?
<postmodern>
drbrain, yes, mechanize does not have a Page like class for XML documents
<postmodern>
drbrain, or RSS feeds more specifically
<drbrain>
last I checked, "should" != "must"
<postmodern>
drbrain, RSS being XML, and also defining a <language> tag
<postmodern>
drbrain, yes, those are two separate words :)
<postmodern>
so mechanize isn't working for my task, so i wont use it for requesting the RSS feed
<postmodern>
however, it should work for requesting the other html pages
mjio has joined #ruby-lang
lcdhoffman has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
<postmodern>
drbrain, success! mechanize is handling the unicode content just fine
reppard has joined #ruby-lang
brianpWins has joined #ruby-lang
emmdeeess has joined #ruby-lang
<emmdeeess>
@agent.get( 'http://website/image.png' ).save ('/path/image.png') won't overwrite the file if it already exists, how do i get it to do that?
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
<drbrain>
emmdeeess: you'll be able to do that in the next release
<emmdeeess>
dang
<drbrain>
emmdeeess: you could remove /path/image.png
<emmdeeess>
is there a quick way to delete the file before i download it?
<drbrain>
File.unlink '/path/image.png'
megha has quit [Quit: WeeChat 0.4.0]
baba has joined #ruby-lang
<emmdeeess>
you guys are the best
<emmdeeess>
thanks
foucist has joined #ruby-lang
<drbrain>
emmdeeess: injekt has been handling recent mechanize work, maybe he knows when the next release will be ready
<foucist>
variable extrapolation in regexp is kind of funny
<foucist>
foo = /b/; bar = /a#{foo}c/ #=> /a(?-mix:b)c/
kurko_ has quit [Quit: Computer has gone to sleep.]
bluepojo_ has joined #ruby-lang
bluepojo has quit [Ping timeout: 260 seconds]
bluepojo_ has quit [Ping timeout: 248 seconds]
jxie has joined #ruby-lang
reppard has quit [Ping timeout: 240 seconds]
ridget has quit [Read error: Connection reset by peer]
ridget has joined #ruby-lang
reppard has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
sn0wb1rd has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 244 seconds]
cupakromer has quit []
krz has joined #ruby-lang
jbsan has quit [Ping timeout: 248 seconds]
emocakes has quit [Quit: emocakes]
io_syl has quit [Ping timeout: 244 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
foucist has quit [Read error: Connection reset by peer]
bradland has quit [Read error: Connection reset by peer]
bradland has joined #ruby-lang
bryanl has quit [Ping timeout: 240 seconds]
joevandyk has joined #ruby-lang
ryanv-raptor has left #ruby-lang [#ruby-lang]
felipe has quit [*.net *.split]
mame1 has quit [*.net *.split]
krz has quit [*.net *.split]
KillerFox has quit [*.net *.split]
brianpWins has quit [*.net *.split]
liftM has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
vesan has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
t0h has quit [*.net *.split]
ramonmaruko has quit [*.net *.split]
slaytanic has quit [*.net *.split]
Glass_saga has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
steez has quit [*.net *.split]
znz_jp has quit [*.net *.split]
dabradley has quit [*.net *.split]
Kero has quit [*.net *.split]
intellitech has quit [*.net *.split]
amerine has quit [*.net *.split]
jperry2 has quit [*.net *.split]
kain has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
jaska has quit [*.net *.split]
totallymike has quit [*.net *.split]
dams has quit [*.net *.split]
freedrull has quit [*.net *.split]
levifig has quit [*.net *.split]
kennyvb has quit [*.net *.split]
knu has quit [*.net *.split]
ryanf has quit [*.net *.split]
mistym_ has quit [*.net *.split]
Rarrikins_a_w has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
chris2 has quit [*.net *.split]
s0ber has quit [*.net *.split]
ddv has quit [*.net *.split]
kotp has quit [*.net *.split]
cout has quit [*.net *.split]
hexreel has quit [*.net *.split]
eban has quit [*.net *.split]
narya_ has quit [*.net *.split]
epitron has quit [*.net *.split]
oddmunds has quit [*.net *.split]
mfn has quit [*.net *.split]
JoelMcCracken has quit [*.net *.split]
arubin has quit [*.net *.split]
drbrain has quit [*.net *.split]
mistym has quit [*.net *.split]
chendo_ has quit [*.net *.split]
cirenyc has quit [*.net *.split]
dvorak has quit [*.net *.split]
yibe_ has quit [*.net *.split]
wycats__ has quit [*.net *.split]
nmeum has quit [*.net *.split]
Caius has quit [*.net *.split]
hackeron has quit [*.net *.split]
ggreer has quit [*.net *.split]
flori has quit [*.net *.split]
dominikh has quit [*.net *.split]
swav has quit [*.net *.split]
mephux has quit [*.net *.split]
Fretta has quit [*.net *.split]
vbatts|work has quit [*.net *.split]
x0F has quit [*.net *.split]
insane_kangaroo has quit [*.net *.split]
priodev has quit [*.net *.split]
voker57 has quit [*.net *.split]
melter has quit [*.net *.split]
rebelcan has quit [*.net *.split]
eam has quit [*.net *.split]
tpope has quit [*.net *.split]
nibbo has quit [*.net *.split]
soahccc has quit [*.net *.split]
asio has quit [*.net *.split]
kirin` has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
herpless has quit [*.net *.split]
dreinull_ has quit [*.net *.split]
MrWGW- has quit [*.net *.split]
ridget has quit [*.net *.split]
djwonk has quit [*.net *.split]
pbjorklund has quit [*.net *.split]
stardiviner has quit [*.net *.split]
sduckett has quit [*.net *.split]
Guest85414 has quit [*.net *.split]
wudofyr_ has quit [*.net *.split]
joschi has quit [*.net *.split]
remi has quit [*.net *.split]
amateurhuman has quit [*.net *.split]
Spakman_ has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
[dmp]_ has quit [*.net *.split]
hagabaka has quit [*.net *.split]
_ko1 has quit [*.net *.split]
wyhaines has quit [*.net *.split]
tenderlove has quit [*.net *.split]
sebasoga has quit [*.net *.split]
singpolyma has quit [*.net *.split]
bryno has quit [*.net *.split]
djinni` has quit [*.net *.split]
ReinH has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
nirix has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
sheerun has quit [*.net *.split]
vgoff has quit [*.net *.split]
johnnyfive has quit [*.net *.split]
Vektur has quit [*.net *.split]
techlife has quit [*.net *.split]
canton7 has quit [*.net *.split]
bcardarella has quit [*.net *.split]
matthewd has quit [*.net *.split]
kalleth has quit [*.net *.split]
meizaps has quit [*.net *.split]
s4muel has quit [*.net *.split]
madveru has quit [*.net *.split]
msch has quit [*.net *.split]
reppard has quit [*.net *.split]
Cherrum has quit [*.net *.split]
imajes has quit [*.net *.split]
soypirate has quit [*.net *.split]
postmodern has quit [*.net *.split]
gix has quit [*.net *.split]
dustint has quit [*.net *.split]
erichmenge has quit [*.net *.split]
setmeaway2 has quit [*.net *.split]
matled has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
dyfrgi has quit [*.net *.split]
jasiek has quit [*.net *.split]
llakey has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
flexd has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
floyd2_ has quit [*.net *.split]
scrr has quit [*.net *.split]
havenn_ has quit [*.net *.split]
mjio has quit [*.net *.split]
Banistergalaxy has quit [*.net *.split]
wallerdev has quit [*.net *.split]
stonerfish has quit [*.net *.split]
Asher has quit [*.net *.split]
jayne has quit [*.net *.split]
UziMonkey has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
guilleiguaran has quit [*.net *.split]
ahf has quit [*.net *.split]
rondale_sc has quit [*.net *.split]
zigidias has quit [*.net *.split]
injekt has quit [*.net *.split]
zzak has quit [*.net *.split]
crankharder has quit [*.net *.split]
adgar has quit [*.net *.split]
lianj has quit [*.net *.split]
ironcamel has quit [*.net *.split]
dRbiG has quit [*.net *.split]
foca has quit [*.net *.split]
neurodamage has quit [*.net *.split]
hachiya has quit [*.net *.split]
jarib has quit [*.net *.split]
bstrie has quit [*.net *.split]
cyndis has quit [*.net *.split]
adam12 has quit [*.net *.split]
fumduq has quit [*.net *.split]
franckverrot has quit [*.net *.split]
fuzzy8balls has quit [*.net *.split]
akamike has quit [*.net *.split]
mksm has quit [*.net *.split]
nick_h has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
Gate has quit [*.net *.split]
innohero has quit [*.net *.split]
dbussink has quit [*.net *.split]
ohsix has quit [*.net *.split]
tylersmith has quit [*.net *.split]
wizonesolutions has quit [*.net *.split]
grandy has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
crudson1 has quit [*.net *.split]
joast has quit [*.net *.split]
snk has quit [*.net *.split]
aef has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
shaman42 has quit [*.net *.split]
ged has quit [*.net *.split]
mahlon has quit [*.net *.split]
weeb1e has quit [*.net *.split]
zcl0ud has quit [*.net *.split]
duckinator has quit [*.net *.split]
znz_v has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
levicole has quit [*.net *.split]
dous has quit [*.net *.split]
tsou has quit [*.net *.split]
huydx has quit [*.net *.split]
DEac- has quit [*.net *.split]
bpot has quit [*.net *.split]
jashank has quit [*.net *.split]
musl has quit [*.net *.split]
shajith has quit [*.net *.split]
vbatts has quit [*.net *.split]
anekos has quit [*.net *.split]
tris has quit [*.net *.split]
sonne has quit [*.net *.split]
masterkorp has quit [*.net *.split]
khaase has quit [*.net *.split]
TTilus has quit [*.net *.split]
emmdeeess has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
fsvehla has quit [*.net *.split]
achiu has quit [*.net *.split]
Weems has quit [*.net *.split]
lucas has quit [*.net *.split]
matti has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
tos9 has quit [*.net *.split]
brixen has quit [*.net *.split]
akahn has quit [*.net *.split]
Cope has quit [*.net *.split]
rking has quit [*.net *.split]
pabs has quit [*.net *.split]
jsaak has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
spectra has quit [*.net *.split]
bradland has quit [*.net *.split]
baba has quit [*.net *.split]
lcdhoffman has quit [*.net *.split]
AntiTyping has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
RickHull1 has quit [*.net *.split]
aedorn has quit [*.net *.split]
dcwu has quit [*.net *.split]
kith has quit [*.net *.split]
rue has quit [*.net *.split]
retro|cz has quit [*.net *.split]
Smol has quit [*.net *.split]
sora_h has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
FiXato has quit [*.net *.split]
abuiles_ has quit [*.net *.split]
kvs has quit [*.net *.split]
theoros has quit [*.net *.split]
benwoody has quit [*.net *.split]
pkondzior__ has quit [*.net *.split]
randym has quit [*.net *.split]
shachaf has quit [*.net *.split]
mitchty has quit [*.net *.split]
xsdg has quit [*.net *.split]
kke has quit [*.net *.split]
jwollert has quit [*.net *.split]
wang has quit [*.net *.split]
mbr has quit [*.net *.split]
lake has quit [*.net *.split]
thone_ has quit [*.net *.split]
Averna has quit [*.net *.split]
Bwild has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
tdy has quit [*.net *.split]
Muz has quit [*.net *.split]
ruskie has quit [*.net *.split]
rdw200169 has quit [*.net *.split]
Axsuul has quit [*.net *.split]
bougyman has quit [*.net *.split]
DefV has quit [*.net *.split]
lele|w has quit [*.net *.split]
L0rdShrek____ has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
dumfries has quit [*.net *.split]
yellow5 has quit [*.net *.split]
_dumfries has quit [*.net *.split]
neocoin has quit [*.net *.split]
ebouchut has quit [*.net *.split]
_Mon_Ouie_ has quit [*.net *.split]
GitNick has quit [*.net *.split]
Guest16497 has quit [*.net *.split]
meise has quit [*.net *.split]
corundum has quit [*.net *.split]
ericwood has quit [*.net *.split]
cschneid has quit [*.net *.split]
Mellett68 has quit [*.net *.split]
anildigital_work has quit [*.net *.split]
darix has quit [*.net *.split]
bedouin has quit [*.net *.split]
rtl has quit [*.net *.split]
rwjblue has quit [*.net *.split]
andrewvos has quit [*.net *.split]
blowmage has quit [*.net *.split]
jaymes has quit [*.net *.split]
joevandyk has quit [*.net *.split]
spuk_ has quit [*.net *.split]
tonni__ has quit [*.net *.split]
face has quit [*.net *.split]
naquad has quit [*.net *.split]
scottschecter has quit [*.net *.split]
earthquake has quit [*.net *.split]
zanea_ has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
thorncp has quit [*.net *.split]
heftig has quit [*.net *.split]
mihar has quit [*.net *.split]
wnd has quit [*.net *.split]
linc01n has quit [*.net *.split]
pnr has quit [*.net *.split]
jaimef has quit [*.net *.split]
FastJack has quit [*.net *.split]
whitequark has quit [*.net *.split]
Paradox has quit [*.net *.split]
badeball has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
jstemmer has quit [*.net *.split]
kuja has quit [*.net *.split]
manveru has quit [*.net *.split]
hibariya has quit [*.net *.split]
reactormonk has quit [*.net *.split]
faen has quit [*.net *.split]
conceal_rs_ has quit [*.net *.split]
devn has quit [*.net *.split]
certainty has quit [*.net *.split]
joren_ has quit [*.net *.split]
segfault_ has quit [Ping timeout: 246 seconds]
alvaro_o has quit [Quit: Ex-Chat]
bedouin has joined #ruby-lang
cschneid has joined #ruby-lang
Guest16497 has joined #ruby-lang
corundum has joined #ruby-lang
ebouchut has joined #ruby-lang
meise has joined #ruby-lang
_Mon_Ouie_ has joined #ruby-lang
jwollert has joined #ruby-lang
anildigital_work has joined #ruby-lang
wang has joined #ruby-lang
neocoin has joined #ruby-lang
shachaf has joined #ruby-lang
rue has joined #ruby-lang
FiXato has joined #ruby-lang
ddfreyne has joined #ruby-lang
RickHull1 has joined #ruby-lang
kke has joined #ruby-lang
mbr has joined #ruby-lang
Smol has joined #ruby-lang
kvs has joined #ruby-lang
erichmenge has joined #ruby-lang
abuiles_ has joined #ruby-lang
rtinker has joined #ruby-lang
aedorn has joined #ruby-lang
xsdg has joined #ruby-lang
valeri_ufo has joined #ruby-lang
GitNick has joined #ruby-lang
amateurhuman has joined #ruby-lang
retro|cz has joined #ruby-lang
AntiTyping has joined #ruby-lang
theoros has joined #ruby-lang
_ko1 has joined #ruby-lang
ridget has joined #ruby-lang
EvilJStoker has joined #ruby-lang
dcwu has joined #ruby-lang
Kuukunen has joined #ruby-lang
sduckett has joined #ruby-lang
krz has joined #ruby-lang
herpless has joined #ruby-lang
melter has joined #ruby-lang
Fretta has joined #ruby-lang
mfn has joined #ruby-lang
vbatts|work has joined #ruby-lang
jmeeuwen has joined #ruby-lang
djwonk has joined #ruby-lang
soahccc has joined #ruby-lang
narya_ has joined #ruby-lang
steez has joined #ruby-lang
vesan has joined #ruby-lang
tjadc has joined #ruby-lang
epitron has joined #ruby-lang
ramonmaruko has joined #ruby-lang
dvorak has joined #ruby-lang
77CAAL5XC has joined #ruby-lang
wudofyr_ has joined #ruby-lang
s0ber has joined #ruby-lang
kotp has joined #ruby-lang
ryanf has joined #ruby-lang
Caius has joined #ruby-lang
ddv has joined #ruby-lang
Rarrikins_a_w has joined #ruby-lang
darix has joined #ruby-lang
ioga_wrk has joined #ruby-lang
[dmp]_ has joined #ruby-lang
slaytanic has joined #ruby-lang
joschi has joined #ruby-lang
eban has joined #ruby-lang
dabradley has joined #ruby-lang
yibe_ has joined #ruby-lang
t0h has joined #ruby-lang
lcdhoffman has joined #ruby-lang
remi has joined #ruby-lang
wycats__ has joined #ruby-lang
asio has joined #ruby-lang
Spakman_ has joined #ruby-lang
voker57 has joined #ruby-lang
rebelcan has joined #ruby-lang
cirenyc has joined #ruby-lang
eam has joined #ruby-lang
kith has joined #ruby-lang
sora_h has joined #ruby-lang
tpope has joined #ruby-lang
Kero has joined #ruby-lang
oddmunds has joined #ruby-lang
lake has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
Mellett68 has joined #ruby-lang
mitchty has joined #ruby-lang
flori has joined #ruby-lang
nmeum has joined #ruby-lang
hagabaka has joined #ruby-lang
kirin` has joined #ruby-lang
pbjorklund has joined #ruby-lang
brianpWins has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
Glass_saga has joined #ruby-lang
cout has joined #ruby-lang
MrWGW- has joined #ruby-lang
stardiviner has joined #ruby-lang
lsegal has joined #ruby-lang
hexreel has joined #ruby-lang
chris2 has joined #ruby-lang
chimkan_ has joined #ruby-lang
swav has joined #ruby-lang
znz_jp has joined #ruby-lang
bradland has joined #ruby-lang
pkondzior__ has joined #ruby-lang
nibbo has joined #ruby-lang
priodev has joined #ruby-lang
randym has joined #ruby-lang
mistym_ has joined #ruby-lang
ericwood has joined #ruby-lang
nyuszika7h has joined #ruby-lang
benwoody has joined #ruby-lang
dreinull_ has joined #ruby-lang
mistym has joined #ruby-lang
hackeron has joined #ruby-lang
Guest85414 has joined #ruby-lang
ggreer has joined #ruby-lang
x0F has joined #ruby-lang
knu has joined #ruby-lang
freedrull has joined #ruby-lang
jaska has joined #ruby-lang
TTilus has joined #ruby-lang
amerine has joined #ruby-lang
Cherrum has joined #ruby-lang
spectra has joined #ruby-lang
dams has joined #ruby-lang
CoverSlide has joined #ruby-lang
khaase has joined #ruby-lang
masterkorp has joined #ruby-lang
adgar has joined #ruby-lang
kalleth has joined #ruby-lang
Gate has joined #ruby-lang
tris has joined #ruby-lang
jarib has joined #ruby-lang
jperry2 has joined #ruby-lang
msch has joined #ruby-lang
totallymike has joined #ruby-lang
fuzzy8balls has joined #ruby-lang
zcl0ud has joined #ruby-lang
bstrie has joined #ruby-lang
levifig has joined #ruby-lang
injekt has joined #ruby-lang
zzak has joined #ruby-lang
sonne has joined #ruby-lang
foca has joined #ruby-lang
ironcamel has joined #ruby-lang
akamike has joined #ruby-lang
zigidias has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
jsaak has joined #ruby-lang
vbatts has joined #ruby-lang
lianj has joined #ruby-lang
weeb1e has joined #ruby-lang
znz_v has joined #ruby-lang
anekos has joined #ruby-lang
davidbalber|away has joined #ruby-lang
canton7 has joined #ruby-lang
pabs has joined #ruby-lang
shajith has joined #ruby-lang
s4muel has joined #ruby-lang
madveru has joined #ruby-lang
rking has joined #ruby-lang
crankharder has joined #ruby-lang
bcardarella has joined #ruby-lang
mahlon has joined #ruby-lang
meizaps has joined #ruby-lang
nick_h has joined #ruby-lang
mksm has joined #ruby-lang
kennyvb has joined #ruby-lang
kain has joined #ruby-lang
neurodamage has joined #ruby-lang
johnnyfive has joined #ruby-lang
cHarNe2 has joined #ruby-lang
rondale_sc has joined #ruby-lang
matthewd has joined #ruby-lang
franckverrot has joined #ruby-lang
levicole has joined #ruby-lang
akahn has joined #ruby-lang
hachiya has joined #ruby-lang
adam12 has joined #ruby-lang
musl has joined #ruby-lang
jasiek has joined #ruby-lang
llakey has joined #ruby-lang
ged has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
duckinator has joined #ruby-lang
fumduq has joined #ruby-lang
yeltzooo has joined #ruby-lang
pcboy_ has joined #ruby-lang
joast has joined #ruby-lang
dRbiG has joined #ruby-lang
yfeldblum has joined #ruby-lang
brixen has joined #ruby-lang
dyfrgi has joined #ruby-lang
jayne has joined #ruby-lang
matti has joined #ruby-lang
SubSpawn has joined #ruby-lang
ahf has joined #ruby-lang
achiu has joined #ruby-lang
snk has joined #ruby-lang
threedaymonk has joined #ruby-lang
bryno has joined #ruby-lang
wizonesolutions has joined #ruby-lang
wallerdev has joined #ruby-lang
dous has joined #ruby-lang
tsou has joined #ruby-lang
bpot has joined #ruby-lang
guilleiguaran has joined #ruby-lang
singpolyma has joined #ruby-lang
mephux has joined #ruby-lang
havenwood has joined #ruby-lang
imajes has joined #ruby-lang
sheerun has joined #ruby-lang
Asher has joined #ruby-lang
wasnotrice has joined #ruby-lang
tenderlove has joined #ruby-lang
grandy has joined #ruby-lang
flexd has joined #ruby-lang
Xzyx987X has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
matled has joined #ruby-lang
pnr has joined #ruby-lang
wyhaines has joined #ruby-lang
floyd2_ has joined #ruby-lang
faen has joined #ruby-lang
tos9 has joined #ruby-lang
badeball has joined #ruby-lang
crudson1 has joined #ruby-lang
dustint has joined #ruby-lang
naquad has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
ReinH has joined #ruby-lang
setmeaway2 has joined #ruby-lang
mjio has joined #ruby-lang
mercwithamouth has joined #ruby-lang
earthquake has joined #ruby-lang
DEac- has joined #ruby-lang
mihar has joined #ruby-lang
FastJack has joined #ruby-lang
KA_ has joined #ruby-lang
scottschecter has joined #ruby-lang
jashank has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Weems has joined #ruby-lang
spuk_ has joined #ruby-lang
whitequark has joined #ruby-lang
shaman42 has joined #ruby-lang
wnd has joined #ruby-lang
certainty has joined #ruby-lang
bryanl has joined #ruby-lang
tonni__ has joined #ruby-lang
Paradox has joined #ruby-lang
fsvehla has joined #ruby-lang
djinni` has joined #ruby-lang
aef has joined #ruby-lang
huydx has joined #ruby-lang
zanea_ has joined #ruby-lang
Cope has joined #ruby-lang
postmodern has joined #ruby-lang
joevandyk has joined #ruby-lang
jaymes has joined #ruby-lang
blowmage has joined #ruby-lang
jaimef has joined #ruby-lang
techlife has joined #ruby-lang
emmdeeess has joined #ruby-lang
dbussink has joined #ruby-lang
face has joined #ruby-lang
linc01n has joined #ruby-lang
rtl has joined #ruby-lang
cyndis has joined #ruby-lang
ezkl has joined #ruby-lang
thorncp has joined #ruby-lang
scrr has joined #ruby-lang
JohnBat26 has joined #ruby-lang
nirix has joined #ruby-lang
stonerfish has joined #ruby-lang
vgoff has joined #ruby-lang
gix has joined #ruby-lang
ohsix has joined #ruby-lang
robbyoconnor has joined #ruby-lang
rwjblue has joined #ruby-lang
sebasoga has joined #ruby-lang
UziMonkey has joined #ruby-lang
samuelkadolph has joined #ruby-lang
Guest82066 has joined #ruby-lang
lucas has joined #ruby-lang
baba has joined #ruby-lang
innohero has joined #ruby-lang
andrewvos has joined #ruby-lang
coffeejunk has joined #ruby-lang
mame1 has joined #ruby-lang
KillerFox has joined #ruby-lang
reactormonk has joined #ruby-lang
felipe has joined #ruby-lang
hibariya has joined #ruby-lang
jstemmer has joined #ruby-lang
devn has joined #ruby-lang
conceal_rs_ has joined #ruby-lang
joren_ has joined #ruby-lang
kuja has joined #ruby-lang
manveru has joined #ruby-lang
Bwild has joined #ruby-lang
ruskie has joined #ruby-lang
Muz has joined #ruby-lang
L0rdShrek____ has joined #ruby-lang
_dumfries has joined #ruby-lang
thone_ has joined #ruby-lang
lele|w has joined #ruby-lang
tdy has joined #ruby-lang
yellow5 has joined #ruby-lang
Averna has joined #ruby-lang
DefV has joined #ruby-lang
bougyman has joined #ruby-lang
dumfries has joined #ruby-lang
gianlucadv has joined #ruby-lang
Axsuul has joined #ruby-lang
rdw200169 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
nazty has joined #ruby-lang
totallymike has quit [Excess Flood]
techlife has quit [Max SendQ exceeded]
dominikh has joined #ruby-lang
techlife has joined #ruby-lang
totallymike has joined #ruby-lang
totallymike is now known as Guest97912
Guest97912 has quit [Remote host closed the connection]
rtinker has left #ruby-lang [#ruby-lang]
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
kirin` has quit [Ping timeout: 276 seconds]
kirin` has joined #ruby-lang
agile has joined #ruby-lang
kurko_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<whitequark>
I've just realized that my homegrown parser compiler might in fact be better suited for parsing ruby than ragel+racc or whatever
<whitequark>
let me explain with an example
<yorickpeterse>
oh?
<yorickpeterse>
Is it webscale>?
<whitequark>
I currently have the following grammar: decl ::= name datatype; name ::= (\w+)\s*; datatype ::= int | bool;
<whitequark>
grammars like this pose a significant problem to traditional 2-phase parsers, as `int' would indeed be parsed as a reserved word, and the nonterminal `decl' won't match
<whitequark>
while writing a lexer for ruby, you'll face this problem and probably solve it by making the lexer only one step ahead of parser and adding state (bareword|keyword) to it
<whitequark>
which is complicated and error-prone
<whitequark>
I simply have regular expressions for terminals, and my LALR compiler 1) has a well-defined order in which rules are applied 2) only looks at the grammar with the resolution of a single terminal
<whitequark>
i.e. it doesn't look inside terminals
<yorickpeterse>
hmm
<whitequark>
so, it seems to me that this approach allows for a much simpler parser, except for some whitespace weirdness.
Criztian has joined #ruby-lang
<whitequark>
also the complete ruby source for the parser is 350 LOC, and it doesn't require code generation. OTOH, it is a recursive descent parser, and might exhaust system stack space on pathological inputs.
<yorickpeterse>
only 350 LOC? what the hell
<whitequark>
yorickpeterse: 1/3 of them is for error handling neatness :)
zmack has quit [Remote host closed the connection]
<josh0x0>
Hi! I'm trying to install 1.9.3 to osx and getting compile errors that I can't make sense of. Mind taking a look? Thanks https://gist.github.com/joshm1/4740572
techlife has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby-lang
<havenwood>
josh0x0: Have you installed any dependencies listed under?: rvm requirements
KA_ has quit [Quit: KA_]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
KA_ has joined #ruby-lang
<josh0x0>
@havenwood i just found out about that. and no, it seems the change to clang was the issue. thanks for taking a look
maxmanders has quit [Quit: Computer has gone to sleep.]
techlife has joined #ruby-lang
<havenwood>
josh0x0: np, happy hacking!
sush24 has quit [Quit: This computer has gone to sleep]
pbjorklund has quit [Read error: Operation timed out]
amerine has joined #ruby-lang
KA_ has quit [Quit: KA_]
cordax has joined #ruby-lang
alvaro_o has joined #ruby-lang
cordax has quit [Client Quit]
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
beiter has quit [Quit: beiter]
mrsolo has joined #ruby-lang
cout is now known as Avogadro
pbjorklund has joined #ruby-lang
Technodrome has left #ruby-lang [#ruby-lang]
francisfish has quit [Remote host closed the connection]
malev has quit [Read error: Connection reset by peer]
<chudler>
I'm also wondering if someone knows a language supporting that, say: %w[spring summer fall winter].zip(_myself)
islander has joined #ruby-lang
Uranio has quit [Quit: while you reading this, a kitty dies]
davidbalber|away is now known as davidbalbert
sepp2k has quit [Remote host closed the connection]
<injekt>
ar.map { |x| [x, x] }
<injekt>
scala and groovy both use _
<islander>
Hi, I have a really newbie question. Is there any way I can shorten or set a directory default for irb to load .rb files instead of typing the entire dir path every time?
<injekt>
islander: add Dir.chdir('path/to/dir') in .irbrc and it'll move there every time you start irb
<chudler>
injekt: thanks! I forgot I had tested that
sandbags has joined #ruby-lang
<islander>
injekt: Is irbrc only for Rails?
<injekt>
no
<injekt>
its for irb
JoelMcCracken has quit [Ping timeout: 252 seconds]
Uranio has joined #ruby-lang
<islander>
Oh okay, thank you!
<Uranio>
darix: hi, remember the yesterday problem? posting for a site, resolved with restclient
brian__ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
Rarrikins_a_w has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby-lang
Rarrikins_a_w has joined #ruby-lang
Rarrikins_a_w_d has joined #ruby-lang
Guest__ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
lcdhoffman has quit [Quit: lcdhoffman]
tenderlove has joined #ruby-lang
francisfish has joined #ruby-lang
Rarrikins_a_w has quit [Ping timeout: 255 seconds]
drbrain has joined #ruby-lang
rking has quit [Quit: WeeChat 0.4.0-rc1]
GarethAdams has joined #ruby-lang
joevandyk has joined #ruby-lang
workmad3 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
MaddinXx has quit [Remote host closed the connection]
Guest__ has left #ruby-lang [#ruby-lang]
G________ has joined #ruby-lang
G________ has quit [Client Quit]
<Uranio>
irb(main):001:0> puts RUBY_VERSION
<Uranio>
2.0.0
<Uranio>
UUUH YEAH! :D
djwonk has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 248 seconds]
davidbalbert is now known as davidbalber|away
joevandyk has quit [Read error: Connection reset by peer]
joevandyk has joined #ruby-lang
<yorickpeterse>
Final release should be in about two weeks if all goes well
<Uranio>
unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/sinatra/images/404.png, skipping
<Uranio>
:D
<Uranio>
the world is a better place
<yorickpeterse>
I had a nice encoding issue today
<yorickpeterse>
I passed a nil value to Prawn::Document and it said that the specified string was not a valid UTF-8 encoded string
<firefux>
now for all the nice gems to support 2.0
ryanf has joined #ruby-lang
joevandyk has quit [Ping timeout: 256 seconds]
joevandyk has joined #ruby-lang
<yorickpeterse>
brixen: out of curiosity (and maybe this is not the right place), is there an estimate of when the new melbourne parsers will become available?
MaddinXx has joined #ruby-lang
<brixen>
yorickpeterse: I've got a couple items to do first but hopefully in the next few weeks
<yorickpeterse>
brixen: awesome, can Melbourne run on non Rbx environments or is it going to depend on it?
<banisterfiend>
brixen: word on the street is you changed your last name to your wife's after marriage (rather than the other way round), is this just a weird rumor? :D
joevandyk has quit [Client Quit]
<brixen>
yorickpeterse: right now they depend on a C-API, not anything rbx specific
<brixen>
banisterfiend: hah, word really gets around on those streets
<yorickpeterse>
brixen: is that going to stay that way? The reason for asking is because right now I'm using Ripper but yeah, I'm not very happy with it
<yorickpeterse>
it's....special
<brixen>
yorickpeterse: well, ripper gives you access to some lexer events, iirc
<yorickpeterse>
Correct, it's fairly low level and gives you access to quite a bit. However, the API is not very pleasant to work with and it's not cross-implementation
<yorickpeterse>
jruby is working on supporting it but that's probably going to take a while
<brixen>
yorickpeterse: do you need lexer events?
<yorickpeterse>
And right now I'm more working around its quirks instead of actually enjoying using it
<yorickpeterse>
For the time being, no. I'm only using the sexp processing API at the moment
francisfish has quit [Remote host closed the connection]
<yorickpeterse>
Not sure if I'll ever need it either
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
<yorickpeterse>
It's for a linter and looking at things currently the only reason for me using the lexer API would be to extract comments. This is something I don't plan on dealing with any time soon.
<brixen>
yorickpeterse: ok, cool
<brixen>
yorickpeterse: ideally, I will add column info to nodes and whitespace nodes someday
<yorickpeterse>
hm, column information would be crucial. The lack of this is by far the biggest reason I can't use ruby_parser
<yorickpeterse>
Saying something like "undefined variable on line 1" when there's 200 characters on a line isn't going to help developers a lot
emmdeeess has quit [Ping timeout: 252 seconds]
davidbalber|away is now known as davidbalbert
geopet has quit [Quit: geopet]
krohrbaugh has quit [Quit: Leaving.]
joevandyk has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby-lang
<brixen>
yeah
mephux has quit [Excess Flood]
<banisterfiend>
brixen: oh i found something pretty weird
<banisterfiend>
brixen: module A; end; module B; include A; end; when i do that i get a method called __module_init__ inside B whose source_location points to the 'include' line
<brixen>
yorickpeterse: a lot of that you can do by processing that specific line of text
<banisterfiend>
brixen: what's that about?
<brixen>
banisterfiend: all execution contexts in rbx are compiled code instances
<brixen>
so module Foo has a __module_init__ that is the module body
<brixen>
similar for class
<brixen>
__script__ for script
<banisterfiend>
hm
mephux has joined #ruby-lang
<brixen>
banisterfiend: you know how to show bytecode from the rbx compiler?
ryanf has quit [Read error: Connection reset by peer]