00:03
Frost has joined #rom-rb
00:26
Memocr has joined #rom-rb
00:26
solnic has quit [Quit: Leaving...]
00:27
Memocr has quit [Remote host closed the connection]
00:43
lfox has joined #rom-rb
00:59
CraigBuchek has quit [Quit: Leaving.]
01:01
sdelmore has joined #rom-rb
01:02
cored has quit [Ping timeout: 246 seconds]
01:06
<
sdelmore >
Just read avdi's book, which lead me to rom. Exciting stuff. Anything similar that works with MongoDB now?
01:06
<
sdelmore >
I was hoping to be able to separate behavior from persistence now in preparation for porting to ROM when it is released.
01:20
<
dkubb >
I think there's perpetuity
01:20
<
dkubb >
the maintainer is jgaskins, who is also in this channel
01:21
sdelmore has quit [Quit: Leaving.]
02:10
lfox has quit [Quit: ZZZzzz…]
02:50
lfox has joined #rom-rb
04:35
dkubb|away has joined #rom-rb
04:39
dkubb has quit [Ping timeout: 252 seconds]
05:36
namelessjon has quit [*.net *.split]
05:36
namelessjon has joined #rom-rb
06:07
lfox has quit [Quit: ZZZzzz…]
06:54
sferik has quit [Quit: Computer has gone to sleep.]
06:57
postmodern has joined #rom-rb
08:36
postmodern has quit [Ping timeout: 240 seconds]
08:49
postmodern has joined #rom-rb
08:56
solnic has joined #rom-rb
09:52
mbj has joined #rom-rb
10:12
skade has joined #rom-rb
10:48
zirni has joined #rom-rb
10:56
zirni has quit [Quit: leaving]
11:43
postmodern has quit [Quit: Leaving]
12:03
cored has joined #rom-rb
12:03
cored has joined #rom-rb
12:15
skade has quit [Ping timeout: 265 seconds]
12:18
skade has joined #rom-rb
12:28
skade has quit [Ping timeout: 248 seconds]
12:30
skade has joined #rom-rb
13:16
judofyr has joined #rom-rb
13:41
breakingthings has joined #rom-rb
13:52
cored has quit [Ping timeout: 272 seconds]
13:53
cored has joined #rom-rb
14:19
kleech has joined #rom-rb
14:25
skade has quit [Ping timeout: 265 seconds]
14:26
skade has joined #rom-rb
14:28
CraigBuchek has joined #rom-rb
14:33
mkristian has joined #rom-rb
14:47
judofyr has quit [Remote host closed the connection]
15:09
judofyr has joined #rom-rb
15:14
cored has quit [Ping timeout: 264 seconds]
15:16
lfox has joined #rom-rb
15:21
cored has joined #rom-rb
15:31
skade has quit [Quit: Computer has gone to sleep.]
15:31
judofyr has quit [Remote host closed the connection]
15:44
skade has joined #rom-rb
15:57
lfox has joined #rom-rb
16:11
breakingthings has quit []
16:11
breakingthings has joined #rom-rb
16:22
kleech has quit [Remote host closed the connection]
16:37
mkristian has quit [Quit: bye]
16:49
snusnu has joined #rom-rb
16:57
<
snusnu >
hey solnic and mbj, happy new year ;)
16:57
<
snusnu >
also, nice to see you again in here, solnic :)
17:00
<
snusnu >
hey skade, you were right about twitter ;)
17:00
<
snusnu >
well, obviously, heh
17:10
judofyr has joined #rom-rb
17:14
skade has quit [Quit: Computer has gone to sleep.]
17:27
<
mbj >
snusnu: Happy new year!
17:27
snusnu has quit [Quit: Leaving.]
17:28
<
dkubb|away >
good morning
17:28
<
judofyr >
mbj: you killed him!
17:29
dkubb|away is now known as dkubb
17:29
<
judofyr >
how are you?
17:29
<
judofyr >
working on something cool?
17:30
<
mbj >
judofyr: Yeah
17:30
<
mbj >
judofyr: I hope unparser/mutant is cool for others also :D
17:30
sdelmore has joined #rom-rb
17:30
<
judofyr >
mbj: it is. I heard that `source == unparse(parse(source))`. nice!
17:31
<
mbj >
judofyr: actually this is not true.
17:31
<
judofyr >
not-nice1
17:31
<
mbj >
judofyr: parse(source) == parse(unparse(source))
17:31
<
mbj >
judofyr: Its not exactly the same source.
17:31
<
mbj >
For example I do not reproduce %w() type literals etc.
17:31
<
judofyr >
right, even though you could
17:32
<
mbj >
BUT I can roundtrip rails, mruby and some other major libs already.
17:32
<
judofyr >
but it's really a big priority as long as the line numbers are consistent
17:32
<
dkubb >
the parser probably doesn't maintain all the information in the original source, like whitespace, does it?
17:32
<
mbj >
dkubb: It does.
17:32
<
mbj >
dkubb: I could do this. But this is more work. FAR more work.
17:32
<
mbj >
dkubb: The parser itself does not capture this information in the AST, it attaches the source locations as metadata to the nodes.
17:32
<
mbj >
*information in the AST nodes
17:33
<
dkubb >
right, so you'd, kind of have to parse the source a second time?
17:34
<
mbj >
dkubb: source maps get attached by default.
17:34
<
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.
17:34
<
CraigBuchek >
Interesting. You could write a version of unparse that applies a style guide (like when to use %w[]). ;)
17:35
<
mbj >
CraigBuchek: Yeah
17:35
<
judofyr >
CraigBuchek: I think Rubocop already does something like it
17:35
<
mbj >
CraigBuchek: I throught about adding specialized nodes with "emit in specific style" information attached as a preprocessor.
17:36
<
mbj >
CraigBuchek: So an s(:array, s(:int, 1)) becomes s(:delimited_array, s(:int 1), s(:delimiters, '[', ']'))
17:36
<
mbj >
CraigBuchek: So unparser knows what to do.
17:36
<
mbj >
CraigBuchek: That preprocessors could be used "according to your preferred style".
17:36
<
mbj >
CraigBuchek: You could also introduce rules that rearrange the emitted "special format" nodes, to try to fit into 80chars or so.
17:36
<
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
17:36
<
CraigBuchek >
Nice.
17:37
<
mbj >
dkubb: The source rewriter in rubocop has a far narrow scope than the source generator in unparser.
17:37
<
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
17:37
<
mbj >
dkubb: Because it uses source locations it is not as univeral as unparser.
17:41
<
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)
17:41
<
mbj >
judofyr: If you find one, pls point me to it. Mutant needs to run minitest also :D
17:42
<
judofyr >
I'd like to have a unified summary (and probably better output than the default runner) from results from multiple files
17:42
<
mbj >
judofyr: I'd like to have a summary and a test selection via a nice OO interface. Not a string :D
17:42
<
judofyr >
mbj: hm? what'd you mean?
17:43
<
judofyr >
you want to run a single test? or get the output from a single test?
17:43
kapowaz_ has joined #rom-rb
17:44
<
judofyr >
I've hacked a bit on Minitest (writing plugins) so I know a bit about the internals
17:45
<
mbj >
judofyr: I need an interface that enumerates all tests with metadata.
17:45
<
mbj >
judofyr: And I need to be able to run a subset of tests.
17:46
<
judofyr >
mbj: right. it's not that difficult in Minitest 5
17:46
<
mbj >
judofyr: I'll select a set of tests per mutation subject to kill mutatins on that subject.
17:46
<
mbj >
judofyr: I wasnt able to do it. But I looked into it for 5 min.
17:46
<
mbj >
judofyr: Pls contribute your knowlege :D
17:47
<
judofyr >
`runnable` is a class. `name` is the method name.
17:47
<
mbj >
judofyr: nice
17:47
<
mbj >
judofyr: How to run a set of these?
17:48
avdi_ has joined #rom-rb
17:49
cbuxton__ has joined #rom-rb
17:49
skade has joined #rom-rb
17:49
<
judofyr >
so you can basically just runnable.new(method_name).run
17:50
<
mbj >
judofyr: you wanna PR it to mutant?
17:50
<
mbj >
judofyr: Just add minitest as a runtime dep in your branch.
17:50
<
mbj >
judofyr: I'll break rspec and minitest support up into two gems mutant-rspec and mutant-minitest
17:50
<
judofyr >
mbj: I'm a bit busy this week, but maybe I'll give it a try
17:50
kapowaz has quit [Ping timeout: 240 seconds]
17:50
<
mbj >
judofyr: Would be nice to get such contribs :D
17:51
avdi has quit [Ping timeout: 240 seconds]
17:51
cbuxton_ has quit [Ping timeout: 240 seconds]
17:51
kapowaz_ is now known as kapowaz
17:51
cbuxton__ is now known as cbuxton_
17:52
avdi_ is now known as avdi
17:54
<
dkubb >
I'm working on an SQL generator/parser that can round-trip the queries it creates. almost have something workable
17:55
<
dkubb >
I'm doing it mostly for fun. the lexer is written using ragel and the parser is racc based
18:09
<
mbj >
dkubb: You cannot imagine how amazing this is!
18:10
<
mbj >
dkubb: I think round trip testing is some of the "must haves" for any given domain.
18:10
<
mbj >
dkubb: In web development I typically try to do the same.
18:11
<
mbj >
dkubb: If you can reproduce the DTOs captured internally from the stuff inside the DOM you probably do it corretly.
18:13
judofyr has quit [Remote host closed the connection]
18:15
snusnu has joined #rom-rb
18:20
travis-ci has joined #rom-rb
18:20
<
travis-ci >
[travis-ci] dkubb/sql#233 (parser - 0fff176 : Dan Kubb): The build has errored.
18:20
travis-ci has left #rom-rb [#rom-rb]
18:22
judofyr has joined #rom-rb
18:24
sdelmore has quit [Quit: Leaving.]
18:25
sdelmore has joined #rom-rb
18:26
judofyr has quit [Client Quit]
18:31
<
dkubb >
same for anyone else, especially if you know ragel and/or racc
18:31
<
dkubb >
it's still a wip, but I think I'm almost on the right track
18:33
skade has quit [Quit: Computer has gone to sleep.]
18:41
<
mbj >
dkubb: busy for some moments, looking into it later
18:43
<
dkubb >
I'm still working on it tonight and this week anyway. I'm happy with the direction of the spike though
18:45
<
dkubb >
I'll bbl, gtg to work
18:53
travis-ci has joined #rom-rb
18:53
<
travis-ci >
[travis-ci] dkubb/sql#237 (parser - 9a4baea : Dan Kubb): The build has errored.
18:53
travis-ci has left #rom-rb [#rom-rb]
18:54
kleech has joined #rom-rb
19:06
kleech has quit [Remote host closed the connection]
19:22
skade has joined #rom-rb
19:24
sdelmore has quit [Quit: Leaving.]
19:31
travis-ci has joined #rom-rb
19:31
travis-ci has left #rom-rb [#rom-rb]
19:31
<
travis-ci >
[travis-ci] dkubb/sql#239 (parser - 1933b41 : Dan Kubb): The build has errored.
19:36
travis-ci has joined #rom-rb
19:36
<
travis-ci >
[travis-ci] dkubb/sql#239 (parser - 1933b41 : Dan Kubb): The build has errored.
19:36
travis-ci has left #rom-rb [#rom-rb]
19:36
snusnu has quit [Quit: Leaving.]
19:43
sdelmore has joined #rom-rb
19:49
snusnu has joined #rom-rb
19:49
kleech has joined #rom-rb
19:49
snusnu1 has joined #rom-rb
19:53
snusnu has quit [Ping timeout: 245 seconds]
19:53
kleech has quit [Ping timeout: 245 seconds]
19:54
snusnu1 has quit [Quit: Leaving.]
19:58
snusnu has joined #rom-rb
20:01
snusnu has quit [Client Quit]
20:04
snusnu has joined #rom-rb
20:09
snusnu has quit [Read error: Connection reset by peer]
20:32
mbj has quit [Quit: leaving]
20:41
snusnu has joined #rom-rb
20:51
snusnu has quit [Read error: Connection reset by peer]
20:53
snusnu has joined #rom-rb
20:55
snusnu has quit [Read error: Connection reset by peer]
20:56
snusnu has joined #rom-rb
21:19
mbj has joined #rom-rb
21:23
snusnu has quit [Read error: Connection reset by peer]
21:24
snusnu has joined #rom-rb
21:25
snusnu has quit [Read error: Connection reset by peer]
21:27
snusnu has joined #rom-rb
21:38
snusnu has quit [Read error: Connection reset by peer]
21:39
snusnu has joined #rom-rb
21:45
mbj has quit [Ping timeout: 245 seconds]
21:51
snusnu has quit [Read error: Connection reset by peer]
21:51
snusnu has joined #rom-rb
21:55
snusnu has quit [Read error: Connection reset by peer]
21:58
snusnu has joined #rom-rb
22:08
dkubb has joined #rom-rb
22:26
breakingthings has quit []
23:02
snusnu has quit [Read error: Connection reset by peer]
23:10
snusnu has joined #rom-rb
23:26
CraigBuchek has quit [Quit: Leaving.]
23:43
snusnu1 has joined #rom-rb
23:43
CraigBuchek has joined #rom-rb
23:46
snusnu has quit [Ping timeout: 240 seconds]
23:48
snusnu1 has quit [Read error: Connection reset by peer]
23:49
snusnu has joined #rom-rb
23:59
snusnu has quit [Read error: Connection reset by peer]