Re: A Brief Look at History



Bruce McFarling <agila61@xxxxxxxxxxxx> wrote:
Jonah Thomas <jethom...@xxxxxxxxx> wrote:
I think it was Win32Forth that would put a stack diagram in a
separate window and show whenever it got updated. A nice tool to
help build the one you want. I used it for a little while, but it
was annoying. My students never used it. I never noticed anybody
else use it or talk about using it, but since it's a debug tool they
might just not mention it.

No, that's a debug tool.

It would look like a multi-pane debugger, but rather than have a Forth
and work out how to debug it, you design the Forth animator and then
write a Forth that you can animate well. If you have a 32 bit Forth,
then make the animated Forth 24 bit or 16 bit, so that it can be
wholly contained in a closed space inside the animation program.

Ah. You're talking about a toy Forth whose entire purpose is to show you
how it works.

This is like the "Visible Man" and "Visible Woman" models they use in
physiology. The executable code show up as one color, the comments as
another, the cursor is in the spot in the source inside the word
currently being executed, after execution has passed a word, it gets a
slightly darker shade of its original color. Over in the panel in the
left hand side is the display proper, beneath the two screens, facing
each other just across the the middle of the screen, is the datastack
and return stack, in a stack of views of in unsigned, signed and, if
in the character range, character. The reverse color highlight hops
merrily around the source code display screen. Of course, when
interpreting the command line, the SOURCE string shows up in the
display, with the cursor hopping merrily in just the same way.

Between the two main displays is the memory peek-hole, "lower"
addresses at the bottom, "higher" addresses at the top. Normally the
memory peak-hole follows HERE through the codespace.

I wouldn't try to write it, first, because its probably beyond my
reasonable ambitions, and second, because I am not interested in
teaching Forth in a classroom setting. But if I had had something like
that when I was learning Forth, I would have learned more quickly.

It was pretty easy to hook into a simple Forth system to have it
single-step. Have it display the name and stack diagram for each word on
one level on the return stack. Let the user choose whether to go deeper.
Variables can display their current contents each time they're
referenced. Etc. Easy to do. Nobody wanted to use it, including me.

You're talking about something with multiplle windows that each get
updated at the right time with just the right colors etc.

If I was to do something like that I'd like it to be portable. The way I
did it simply took a lot of knowledge about the Forth compiler, and
wouldn't port to other Forths at all easily.

So it might be better to do your project in some languagea that's
optimised for windowing stuff and that ports to multiple hardware and
OSes. TclTk is my first thought since it shares some of Forth's
advantages, but Python etc might work well.

Alternatively, you might find a single Forth that's been ported to
MSWindows, Mac, Sun, Linux, and OSX and is being actively maintained in
them all, and write the demo Forth in that.

.



Relevant Pages

  • Re: A Brief Look at History
    ... Get an xt, display its name, display the stack, wait for a keystroke. ... bottom of its command window. ... I remember a Forth that put that in a vertical window that covered up ...
    (comp.lang.forth)
  • Re: SVGA, LCD, Win CE 6.0 and PB
    ... site addressing display drver issues, not to mention the source code. ... travel down thru Win CE from boot.ini to the place genrating final LCD ... I can have a desktop larger than physical screen window. ...
    (microsoft.public.windowsce.platbuilder)
  • Question about Full screen exclusive mode
    ... I use ScreenManager class that has been presented in David Brackeen's book. ... The graphics card enters the selected mode but the window content is painted only to the level of windows display mode.For example. ... After returning to the Windows, the settings dialog window is repainted with the content of the frame that is under settings dialog. ...
    (comp.lang.java.programmer)
  • Re: display array in a frame wnd
    ... I have to display results. ... The window can be used in all the program thanks to the name "source image". ... CFrameWnd* pw; ... Why is this not in an OnPaint handler? ...
    (microsoft.public.vc.mfc)
  • Re: display array in a frame wnd
    ... you have to create an app that is suitable for displaying an image. ... There would never be a need to create a frame window; it is not at all clear why such code ... I have to display results. ... Why is this not in an OnPaint handler? ...
    (microsoft.public.vc.mfc)