Re: md5sum, in parrot (library/tests)

2004-04-29 Thread Nick Glencross
Here is the latest-and-greatest version, incorporating your helpful feedback. I've tried using .namespace, but haven't worked out how best to do this. I also tried removing underscores from some of the names, but didn't have much success their either, so they're back. It'll be a few days befor

Re: md5sum, in parrot (library/tests)

2004-04-29 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > Also, I tried using the @MAIN pragma, this seemed to break with JIT Brr. Fixed. A bug hanging around really long and waiting for mainly integer stuff and @MAIN not at byte_code[0]. The JIT optimizer, which also looks at branches didn't look at anything

Re: md5sum, in parrot

2004-04-29 Thread Nick Glencross
I'll fix these (and some other things mentioned in other posts in this thread), and repost again in the next day or so, Thanks all, Nick Leopold Toetsch wrote: Nick Glencross <[EMAIL PROTECTED]> wrote: for fun I've written md5sum using IMCC, and have attached my first cut. Yet another f'u

Re: md5sum, in parrot (library/tests)

2004-04-28 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > Hi! > .namespace["Digest::MD5"] Ack > Leo, what is the status of the pending changes WRT library paths? Mainly a missing portable way to find the library. *But* searching in C is working for current platforms, so we can do the same for /library. We just n

Re: md5sum, in parrot (library/tests)

2004-04-28 Thread Dan Sugalski
At 4:41 PM +0200 4/28/04, Leopold Toetsch wrote: Nick Glencross <[EMAIL PROTECTED]> wrote: > * runtime/parrot/include/Digest_MD5.imc (_md5sum and _md5_print calls) * examples/assembly/md5sum.imc * imcc/t/syn/md5.t I don't know if the test lives in the most appropriate directory. Rather n

Re: md5sum, in parrot (library/tests)

2004-04-28 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > I've now split the code into a library, an example and a test. Good. > * runtime/parrot/include/Digest_MD5.imc (_md5sum and _md5_print calls) > * examples/assembly/md5sum.imc > * imcc/t/syn/md5.t > I don't know if the test lives in the most appr

Re: md5sum, in parrot (library/tests)

2004-04-28 Thread Jens Rieks
Hi! On Wednesday 28 April 2004 14:31, Nick Glencross wrote: > Time for an update. > > I've now split the code into a library, an example and a test. > > * runtime/parrot/include/Digest_MD5.imc (_md5sum and _md5_print calls) runtime/parrot/library/Digest/MD5.imc should IMO be better. You should p

Re: md5sum, in parrot (library/tests)

2004-04-28 Thread Nick Glencross
Time for an update. I've now split the code into a library, an example and a test. * runtime/parrot/include/Digest_MD5.imc (_md5sum and _md5_print calls) * examples/assembly/md5sum.imc * imcc/t/syn/md5.t I don't know if the test lives in the most appropriate directory. Investigating why some che

Re: md5sum, in parrot

2004-04-28 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > for fun I've written md5sum using IMCC, and have attached my first cut. Yet another f'up. Some enhancements and nit picks. - buffer should be a IntvalArray (or IntList still) (I've copied the splice over to intlist.c) - extracting the chars out of t

Re: md5sum, in parrot

2004-04-28 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > * 200K file limit imposed when reading in the file The C opcodes truncates files at 64K. Needs fixing. And we need C - at least the filesize. E.g. read S0, P0 # slurp whole file And of course: the string really shouldn't get created as UTF-8 in t

Re: md5sum, in parrot

2004-04-27 Thread Nick Glencross
Jens Rieks wrote: Hi! On Tuesday 27 April 2004 16:58, Nick Glencross wrote: for fun I've written md5sum using IMCC, and have attached my first cut. Cool :-) Should we add it as a library? That should be easy, shouldn't it? I'll have a go at devising some tests too. If anyone can let me k

Re: md5sum, in parrot

2004-04-27 Thread Jens Rieks
Hi! On Tuesday 27 April 2004 16:58, Nick Glencross wrote: > for fun I've written md5sum using IMCC, and have attached my first cut. Cool :-) Should we add it as a library? jens

Re: md5sum, in parrot

2004-04-27 Thread Nick Glencross
Leopold Toetsch wrote: Nick Glencross <[EMAIL PROTECTED]> wrote: * Results from i386 JIT can be corrupt and needs investigating (lots of FFs) Fixed. leo Fixed before I even got to look at it. You're brilliant, thanks, Nick

Re: md5sum, in parrot

2004-04-27 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > * Results from i386 JIT can be corrupt and needs investigating (lots > of FFs) Fixed. leo

Re: md5sum, in parrot

2004-04-27 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > for fun I've written md5sum using IMCC, and have attached my first cut. Wow. > * Results from i386 JIT can be corrupt and needs investigating (lots > of FFs) Yep. Seems to be a problem with this line in swap: $I13 = $I13 >>> 24 i.e. JITed lsr

md5sum, in parrot

2004-04-27 Thread Nick Glencross
Hi Guys, for fun I've written md5sum using IMCC, and have attached my first cut. It will need some further testing, but in the most part it works well. There are some limitations: * 200K file limit imposed when reading in the file * 512MB(?) limit imposed by shortcut in algorithm * Haven't tes