Michal Wallace wrote:
> I don't know whether or not this produces the correct results because I
> don't have any test data, but...


Yeah, that is troublesome.  Unfortunately, it’s the same catch-22 I’m in.

I’m transliterating the C code here:

http://rosettacode.org/wiki/The_ISAAC_Cipher#C 
<http://rosettacode.org/wiki/The_ISAAC_Cipher#C>

as directly as possible into J, so that I can get a working program which 
produces the expected outputs for the given inputs.

Once I have a working program that I can test, interrogate, and reason about, 
I’ll be in a much better position to refactor the code into idiomatic, and, 
hopefully, elegant J.

But the very reason I have to do it this cart-before-horse way is because I 
don’t (yet) understand the algorithm on a conceptual level.  So I’m starting 
from the code.

I guess what I was asking for in my previous email was for someone who does or 
can easily grok the concepts underlying the code to express them in J (which is 
a language I speak, so such code would teach me those concepts).

Barring that, someone who is confident enough in his C to trust in his 
translation of the macro would also suffice.  

(One big obstacle here, and I think more broadly to the lack of adoption of 
ISAAC the author of that article laments is the majority of easily-accessible 
artifacts dealing with it are code, rather than prose.)

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

Reply via email to