00:00:00 --- log: started forth/17.06.23 00:28:16 hey, i was trying a guy's http server implementation, he just treate the incoming requests as forth code, but met a newly added field, so the processing failed 00:28:42 i was thinking if people could have some method to accept such case 00:36:12 --- join: dual (~bonafide@199.21.100.130) joined #forth 02:31:53 --- quit: nighty- (Quit: Disappears in a puff of smoke) 02:59:54 --- join: GeDaMo (~GeDaMo@212.225.125.110) joined #forth 04:32:46 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 04:36:56 --- quit: wa5qjh (Remote host closed the connection) 04:52:03 --- join: nighty- (~nighty@s229123.ppp.asahi-net.or.jp) joined #forth 04:55:04 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 04:56:28 --- quit: wa5qjh (Client Quit) 04:57:10 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 05:13:09 --- quit: wa5qjh (Remote host closed the connection) 06:19:40 --- join: Chef_Gromboli (~Chef_Grom@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 07:23:07 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 07:42:26 is there a commonly-used name for a word that does something like: dup >r @ dup 1 + r> ! ; 07:42:58 that is, fetch a variable, leave that value on the stack, and write back to it an incremented value 07:43:28 so that you can use this word repeatedly to fetch sequential values 07:43:28 !+ updates a variable, I don't know of one which also leaves the value on the stack 07:43:56 ok, thanks 07:44:33 I might call it @++ 07:45:28 I seem to remember writing an auto updating variable 07:46:38 --- quit: proteusguy (Ping timeout: 268 seconds) 07:47:04 Something like 07:47:04 : counter: create 0 , does> dup @ tuck 1+ swap ! ; 07:47:12 counter: fred 07:47:29 Then every time you use "fred" it gives you the updated value on the stack 07:47:48 I actually think I started with that, but I ended up needing in some places to fetch the current value without incrementing so I broke it up this way 07:49:38 https://ideone.com/hkRwKW 07:49:52 You can get the value using >body 07:50:44 hmmm, yeah... 07:55:42 counter: is nice until you want to e.g. @++ part of a structure 07:56:03 True 07:58:06 probably some people will recoil at importing C idioms to forth, but i find @++ pretty intuitive 07:58:42 except for the part where @ strongly feels like it should be a read-only operation 07:59:10 s/read-only/nondestructive/ 08:00:45 the first point doesn't bother me. the second point, maybe a little 08:01:21 same 08:07:59 but not thinking of anything better 08:16:20 Maybe @!+ which combines fetch and update 08:18:56 maybe I'll call it dup>r@dup1+r>! 08:19:52 I had briefly considered @+!, but I guess I felt like that looks like what !+ does 08:20:22 I never liked the name of !+ either, by the way. I haven't even implemented it in my forth 08:21:03 Use whatever's clearest to you 08:22:01 Oh, wait, I see a definition of !+ As storing to an address and updating the address, not the value at that address 08:22:10 http://forth.sourceforge.net/mirror/comus/index.html#@+ 08:22:30 ah yeah, that makes sense 08:22:40 I misremembered :/ 08:23:03 I'm pretty sure ans !+ does what you described 08:23:34 It's +! in ANS 08:23:43 oh 08:23:52 I don't like that either 08:23:55 :D 08:24:03 I guess it's marginally better 08:28:02 --- join: MickyW (~MickyW@p4FE8C6A4.dip0.t-ipconnect.de) joined #forth 08:28:41 I think you have to be careful about words which look too similar like that because it can be confusing 08:30:18 well, it's a private word local to a module, and I've refrained from putting !+, +!, @+, etc. in my root vocabulary because they just seem like noise to me 08:30:42 so in a full-blown forth environment with words like those littering the core word set, I'd agree 08:31:31 I'm trying to keep my core vocabulary as fundamental as possible 08:31:34 Yeah, I don't like too many word names which are just collections of punctuation 09:01:34 --- join: Kruemelmonster (~cyberneti@port-92-201-26-101.dynamic.qsc.de) joined #forth 09:02:12 --- quit: dual (Ping timeout: 240 seconds) 09:19:18 --- part: Kruemelmonster left #forth 09:38:42 --- quit: ncv (Remote host closed the connection) 09:43:19 --- join: proteusguy (~proteus-g@2405:9800:b408:bc31:299f:cff6:279f:5c1d) joined #forth 09:43:19 --- mode: ChanServ set +v proteusguy 09:46:36 --- quit: MickyW (Quit: Leaving. Have a nice time.) 11:03:48 --- join: Zarutian (~zarutian@168-110-22-46.fiber.hringdu.is) joined #forth 11:05:55 --- join: dual (~bonafide@199.21.100.130) joined #forth 13:00:36 guys I just had such a great idea 13:00:51 a word called .. which starts parsing a word definition by columns 13:01:12 "parsing a word definition by columns"? 13:01:39 yeah, like it starts parsing top-to-down rather than left-to-right 13:01:53 I need to get john[lisbeth] on this 13:02:03 :/ 13:03:16 http://codepad.org/iXhuwjhP 13:04:25 oh, the semicolon is backwards. oh, well, all of the letters are sideways anyway 13:04:32 better yet, change rot and -rot to rotate reader orientation by 90 degrees 13:04:40 nice 13:05:14 and use 64x64 'screens' 13:05:16 --- join: MickyW (~MickyW@p4FCFEF6F.dip0.t-ipconnect.de) joined #forth 13:07:04 yeah much easier with only block-based input 13:07:59 turtle control flow 13:08:13 I wonder if that's been coined already 13:08:32 --- quit: Keshl (Quit: Konversation terminated!) 13:08:51 I think there are esolangs like that 13:11:44 I guess that shouldn't surprise me 13:15:32 wow. john is still at it on the subreddit 13:31:01 --- quit: GeDaMo (Remote host closed the connection) 13:36:32 --- join: ZarutianPI2 (~pi@168-110-22-46.fiber.hringdu.is) joined #forth 13:36:33 --- quit: ZarutianPI (Read error: Connection reset by peer) 14:36:02 --- quit: MrBusiness (Ping timeout: 246 seconds) 15:01:09 ha 15:10:13 --- join: MrBusiness (~ArcMrBism@2602:306:8325:a300:c801:d7f:77e1:92be) joined #forth 15:16:44 --- quit: true-grue (Read error: Connection reset by peer) 15:25:36 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 15:26:42 --- nick: ZarutianPI2 -> ZarutianPI1 15:26:55 --- nick: ZarutianPI1 -> ZarutianPI0 15:26:58 --- nick: ZarutianPI0 -> ZarutianPI 15:43:04 --- quit: MickyW (Quit: Leaving. Have a nice time.) 16:13:34 --- quit: Zarutian (Quit: Zarutian) 16:25:03 --- join: MickyW (~MickyW@p4FCFEF6F.dip0.t-ipconnect.de) joined #forth 16:32:54 --- quit: roundsf (Remote host closed the connection) 17:03:29 --- quit: dual (Ping timeout: 268 seconds) 17:27:30 --- quit: MickyW (Quit: Leaving. Have a nice time.) 18:13:58 --- join: Zarutian (~zarutian@168-110-22-46.fiber.hringdu.is) joined #forth 18:19:09 --- join: dual (~bonafide@199.21.100.130) joined #forth 18:20:10 --- quit: LeCamarade (Ping timeout: 260 seconds) 18:29:40 --- quit: Chef_Gromboli (Quit: Leaving) 18:31:53 --- join: Chef_Gromboli (~Chef_Grom@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 18:32:17 --- quit: dual (Ping timeout: 268 seconds) 18:59:14 --- quit: Zarutian (Quit: Zarutian) 18:59:17 --- join: Keshl (~Purple@24.115.185.149.res-cmts.gld.ptd.net) joined #forth 19:37:08 --- quit: ZarutianPI (Read error: Connection reset by peer) 19:37:22 --- join: ZarutianPI (~pi@168-110-22-46.fiber.hringdu.is) joined #forth 19:38:11 --- quit: wa5qjh (Remote host closed the connection) 19:45:18 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 19:55:08 --- quit: wa5qjh (Remote host closed the connection) 19:57:53 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 19:58:12 --- quit: wa5qjh (Client Quit) 19:59:10 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 20:31:49 --- quit: wa5qjh (Remote host closed the connection) 20:32:19 --- quit: Chef_Gromboli (Quit: Leaving) 20:32:32 --- quit: Bunny351 (Ping timeout: 255 seconds) 20:34:16 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 20:58:01 --- quit: ZarutianPI (Read error: Connection reset by peer) 20:58:01 --- join: ZarutianPI2 (~pi@168-110-22-46.fiber.hringdu.is) joined #forth 21:10:08 --- join: Bunny351 (~Bunny351@p4FD2DDD5.dip0.t-ipconnect.de) joined #forth 21:28:04 --- quit: wa5qjh (Quit: wa5qjh) 21:28:41 --- join: wa5qjh (~Thunderbi@121.54.90.145) joined #forth 21:39:35 --- join: dual (~bonafide@199.21.100.130) joined #forth 22:00:06 --- quit: dual (Ping timeout: 268 seconds) 23:44:40 --- quit: sigjuice (Quit: ZNC - http://znc.in) 23:57:35 --- join: sigjuice (~sigjuice@107.170.193.86) joined #forth 23:59:59 --- log: ended forth/17.06.23