solnic changed the topic of #rom-rb to: Ruby Object Mapper | Mailing List: https://groups.google.com/forum/?fromgroups#!forum/rom-rb | Logs: http://irclog.whitequark.org/rom-rb
Frost has joined #rom-rb
Memocr has joined #rom-rb
solnic has quit [Quit: Leaving...]
Memocr has quit [Remote host closed the connection]
lfox has joined #rom-rb
CraigBuchek has quit [Quit: Leaving.]
sdelmore has joined #rom-rb
cored has quit [Ping timeout: 246 seconds]
<sdelmore> Just read avdi's book, which lead me to rom. Exciting stuff. Anything similar that works with MongoDB now?
<sdelmore> I was hoping to be able to separate behavior from persistence now in preparation for porting to ROM when it is released.
<dkubb> I think there's perpetuity
<dkubb> the maintainer is jgaskins, who is also in this channel
sdelmore has quit [Quit: Leaving.]
lfox has quit [Quit: ZZZzzz…]
lfox has joined #rom-rb
dkubb|away has joined #rom-rb
dkubb has quit [Ping timeout: 252 seconds]
namelessjon has quit [*.net *.split]
namelessjon has joined #rom-rb
lfox has quit [Quit: ZZZzzz…]
sferik has quit [Quit: Computer has gone to sleep.]
postmodern has joined #rom-rb
postmodern has quit [Ping timeout: 240 seconds]
postmodern has joined #rom-rb
solnic has joined #rom-rb
mbj has joined #rom-rb
skade has joined #rom-rb
zirni has joined #rom-rb
zirni has quit [Quit: leaving]
postmodern has quit [Quit: Leaving]
cored has joined #rom-rb
cored has joined #rom-rb
skade has quit [Ping timeout: 265 seconds]
skade has joined #rom-rb
skade has quit [Ping timeout: 248 seconds]
skade has joined #rom-rb
judofyr has joined #rom-rb
breakingthings has joined #rom-rb
cored has quit [Ping timeout: 272 seconds]
cored has joined #rom-rb
kleech has joined #rom-rb
skade has quit [Ping timeout: 265 seconds]
skade has joined #rom-rb
CraigBuchek has joined #rom-rb
mkristian has joined #rom-rb
judofyr has quit [Remote host closed the connection]
judofyr has joined #rom-rb
cored has quit [Ping timeout: 264 seconds]
lfox has joined #rom-rb
cored has joined #rom-rb
skade has quit [Quit: Computer has gone to sleep.]
judofyr has quit [Remote host closed the connection]
skade has joined #rom-rb
lfox has quit []
lfox has joined #rom-rb
breakingthings has quit []
breakingthings has joined #rom-rb
kleech has quit [Remote host closed the connection]
mkristian has quit [Quit: bye]
snusnu has joined #rom-rb
<snusnu> hey solnic and mbj, happy new year ;)
<snusnu> also, nice to see you again in here, solnic :)
<snusnu> hey skade, you were right about twitter ;)
<snusnu> well, obviously, heh
judofyr has joined #rom-rb
skade has quit [Quit: Computer has gone to sleep.]
<mbj> snusnu: hey
<mbj> snusnu: Happy new year!
snusnu has quit [Quit: Leaving.]
<dkubb|away> good morning
<judofyr> mbj: you killed him!
dkubb|away is now known as dkubb
<mbj> hey
<judofyr> how are you?
<judofyr> working on something cool?
<mbj> judofyr: Yeah
<mbj> judofyr: I hope unparser/mutant is cool for others also :D
sdelmore has joined #rom-rb
<judofyr> mbj: it is. I heard that `source == unparse(parse(source))`. nice!
<mbj> judofyr: actually this is not true.
<judofyr> oh
<judofyr> not-nice1
<mbj> judofyr: parse(source) == parse(unparse(source))
<judofyr> oh
<judofyr> right
<mbj> judofyr: Its not exactly the same source.
<mbj> For example I do not reproduce %w() type literals etc.
<judofyr> right, even though you could
<mbj> BUT I can roundtrip rails, mruby and some other major libs already.
<judofyr> but it's really a big priority as long as the line numbers are consistent
<dkubb> the parser probably doesn't maintain all the information in the original source, like whitespace, does it?
<mbj> dkubb: It does.
<mbj> dkubb: I could do this. But this is more work. FAR more work.
<mbj> dkubb: The parser itself does not capture this information in the AST, it attaches the source locations as metadata to the nodes.
<mbj> *information in the AST nodes
<dkubb> right, so you'd, kind of have to parse the source a second time?
<mbj> dkubb: no
<mbj> dkubb: source maps get attached by default.
<mbj> dkubb: For a toll like mutant that creates its own nodes (without source maps) it would not make to make unparser source location aware.
<mbj> s/toll/tool/
<CraigBuchek> Interesting. You could write a version of unparse that applies a style guide (like when to use %w[]). ;)
<dkubb> ahh ok
<mbj> CraigBuchek: Yeah
<judofyr> CraigBuchek: I think Rubocop already does something like it
<mbj> CraigBuchek: I throught about adding specialized nodes with "emit in specific style" information attached as a preprocessor.
<mbj> CraigBuchek: So an s(:array, s(:int, 1)) becomes s(:delimited_array, s(:int 1), s(:delimiters, '[', ']'))
<mbj> CraigBuchek: So unparser knows what to do.
<mbj> CraigBuchek: That preprocessors could be used "according to your preferred style".
<mbj> CraigBuchek: You could also introduce rules that rearrange the emitted "special format" nodes, to try to fit into 80chars or so.
<dkubb> I think it would be nice for rubocop to use unparser since the styles are very similar, and it probably wouldn't be too difficult to get them in closer alignment
<CraigBuchek> Nice.
<mbj> dkubb: The source rewriter in rubocop has a far narrow scope than the source generator in unparser.
<dkubb> I've been using rubocop on ROM related stuff, and aside from a few rules I disagree with, it's pretty much spot-on with the style we use
<mbj> dkubb: Because it uses source locations it is not as univeral as unparser.
<judofyr> now to something completely different: anyone knows of a decent Minitest runner? I have a test suite that consists of multiple files (e.g. some files have to run separately because they touch ENV and stuff)
<mbj> judofyr: If you find one, pls point me to it. Mutant needs to run minitest also :D
<judofyr> I'd like to have a unified summary (and probably better output than the default runner) from results from multiple files
<mbj> judofyr: I'd like to have a summary and a test selection via a nice OO interface. Not a string :D
<judofyr> mbj: hm? what'd you mean?
<judofyr> you want to run a single test? or get the output from a single test?
kapowaz_ has joined #rom-rb
<judofyr> I've hacked a bit on Minitest (writing plugins) so I know a bit about the internals
<mbj> judofyr: I need an interface that enumerates all tests with metadata.
<mbj> judofyr: And I need to be able to run a subset of tests.
<judofyr> mbj: right. it's not that difficult in Minitest 5
<mbj> judofyr: I'll select a set of tests per mutation subject to kill mutatins on that subject.
<mbj> judofyr: I wasnt able to do it. But I looked into it for 5 min.
<mbj> judofyr: Pls contribute your knowlege :D
<judofyr> `runnable` is a class. `name` is the method name.
<mbj> judofyr: nice
<mbj> judofyr: How to run a set of these?
avdi_ has joined #rom-rb
cbuxton__ has joined #rom-rb
skade has joined #rom-rb
<judofyr> so you can basically just runnable.new(method_name).run
<mbj> nice
<mbj> judofyr: you wanna PR it to mutant?
<mbj> judofyr: Just add minitest as a runtime dep in your branch.
<mbj> judofyr: I'll break rspec and minitest support up into two gems mutant-rspec and mutant-minitest
<judofyr> mbj: I'm a bit busy this week, but maybe I'll give it a try
kapowaz has quit [Ping timeout: 240 seconds]
<mbj> judofyr: Would be nice to get such contribs :D
avdi has quit [Ping timeout: 240 seconds]
cbuxton_ has quit [Ping timeout: 240 seconds]
kapowaz_ is now known as kapowaz
cbuxton__ is now known as cbuxton_
avdi_ is now known as avdi
<dkubb> I'm working on an SQL generator/parser that can round-trip the queries it creates. almost have something workable
<dkubb> I'm doing it mostly for fun. the lexer is written using ragel and the parser is racc based
<mbj> dkubb: You cannot imagine how amazing this is!
<mbj> dkubb: I think round trip testing is some of the "must haves" for any given domain.
<mbj> dkubb: In web development I typically try to do the same.
<mbj> dkubb: If you can reproduce the DTOs captured internally from the stuff inside the DOM you probably do it corretly.
judofyr has quit [Remote host closed the connection]
snusnu has joined #rom-rb
travis-ci has joined #rom-rb
<travis-ci> [travis-ci] dkubb/sql#233 (parser - 0fff176 : Dan Kubb): The build has errored.
travis-ci has left #rom-rb [#rom-rb]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/dkubb/sql/builds/16540652
judofyr has joined #rom-rb
sdelmore has quit [Quit: Leaving.]
sdelmore has joined #rom-rb
judofyr has quit [Client Quit]
<dkubb> mbj: btw, if you see anything I could do better in https://github.com/dkubb/sql/pull/12 please let me know
<dkubb> same for anyone else, especially if you know ragel and/or racc
<dkubb> it's still a wip, but I think I'm almost on the right track
skade has quit [Quit: Computer has gone to sleep.]
<mbj> dkubb: busy for some moments, looking into it later
<dkubb> no worries
<dkubb> I'm still working on it tonight and this week anyway. I'm happy with the direction of the spike though
<dkubb> I'll bbl, gtg to work
dkubb has quit [Quit: Linkinus - http://linkinus.com]
travis-ci has joined #rom-rb
<travis-ci> [travis-ci] dkubb/sql#237 (parser - 9a4baea : Dan Kubb): The build has errored.
travis-ci has left #rom-rb [#rom-rb]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/dkubb/sql/builds/16540756
kleech has joined #rom-rb
kleech has quit [Remote host closed the connection]
skade has joined #rom-rb
sdelmore has quit [Quit: Leaving.]
travis-ci has joined #rom-rb
<travis-ci> [travis-ci] Build details : http://travis-ci.org/dkubb/sql/builds/16541118
travis-ci has left #rom-rb [#rom-rb]
<travis-ci> [travis-ci] dkubb/sql#239 (parser - 1933b41 : Dan Kubb): The build has errored.
travis-ci has joined #rom-rb
<travis-ci> [travis-ci] Build details : http://travis-ci.org/dkubb/sql/builds/16541118
<travis-ci> [travis-ci] dkubb/sql#239 (parser - 1933b41 : Dan Kubb): The build has errored.
travis-ci has left #rom-rb [#rom-rb]
snusnu has quit [Quit: Leaving.]
sdelmore has joined #rom-rb
snusnu has joined #rom-rb
kleech has joined #rom-rb
snusnu1 has joined #rom-rb
snusnu has quit [Ping timeout: 245 seconds]
kleech has quit [Ping timeout: 245 seconds]
snusnu1 has quit [Quit: Leaving.]
snusnu has joined #rom-rb
snusnu has quit [Client Quit]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
mbj has quit [Quit: leaving]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
mbj has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
mbj has quit [Ping timeout: 245 seconds]
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
dkubb has joined #rom-rb
breakingthings has quit []
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
CraigBuchek has quit [Quit: Leaving.]
snusnu1 has joined #rom-rb
CraigBuchek has joined #rom-rb
snusnu has quit [Ping timeout: 240 seconds]
snusnu1 has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]