00:00:00 --- log: started retro/13.01.02 06:27:46 I finally added some instructions for building the pascal version here: https://github.com/sabren/b4/ 06:39:11 --- join: kumul (~kumul@67.224.165.150) joined #retro 06:56:52 the djb2 hash in library/hash.rx has too many collisions in the default config 07:17:05 well that's no fun :/ 07:18:50 hmm. well, instead of a hash you could use the colorforth scheme 07:21:00 basically he maps every letter to a 5-bit code and shifts it, so instead of a hash it's a compressed representation of the actual word 07:21:59 so in 1 32-bit cell you'd have up to 6 letters, i guess. 07:22:50 or you could just go 8-bit, store the name in 2 cells 07:22:57 as actual ascii 07:23:49 limit identifiers to 8 characters, at least for the comparison 07:25:25 i know ascii's 7-bit, but if you go 8-bit then the image would actually be readable in a hex editor 07:26:24 actually then you can leave the lookup code exactly as-is. you just pad the name with zeros to fill out the last cell 07:27:04 the dictionary gets *smaller*, and you're testing 4 characters at a time (assuming 32-bit cellsize is) so it's faster than it is now too 07:28:02 you'd only have to pay the price to unpack the names in the disassembler 07:31:14 (and you'd still take a small hit when you compile, but the encoding's just: dup 8 << getc 255 and and or something, and that's got to be faster than a hash routine 07:31:29 ) :) 10:28:57 --- quit: karswell (Remote host closed the connection) 10:39:13 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #retro 12:18:05 --- join: sunwukong (~vukung@78.139.3.238) joined #retro 12:26:30 --- quit: sunwukong (Remote host closed the connection) 15:06:19 --- quit: karswell (Remote host closed the connection) 15:18:41 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #retro 15:45:50 --- quit: karswell (Remote host closed the connection) 15:56:05 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #retro 19:40:45 --- quit: harrison (Quit: No Ping reply in 180 seconds.) 19:41:05 --- join: harrison (~quassel@li89-226.members.linode.com) joined #retro 22:11:49 --- quit: kumul (Quit: WeeChat 0.3.9.2) 22:13:50 --- join: kumul (~kumul@67.224.165.150) joined #retro 23:32:03 --- quit: kumul (Quit: WeeChat 0.3.9.2) 23:59:59 --- log: ended retro/13.01.02