Roger wrote:
> FYI:  5!:2 was the first verb representation to be
> implemented

Even before 5!:1 ?  (If so, then how did 5!:1 come to occupy the first 5!:
slot?)

Out of interest, what is the internal representation for non-nouns?  EG:

        - Flat strings (unlikely if 5!:5 was implemented after 5!:2)
        - Memory structures analogous to the boxing in 5!:1
        - Memory structures analogous to the boxing in 5!:2
        - Something else?

>  its relationship to the internal representation 
>  is direct and obvious.

No question about that; I just find the boxing adds too much visual
overhead.  Adjacent primitives are often separated by distracting lines or
excessive space.  Maybe I would find it more helpful if the boxes contained
higher-level phrases than primitives (though I'm not sure what those phrases
would be, or how to identify them).

Anyway, I once wrote representation which blended some features of 5!:2 and
5!:5 .  You can read about it at [1], but it produces text like:

         0 ;:^:_1@:(     )^:(           ):(
)
         1          ":&.>    32&=@(    )   (              )~;:^:_1@:(
)^:(           ) 
         2                         3!:0     (        )~2&{           ":&.>
32&=@(    )  
         3                                   (   ){.]
3!:0   
         4                                    <.#                    


An analogous textual format for the 5!:1 representation be Lisp's
S-expressions.

-Dan

[1]  Tool for unfolding code:
http://www.jsoftware.com/pipermail/general/2008-July/032126.html 



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to