Hello Anton, Friday, September 16, 2005, 6:02:00 AM, you wrote:
AR> Good job, Oldes! AR> By the way, I noticed that your ui32-to-int and int-to-ui32 AR> functions might be optimizable. AR> It looks like you do not use them in any tight loop in AR> this code, but if you ever do, they might be speeded up AR> a lot by making your struct once and keeping it in the AR> context, eg: AR> context [ AR> s: make struct! [i [integer!]] none AR> ui32-to-int: func [i /local s][ AR> change third s i AR> return s/i AR> ] AR> ] AR> Did you consider this way ? AR> Anton. >> Hello rebolist, >> >> just want to let you know that today I did something I wanted to do >> a long time ago: >> >> zlib compressor/decompressor using zlib.dll (version 1.2.3) >> >> Rebol has compress/decompress functions (which are basically zlib as >> well, but is using some old version or has some unknown problem so >> it's not able to decompress some of ziped files. >> >> I must say it again: Rebol's dll and binary support is not easy and >> intuitive at all. It was really hard to find out how to get pointer >> to integer value (if I can talk about unsigned long integers like >> about Rebol's integers) and the way I found doesn't look nice at all. >> >> Never mind. I got what I needed to work. >> >> You can download it with compiled zlib.dll for windows here: >> >> http://box.lebeda.ws/~hmm/rebol/zlib_latest.rip >> >> and you will need this Ladislavs' script as well: >> >> http://box.lebeda.ws/~hmm/rebol/memory-tools_latest.rip >> >> cheers, >> Oldes >> >> PS: The files are RIP archives so you must first run them to decompress >> included files >> PPS: It would be possible to use more functions from this dll, but I >> needed just the decompress function. For more info look at >> http://www.zlib.org - the official zlib web page. >> >> -- >> Best regards, >> rebOldes -----------------[ http://oldes.multimedia.cz/ ] Yes, you are right, but the best thing would be if this would be in Rebol as a native function and for other binary types as well. And pointers (the way with pointer to integer is nasty). And other stuff which is being left by Carl in past. -- Best regards, rebOldes -----------------[ http://oldes.multimedia.cz/ ] -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
