[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Does WTSIWYG make simplicity moot? (was Re: dtds


wtsiwyg primitive
On Tuesday 12 November 2002 12:22, Thomas B. Passin wrote:

> Sounds like FORTH.

The idea's the same as a FORTH immediate word, but finding a way to acheive 
that ability in a non-stack-based language was the fun part :-)

Instead of the stack, you had lexically scoped bindings. Sort of.

I based it round partial evaluation; basically, it all boiled down to a 
'meta' construct that wrapped an expression like a pair of brackets does, but 
the result of that expression:

1) Must be decidable at compile time using partial evaluation (unless you 
have an interpreter available at runtime, mind...)

2) Is treated as source code and compiled there and then to provide the 
semantics for the construct.

So at the lowest level you could write macros as functions, and use the meta 
construct thusly:

(meta (compile-state-machine `( ... state machine ...)))

The neat thing was that (like FORTH!) I could reduce the basic language down 
to something very primitive; I chose a linear continuation passing language 
with lambda, function application, and 'meta' (and a bunch of axiomatic 
functions like addition rather than implementing them in turns of Church 
numerals!) then proceeded to show how it could be extended to an OO language 
with packages and nice constructs, without extending the compiler.

A compiler for linear continuation passing is little more than an assembler, 
which means you could have a very simple language anyone can implement on 
their chosen hardware, or interpret, then drag in a load of cross-platform 
portable libraries to add all the features you expect of a real language. 
Which was nice.

>
> Tom P
>

ABS

-- 
A city is like a large, complex, rabbit
 - ARP

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.