Matthias Trute <mtr...@web.de> writes:

> Hi Enoch,
>
>> Regarding .S
>> 
>> Indeed, says Forth 2012 RC1, "the format of the display is
>> implementation-dependent".
>> 
>> However, doesn't GFORTH display order make a better sense:
>
> In which way: by adding the stack depth or the ordering?
>
>> 
>> 1 2 3 .s <3> 1 2 3  ok
>> 
>> While ours:
>> 
>>> 1 2 3 .s
>> 3 2 1  ok
>
> I agree that amforth's display looks confusing at the
> first glance. Expecting a but? yes: I read from left to right
> (as probably many others do too) and I expect the TOS to read
> first.
>
> Gforth's display confuses me. I always have to scan the entire
> line to get the information I want.
>
> Basically the built-in .s is a debugging aid for the
> core development. I use it rather often when I dig in
> internals. A more user friendly .s is better implemented
> as forth code, DEPTH and PICK are available (I think they
> are useful for that task).

Hello Matthias,

IMHO .s should follow Leo Brodie's "Stack Picture" comment convention
(Thinking Forth pg. 151) as we are so accustomed to it. As developers we
can reverse .s order in our mind but it is an unnecessary burden on our
slow brain (called "System 2" in Daniel Khaneman's book, Thinking, Fast
and Slow) which is supposed to be focusing on bugs.

And if I have your ear :-)
I prefer (gforth): -1 -2 -3 .s <3> -1 -2 -3  ok
over (amforth): -1 -2 -3 .s 65533 65534 65535  ok
i.e., the regular numbers' format.

Thanks, Enoch.

>
> Matthias
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to