Perl 6 - the future is here, just unevenly distributed

IRC log for #testml, 2010-07-01

| Channels | #testml index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:01 ashleydev ingy: did you see this: http://search.cpan.org/~dconway/Regexp​-Grammars-1.005/lib/Regexp/Grammars.pm
03:52 ingy ashleydev: oui
03:52 ingy I talked to damian about it yapc
03:52 ingy he thought it was not likely to be acmeist technology
03:52 ingy c'est la vie
03:53 ingy ashleydev: in other new, I made some progree on the parser...
15:20 ashleydev what does it mean not likely to be acmeist?
15:58 patch ashleydev: hi
15:58 patch means it's not likely portable to other languages
15:59 ashleydev haha
15:59 ashleydev who cares
15:59 patch e.g., limited to perl
15:59 patch ingy
15:59 patch acmeists
15:59 ashleydev so neither is p6 grammars
15:59 ashleydev he's writing testml in p6 grammar
15:59 patch ingy wants to port them
15:59 ashleydev so I figured this is pretty portable from that
16:00 ashleydev but cool... good to know what acmiest means
16:00 ashleydev *acmeist
16:00 patch yeah, regexp:grammars is the closest thing we have outside pg
16:00 patch /pg/p6/
16:00 ashleydev I'm surprised it's not more in the news.
16:01 patch http://acmeism.org/
18:17 ingy ashleydev: I'm currently the only dyed-in-the-wool acmeist :)
18:17 ashleydev :)
18:17 ingy patch has shown signs
18:18 ashleydev i am too... i make sure that I can do i C what ever I do in perl..
18:18 ashleydev :P
18:18 ashleydev j/k
18:19 ingy so anyway, if you look at the python and p5 implementations of cdent and testml they use a parsing grammar very close to p6g
18:20 ingy so I have a project plan to define p6g using a testml suite
18:20 ingy and port it to a dozen languages
18:20 ashleydev what does that mean?
18:20 ingy which part?
18:21 ashleydev defining p6g using testml
18:21 ingy one sec...
18:22 ashleydev ... sorry for the lame joke... I suppose I pretty new to acmeism...
18:22 ashleydev didn't mean to dissit
18:22 ingy no worries at all
18:24 ashleydev http://github.com/ingydotnet/testml-​py/raw/f40536ed7b0033771fdc9b87781c2​e4236160155/testml/parser/grammar.py
18:24 ingy so all the perl6 tests can be done in testml
18:24 ashleydev that's one serious one-liner.
18:24 ingy then they can be run in any language
18:25 ingy so if i take the p6g tests and make them into testml, I can use them to implement p6g in python, etc
18:25 ashleydev what's cdent? this doesn't tell me much: http://search.cpan.org/~in​gy/CDent-0.01/lib/CDent.pm
18:25 ingy :)
18:25 * ashleydev mind blown
18:25 ingy http://cdent.org/examples/hello-world/
18:26 ashleydev so there's a perl6 grammar test suite that's cross platform???
18:26 ingy cdent is currently written in python
18:26 ingy um, testml is a cross platform unit test lang
18:26 ashleydev right
18:26 ingy that's the point of it
18:27 ingy so JSYNC is by definition, acmeist
18:27 ashleydev and p6g is p6 grammars, (I guess I was just clarifying that TLA)
18:27 ingy yeah
18:27 ashleydev ok just making sure I understood...
18:27 ashleydev cool
18:27 ashleydev if p6g makes it python and ruby I'll buy you 10 beers
18:27 ingy http://pypi.python.org/pypi/cdent/
18:27 ingy :D
18:27 ingy where do you live?
18:28 ashleydev Calif
18:28 ingy <= Seattle
18:28 ashleydev :)
18:28 ingy good enuff. you're on.
18:28 ashleydev ... well that is if you're not still trying to loose weight  ;)
18:28 ashleydev hehe
18:28 ingy I'm always trying
18:29 ashleydev aren't we all... heh
18:29 ingy it will be a while
18:30 ingy I think getting perl6 tests into testml will be useful to run the same tests against p5 and p6, let alone python and java
18:30 ingy that didn't quite make sense
18:30 ashleydev oh crap
18:30 ashleydev "Outputs
18:30 ashleydev C'Dent can take any of the above inputs, and generate the following outputs: Perl, Python, PHP, Ruby, JavaScript, Scala, Java, ActionScript, Perl 6, Python 3000, Go, PIR, NQP or C'Dent."
18:30 * ashleydev << just read that
18:30 ingy nod
18:31 ingy it works
18:31 ingy for the realm of the helloworld subset ;)
18:32 ingy I am tempted to move C'Dent to P6
18:32 ashleydev the core?
18:32 ingy I wrote in Python, because python has the best YAML support
18:32 ashleydev have you used http://www.dabeaz.com/ply/
18:32 ingy which is useful
18:33 ingy neat, although lex/yacc pales to p6g in my opinion
18:33 ingy except maybe in speed
18:33 ashleydev agreed!
18:34 ingy I just learned p6g from patch last week at a yapc hackathon
18:34 ingy I am completely a convert now
18:34 ingy it's what I was trying to do on my own....
18:34 ashleydev seriously
18:35 ashleydev i'm shitting my self seeing that damien module...
18:35 ingy one sec, I gotta show you something
18:35 ashleydev which is a pretty darn close aprox of p6gt
18:35 ashleydev s/t//
18:35 ingy you know yaml?
18:35 ashleydev have used it for config files for years..
18:35 ashleydev and serializing stuff
18:35 ingy http://github.com/ingydotnet/cdent​/blob/master/src/grammar/base.yaml
18:36 ashleydev don't think I know it beyond the simple stuff
18:36 ingy that is part of the grammar for C'Dent parsing
18:36 ingy look familiar?
18:36 ingy :)
18:36 ashleydev recursive decent
18:36 ashleydev interesting
18:36 ashleydev this was from a week ago
18:37 ingy ?
18:37 ashleydev left #testml
18:37 ashleydev joined #testml
18:37 ashleydev oops
18:37 ashleydev so was that before you got into p6g?
18:37 ashleydev or is that an offshoot after?
18:38 ingy that's from March 2010
18:38 ingy I probably just tweaked it at yapc hackathon
18:38 ashleydev oh
18:39 ashleydev i think that the p6 approach to being able to modify the grammar lexically is an interesting approach
18:39 ashleydev not analogous to c'dent
18:39 ingy sure
18:39 ashleydev but in p6 being able to: do { use python; ... }
18:39 ingy it's Inline ware :D
18:40 ingy I wrote the Inline RFC for Perl6
18:40 ashleydev and w/what audriet was doing with multiple backends...
18:40 ingy I love the solution
18:40 ashleydev kind of like c'dent in the middle to implement it
18:40 ashleydev so if there's a c'dent p6g...
18:40 ashleydev then the world is easily yours (for some definitions of easy)
18:40 ingy yeah, good point
18:41 ingy the interdeps drive me nuts
18:41 ingy sometimes
18:41 ashleydev anything in anything out...
18:41 ingy I need to get this fleet of planes off the ground
18:41 ashleydev i heard that some where....
18:41 ashleydev oh yeah... #perl6
18:41 ashleydev hehe
18:42 ingy but I'm still making the wheels :(
18:43 ingy speaking of that
18:43 ingy I need to get back on this
18:44 ingy ashleydev: http://ingy.pyrl.org/
18:45 ashleydev you did kwiki?
18:45 ashleydev didn't know that
18:46 ingy yeah
18:47 ingy I was talking with cfedde at yapc about how to bring it back.
18:47 ingy It's pretty stiff at this point.
22:33 ashleydev looking at Regexp::Grammars.pm it's all one file of perl... i wonder how hard it would be to translate to ruby and python

| Channels | #testml index | Today | | Search | Google Search | Plain-Text | summary