bug report

Tom 7 twm@andrew.cmu.edu
Sat, 14 Jul 2001 13:08:05 -0400 (EDT)


I love the new version; it's really fast!

The new compiler, I think, produces bad code for my MD5
implementation. (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tom7misc/net/mlftpd/md5.sml)
In particular, it raises Chr because the ints sent to 'chr' are huge, even
though they are protected with 'andb 0w255'. I whittled the code down to
this:




SML/NJ produces this result:

w2B 67542301
chr 1
chr 35
chr 84
chr 103
success


My intuition is that this is not a basis bug; some changes that should not
have had semantic significance in SML affected the behavior of the bug.



[ Tom 7 : http://www.andrew.cmu.edu/~twm/ ]
[ Tom 7 : http://fonts.tom7.com/          ]