2024-04-16 00:52:57 sure 2024-04-16 01:07:16 lAl2O3 sorry man lets me friends 2024-04-16 01:09:22 sorry for what? 2024-04-16 06:42:06 veltas: it's done https://gist.github.com/lf94/0aa63aee26e9ce397b9db49054fc097d 2024-04-16 06:43:10 maximum message length is 255 bytes but only because it uses the traditional forth two-cell [len][data] 2024-04-16 06:43:44 you can verify with `echo -n "hello world" | sha256sum` 2024-04-16 06:44:32 off to bed with me :) 2024-04-16 11:57:40 lf94: Congrats 2024-04-16 11:57:44 Well that's a good exercise 2024-04-16 11:58:04 Not sure what you mean by "two cell [len][data]" 2024-04-16 11:58:20 Like a counted string? That uses one byte at start 2024-04-16 11:58:38 A cell should be enough to do encode more than 255 bytes length 2024-04-16 11:59:19 Mostly looks good to me, will have to review in 3 years when I have some free time ;) 2024-04-16 12:11:11 lf94: I am glad though that you took my advice and implemented some Forth code instead of writing a Forth straight away as some do! 2024-04-16 12:11:24 Now hopefully you'll have time to finish Starting Forth as well, I promise it's worth it 2024-04-16 12:11:34 It's a pleasure to read anyway 2024-04-16 17:52:57 veltas: yeah "counted string" 2024-04-16 17:53:11 veltas: what! i thought you were going to run it on your zenv this week! ;))) 2024-04-16 17:53:50 veltas: of course, the best way to learn is by writing programs ;) 2024-04-16 17:54:05 I read Thinking Forth also, great book 2024-04-16 17:54:33 veltas: on zenv isn't a cell 8-bits? 2024-04-16 17:55:07 veltas: that part of the code is just like that because it was just easier to not calculate the cell size and just hardcode the length insertion 2024-04-16 17:55:12 easily changabel 2024-04-16 17:56:52 https://gist.github.com/lf94/0aa63aee26e9ce397b9db49054fc097d#file-sha256-f-L434 2024-04-16 17:57:10 It's why I just insert 7 zero bytes and the 1 length byte 2024-04-16 17:57:28 (must be a 64-bit wide length encoded there) 2024-04-16 17:58:36 It's dope that I now have a 32 bit math lib as a result too :) 2024-04-16 17:58:43 that can run on 8-bit processors 2024-04-16 17:59:04 I'd love to extract it and have you guys add some fun tests to it 2024-04-16 17:59:13 It was by far the harder part of this exercise 2024-04-16 23:42:41 lf94: a cell is 16 bits on zenv