Dann Corbit wrote:diepeveen wrote:Dieter B?r?ner wrote:diepeveen wrote:Who is going to rewrite Kadatch code to 64 bits?
Hi Vincent. I don't see a big problem here. The "real" Kadatch code is Huffman encoding/decoding on small blocks. No need to change anything here, when you go to 64 bits. There are small parts that do file I/O that migth need adjustments, depending on details of compiler and library implementation on the 64 bit environment. If the environment uses 64 bit longs, only little adjustment should be needed. If not, on might need some fseek64 (or equivilent) instead of fseek. Does not look too complicated to me.
Calling code must of course now handle tables of 64 bit offsets, instead of 32 bits offsets. But that is not really inside the Kadatch code, is it? Also, does not look too complicated to me, to change this. Actually it could make all of the Nalimov/Kadatch code significantly easier: No need anymore to split TBs into parts, and all that code, that has to handle this.
Regards,
Dieter
I didn't ask how difficult it is. I just asked who is going to do the EFFORT to rewrite it?
Also note you need to create 2 files, not 1. 1 file with kadatch indexation code with 64 bits lookuptables and 1 file like the current one with the compression code.
You don't want to waste of course 1 GB ram to indexation tables when loading all 6 men, nor do you want to lose 3 minutes starting time to just kadatch code.
"WHO is going to do that effort?", that's my question. Not whether it is *possible*, *hard*, or *difficult*.
Compression stuff is easy. The EGTB compression could easily be replaced by 7-zip libraries or bzip2 or whatever else someone whated to use.
if you ask me, the past few years, the only 3 real big problem of nalimov has been
1. the kadatch code which has been used more or less unmodified in his code
2. using DTM instead of WDL
That is what bitbases are for.
3. using C++ instead of C
Beowulf has a pure C translation in the code base (I forget who did it...) that can be linked using a C only compiler.
Vincent
It's just who quotes it: "compression is easy".
Please write me a good compressor program. You can earn a LOT of money with it.
Note it's just as hard as writing a world top chess engine.
Also as you obviously do not know a thing about compression. 7-zip is using pretty advanced stuff that's not going to work for EGTB compression. Such as dictionary based compression.
That means you basically need to decode the entire EGTB in order to just get 1 byte.
Real good compression is REAL hard to write.
In fact, despite being busy quite a while searching for it, i didn't find a compressor that can spent really days to compress a single egtb, as long as it decompresses a tiny fragment real quickly.
Kadatch is really superior to what you can come up with in your own labatory. What he has been doing is *not* easy.
Note Kadatch also kicks the hell out of the default zip and bzip2 that the linux OS default ships.
Note that 7-zip isn't ported to linux yet. So if Nalimov would use 7-zip, not only would everyone cry because you need to un-7-zip the entire egtb, the linux freaks also badly need a port of it to linux (work on that gets done though).
p.s. (de)compressing a single EGTB with bzip2 is going to eat half a day, whereas Kadatch is doing it within a few minutes.
Vincent