2021-12-03 03:13:58 i'm getting there! 2021-12-03 03:14:58 i have successfully compiled and used the flow control stuff! IF ELSE THEN BEGIN WHILE REPEAT UNTIL AGAIN all working, all compiled from source! 2021-12-03 03:15:04 very nice 2021-12-03 04:45:30 i learned that REPEAT can be written as AGAIN THEN :-) 2021-12-03 05:18:06 dave0: Yeah the dictionary is pretty much like a stack in the way it grows/shrinks 2021-12-03 05:19:37 Also nice job 2021-12-03 05:19:58 thanks veltas :-) 2021-12-03 05:20:22 it's quite fun to have it actually working! 2021-12-03 05:29:43 the way i was picturing the dictionary as a stack was that it was an array of pointers to the word headers 2021-12-03 05:31:45 so instead of a word header having a flag byte, a length byte, a string for the name, a pointer to the xt, and a link to the next word... a header has a flag byte, a length byte, a string name, and a pointer to the xt... but the pointer to each header is in the stack 2021-12-03 05:33:47 the inspiration came from a story that was comparing languages, and forth was mentioned, and the story pointed out that while most data structures in forth are stacks, the dictionary was an exception... so i thought about it and the dictionary doesn't /have/ to be an exception.. it can be a stack too! 2021-12-03 05:41:41 here's the link: http://canonical.org/~kragen/memory-models/ the comment is under this heading: Interlude: why is there no Lua, Erlang, or Forth memory model? this is the comment: Forth programs often just use parallel arrays, although the Forth dictionary is invariably a linked list. 2021-12-03 08:00:14 imode, run yours on top of mine :P 2021-12-03 08:37:27 http://forth.works/share/0852f3648c484c8ff61450624daf467d.html is my quick solution to day 3, part 1. (I don't have time to delve into part 2 right now, so that'll have to wait until sometime later) 2021-12-03 16:32:25 crc: Thanks for your efforts, always like reading your retro docs 2021-12-03 16:33:00 I haven't looked at day 3 yet, will probably get to it and do more 'easy' ones in FORTH 2021-12-03 16:42:49 part 2 will be a little more difficult; I'll try to get to it at some point, but I don't do much coding on weekends 2021-12-03 17:09:31 Yep me neither lol 2021-12-03 17:09:37 On good weekends sometimes