Search the web
Sign In
New User? Sign Up
xml-litprog-l · Literate Programming using XML
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Leo, Elucidator etc.   Message List  
Reply | Forward Message #220 of 238 |
Re: [xml-litprog-l] Leo, Elucidator etc.

** Reply to message from "Jobling C.P." <c.p.jobling@...> on Thu, 28
Nov 2002 13:53:59 -0000

> One of the papers cited in that paper is to a
> technique called "Reverse Literate Programming" proposed by Markus
> Knasmüller (http://www.ssw.uni-linz.ac.at/Research/Projects/RevLitProg/)
> which appears to have a lot in common with Charlie McDowell's proposal.

I don't think it is that close. I wasn't previously aware of any formal
discussion of "reverse LP", but it has come to mind in the past when people
have asked whether it wouldn't be better to leave sources intact and instead
hyperlink external documentation to them. My answer is that this sounds like a
good way to analyse a body of poorly documented code that you have been tasked
to understand, but I don't see it working well for documenting code as it is
being written. It doesn't encourage you to write documentation as you code,
and you would need to continually check what the code coverage of the
documentation was. Also, as you edited the sources, I wonder if the links to
the documentation wouldn't turn out to be fragile & easily broken.

As I understand Charlie's work, it simply changes the LP metaphor a bit.
Normally, where a macro is called within another macro, you just see a
reference to the macro being called. The code which is inserted when tangling
is not inlined into the woven version of the macro (although this is a feature
request for a future version of xmLP). Charlie's proposal takes an interactive
view, where the default is to display a link to the macro being called, but a
user can interactively choose to see what the inlined (tangled) code would look
like. This is a very good idea.

My thoughts as to what an ideal XML LP IDE would be like revolve around what
good WYSIWYG XML editors do. An editor like XMetaL can make most XML document
formats look like a word processor page (note that the next version of Word
also promises this, which could be very interesting indeed). This means that
the documentation can be edited in a WYSIWYG fashion, making weaving
unnecessary unless you need an alternative output format for others to read.
The key addition I would also like to see is "live" tangling, so that as well
as your documentation window, you could have several source windows open
showing how the tangled sources will look. As you edit the macros in the
literate document, you would see live updating of the tangler output in the
source windows, hopefully with the colour coding and incorrect syntax detection
that mainstream programming IDEs now provide. Live tangling would overcome the
(very real) problem of programmers not being sure if they have assembled their
macros correctly or not.

Charlie's solution addresses the same problem, but does so by progressively
displaying tangled output in the middle of the documentation view, while my
thoughts have tended more towards having the tangled code in separate windows.
I think these are complementary approaches, and having both available would not
be a bad thing at all.

Cheers,
Tony.
====
Anthony B. Coates, Information & Software Architect
mailto:abcoates@...
MDDL Editor (Market Data Definition Language)
http://www.mddl.org/



Mon Dec 2, 2002 5:39 am

ozabcoates
Online Now Online Now
Send Email Send Email

Forward
Message #220 of 238 |
Expand Messages Author Sort by Date

I am familiar with both Leo and Elucidative Programming (although not the Elucidator project). They each drift a little bit further from my interpretation of...
Charlie McDowell
professorCha...
Offline Send Email
Nov 26, 2002
9:04 pm

Hi I have been lurking in this group for a while. I have used a kind of "lit prog" technique described in this paper. ...
Lexén Mikael
tuvok4se
Offline Send Email
Nov 27, 2002
8:38 am

... From: Charlie McDowell [mailto:charlie@...] Sent: 26 November 2002 21:08 To: xml-litprog-l@yahoogroups.com Subject: [xml-litprog-l] Leo, Elucidator...
Jobling C.P.
cpjobling
Offline Send Email
Nov 27, 2002
12:00 pm

From the paper that sounds like a very nice system. How can I get a copy of the tool? Was the paper ever published? If so where? ... Charlie McDowell,...
Charlie McDowell
professorCha...
Offline Send Email
Nov 27, 2002
9:15 pm

I would like to check my understanding of your system. It appears that your pseudo code sections (pc) are like Knuth's macro names but you have no invoke. The...
Charlie McDowell
professorCha...
Offline Send Email
Nov 27, 2002
10:05 pm

I looked into the tool discussed in the paper cited [ftp://www.excosoft.se/pub/seminars/litprog.pdf] when I first came across it [I thought it was first...
Jobling C.P.
cpjobling
Offline Send Email
Nov 28, 2002
1:54 pm

** Reply to message from "Jobling C.P." <c.p.jobling@...> on Thu, 28 Nov 2002 13:53:59 -0000 ... I don't think it is that close. I wasn't previously...
Anthony B. Coates
ozabcoates
Online Now Send Email
Dec 1, 2002
10:42 pm

I think this should be easy to add to what I'm developing. It could also solve a problem for me. I wasn't sure how I was going to handle pretty printing of the...
Charlie McDowell
professorCha...
Offline Send Email
Dec 1, 2002
10:50 pm

** Reply to message from Charlie McDowell <charlie@...> on Sun, 01 Dec 2002 14:54:05 -0800 ... As you have probably already realised, one thing to...
Anthony B. Coates
ozabcoates
Online Now Send Email
Dec 1, 2002
10:59 pm

My very rough prototype in fact does allow that - and indeed it was one of the trickiest (and most interesting) aspects of the development. An important...
Charlie McDowell
professorCha...
Offline Send Email
Dec 1, 2002
11:11 pm

** Reply to message from Charlie McDowell <charlie@...> on Sun, 01 Dec 2002 15:15:34 -0800 ... At a minimum, I think you would need a feature that...
Anthony B. Coates
ozabcoates
Online Now Send Email
Dec 1, 2002
11:25 pm

Is anyone here familiar with http://www.logilab.org/xmldiff/ Overview XMLdiff is a python tool that figures out the differences between two similar XML files,...
Bill Page
bill.page1@...
Send Email
Dec 4, 2002
12:11 pm

Hi Sorry for not answering You but I have been out of town. I have talked to the developers at Excosoft and they have prepared a demo. Her is the answer from...
Lexén Mikael
tuvok4se
Offline Send Email
Dec 5, 2002
7:26 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help