00:00:00 --- log: started forth/20.05.05 00:10:09 --- quit: jsoft (*.net *.split) 00:10:09 --- quit: koisoke (*.net *.split) 00:10:09 --- quit: klys (*.net *.split) 00:10:09 --- quit: dave9 (*.net *.split) 00:10:09 --- quit: DKordic (*.net *.split) 00:10:09 --- quit: cp- (*.net *.split) 00:16:21 --- join: jsoft joined #forth 00:16:21 --- join: koisoke joined #forth 00:16:21 --- join: klys joined #forth 00:16:21 --- join: dave9 joined #forth 00:16:21 --- join: DKordic joined #forth 00:16:21 --- join: cp- joined #forth 00:17:12 --- quit: cp- (Max SendQ exceeded) 00:18:45 --- quit: diginet2 (Ping timeout: 246 seconds) 00:19:02 --- join: diginet2 joined #forth 00:19:51 --- join: cp- joined #forth 00:28:33 --- quit: mtsd (Quit: Leaving) 00:32:59 --- join: mtsd joined #forth 00:34:07 --- join: dys joined #forth 00:41:49 : D>$ ( d -- addr len) TUCK DABS <# #S ROT SIGN #> ; 00:41:50 : N>$ ( n -- addr len ) S>D D>$ ; 00:41:50 25 N>$ TYPE \ correctly outputs 25 00:41:50 CR 00:41:50 25 N>$ 1 . TYPE \ gives wrong output: 21 instead of 25 00:42:43 what's a good way (that doesn't require variables) to save the resulting string from N>$ , do some other actions, then TYPE that string ? 00:50:59 N>$ probably stores in a common buffer, so the "1 ." partially overwrites that ("." is probably akin to "N>$ type" itself). if you want to save the string, you have to decide where to put it 00:58:46 okay 01:16:06 --- quit: reepca` (Remote host closed the connection) 01:16:17 --- join: reepca` joined #forth 01:25:17 --- join: karswell_ joined #forth 01:27:01 --- join: mtsd_ joined #forth 01:30:00 --- quit: mtsd (Ping timeout: 264 seconds) 01:31:40 --- join: mtsd joined #forth 01:34:21 --- quit: mtsd_ (Ping timeout: 246 seconds) 01:36:30 --- quit: WickedShell (Remote host closed the connection) 02:00:31 --- join: dddddd joined #forth 02:03:04 --- join: xek joined #forth 02:03:46 --- quit: cantstanya (Ping timeout: 240 seconds) 02:11:42 --- join: cantstanya joined #forth 03:29:29 --- quit: nonlinear (Read error: Connection reset by peer) 03:29:30 --- quit: gravicappa (Ping timeout: 246 seconds) 03:29:40 --- join: nonlinear joined #forth 03:30:12 --- join: gravicappa joined #forth 03:30:54 --- quit: karswell_ (Ping timeout: 246 seconds) 03:32:24 --- join: karswell_ joined #forth 03:40:20 --- nick: karswell_ -> karswell 04:08:42 --- join: TCZ joined #forth 04:10:58 --- quit: TCZ (Client Quit) 04:12:15 how to check if a vocabulary already exists ? 04:24:57 --- join: rdrop-exit joined #forth 04:51:59 https://xkcd.com/1856/ 04:52:58 haha 04:55:33 tp: https://xkcd.com/378/ 05:00:04 DKordic, yeah, I remember that one 05:00:26 the xkcd dude is seriously twisted! 05:00:36 XD 05:02:26 --- quit: rdrop-exit (Quit: Lost terminal) 05:02:56 I'm finishing my third article on the use of bitfield definitions atm 05:03:20 this one is a beauty and will drive my point home to all ages I think 05:04:53 I selected (someone elses) code at random to analyse and quite coincidentally, while using it, I discovered it contained exactly the kind of ambiguity my system is designed to avoid. 05:05:10 who can ask for more ? 05:09:18 As a young technician I would read the only magazine available for electronics in this country, "Electronics Australia" and I would go straight to the 'Servicemans' regular column, which usually involved a fascinating tale of him chasing some obscure electronics fault that one literally couldn't invent. 05:10:09 my aim is to make my Forth articles similarity interesting to readers, a lofty aim .... 05:25:09 Well you know I'll read them ;-) 05:25:23 :) 05:25:37 only if theyre interesting 05:25:48 boring crap deserves to be ignored 05:25:53 I won't know if they're interesting until I read them 05:26:30 thats why I start every article with "Blond bombshell has NIPSLIP!!!!" 05:27:23 Is this going to be an ezine, or something more like a blog? 05:27:34 boru! 05:27:41 Afternoon, old chap. 05:27:47 At this rate it's going to be The Sun 05:27:59 boru, it's just my old fprth notes collection that I put online years ago 05:28:04 valhahah 05:28:19 Hmm, I see. 05:28:59 boru, every year or so I look back at it and think 'that was a pile of old tripe!" 05:29:29 I know the feeling. 05:30:18 boru, currently Im comparing the Keil C structures built with #defines for every possible bitfield combination (and them some) to my own bitfield definitions 05:30:40 Do people still use Keil? My goodness... 05:31:06 yeah, I guess ... it's owned by Arm Holdings thesedays 05:31:57 in fact Arm and it's vendors have a unsettling habit of buying independent software vendors and turning their products into s**t 05:32:55 Well, they have to make it align with their own internal software. 05:33:14 * boru coughs. 05:33:44 boru, a lot of C noobs who wish to avoid the horrors of HAL with STM32 soon are referred to the Keil CMSIS pack so they can partake of some excellent baremetal code vastly simplified in comparison 05:34:50 to me the advice sounds a lot like, why get the Black Death, diarrhoea is so much more pleasant ? 05:35:37 I would choose diarrhoea over the black death 05:35:45 veltas, me too 05:36:15 but Id rather choose a nice bowl of pumpkin soup with fresh bread instead 05:36:36 which is what forth bitfields offer imho 05:36:52 I would, of course, go for the scandinavian eel plate 05:36:54 ;) 05:36:58 It's a shame that sort of thing is a solved problem; semi mfrs should just publish some document which is some parseable format from their RTL which enumerates all registers and their fields. 05:36:59 mtsd, :) 05:37:33 Directly from their RTL, I mean. 05:38:04 boru, that's what CMSIS does for ARM, and I find it very useful as Im always transforming it into something useful 05:38:08 And before you say it, I still consider DAP to be awful. 05:38:15 Well, CMSIS is moreso the API, no? 05:38:30 Like a really crap version of POSIX. 05:38:54 Ive never used DAP, and Im not about to argue with you, I dont need to thrashed withing a inch of my life by a stout irish strap 05:39:04 Though using structs for arguments has some merits for future-proofing. 05:39:13 * boru chuckles. 05:39:29 Anyway, that entire ecosystem is terrible. 05:39:35 CMSIS-SVD is the full name, it's just a XML file of all the usual register suspects 05:39:46 Ah, SVD might be what I am thinking about. 05:39:49 mempry maps, bitfields etc 05:39:52 Aye. 05:40:06 nothing special there except theye are all there! 05:40:36 and from that stage one can produce whatever 05:40:44 here is a single sample 05:41:05 \ RTC_ALRMAR (read-write) Reset:0x00000000 05:41:06 : RTC_ALRMAR_MSK4 ( -- x addr ) 31 bit RTC_ALRMAR ; \ RTC_ALRMAR_MSK4, Alarm A date mask 05:41:38 it's transformed to use the Forth I like, Mecrisp-Stellaris 05:42:22 and depending on the MCU, it may generate 17,000+ such definitions 05:42:42 such are the size and complexity of STM32 MCU's thesedays 05:42:55 --- join: TCZ joined #forth 05:43:01 that particular one has *97* peripherals!!! 05:43:24 I mean, OH MY GOSH!!! 97 peripherals, are you SERIOUS ???? 05:44:00 I'm from a time when CPU's came with exactly zero peripherals ... 05:45:50 I'd consider memory buses and I/O pins to be peripherals. 05:46:05 But I am just being a pedantic shite. 05:48:45 we were so por we didnt have I/O pins! 05:48:48 poor 05:49:06 our pins were repossessed! 05:49:57 anyhow, it's past this old geriatrics bedtime so I will say goodevening all! 05:50:08 Catch you later man. 05:55:59 --- quit: TCZ (Quit: Leaving) 06:05:11 --- quit: mtsd (Quit: Leaving) 06:05:11 --- quit: karswell (Read error: Connection reset by peer) 06:17:17 --- quit: jsoft (Ping timeout: 256 seconds) 06:18:21 --- quit: iyzsong (Ping timeout: 244 seconds) 06:40:36 --- quit: Zarutian_HTC (Ping timeout: 246 seconds) 07:20:18 --- join: TCZ joined #forth 07:39:20 --- join: Zarutian_HTC joined #forth 07:39:20 --- join: jsoft joined #forth 07:42:05 --- quit: Zarutian_HTC (Read error: Connection reset by peer) 07:42:08 --- join: Zarutian_HTC| joined #forth 07:43:54 --- quit: X-Scale (Quit: Try HydraIRC -> http://www.hydrairc.com <-) 07:48:30 --- quit: Zarutian_HTC| (Ping timeout: 246 seconds) 07:54:03 --- quit: TCZ (Quit: Leaving) 07:56:37 --- join: Zarutian_HTC joined #forth 09:02:41 --- quit: xek (Ping timeout: 256 seconds) 09:31:02 --- join: WickedShell joined #forth 09:42:56 --- join: X-Scale joined #forth 09:46:44 --- join: TCZ joined #forth 10:07:48 --- quit: jsoft (Ping timeout: 264 seconds) 10:13:18 --- quit: TCZ (Quit: Leaving) 10:49:33 --- quit: gravicappa (Ping timeout: 258 seconds) 10:51:28 --- join: gravicappa joined #forth 10:56:51 --- join: xek joined #forth 11:09:41 --- quit: gravicappa (Ping timeout: 256 seconds) 11:27:48 --- quit: Zarutian_HTC (Remote host closed the connection) 11:37:36 --- quit: merkc0 (Ping timeout: 240 seconds) 11:49:40 --- join: Zarutian_HTC joined #forth 12:13:51 --- join: gravicappa joined #forth 13:07:20 --- quit: remexre (Quit: WeeChat 2.7.1) 13:38:34 --- quit: reepca` (Read error: Connection reset by peer) 13:38:53 --- join: reepca` joined #forth 14:01:57 --- quit: xek (Ping timeout: 256 seconds) 14:19:48 --- quit: gravicappa (Ping timeout: 264 seconds) 14:20:45 --- join: remexre joined #forth 14:34:35 --- join: dave0 joined #forth 18:14:25 --- join: boru` joined #forth 18:14:28 --- quit: boru (Disconnected by services) 18:14:30 --- nick: boru` -> boru 18:49:18 --- join: rdrop-exit joined #forth 18:54:52 --- join: jsoft joined #forth 19:32:15 --- quit: proteus-guy (Ping timeout: 256 seconds) 20:20:15 --- join: merkc0 joined #forth 20:21:36 --- quit: rdrop-exit (Quit: Lost terminal) 20:40:10 --- quit: dave0 (Quit: dave's not here) 20:52:37 --- quit: dddddd (Remote host closed the connection) 21:01:25 --- join: proteus-guy joined #forth 21:09:25 --- quit: _whitelogger (Remote host closed the connection) 21:12:28 --- join: _whitelogger joined #forth 21:58:15 --- quit: cp- (Quit: Disappeared in a puff of smoke) 21:59:01 --- quit: Keshl (Read error: Connection reset by peer) 21:59:24 --- join: Keshl joined #forth 21:59:34 --- join: [1]MrMobius joined #forth 21:59:48 --- quit: MrMobius (Ping timeout: 256 seconds) 21:59:51 --- nick: [1]MrMobius -> MrMobius 22:09:51 --- quit: proteus-guy (Ping timeout: 256 seconds) 22:21:14 --- quit: WickedShell (Remote host closed the connection) 22:22:44 --- join: proteus-guy joined #forth 22:59:05 --- join: gravicappa joined #forth 23:15:21 06 May 2020: Bitfields, Declare Early? This is an article about EMBEDDED development and maintenance coding style.: https://mecrisp-stellaris-folkdoc.sourceforge.io/bitfields-declare-early.html 23:27:56 --- join: mtsd joined #forth 23:37:21 --- quit: gravicappa (Ping timeout: 246 seconds) 23:37:22 --- quit: reepca` (Read error: Connection reset by peer) 23:38:01 --- join: reepca` joined #forth 23:39:44 --- join: gravicappa joined #forth 23:59:59 --- log: ended forth/20.05.05