00:00:00 --- log: started forth/19.09.24 00:16:47 --- join: xek (~xek@apn-37-248-138-80.dynamic.gprs.plus.pl) joined #forth 00:47:46 --- join: mtsd (~mtsd@77.110.61.100) joined #forth 01:20:10 --- quit: WickedShell (Remote host closed the connection) 01:43:18 --- join: CORDIC (~user@178-222-28-243.dynamic.isp.telekom.rs) joined #forth 01:43:31 --- quit: diginet2 (Quit: diginet has left the building) 01:44:20 --- quit: DKordic (Remote host closed the connection) 01:44:37 --- join: diginet2 (~diginet@107.170.146.29) joined #forth 02:17:53 --- quit: ryke (Ping timeout: 245 seconds) 03:25:58 --- join: dave0 (~davezero@069.d.003.ncl.iprimus.net.au) joined #forth 03:29:18 --- quit: dave0 (Remote host closed the connection) 03:46:24 --- join: iyzsong (~iyzsong@fsf/member/iyzsong) joined #forth 03:48:03 --- join: dave0 (~davezero@069.d.003.ncl.iprimus.net.au) joined #forth 04:42:24 --- join: dddddd (~dddddd@unaffiliated/dddddd) joined #forth 05:51:33 --- quit: dave0 (Quit: dave's not here) 06:48:37 --- join: ryke (~Thunderbi@71-9-171-192.dhcp.jcsn.tn.charter.com) joined #forth 07:20:16 --- quit: mtsd (Remote host closed the connection) 07:22:24 --- quit: ryke (Ping timeout: 240 seconds) 07:30:59 --- quit: iyzsong (Quit: ZNC 1.7.1 - https://znc.in) 08:27:17 --- join: ryke (~Thunderbi@mail.homecaregiverstn.org) joined #forth 08:49:57 --- quit: ryke (Ping timeout: 276 seconds) 09:58:07 --- join: Inode (~inode@unaffiliated/inode) joined #forth 10:21:18 --- join: nullnullnull (~alaa@bzq-79-176-126-13.red.bezeqint.net) joined #forth 11:07:55 --- quit: nullnullnull (Quit: Leaving) 11:25:15 --- join: ryke (~Thunderbi@mail.homecaregiverstn.org) joined #forth 11:49:29 --- join: WickedShell (~WickedShe@159-118-128-145.cpe.cableone.net) joined #forth 12:28:18 --- quit: ryke (Read error: Connection reset by peer) 12:28:39 --- join: ryke (~Thunderbi@mail.homecaregiverstn.org) joined #forth 12:53:31 --- join: cornburglar (~cornburgl@c-174-49-202-107.hsd1.pa.comcast.net) joined #forth 13:02:58 Hi there. I'm using gforth and I'm trying to create a word that looks a little something like 13:02:58 : run wordbuf 32 accept-word wordbuf evaluate ; 13:02:58 Where wordbuf is 13:02:59 create wordbuf 32 chars allot 13:02:59 And accept-word is a version of accept that finishes on space (ascii 32) instead of on CR as usual. The purpose is to make gforth interpret words as they are finished instead of waiting for full lines, can anyone help me with this? I've gone through 13:03:00 see accept 13:03:00 see edit-line 13:03:01 Etc. Etc. but I can't seem to figure out a modification that will get me what I'm after 13:07:54 have you seen KEY ? 13:11:04 : (TOKEN) KEY DUP 32 = IF DROP RDROP THEN (TOKEN) ; 13:11:22 not that sorry 13:11:26 DROP EXIT probably 13:12:05 cornburglar: http://www.forth.org/svfig/Len/Quitloop.htm this might interest you 13:12:22 hi; has anyone seen my missing bag of corn, I know it was around here somewhere ... 13:12:40 Yes from inside edit-line. And I can use that to get my result of 32 but I can't decipher what decode does inside edit-line and why it's returning non zero for specific values 13:12:41 --- quit: gravicappa (Ping timeout: 268 seconds) 13:12:46 Will check that link 13:13:02 oh, hi cornburglar and WilhelmVonWeiner ;-) 13:13:17 And all bags of corn are in the bathroom under the corner tile 13:13:23 hahah 13:13:39 cornburglar: you'll find gforth does *a lot* 13:13:40 hey tp 13:14:01 you might find it more interesting to write what would appear to be a simplified main loop 13:14:18 I think gforth does too much 13:14:22 in colorForth if the word wasn't found in a dictionary I think it was just ignored 13:14:26 you might like Lina Forth 13:14:35 Well I intend to write my own 13:15:41 The plan was 1: get gforth to be acceptable for me to use 13:15:41 2: write small forth-like macro assembler with my altered gforth frontend 13:15:41 3: write custom forth 13:18:03 I've never used gforth, I use a Forth on embedded cortex-m everyday tho 13:18:08 All this started because I want a forth where the interpreter looks something like : interpret word read evaluate interpret ; 13:18:21 I like recursion 13:18:26 yup same 13:18:37 I usually use RDROP RECURSE over loop constructs 13:18:55 in Forth imo recursion is the simplest approach 13:18:56 It reallt is much more natural 13:19:01 Really* 13:51:54 --- quit: remexre (Quit: WeeChat 2.4) 13:52:05 --- join: remexre (~nathan@x-160-94-179-186.acm.umn.edu) joined #forth 14:12:15 --- quit: xek (Ping timeout: 246 seconds) 14:21:48 Well now it seems like even appending a char to a string is complicated 14:40:15 --- quit: ryke (Ping timeout: 268 seconds) 15:17:59 --- join: dave0 (~davezero@211.26.155.69) joined #forth 15:24:27 It's working really well to keep the length stored at the end of a string variable 15:42:31 --- quit: dave0 (Read error: Connection reset by peer) 15:44:40 --- join: dave0 (~davezero@069.d.003.ncl.iprimus.net.au) joined #forth 15:54:04 --- join: ryke (~Thunderbi@71-9-171-192.dhcp.jcsn.tn.charter.com) joined #forth 15:59:41 --- quit: reepca (Remote host closed the connection) 16:33:30 --- join: reepca (~user@208.89.170.37) joined #forth 16:45:36 --- quit: reepca (Read error: Connection reset by peer) 17:02:24 --- quit: jn__ (Ping timeout: 240 seconds) 17:09:25 --- join: jn__ (~nope@aftr-109-90-233-87.unity-media.net) joined #forth 17:22:00 --- quit: jn__ (Ping timeout: 240 seconds) 17:22:25 --- join: reepca (~user@208.89.170.37) joined #forth 17:24:13 --- join: jn__ (~nope@aftr-109-90-233-87.unity-media.net) joined #forth 17:50:48 --- quit: cornburglar (Ping timeout: 268 seconds) 17:51:29 --- join: cornburglar (~cornburgl@107.77.240.153) joined #forth 17:52:50 How can I have a loop that gives me memory errors but I can manually step through the loop to my heart's content and get no errors at all 17:53:41 --- join: rdrop-exit (~markwilli@112.201.170.86) joined #forth 18:03:10 using a debugger? probably changed addresses and changed your error to become beneign 18:25:15 I'm not using a debugger 18:25:41 I'm just entering the words that make up the other word one by one 18:25:58 They work if I do them all at once or a few in a row too 18:30:17 c[] Good morning Forthwrights 18:34:00 I successfully implemented does> in the forth that I've been working on finally 18:34:14 Small victory but I'm still pleased with myself 18:34:26 Hooray 18:34:27 Kudos 18:34:39 You earn claps 18:37:03 cornburglar, your code probably runs too fast for the memory to keep up with it 18:38:38 How's that happen 18:42:39 cornburglar: can you post the code that’s not working as expected? 18:43:06 It's : interpreter begin key dup input append 32 = until input dup index @ evaluate ; and it gets stuck on append, where append increases a value I'm keeping at the end of a 32 cell variable and then places a char that many cells into the variable, I'm using that var as a string. It always fails on the c! instruction at the end of append 18:45:52 Append is somethung like : append ( c addr -- ) dup index increment index @ c! ; 18:46:05 I don't have it on hand so I can't check exactly what it is 18:48:35 I enter key the first time and then it fails on append, I haven't even put the index reset in there because it doesn't get that far. 18:54:32 What's index initialized to? 18:58:38 You seem to be using index @ as an address, was that your intention? 19:13:51 --- quit: dave0 (Quit: dave's not here) 19:41:58 BTW, it sounds like you intend to store each char in its own cell, is that a gForth thing? does EVALUATE expect the string to be stored that way? 19:53:54 --- quit: dddddd (Remote host closed the connection) 21:26:58 --- join: gravicappa (~gravicapp@h109-187-246-245.dyn.bashtel.ru) joined #forth 21:37:03 --- quit: cornburglar (Ping timeout: 245 seconds) 22:38:16 --- join: dave0 (~davezero@069.d.003.ncl.iprimus.net.au) joined #forth 23:10:32 --- join: creat1001 (ad5cd423@cpe-173-92-212-35.carolina.res.rr.com) joined #forth 23:13:29 hello 23:24:33 --- quit: creat1001 (Remote host closed the connection) 23:31:11 --- nick: Keshl_ -> Keshl 23:43:47 --- join: cornburglar (~cornburgl@107.77.240.121) joined #forth 23:59:59 --- log: ended forth/19.09.24