[MLton] Re: [MLton-commit] r7223

Matthew Fluet mtf at cs.rit.edu
Fri Sep 11 07:44:58 PDT 2009


On Sat, 5 Sep 2009, Wesley Terpstra wrote:
> Where there is a "to", there should be a "from".
>
> Converting an intinf to/from a byte-stream is a pretty important operation
> in cryptography. The basis library doesn't provide a way to convert to bytes
> aside from >> and WordX.fromLargeInt. It is not possible to convert an integer
> to bytes in linear time with these operations. Therefore, this patch extends
> the MLton extension to converts IntInf to/from it's underlying representation.

Looks good, especially with the checking for valid representations. Don't 
forget to update  http://mlton.org/MLtonIntInf  with signature changes.



More information about the MLton mailing list