Very interesting.

                     C       J
hours to write      6-8      0.5
# lines             150      5
secs to execute     0.35     0.67

The comparison are listed in decreasing
importance, and of course hours to write
and # lines are correlated.
 


----- Original Message -----
From: Robert Cyr <[EMAIL PROTECTED]>
Date: Sunday, October 5, 2008 5:53
Subject: Re: [Jprogramming] performance : J or C ?
To: Programming forum <[email protected]>

> Roger Hui wrote:
> >I would be interested to see the C routine.  J Forum msgs
> >do not seem to permit attachments, so you may have to
> >post the code in a J wiki page.
> 
> I may not have write permission in J wiki pages.  It may be 
> of interest to
> some that:
> 
>    - J code extracts its IPs in 5 lines. I read un a 
> bit on mapped files and
>    ti took about 1/2 hour to write the code.  It 
> executes in 0.67 seconds after
>    loading J.
>    - C code was writen as an exercise in 6-8 hours 
> including a revision.  It
>    was cleanly written in 150 lines and  executes 
> in 0.35 secondss.
> 
> The author of this C code had studied languages as ML before, 
> but my
> demonstration did not persuade him to give J a try.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to