Re: [racket] structural program comparison tool in Racket

2012-09-14 Thread Neil Van Dyke
Yin Wang wrote at 09/14/2012 10:48 PM: "We are not afraid that students would try to tune their work to the similarity tester. We reckon if they can do that they can also do the exercise." Threat: industrious student makes program that accepts input of one correct program and yields N equi

Re: [racket] structural program comparison tool in Racket

2012-09-14 Thread Yin Wang
It looks fun. "We are not afraid that students would try to tune their work to the similarity tester. We reckon if they can do that they can also do the exercise." I used a tool called MOSS from Alex Aiken for detecting plagiarism in programming class, but it was not open source. I guess I need

Re: [racket] structural program comparison tool in Racket

2012-09-14 Thread Hendrik Boom
On Fri, Sep 14, 2012 at 04:34:21AM +0800, Yin Wang wrote: > Hello, > > I'm developing a tool for "diffing" program by parse trees and not > text. It is written in Racket and can process Lisp family languages, > C++, JavaScript and Python. It has a JavaScript based interactive UI > for browsing the

Re: [racket] structural program comparison tool in Racket

2012-09-14 Thread Yin Wang
Hi Eli, Thanks a lot for the thoughts! > IOW, I think that it would be nicer to have a good api for the tool, > something that takes two files (or two pieces of text) and returns the > representation of the additions/deletions and the mapping between > chunks of text that is the same. This way

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Eli Barzilay
5 hours ago, Asumu Takikawa wrote: > On 2012-09-14 04:34:21 +0800, Yin Wang wrote: > > I'm developing a tool for "diffing" program by parse trees and not > > text. It is written in Racket and can process Lisp family > > languages, C++, JavaScript and Python. It has a JavaScript based > > interactiv

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Yin Wang
Hi folks, For a non-technical problem, I'm afraid that I have to replace the earlier Emacs Lisp example with other ones: Scheme: http://www.cs.indiana.edu/~yw21/demos/mk-mk-c.html C++: http://www.cs.indiana.edu/~yw21/demos/d8-3404-d8-8424.html Thanks to Neil Van Dyke for noticing this pro

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Eduardo Bellani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Truly it would be a great addition to drracket. On 09/13/2012 06:06 PM, Asumu Takikawa wrote: > On 2012-09-14 04:34:21 +0800, Yin Wang wrote: >> I'm developing a tool for "diffing" program by parse trees and >> not text. It is written in Racket and c

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Vincent St-Amour
At Thu, 13 Sep 2012 17:06:35 -0400, Asumu Takikawa wrote: > > On 2012-09-14 04:34:21 +0800, Yin Wang wrote: > > I'm developing a tool for "diffing" program by parse trees and not > > text. It is written in Racket and can process Lisp family languages, > > C++, JavaScript and Python. It has a JavaS

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Asumu Takikawa
On 2012-09-14 04:34:21 +0800, Yin Wang wrote: > I'm developing a tool for "diffing" program by parse trees and not > text. It is written in Racket and can process Lisp family languages, > C++, JavaScript and Python. It has a JavaScript based interactive UI > for browsing the diff results. > > You c

[racket] structural program comparison tool in Racket

2012-09-13 Thread Yin Wang
Hello, I'm developing a tool for "diffing" program by parse trees and not text. It is written in Racket and can process Lisp family languages, C++, JavaScript and Python. It has a JavaScript based interactive UI for browsing the diff results. You can find a demo of it (diffing two Emacs Lisp prog