00:00:00 --- log: started forth/18.06.25 00:20:55 --- join: mtsd (~mtsd@77.110.61.100) joined #forth 00:21:57 --- quit: dys (Ping timeout: 240 seconds) 00:23:59 --- quit: mtsd (Quit: Leaving) 00:33:22 --- join: mtsd (~mtsd@77.110.61.100) joined #forth 00:55:05 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:14fa:fcbb:861b:b7e6) joined #forth 00:55:05 --- quit: ncv (Changing host) 00:55:05 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 01:08:52 --- join: dddddd (~dddddd@unaffiliated/dddddd) joined #forth 01:25:35 --- join: ThirtyOne32nds (~rtmanpage@214.sub-174-204-6.myvzw.com) joined #forth 01:33:07 --- quit: ThirtyOne32nds (Ping timeout: 256 seconds) 01:50:20 --- quit: dave9 (Quit: one love) 02:16:36 --- quit: ncv (Remote host closed the connection) 02:16:58 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:14fa:fcbb:861b:b7e6) joined #forth 02:16:59 --- quit: ncv (Changing host) 02:16:59 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 03:39:24 --- join: ThirtyOne32nds (~rtmanpage@246.sub-174-204-11.myvzw.com) joined #forth 03:56:37 --- quit: ThirtyOne32nds (Ping timeout: 260 seconds) 05:13:19 Today I'm going to look at extending the number converter to support floating point. 05:13:42 Since I'm not doing double ints, I haven't done anything with . yet. That will give me float access. 05:13:58 One nifty thing is that I'll be able to do a recursive call to NUMBER to convert the exponent string. 05:14:17 Almost - the first thing NUMBER does is a Forth string to C string conversion - I'll have to have a second entry point to NUMBER that skips over that. 05:15:43 And yes, technically that would allow something weird like formatting the exponent as a float (1.4e-2.1) which doesn't really make sense. But this may be where I allow something incorrect to slip in - the benefit of getting the exponent via a recursive call is just too appealing to pass up. 05:16:39 Actually that number is well-defined; you could certainly calculate 1.4*10^(2.1). 05:16:50 I don't know if I want to go to that trouble though. 05:17:42 Also, it would automatically support writing the mantissa, exponent, or both in other bases. I'll let it do that, though I'll never use that I expect. 05:20:06 --- quit: epony (Quit: QUIT) 05:42:25 --- quit: pierpal (Read error: Connection reset by peer) 05:42:39 --- join: pierpal (~pierpal@host45-58-dynamic.44-79-r.retail.telecomitalia.it) joined #forth 06:01:36 --- quit: karswell_ (Read error: Connection reset by peer) 06:03:03 --- join: karswell_ (~user@cust125-dsl91-135-5.idnet.net) joined #forth 06:03:14 --- join: ThirtyOne32nds (~rtmanpage@246.sub-174-204-11.myvzw.com) joined #forth 06:10:13 Looks like I can also use pieces of number to get a process that enforces base 10 in floats. Probably better. 06:11:31 --- quit: pierpal (Ping timeout: 264 seconds) 06:32:16 --- join: epony (~nym@77-85-141-85.ip.btc-net.bg) joined #forth 06:34:28 --- quit: mtsd (Quit: Leaving) 07:33:12 --- quit: karswell_ (Ping timeout: 240 seconds) 08:10:24 --- quit: reepca (Ping timeout: 255 seconds) 08:16:05 --- join: pierpal (~pierpal@host45-58-dynamic.44-79-r.retail.telecomitalia.it) joined #forth 08:56:08 --- quit: pierpal (Quit: Poof) 08:56:27 --- join: pierpal (~pierpal@host45-58-dynamic.44-79-r.retail.telecomitalia.it) joined #forth 10:02:52 --- quit: ThirtyOne32nds (Ping timeout: 268 seconds) 10:12:02 --- join: Labu (~Labu@labu.pck.nerim.net) joined #forth 10:14:59 Hello 10:17:43 I want create a word that swap deux memory unit and I would like have the same word to swap chars, cell etc... I think take size of the unit but I would like to know if it exists a more elegant way to do that. 10:19:31 What I want is to pass something to say to my function swap two cells or two chars, but I would do that in one operation. Not with iterate on each char 10:22:37 are all possible sizes known? 10:22:56 hi zy]x[yz yes 10:23:05 for example, do you plan only to have it work for sizes of 1, 2, 4, and 8, or do you expect to receive arbitrary sizes like 1200? 10:23:50 then if it were me I'd probably just write specific words for each size, and if you really need to take the size as an argument then use an array of execution tokens 10:23:51 yes the words could swap 1, 2, 4 or 8 memory units 10:23:56 *word 10:24:43 yes I thought about execution tokens 10:25:04 create swappers ' swap1 , ' swap 2 , ' swap 4 , ' swap 8 , : swapn cells swappers + @ execute ; 10:25:07 something like that 10:25:27 er, well in that case the size argument would be 0, 1, 2, or 3 10:25:46 but if you want to get 1, 2, 4, or 8 you can manipulate it to work 10:27:42 yes it's 2^size_arg 10:27:57 I look this thx zy]x[yz ! 10:28:22 also ignore the space between "swap 2" and so on. that was an accident 10:29:20 ok 10:29:40 so I must write explicitly swap1, swap2 etc... ? 10:29:58 right. those would be the words you write to swap 1 byte, or swap 2 bytes, etc. 10:30:08 ok 10:30:19 thx ! 10:31:32 --- join: dys (~dys@tmo-098-143.customers.d1-online.com) joined #forth 11:06:50 --- quit: Keshl (Quit: Konversation terminated!) 11:14:51 --- join: Keshl (~Purple@24.115.185.149.res-cmts.gld.ptd.net) joined #forth 12:10:17 --- join: ThirtyOne32nds (~rtmanpage@246.sub-174-204-11.myvzw.com) joined #forth 12:15:38 --- quit: ncv (Remote host closed the connection) 12:16:00 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:c1c7:50c:8461:8572) joined #forth 12:16:00 --- quit: ncv (Changing host) 12:16:00 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 13:03:42 --- quit: pierpal (Quit: Poof) 13:03:59 --- join: pierpal (~pierpal@host45-58-dynamic.44-79-r.retail.telecomitalia.it) joined #forth 13:18:39 --- quit: ThirtyOne32nds (Ping timeout: 255 seconds) 13:20:07 --- join: pierpa (4f2c3a2d@gateway/web/freenode/ip.79.44.58.45) joined #forth 15:02:34 --- quit: ncv (Ping timeout: 256 seconds) 15:14:22 --- quit: dys (Ping timeout: 245 seconds) 15:25:29 --- join: ThirtyOne32nds (~rtmanpage@246.sub-174-204-11.myvzw.com) joined #forth 16:18:23 --- quit: pierpal (Ping timeout: 276 seconds) 16:20:27 --- quit: ThirtyOne32nds (Ping timeout: 255 seconds) 16:31:52 --- join: lonjil (~quassel@2a02:418:6050:ed15:ed15:ed15:d8d4:564a) joined #forth 17:02:28 Hey, what's the word for "left shift n bits" in GForth? 17:02:36 I would have thought it was << but it doesn't like that. 17:03:27 Looks like it's lshift. 17:07:57 --- join: dave9 (~dave@207.213.dsl.syd.iprimus.net.au) joined #forth 17:08:10 re 17:36:43 --- quit: dddddd (Remote host closed the connection) 18:23:45 --- join: pierpal (~pierpal@host45-58-dynamic.44-79-r.retail.telecomitalia.it) joined #forth 18:27:42 --- quit: pierpal (Ping timeout: 240 seconds) 18:28:17 --- join: ThirtyOne32nds (~rtmanpage@246.sub-174-204-11.myvzw.com) joined #forth 19:00:55 --- join: pierpal (~pierpal@host45-58-dynamic.44-79-r.retail.telecomitalia.it) joined #forth 19:02:32 --- quit: dave9 (Quit: one love) 19:53:11 --- quit: pierpa (Quit: Page closed) 20:10:07 --- quit: ThirtyOne32nds (Ping timeout: 256 seconds) 20:23:44 --- quit: Keshl (Read error: Connection reset by peer) 20:23:49 --- join: Keshl_ (~Purple@24.115.185.149.res-cmts.gld.ptd.net) joined #forth 21:00:04 --- join: dave9 (~dave@207.213.dsl.syd.iprimus.net.au) joined #forth 21:24:29 --- quit: pierpal (Quit: Poof) 21:24:49 --- join: pierpal (~pierpal@host45-58-dynamic.44-79-r.retail.telecomitalia.it) joined #forth 21:28:49 --- quit: pierpal (Ping timeout: 240 seconds) 22:07:55 --- join: ThirtyOne32nds (~rtmanpage@130.sub-174-204-5.myvzw.com) joined #forth 22:27:52 --- quit: ThirtyOne32nds (Ping timeout: 265 seconds) 22:36:16 --- join: MrMobius (~default@c-73-134-82-217.hsd1.va.comcast.net) joined #forth 22:54:20 --- quit: Labu (Quit: WeeChat 2.0.1) 22:56:38 --- quit: MrMobius (Ping timeout: 248 seconds) 23:01:51 --- quit: groovy2shoes (Ping timeout: 260 seconds) 23:33:31 --- join: mtsd (~mtsd@77.110.61.100) joined #forth 23:49:15 --- join: groovy2shoes (~groovy2sh@unaffiliated/groovebot) joined #forth 23:59:59 --- log: ended forth/18.06.25