2025-05-01 01:07:11 bon 2025-05-01 01:08:33 macOsForth: : test DO I NUM-TO-STR LOOP CR ; 2025-05-01 01:08:33 Unknown word in definition: NUM-TO-STR 2025-05-01 01:08:33 Error: Definition discarded due to error 2025-05-01 01:08:54 macOsForth: LOAD "test.fth" 2025-05-01 01:09:03 macOsForth: LOAD "test2.fth" 2025-05-01 01:09:06 macOsForth: : test DO I NUM-TO-STR LOOP CR ; 2025-05-01 01:09:23 macOsForth: 10 0 test 2025-05-01 01:09:23 0123456789 2025-05-01 01:15:01 macOsForth: : test DO I -1 +LOOP ; 2025-05-01 01:15:27 macOsForth: 0 10 test .S 2025-05-01 01:15:28 <10> 10 9 8 7 6 5 4 3 2 1 2025-05-01 01:19:09 everyone is sleeping ? 2025-05-01 01:21:04 macOsForth: TODAY-CAL-IRC 2025-05-01 01:21:04 April 2025 2025-05-01 01:21:05 Mo Tu We Th Fr Sa Su 2025-05-01 01:21:05 7 8 9 10 11 12 13 2025-05-01 01:21:05 14 15 16 17 18 19 20 2025-05-01 01:21:06 1 2 3 4 5 6 2025-05-01 01:21:06 28 29 30 2025-05-01 01:21:07 21 22 23 24 25 26 27 2025-05-01 01:21:11 lol 2025-05-01 01:22:14 macOsForth: TODAY .S ` 2025-05-01 01:22:14 <13> 10 9 8 7 6 5 4 3 2 1 30 4 2025 2025-05-01 01:22:14 Unknown word: ` 2025-05-01 01:22:44 macOsForth: TODAY-CAL-IRC 2025-05-01 01:22:44 April 2025 2025-05-01 01:22:44 1 2 3 4 5 6 2025-05-01 01:22:44 7 8 9 10 11 12 13 2025-05-01 01:22:45 14 15 16 17 18 19 20 2025-05-01 01:22:45 Mo Tu We Th Fr Sa Su 2025-05-01 01:22:46 28 29 30 2025-05-01 01:22:46 21 22 23 24 25 26 27 2025-05-01 01:23:03 strange mixture ... 2025-05-01 15:32:51 crc do you have any resources or advice for making a bytecode interpreter? 2025-05-01 15:33:08 and a bytecode compiler 2025-05-01 16:52:20 vms14: What language will you be working in? 2025-05-01 17:20:43 KipIngram the initial target language would be js and other high level languages 2025-05-01 17:38:15 forthBot: MICRO WORDS MICRO SWAP - . 2025-05-01 17:38:15 USERNAME .S . + - * / MOD DUP DROP SWAP OVER ROT >R R> R@ = < > AND OR NOT XOR & | ^ ~ << >> CR EMIT VARIABLE @ ! +! DO LOOP I WORDS LOAD CREATE ALLOT ." CLOCK BEGIN WHILE REPEAT AGAIN SQRT UNLOOP +LOOP PICK CLEAR-STACK PRINT NUM-TO-BIN PRIME? FORGET STRING " 2DROP IMAGE TEMP-IMAGE CLEAR-STRINGS DELAY EXIT MICRO MILLI 2025-05-01 17:38:15 519 2025-05-01 20:13:11 I do not know how I'm going to store literals like strings or objects in a portable way 2025-05-01 20:14:57 I guess I can just target js and not worry about hardcoding stuff 2025-05-01 20:15:02 I could use json also 2025-05-01 20:24:52 I generally try to operate as if it were closer to a hardware computer; so things like strings get stored in the simulated RAM, and I implement functions using the instruction set to work with them 2025-05-01 20:25:35 in parable, I stored type information, and used JSON to store a representation of the memory and stacks 2025-05-01 21:43:31 yeah but it's weird to emulate memory just to add more overhead having to convert strings from an array sequence to a js string 2025-05-01 21:44:01 but then I compromise portability because I assume a gc 2025-05-01 21:44:24 I will just focus on js and that's it 2025-05-01 21:44:55 so the bytecode generator might spit some js code or alike, at the end what I want is an introduction to compiling/transpiling 2025-05-01 21:46:08 a bytecode interpreter looks like a good option for that 2025-05-01 22:14:09 implementing a GC if you don't have one isn't that hard 2025-05-01 22:49:32 forthBot: LOAD "test.fth" 2025-05-01 22:49:32 Error: Error: LOAD: Cannot open file 'test.fth' 2025-05-01 22:49:59 forthBot: LOAD "test.fth" 2025-05-01 22:49:59 Error: Error: LOAD: Cannot open file 'test.fth' 2025-05-01 22:51:29 forth: LOAD "test.fth" 2025-05-01 22:51:39 forth: LOAD "test2.fth" 2025-05-01 22:51:47 forthBot: LOAD "test.fth" 2025-05-01 22:51:56 forthBot: LOAD "test2.fth" 2025-05-01 22:51:56 Unknown word in definition: DAYS-IN-MONTH 2025-05-01 22:51:56 Error: Definition discarded due to error 2025-05-01 22:56:39 forthBot: LOAD "test.fth" 2025-05-01 22:56:50 forthBot: LOAD "test2.fth" 2025-05-01 22:56:51 Unknown word in definition: DAYS-IN-MONTH 2025-05-01 22:56:51 Error: Definition discarded due to error 2025-05-01 22:57:16 forthBot: LOAD "test2.fth" 2025-05-01 22:57:37 forthBot: TODAY-CAL-IRC 2025-05-01 22:57:37 May 2025 2025-05-01 22:57:37 Mo Tu We Th Fr Sa Su 2025-05-01 22:57:38 1 2 3 4 2025-05-01 22:57:38 5 6 7 8 9 10 11 2025-05-01 22:57:39 12 13 14 15 16 17 18 2025-05-01 22:57:39 19 20 21 22 23 24 25 2025-05-01 22:57:39 26 27 28 29 30 31 2025-05-01 22:57:46 bug fixed 2025-05-01 22:59:41 vms14: if you're emulating a block of memory with JS, make sure you know what "holey" and packed arrays are 2025-05-01 23:01:49 bless with holy water? good against undead