<yorickpeterse>
heh no, I'll get to it in the evening probably
<yorickpeterse>
would be nice if I could somehow include information about the current AST node in generic stack traces
<yorickpeterse>
that way it would be a lot easier to see where exactly it breaks
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
face has joined #ruby-lang
marr has joined #ruby-lang
chrisenytc has joined #ruby-lang
<yorickpeterse>
judofyr: also, thanks for giving it a try. I'm kinda amazed people know it's still there after not having a release for 6 months
alessio_rocco has joined #ruby-lang
gnufied has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
tockitj has quit [Read error: Operation timed out]
alessio_rocco has joined #ruby-lang
chendo_ has joined #ruby-lang
swav has joined #ruby-lang
happydude has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
alessio_rocco has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby-lang
alessio_rocco has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
<ddfreyne>
yorickpeterse: Cool, hadn’t heard of ruby-lint before. It crashes with undefined method `lookup' for nil:NilClass (NoMethodError) for nanoc though :)
<injekt>
moin
<ddfreyne>
judofyr: You do like templating engines, eh? :)
sonne has quit [Ping timeout: 255 seconds]
divout has quit [Remote host closed the connection]
<yorickpeterse>
ddfreyne: see the issue reported by judofyr
<yorickpeterse>
but do make a comment it also affects you
<yorickpeterse>
That way people know they're not alone
sonne has joined #ruby-lang
<ddfreyne>
Yeah, it’s the same issue indeed
jovy88 has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby-lang
swav has quit [Ping timeout: 248 seconds]
jovy88 has joined #ruby-lang
lsumner has quit [Remote host closed the connection]
divout has joined #ruby-lang
sonne has quit [Ping timeout: 260 seconds]
<whitequark>
yorickpeterse: lol +1 on lint suggestion
<yorickpeterse>
meh, not going to rename it again
<whitequark>
again?
<injekt>
:D
<yorickpeterse>
whitequark: it was initially called rlint
<yorickpeterse>
but apparently there was already a Gem with that name
<yorickpeterse>
So I started work on using parser, I was amazed that removing my spec/ruby-lint/parser directory didn't even remove that many tests
<whitequark>
(thank god I'm not using rspec)
<yorickpeterse>
only about 40 specifications or so
* whitequark
wonders if anyone is up to writing a ruby_parser compat layer
<whitequark>
I'm sick of this parsing shit already
<injekt>
lol
* whitequark
conscripts inkjet!
<yorickpeterse>
judofyr: ddfreyne: also, please do run ruby-lint on more production code. I've only tested it on what's in the spec/ directory as well as simple snippets
<yorickpeterse>
(warning: expect a lot of "Undefined constants SomeModel" errors)
<whitequark>
yorickpeterse: does it lint itself
<yorickpeterse>
whitequark: most of it, yes
<yorickpeterse>
as in, what I tested now works
<injekt>
how meta
<yorickpeterse>
hm, seems it's still a bit stupid with op assignments though
bzalasky has quit [Remote host closed the connection]
<whitequark>
hi mbj
havenwood has joined #ruby-lang
<judofyr>
ddfreyne: re: template engine. ehm, yes, why are you mentioning this now? :P
<mbj>
whitequark: hi
<mbj>
whitequark: mutant is green again, a precondition to port it to your parser.
<whitequark>
nice
<mbj>
whitequark: Still busy, but about to do the last stuff for my current client.
<ddfreyne>
I would love to spend some more time writing parsers
<ddfreyne>
I’d love to start working on my own programming language again…
baba is now known as cod3r
<ddfreyne>
But yeah, TOTAL lack of time :(
thone has joined #ruby-lang
<mbj>
whitequark: Are you getting payed while working on parser?
havenwood has quit [Ping timeout: 252 seconds]
<whitequark>
mbj: yeah, it's a part of foundry
<yorickpeterse>
Today I used #each_with_object
<yorickpeterse>
I'm not sure who suggested it again but I love it
<yorickpeterse>
so thank you
<whitequark>
yorickpeterse: thanks for not abusing inkjet
<yorickpeterse>
giggity
<ddfreyne>
yorickpeterse: inkjet did I think… but I also recommended not using #inkjet for that
<mbj>
yorickpeterse: yeah each_with_object is nice, and also easier to use than #inject / #reduce. I always mix up the accumulator position in the block.
<ddfreyne>
They both have their uses
<mbj>
With #each_with_object it is pretty obvious the "object" is the last block arg.
<judofyr>
I still feel #each_with_object is too long
<ddfreyne>
I think it’s easier to understand #inject if you start writing a function using explicit recursion with an explicit accumulator argument, and then move to higher-order functions (which is what inject is)
<mbj>
I try to use inject / reduce *only* if the accumulator object is "new" for each iteration.
<ddfreyne>
mbj: Good, because that is the way it is meant to be used :)
thone has quit [Ping timeout: 248 seconds]
<yorickpeterse>
also, a common thing I do is "remapping" existing data sets as following: http://pastie.org/7702135
<yorickpeterse>
This works due to objects being passed as references, but it's meh
<yorickpeterse>
However, creating an entire copy of the enumerable is also meh
<yorickpeterse>
Any suggestions?
<ddfreyne>
yorickpeterse: Hmm, what’s wrong with just #map ?
<ddfreyne>
Do you want to modify the originals or just return a changed array?
<injekt>
INKJET
ikrima has quit [Quit: Computer has gone to sleep.]
<yorickpeterse>
ddfreyne: yes, generally I add some extra field to it or modify an existing one
<ddfreyne>
yorickpeterse: #map! ?
<yorickpeterse>
a common use for me is that I aggregate raw data and then do some processing in Ruby (e.g. add an associated name)
<yorickpeterse>
ddfreyne: creates a new dataset
<judofyr>
yorickpeterse: #each returns self
<yorickpeterse>
I don't really think there's a way around that but I'm not a fan of creating basically a copy of the entire set but with an extra field
<ddfreyne>
yorickpeterse: Ruby 2.0’s #lazy maybe
postmodern has quit [Quit: Leaving]
sonne has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
sush24 has joined #ruby-lang
thone has joined #ruby-lang
thone has quit [Ping timeout: 264 seconds]
dankest has quit [Quit: Leaving...]
jbsan has joined #ruby-lang
<ddfreyne>
:o
<ddfreyne>
nanoc has 97% code coverage apparently, nice
<whitequark>
yorickpeterse: ddfreyne: #lazy allocates a stack
<whitequark>
4K plus some bookkeeping
dhruvasa1ar has joined #ruby-lang
rwk1 has joined #ruby-lang
<yorickpeterse>
plus we don't use Ruby 2.0 yet
alessio_rocco has quit [Ping timeout: 264 seconds]
alessio_rocco has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
jbsan has quit [Quit: jbsan]
<charliesome>
whitequark: it's worth it though
dr_bob has quit [Read error: Connection reset by peer]
xxaM has quit [Remote host closed the connection]
xxaM has joined #ruby-lang
guiambros has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
rsync has quit [Quit: rsync]
thone has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
Domon has quit [Remote host closed the connection]
thone has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby-lang
thone has joined #ruby-lang
thone has quit [Ping timeout: 245 seconds]
thone has joined #ruby-lang
cod3r has quit [Ping timeout: 245 seconds]
cod3r_ has joined #ruby-lang
benlovell has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 252 seconds]
heftig has joined #ruby-lang
thone has joined #ruby-lang
slippyd has joined #ruby-lang
thone has quit [Ping timeout: 264 seconds]
aef has joined #ruby-lang
slippyd has quit [Client Quit]
jbsan has joined #ruby-lang
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
slippyd has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
krz has quit [Quit: krz]
dr_bob has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
tockitj has joined #ruby-lang
tockitj has quit [Changing host]
tockitj has joined #ruby-lang
jg has quit [Ping timeout: 260 seconds]
mbull9 has quit [Remote host closed the connection]
sush24 has quit [Quit: Leaving]
havenwood has joined #ruby-lang
sush24 has joined #ruby-lang
dr_bob has quit [Ping timeout: 240 seconds]
sush24 has quit [Client Quit]
sush24 has joined #ruby-lang
cod3r_ has quit [Quit: WeeChat 0.4.0]
tbuehlmann has joined #ruby-lang
benlovell has joined #ruby-lang
pskosinski has joined #ruby-lang
dkannan has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
mikestok has joined #ruby-lang
jg has joined #ruby-lang
<whitequark>
charliesome: what exactly
<charliesome>
whitequark: the overhead of lazy enumeratora
toretore has joined #ruby-lang
chrisenytc has quit [Ping timeout: 256 seconds]
divout has quit [Quit: Leaving.]
yalue has joined #ruby-lang
pskosinski has quit [Remote host closed the connection]
pskosinski has joined #ruby-lang
<whitequark>
charliesome: you're not going to do it in a tight loop
<whitequark>
...
<whitequark>
well
<whitequark>
this is ruby anyway, who the fuck cares
<whitequark>
/ragequit
<charliesome>
does ruby have any tight loops
<charliesome>
i'd argue nearly every ruby loop does far too much to be considered tight ;)
<whitequark>
exactly
<charliesome>
meh, most of the time i don't really care
<charliesome>
if i'm doing something heavy on the cpu then i'd prefer to write it in ruby and wait a bit longer
<whitequark>
a language is judged by its edge cases, not common ones
jbsan has quit [Quit: jbsan]
<whitequark>
"few projects achieve 1MLOC, but if it's still usable, that's hell of a good language"
<whitequark>
shitty analogue but you get the idea
mikestok has quit [Quit: Computer has gone to sleep.]
<charliesome>
brb
xxaM has quit [Read error: Connection reset by peer]
xxaM has joined #ruby-lang
slippyd has quit [Remote host closed the connection]
slippyd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kgrz has quit [Quit: Computer has gone to sleep.]
xxaM has quit [Read error: Connection reset by peer]
xxaM has joined #ruby-lang
spike|spiegel has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
rsl has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
rsl has joined #ruby-lang
scampbell has joined #ruby-lang
kgrz has joined #ruby-lang
rsl has quit [Client Quit]
rsl has joined #ruby-lang
cod3r has joined #ruby-lang
cod3r is now known as Guest34392
Guest34392 has quit [Client Quit]
sailias1 has joined #ruby-lang
mikestok has joined #ruby-lang
baba has joined #ruby-lang
xxaM has quit [Read error: Connection reset by peer]
xxaM has joined #ruby-lang
sush24 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
alessio_rocco has quit [Ping timeout: 256 seconds]
alessio_rocco has joined #ruby-lang
fosky has quit [Ping timeout: 256 seconds]
skade has quit [Quit: Computer has gone to sleep.]
alessio_rocco has quit [Ping timeout: 255 seconds]
alessio_rocco has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
oneirophren has joined #ruby-lang
kurko__ has joined #ruby-lang
PigDude has joined #ruby-lang
PigDude has left #ruby-lang [#ruby-lang]
PigDude has joined #ruby-lang
<PigDude>
Which breaking changes, if any, does Ruby 2.0 introduce for Ruby 1.8.7 code? I've researched this and found some small things, but no detailed list.
pcboy_ has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
cordax has quit [Quit: Computer has gone to sleep.]
<mbj>
PigDude: You run code that was written for 1.8.7 under the 2.0.0 mri?
<PigDude>
mbj, no
divout has joined #ruby-lang
kurko__ is now known as kurko_
baba has quit [Ping timeout: 255 seconds]
<injekt>
zenspider: thank you for flay
banisterfiend has joined #ruby-lang
<banisterfiend>
zenspider: u here?
<banisterfiend>
i have an emacs Q
<banisterfiend>
or anyone here hwo's ok with elisp?
<injekt>
might be a little early there ~7am
<banisterfiend>
ah
<injekt>
dominikh is good with that stuff
<banisterfiend>
dominikh: ping :)
<injekt>
he's probably asleep too, it is like 3:45pm there
cored has quit [Ping timeout: 245 seconds]
lguardiola has quit [Ping timeout: 258 seconds]
<PigDude>
mbj, /wc
<PigDude>
oops
PigDude has left #ruby-lang [#ruby-lang]
alessio_rocco has quit [Ping timeout: 264 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
alessio_rocco has joined #ruby-lang
scampbell has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
skade has joined #ruby-lang
totallymike has quit [Ping timeout: 248 seconds]
thone has joined #ruby-lang
glebm has quit [Ping timeout: 252 seconds]
lguardiola has joined #ruby-lang
scampbell has joined #ruby-lang
glebm has joined #ruby-lang
havenwood has joined #ruby-lang
celinedior has joined #ruby-lang
rwk1 has quit [Read error: Connection reset by peer]
rwk1 has joined #ruby-lang
lguardiola has quit [Ping timeout: 258 seconds]
rwk1 has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 252 seconds]
rwk1 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
scampbell has quit [Ping timeout: 240 seconds]
arubin has joined #ruby-lang
toretore has quit [Quit: Leaving]
p0seidon has joined #ruby-lang
outoftime has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
glebm has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Remote host closed the connection]
wesside_ has joined #ruby-lang
glebm has joined #ruby-lang
enebo has joined #ruby-lang
lguardiola has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby-lang
glebm has quit [Ping timeout: 264 seconds]
CoverSlide has quit [Ping timeout: 255 seconds]
CoverSlide has joined #ruby-lang
sailias1 has quit [Quit: Leaving.]
sailias has joined #ruby-lang
xxaM has quit [Read error: Connection reset by peer]
glebm has joined #ruby-lang
xxaM has joined #ruby-lang
scampbell has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
tonni has quit [Remote host closed the connection]
dustint has joined #ruby-lang
jxie has quit [Ping timeout: 256 seconds]
GeissT has quit [Read error: Connection reset by peer]
dustint has quit [Client Quit]
jxie has joined #ruby-lang
dustint has joined #ruby-lang
scampbell has quit [Ping timeout: 264 seconds]
p0seidon has quit [Read error: Connection reset by peer]
slowhands has joined #ruby-lang
jg has quit [Quit: Leaving]
skade has joined #ruby-lang
jovy88 has quit [Read error: Connection reset by peer]
skade has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
dustint has quit [Quit: Leaving]
dustint has joined #ruby-lang
rippa has joined #ruby-lang
CoverSlide has quit [Ping timeout: 264 seconds]
skade has joined #ruby-lang
tbuehlmann has joined #ruby-lang
benlovell has quit [Quit: Computer has gone to sleep.]
oneirophren has quit [Ping timeout: 256 seconds]
bzalasky has joined #ruby-lang
xcombelle_ has joined #ruby-lang
CoverSlide has joined #ruby-lang
xcombelle has quit [Ping timeout: 245 seconds]
jerrytgarcia has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
guiambros has joined #ruby-lang
skade has quit [Ping timeout: 252 seconds]
alessio_rocco has quit [Ping timeout: 264 seconds]
alessio_rocco has joined #ruby-lang
vmoravec has quit [Quit: Leaving]
skade has joined #ruby-lang
vmoravec has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
mytrile_ has quit [Remote host closed the connection]
<yorickpeterse>
whitequark: is it possible to have parser use a custom AST node or do I have to monkey patch Parser::AST::Node?
mbull9 has joined #ruby-lang
kogent has quit [Quit: kogent]
jovy88 has quit [Read error: Connection reset by peer]
adambeynon has quit [Client Quit]
jovy88 has joined #ruby-lang
oneirophren has quit [Ping timeout: 256 seconds]
djwonk has quit [Quit: djwonk]
<yorickpeterse>
whitequark: also, why does Parser create symbols for identifiers?
<mbj>
yorickpeterse: Wild guess, to save some memory?
<mbj>
yorickpeterse: Symbols are basically a string constant pool.
<yorickpeterse>
not sure if it would actually save memory
<mbj>
I think the implementations create a symbol for most of the identifiers anyways?
<yorickpeterse>
whitequark: also, the way parser treats block parameters in method calls is really weird
gjaldon has joined #ruby-lang
celinedior has quit [Quit: celinedior]
<yorickpeterse>
block(send) instead of send(..., block)
djwonk has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
pkondzior___ has quit [Quit: Connection closed for inactivity]
dankest has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
sush24 has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
sush24 has quit [Ping timeout: 268 seconds]
Bosox20051 has joined #ruby-lang
sush24 has joined #ruby-lang
brianpWins has joined #ruby-lang
mbull9 has quit [Ping timeout: 260 seconds]
enebo has quit [Quit: enebo]
sush24 has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
benanne has joined #ruby-lang
TheNotary has quit [Quit: Leaving]
sebasoga has joined #ruby-lang
sebasoga has quit [Read error: Connection reset by peer]
sebasoga has joined #ruby-lang
oneirophren has joined #ruby-lang
xcombelle_ has quit [Ping timeout: 258 seconds]
sebasoga_ has joined #ruby-lang
sebasoga has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby-lang
rsl has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby-lang
sebasoga_ has quit [Ping timeout: 264 seconds]
rsl has joined #ruby-lang
dr_ick has joined #ruby-lang
sebasoga has joined #ruby-lang
dr_ick has quit [Client Quit]
sebasoga has quit [Read error: Connection reset by peer]
sebasoga has joined #ruby-lang
sebasoga has quit [Read error: Connection reset by peer]
sebasoga has joined #ruby-lang
sebasoga has quit [Read error: Connection reset by peer]
sebasoga has joined #ruby-lang
mistym is now known as mistym_lunch
retro|cz has joined #ruby-lang
mbj has quit [Quit: leaving]
GarethAdams has joined #ruby-lang
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby-lang
enebo has joined #ruby-lang
workmad3 has joined #ruby-lang
celinedior has joined #ruby-lang
cod3r is now known as baba
stevechiagozie has joined #ruby-lang
xcombelle_ has joined #ruby-lang
xcombelle_ has quit [Read error: Connection reset by peer]
forrest has joined #ruby-lang
odcinek_ has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
odcinek_ has quit [Quit: odcinek_]
odcinek has joined #ruby-lang
protagoras271 has joined #ruby-lang
mytrile_ has joined #ruby-lang
scampbell has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
retro|cz has quit [Ping timeout: 264 seconds]
kogent has joined #ruby-lang
protagoras271 has quit [Remote host closed the connection]
odcinek has quit [Quit: odcinek]
odcinek has joined #ruby-lang
protagoras271 has joined #ruby-lang
banisterfiend has joined #ruby-lang
sailias1 has quit [Ping timeout: 264 seconds]
tonni has joined #ruby-lang
protagoras271 has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
benjamin-patch has joined #ruby-lang
carloslopes has joined #ruby-lang
oneirophren has quit [Ping timeout: 256 seconds]
mbj has joined #ruby-lang
mistym_lunch is now known as mistym
divout has quit [Quit: Leaving.]
sailias has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
io_syl has quit [Quit: Computer has gone to sleep.]
gjaldon has quit [Remote host closed the connection]
DEac- has quit [Read error: Connection reset by peer]
sush24 has quit [Quit: This computer has gone to sleep]
io_syl has joined #ruby-lang
DEac- has joined #ruby-lang
brianpWins has joined #ruby-lang
wyhaines has joined #ruby-lang
celinedior has quit [Quit: celinedior]
wmoxam has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby-lang
<zenspider>
banisterfiend: what's up?
rippa has quit [Ping timeout: 240 seconds]
<banisterfiend>
zenspider: i figured it out in the end, i was just looking for a way to get (interactive ...) user input primed with a string (like the pwd) that the user could either accept or modify
<banisterfiend>
zenspider: i went with: (interactive (list (readd-string "File to create:" default-directory)))
<banisterfiend>
err, read
<zenspider>
tab completion?
<zenspider>
poke at completing-read iirc
<banisterfiend>
im not sure if it has tab completion
<banisterfiend>
ah cool
<banisterfiend>
zenspider: i just wanted a way of being able to easily add files while i was messing around in dired, like i can with directories (using +)
<zenspider>
if you want actual pwd... I think ... I don't remember... I thought there was something better. poke down find-file or find-directory
<zenspider>
oh. yeah. or dired
<banisterfiend>
default-directory seems to be pwd
<banisterfiend>
is that not realiable?
<zenspider>
no, I assumed you were asking the user for a directory or somesuch
<zenspider>
if you want it to exist and be tab completable, there's options