home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!gatech!pitt.edu!pitt!willett!ForthNet
- From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
- Newsgroups: comp.lang.forth
- Subject: Experimental Ideas
- Message-ID: <4179.UUL1.3#5129@willett.pgh.pa.us>
- Date: 25 Dec 92 10:08:39 GMT
- Organization: EIEI-U
- Lines: 59
-
- Category 3, Topic 5
- Message 87 Sun Dec 13, 1992
- ELLIOTT.C at 20:44 EST
-
- -----via CRS Premium Bulletin Board -
- USR Dual Standard 16.8K (416) 629-7000
-
- To: ALL
- From: MARCEL HENDRIX
- Subj: STOIC?
-
- dw> + At EuroForth '92 Christophe Lavarenne (`FreeForth') proposed to
- dw> + get rid of the Forth interpreter altogether and use a "compile
- dw> + buffer" (my interpretation). The idea, which has also been
- dw> + proposed by Mitch Bradley and John Hayes (among others), is to
- dw> + compile each line typed by the user into a nameless colon
- dw> + definition, execute that code and forget it again.
-
- dw> It is even worse than that. What if the user uses CREATE DOES>
- dw> in the nameless colon definition? Better not forget that code!
-
- Ok, in practice this will mean you can do more than the
- interpreter allows, but still not everything. I'd say the code is
- temporary by definition, so what you want with DOES> is clearly
- illegal (in that it can't work :)
-
- dw> If that code also does ALLOT or HERE manipulation, what does
- dw> "forgetting" it mean?
-
- The final result must be the same as typing 5 ALLOT or CREATE
- foo 3 , that is, the change is ``permanent''. It has to be. Of
- course the compiled (temporary) code cannot reside at HERE , if
- that is what you meant. That would interfere with about anything.
-
- dw> Once you do that, are you really doing FORTH anymore, or is it
- dw> something else? It seems to me that the simplicity of the top
- dw> level comes by avoiding all that hairy stuff.
-
- To do it well, a string stack (not known and not a number foo :
- 1+ ; ) or changed syntax ( S" foo" : 1+ ; ) is needed. As people
- have mentioned already, it then starts to resemble STOIC (don't
- know it, but looks interesting). The version with the S" may be
- possible with little internal change and very little side
- effects, but it sure gives a different look to the source code.
-
- Marcel Hendrix,
- Dutch Forth Workshop
-
- NET/Mail : FS FORTH Systeme BBS West Germany ++49 7667 556
- ---
- * The GrapeVine/Ferret Face BBS * NLR,ARK * 501-753-8121 DS *
- * PostLink(tm) v1.04 GRAPEVINE (#318) : RelayNet(tm) Hub
-
-
- -----
- This message came from GEnie via willett. You *cannot* reply to the author
- using e-mail. Please post a follow-up article, or use any instructions
- the author may have included (USMail addresses, telephone #, etc.).
- Report problems to: dwp@willett.pgh.pa.us
-