Lau B. Jensen wrote:
>   I was  discouraged to learn that J was actually implemented using C, 
>   which is unmatched in its ability to produce bugs even in small and 
>   simple code-bases.

I should also point out that the J's C source is constructed in such a way to 
avoid the problems commonly associated with C
programs.  For example, it does its own memory management, and there hasn't 
been a single instance of a memory leak in J's history
[1].  

And how is the C source constructed in this way?  Well, though what is compiled 
is definitely C, what is written is essentially APL.
Here's an example of J's source style:  
http://www.jsoftware.com/jwiki/Essays/Incunabulum  (though this wasn't written 
by Roger).  I
wonder how a Lisper reacts to such heavy use of macros?

-Dan

[1]  Well, except for one very trivial memory leak,
        http://www.jsoftware.com/pipermail/general/2003-June/013085.html
        which, as I said, no "normal user" would ever encounter.

PS  Curious people may see more links to J implementation details at 
        http://www.jsoftware.com/jwiki/DanBron/JnJ
        in particular, at the top of the page there's a link to the full C 
        source of an early J interpreter.



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

Reply via email to