00:00:00 --- log: started forth/19.10.14 00:15:19 --- join: dys joined #forth 00:22:40 --- join: dddddd joined #forth 00:31:57 --- join: mtsd joined #forth 01:05:05 --- join: matt74 joined #forth 01:05:46 --- quit: matt74 (Remote host closed the connection) 01:09:19 --- quit: ryke (Ping timeout: 240 seconds) 01:17:00 --- join: WilhelmVonWeiner joined #forth 01:39:54 --- quit: cheater (Ping timeout: 265 seconds) 01:48:10 --- join: xek_ joined #forth 02:21:37 --- quit: mtsd (Ping timeout: 240 seconds) 03:01:33 --- join: mtsd joined #forth 03:32:35 --- join: iyzsong joined #forth 04:16:51 --- quit: fiddlerwoaroof (Read error: Connection reset by peer) 04:20:40 --- join: fiddlerwoaroof joined #forth 05:01:52 --- quit: mtsd (Remote host closed the connection) 05:55:32 --- join: creat1001 joined #forth 06:21:36 --- quit: jedb (Remote host closed the connection) 06:21:51 --- join: jedb joined #forth 06:24:41 --- quit: creat1001 (Remote host closed the connection) 06:33:52 --- quit: lonjil (Quit: No Ping reply in 180 seconds.) 06:35:21 --- join: lonjil joined #forth 06:38:47 --- quit: lonjil (Client Quit) 06:39:58 --- join: lonjil joined #forth 07:14:43 --- quit: iyzsong (Quit: ZNC 1.7.1 - https://znc.in) 07:28:15 --- quit: tabemann (Ping timeout: 250 seconds) 07:33:18 --- quit: lonjil (Quit: No Ping reply in 180 seconds.) 07:34:35 --- join: lonjil joined #forth 08:03:36 --- quit: jedb (Remote host closed the connection) 08:03:43 --- join: jedb_ joined #forth 08:26:49 --- quit: xek_ (Ping timeout: 240 seconds) 09:42:56 --- join: xek_ joined #forth 09:43:19 --- quit: xek_ (Remote host closed the connection) 09:44:50 --- join: xek joined #forth 09:49:39 --- quit: xek (Ping timeout: 240 seconds) 10:41:57 --- quit: dys (Ping timeout: 250 seconds) 11:01:42 --- join: WickedShell joined #forth 11:23:28 --- join: cheater joined #forth 11:40:28 --- join: ryke joined #forth 12:52:59 --- quit: gravicappa (Ping timeout: 240 seconds) 14:56:59 --- quit: ryke (Ping timeout: 240 seconds) 15:08:01 --- quit: DKordic (Ping timeout: 246 seconds) 15:42:57 --- join: jedb__ joined #forth 15:45:13 --- quit: jedb_ (Ping timeout: 240 seconds) 16:08:07 --- join: ryke joined #forth 16:33:22 --- join: jedb_ joined #forth 16:35:37 --- quit: jedb__ (Ping timeout: 240 seconds) 16:52:01 --- quit: cheater (Ping timeout: 250 seconds) 16:59:19 --- join: cheater joined #forth 17:39:47 --- join: tabemann joined #forth 17:41:03 --- join: rdrop-exit joined #forth 17:42:21 hey 17:43:06 c[] Hi tabemann! 17:43:50 * tabemann has been working on fixed point math 17:44:00 cool 17:44:24 I've got the basics in place for both 16.16 and 32.32 math, except I have no way of printing numbers 17:45:06 so I'm gonna have to implement that 17:45:21 I did implement 16.16 and 32.32 literals 17:46:16 and one thing I discovered the hard way - decimal 0.1 has no non-repeating binary representation 17:47:51 You mean you're hardcoding support for two particular fixed point formats? 17:48:23 I never bothered with that 17:48:58 my main reason is that 16.16 has two different implementations depending on cell size 17:49:22 whereas 32.32 has only one implementation, since it's only available on 64-bit anyways 17:50:09 I could make a generalized fixed implementation 17:50:40 Forth already has that */mod and u*/mod 17:51:24 well this is a collection of routines, such as floor, ceiling, a literal parser, and so on 17:52:41 I plan on adding math routines like sin, cos, tan, abs, exp, etc. in the future too (I had already implemented those for floating point on attoforth, so I might port those) 17:55:52 But all those routines will be useful only if you happen to need one of those two specific fixed points? 17:57:47 what I probably will do is put in hooks to allow the user to choose a fixed point implementation for those routines 17:58:06 because there's no point in duplicating them for 16.16, 32.32, or whatever 17:58:21 the only problem is when said routines rely on constants 17:58:26 e.g. PI 17:58:59 the problem with PI is that it's much more efficient, and much more accurate in many cases, to use a predefined constant rather than to calculate it by oneself 17:59:45 but that constant will be dependent upon the representation used 18:00:25 probably the best approach would be to use the highest right-of-the-decimal-point precision number possible with a given cell size 18:00:50 and then convert that representation to the exact representation desired 18:01:31 like on a 64-bit system PI would have a base representation of 3.61 (if one is treating it as unsigned) 18:01:51 and if one is actually doing math with 32.32 numbers one would divide it down to that representation 18:06:11 --- join: dave0 joined #forth 18:07:22 I provided you with a 64 bit rational approximation of Pi a few days back 18:08:11 yeah, I remember that 18:08:27 I mean a binary, fixed point approximation 18:10:43 I think you're two focused on one particular fixed point format 18:11:04 nah 18:11:08 ok 18:11:14 I just wrote some code for convenience's sake 18:11:33 I could write some code that generalizes it 18:12:23 what I really wanted was literal parsing code 18:12:29 ? 18:13:04 so I could just in my code write things like "10,0" (without quotes) for 655350 18:16:29 okay, I've gotta get going 18:16:33 I'll be back later 18:16:40 ok c u 18:21:17 --- quit: tabemann (Ping timeout: 250 seconds) 19:29:59 tp: so any jonesforth's riscv version? 19:35:04 --- join: tabemann joined #forth 19:53:44 yunfan, I wouldnt know, I'm only into Mecrisp-Stellaris on Cortex-M 19:55:21 tp: since you were playing with cortex-m, how many ins were there for cortex-m ? 20:16:59 --- quit: dave0 (Quit: dave's not here) 20:27:22 --- join: notzmv joined #forth 21:00:18 --- join: gravicappa joined #forth 21:02:12 --- join: learning joined #forth 21:19:46 --- quit: learning (Remote host closed the connection) 21:55:39 --- quit: gravicappa (Ping timeout: 240 seconds) 22:01:17 --- quit: ryke (Ping timeout: 265 seconds) 22:44:22 yunfan, "ins" ? 23:15:22 instruct 23:15:27 in its ISA 23:25:22 yunfan, 56 instructions for Cortex-M0 23:33:38 tp: how about m7? 23:34:53 --- join: dave0 joined #forth 23:38:37 yunfan, I don't know, I only use the M0 23:59:59 --- log: ended forth/19.10.14