00:00:00 --- log: started forth/19.05.11 00:06:45 re dave0 00:08:03 hi rdrop-exit 00:08:04 sup? 00:08:57 Revisiting very old software 00:09:14 some of the old stuff is still good 00:10:13 I wanted to run CPM emulation, but settled on DOS 00:10:30 i never had the misfortune of using msdos 00:10:49 i had an amiga 00:11:56 Ah, I had an Apple II at home 00:13:11 CPM at work, later DOS 00:15:34 Also UNIX, even XENIX 00:16:58 My main work PCs in the 80s were Kaypro and Compaq luggables 00:17:31 then Toshibas with the amber screens 00:19:46 i was a kid in the 80's lol 00:19:56 it was all about video games for me :-) 00:22:05 I mever got much into computer games, and never got into video games. I stuck to mostly to boardgames. 00:23:41 I never even owned a video gaming system, even when my kids were growing up. 00:24:59 The only computer games I still have are hybrid computer games with real maps, published by Simulations Canada. 00:26:52 You entered your moves on the computer but used a paper map and either cardboard pieces or grease pencils. 00:27:11 ehehe 00:27:18 i played street fighter :-) 00:27:45 Not familiar with it, but I've heard the name. 00:27:53 the trouble with board games is i'm the eldest with 2 younger sisters... so when we play board games they gang up on me 00:28:08 ouch :) 00:28:13 hehehe 00:28:28 like monopoly they would trade between eachother but not with me 00:28:48 not fair lol 00:29:17 I played mostly board wargames by Avalon Hill, SPI, GDW, etc... 00:30:32 I still have a ton of them, but I haven't played any in over a year. 00:30:42 --- nick: gabc_ -> gabc 00:31:12 are they online? 00:31:17 everythings online these days 00:31:39 No, they're manual games with paper maps and cardpoard pieces. 00:32:12 cool 00:32:36 There's a program called VASSAL that has reproductions of the maps and pieces so you can play the old games online, using skype for voice while you play. 00:33:26 You roll electronic dice instead of real ones to resolve combat. 00:34:27 There are still new wargames being published by the likes of MMP and GMT and a host of smaller publishers. 00:34:53 But the golden age of the hobby was around 1977. 00:35:05 i was born in 1977 lol 00:35:21 Get off my lawn! 00:35:24 ;-) 00:35:45 ah you're old lol 00:35:55 1962 00:35:58 but so am i heh 00:38:59 --- quit: john_metcalf (Ping timeout: 246 seconds) 00:43:09 bbiab 00:44:36 okay cya 01:01:23 --- quit: jedb (Read error: Connection reset by peer) 01:02:15 --- join: jedb (~jedb@103.254.153.113) joined #forth 01:24:50 --- quit: clog (Ping timeout: 246 seconds) 01:24:50 --- log: stopped forth/19.05.11 01:26:30 --- log: started forth/19.05.11 01:26:30 --- join: clog (~nef@bespin.org) joined #forth 01:26:30 --- topic: 'Forth Programming | logged by clog at http://bit.ly/91toWN | If you have two (or more) stacks and speak RPN then you're welcome here! | https://github.com/mark4th' 01:26:30 --- topic: set by proteusguy!~proteus-g@cm-134-196-84-89.revip18.asianet.co.th on [Sun Mar 18 08:48:16 2018] 01:26:30 --- names: list (clog jedb dave0 andrei-n rain1 vxe gabc dddddd pierpal gaze___ gravicappa travisb rdrop-exit Zarutian john_cephalopoda +proteusguy X-Scale Croran Keshl_ chunkypuffs reepca APic lchvdlch cheater the_cuckoo +KipIngram PoppaVic grewal CORDIC jn__ zy]x[yz diginet2 amuck nighty djinni dave42 pointfree ovf catern nonlinear a3f moony ullbeking pareidolia arrdem__ Rickta59 rann mstevens MrMobius phadthai WilhelmVonWeiner presiden Lord_Nightmare yunfan jhei nerfur) 01:26:30 --- names: list (rprimus koisoke lonjil dne bluekelp irsol malyn jackdaniel rpcope- C-Keen dzho +crc Kumool ttmrichter) 01:41:08 --- join: bb010g (bb010gmatr@gateway/shell/matrix.org/x-sirxnoyzlegexzdz) joined #forth 01:48:25 --- quit: andrei-n (Ping timeout: 268 seconds) 02:24:33 --- join: siraben (sirabenmat@gateway/shell/matrix.org/x-yajzqgrkappmisiu) joined #forth 02:24:34 --- join: alexshpilkin (alexshpilk@gateway/shell/matrix.org/x-xyipehtwipqgkmug) joined #forth 02:24:34 --- join: jimt[m] (jimtmatrix@gateway/shell/matrix.org/x-sdjzwanxiajbtmqj) joined #forth 03:39:10 --- join: bjorkintosh (~bjork@2600:1702:6a0:af0:d94:4d37:754d:9410) joined #forth 04:10:01 --- join: andrei-n (~andrei-n@231.182-64-87.adsl-dyn.isp.belgacom.be) joined #forth 04:10:23 --- join: dys (~dys@tmo-122-190.customers.d1-online.com) joined #forth 05:33:44 --- join: travisb_ (~travisb@172-13-49-137.lightspeed.milwwi.sbcglobal.net) joined #forth 05:33:53 --- quit: travisb (Ping timeout: 248 seconds) 05:52:45 cd .. 05:52:45 ls 05:52:51 doh 06:13:45 Command 'doh' not found. 06:38:19 :) 07:37:40 --- quit: dave0 (Quit: dave's not here) 07:43:24 bash: syntax error near unexpected token `)' 07:45:32 bah humbug :) 07:48:05 bash: syntax error near unexpected token `)' 07:48:09 :þ 07:48:19 bash: $':\376': command not found 07:48:28 Ok, enough :D 07:48:38 :D 08:07:10 --- join: nathanael_schwee (nathanaels@gateway/shell/matrix.org/x-zqpbrjdwjnivhxvh) joined #forth 09:43:14 Rickta59: I did a code review http://ix.io/1IJp of https://raw.githubusercontent.com/RickKimball/mecrisp-stellaris/nucelo-f030r8/mecrisp-stellaris-source/stm32f030r8-ra/mhz.fs 09:44:08 thanks i'll take a look pointfree 09:44:12 ...keep in mind I don't know how this code will be used by another application. 09:44:49 i basically did it to learn some forth code 09:48:59 24MHz clock .. so if i want to use the hsi vs the hsebyp vs hse ? 09:49:19 24MHz hsiclock, hsebypassclock? 09:49:36 this is just a subset of the available options 09:49:46 or 24MHz hsi clock 10:01:05 Maybe something like `24MHz hsi clock` ` 24MHz hse byp clock` `24MHz hse clock` ...and maybe before any of those you could set an initial default so that `24MHz clock` would work. 10:03:28 so the fact that hsi must happen only in a specific context doesn't really mean anything in forth? 10:03:32 just the readabilty? 10:07:29 Well if you're only using it in one context you don't need to get any more specific. 10:10:54 You do have an editor, just use that once, instead of computing the same thing many times at runtime. 10:12:00 You can add words to specify, should ambiguity arise later on. 10:14:54 k thanks for the input 10:21:49 With forth being interactively compiled and thus using compilation during normal operation, there isn't generally redundant code elimination when interacting with the system because that would slow down the system. Therefore it helps to keep things concise at edit time as we can't just shift complexity to the compiler. Just my $0.02. 10:23:26 although mecrisp-ra is special in that it does some optimization. 10:27:19 when i was doing the lshift thing i was hoping the mecrisp would do the constant folding 10:28:11 and using it on a cortex-m0 .. it has to go through gyrations to load 32 bit constants anways 10:29:16 Rickta59: Hmm good point. I forgot about mecrisp constant folding. 10:31:38 ...and depending on the forth, `1 4 lshift` could be compiled as mov instead of an ldr. 10:32:43 i'm only using mecrisp-stellaris/mecrips 10:57:11 --- join: john_metcalf (~digital_w@host86-167-209-202.range86-167.btcentralplus.com) joined #forth 11:07:33 --- quit: gravicappa (Ping timeout: 244 seconds) 11:12:02 --- quit: travisb_ (Remote host closed the connection) 12:12:56 --- quit: andrei-n (Remote host closed the connection) 12:38:53 --- join: xek (~xek@apn-37-248-138-83.dynamic.gprs.plus.pl) joined #forth 14:07:42 --- join: Zarutian_2 (~zarutian@173-133-17-89.fiber.hringdu.is) joined #forth 14:07:42 --- quit: Zarutian (Read error: Connection reset by peer) 14:08:52 --- nick: Zarutian_2 -> Zarutian 14:28:22 --- quit: xek (Ping timeout: 246 seconds) 15:29:58 --- quit: pierpal (Read error: Connection reset by peer) 15:30:10 --- join: pierpal (~pierpal@host57-236-dynamic.22-79-r.retail.telecomitalia.it) joined #forth 15:34:02 --- quit: pierpal (Read error: Connection reset by peer) 15:38:34 --- join: pierpal (~pierpal@host57-236-dynamic.22-79-r.retail.telecomitalia.it) joined #forth 15:42:54 --- quit: pierpal (Ping timeout: 245 seconds) 15:46:45 --- join: pierpal (~pierpal@host57-236-dynamic.22-79-r.retail.telecomitalia.it) joined #forth 16:25:37 --- quit: john_cephalopoda (Ping timeout: 248 seconds) 16:39:21 --- join: john_cephalopoda (~john@unaffiliated/john-cephalopoda/x-6407167) joined #forth 16:52:29 A Good Day: you come home from work to read the forums and laugh at the news, while the tail-end of Dr. Strangelove plays out on TCM ;-) 17:15:45 A classic 17:16:20 Good morning Forthers 17:16:22 yeah, it'll never "get old". Although, I doubt the New Generation has ever seen it 17:20:51 My kids watched many classic movies with me, especially my eldest who went to film school. 17:21:15 ah 17:21:45 The cold war is difficult to grok unless you lived through it. 17:22:01 Yeah.. We used to get like 2-channels during the summer out in the woods.. Usedto catch a PILE of ancient Tarzans, Wsterns, Flash Gordon, Buck Rogers. 17:22:33 rdrop-exit: I don't think it's difficult to grok at all - I just think people can't think, let alone empathize anymore 17:23:39 (amusingly, we have been in a cold-war for years with much of the world, just that no one wants to admit it ;-) 17:24:26 As a kid I'd go to Straw Hat pizza just to watch the serials. They used to project old serials. 17:24:32 you mean the world is shunning the USA? Yeah and peeps there wonder why 17:24:47 rdrop-exit: that sounds wunnerful ;-) 17:25:10 Zarutian: shunning? Cool.. I never noticed. Hows that workin' out for y'all? 17:26:55 sorry, shunning the USA goverment. Hard to shun quite a large part of a continent 17:27:19 shun away. Doesn't bother me at all. 17:27:47 Gentlemen, you can't fight in here! This is the War Room. 17:27:52 I am just betting on when that Trumpster pops 17:27:55 rdrop-exit: Just SO. 17:28:03 Uh, I mean the "Forth Room" 17:28:27 such a wonderful movie ;-) 17:28:37 the "Whileth Room" is probably down the hall 17:29:21 ..inventorying the survival supplies up in the cockpit.. ;-> 17:29:46 Slim Pickens was a class act in everything ;-) 17:29:58 So funny 17:30:15 shame that Muonic Low Orbit relativistic fission inductment cannons made nukes pointless in 2030 17:31:02 such a beam passes harmlessly through most matter that doesnt have that absurdly high atomic weight 17:32:51 shortens the halflife of newkoolar waste from thousands of years down to few minutes 17:34:38 aligned Round up to a multiple of the given power-of-2, i.e. 17:34:38 align to the given power-of-2. 17:34:51 : aligned ( u pwr -- u' ) `1- mask or 1+ ;inline 17:41:22 mpn Most positive 2's complement number. 17:41:22 mnn Most negative 2's complement number. 17:41:33 -1 u2/ constant mpn ( -- +n ) \ also |mnn not|, |mnn 1-| 17:41:33 1 ror constant mnn ( -- -n ) \ also |mpn not|, |mpn 1+| 17:43:21 sgn Integer signum function. 17:43:32 : sgn ( n -- -1|0|1 ) dup 0< swap 0> - ;inline 17:45:21 Need my second cup of coffee brb 17:48:19 pwr? Is a power-of-2? 17:48:30 : pwr? ( u -- -1|0 ) reset-low-1 0= ;inline 17:48:30 \ also |hw 1 =| |hw 1- 0=| 17:52:50 #bits Number of significant bits of . 17:53:00 : #bits ( u -- # ) |log2 1+ 1 umax ;inline 17:54:30 #bytes Number of significant bytes of . 17:54:42 : #bytes ( u -- # ) |log2 3 arshift 1+ 1 umax ;inline 17:54:56 #decimals Number of significant decimal digits of . 17:55:07 : #decimals ( u -- # ) |lg 1+ 1 umax ;inline 17:56:33 --- join: dave0 (~dave0@069.d.003.ncl.iprimus.net.au) joined #forth 17:56:47 hi 17:56:59 Hi dave0 :) 17:57:18 hi rdrop-exit :-) 18:07:43 "1+ 1 umax" seems improvable 18:08:33 maybe "0> and 1+"? 18:10:24 "dup 0> and 1+" 18:11:07 meh 18:11:59 rdrop-exit: yep, i think 0> and 1+ would work 18:15:10 Thanks, I shouldn't be tinker with it until I'm coffee'd up 18:20:15 Could name "dup 0> and" as |0 18:21:14 since the floor is 0 18:22:28 --- quit: nathanael_schwee (Ping timeout: 252 seconds) 18:22:52 --- quit: jimt[m] (Ping timeout: 252 seconds) 18:23:06 --- quit: siraben (Ping timeout: 252 seconds) 18:23:08 : |0 ( -n|n -- 0|n ) dup 0> and ;inline 18:23:13 --- quit: alexshpilkin (Ping timeout: 252 seconds) 18:23:28 --- quit: bb010g (Ping timeout: 250 seconds) 18:24:01 --- quit: proteusguy (Ping timeout: 248 seconds) 18:24:08 : #bits ( u -- # ) |log2 |0 1+ ;inline 18:24:22 : #bytes ( u -- # ) |log2 3 arshift |0 1+ ;inline 18:24:35 : #decimals ( u -- # ) |lg |0 1+ ;inline 18:26:01 --- quit: john_metcalf (Ping timeout: 246 seconds) 18:31:10 So that means I can now change #bytes to an unsigned shift: 18:31:14 : #bytes ( u -- # ) |log2 |0 3 rshift 1+ ;inline 18:33:54 Anyway that's enough useless tinkering for one day :) 18:35:40 I probably broke something 18:37:13 i like <# # #s #> for formatting numbers 18:37:28 formatted output is so different for every language:-) 18:38:26 It reminds me of Cobol 18:38:48 never tried it 18:39:30 I learned Cobol, but thankfully never had to use it professionaly 18:40:10 The pictured output was probably the only thing I liked about Cobol 18:40:28 i will google it! 18:41:42 --- join: pareidolia_ (~pareidoli@87.213.124.143) joined #forth 18:41:44 IIRC Cobol called it pictured numeric output or some such 18:44:37 ah ok 18:48:59 --- quit: vxe (*.net *.split) 18:49:03 --- quit: the_cuckoo (*.net *.split) 18:49:03 --- quit: KipIngram (*.net *.split) 18:49:04 --- quit: jn__ (*.net *.split) 18:49:04 --- quit: diginet2 (*.net *.split) 18:49:06 --- quit: pareidolia (*.net *.split) 18:49:09 --- quit: gaze___ (*.net *.split) 18:49:12 --- quit: phadthai (*.net *.split) 18:49:15 --- quit: Lord_Nightmare (*.net *.split) 18:50:42 i found this http://www.pgrocer.net/Cis12/cobol3.html 18:53:19 There you go, I imagine Chuck got his inspiration from there for Forth's number output formatting 18:56:58 it's pretty cool 18:57:16 what you write resembles how it looks 18:57:29 not like that in c, you have to count character positions 19:00:50 Right, IIRC most other business oriented languages adopted a similar "pictured" approach, RPG, dbase, etc... 19:02:02 The original I assume was Cobol 19:03:59 --- join: [1]MrMobius (~default@c-73-134-82-217.hsd1.va.comcast.net) joined #forth 19:05:55 --- quit: MrMobius (Ping timeout: 246 seconds) 19:05:55 --- nick: [1]MrMobius -> MrMobius 19:12:00 --- join: bb010g (bb010gmatr@gateway/shell/matrix.org/x-jbqtmoguutgfxbsk) joined #forth 19:15:53 --- join: kipingram (~kipingram@185.149.90.58) joined #forth 19:16:14 --- nick: kipingram -> KipIngram 19:16:22 --- join: siraben (sirabenmat@gateway/shell/matrix.org/x-ywsnhssdjmrwncih) joined #forth 19:16:29 --- nick: KipIngram -> Guest24711 19:17:03 --- join: nathanael_schwee (nathanaels@gateway/shell/matrix.org/x-puxfsdocxgavakcq) joined #forth 19:17:08 --- nick: Guest24711 -> KipIngram 19:17:20 --- mode: ChanServ set +v KipIngram 19:17:41 hi KipIngram :-) 19:17:47 Hi dave0. 19:17:52 Server's being mean to me. 19:20:03 Hi KipIngram 19:23:24 Hey rdrop-exit. 19:23:26 how goes? 19:24:14 Waking up slowly, Sunday morning 19:25:27 --- join: jimt[m] (jimtmatrix@gateway/shell/matrix.org/x-nzqdtuqoxcjaljib) joined #forth 19:27:20 --- join: alexshpilkin (alexshpilk@gateway/shell/matrix.org/x-ubpdneozwkzhssdb) joined #forth 19:29:03 brb 19:29:15 Saturday night here. 19:45:44 --- join: vxe (~vxe@31.153.239.35.bc.googleusercontent.com) joined #forth 19:45:44 --- join: gaze___ (~gaze__@45.32.221.179) joined #forth 19:45:44 --- join: the_cuckoo (~charlie@d51A50AE9.access.telenet.be) joined #forth 19:45:44 --- join: jn__ (~nope@aftr-109-90-233-200.unity-media.net) joined #forth 19:45:44 --- join: diginet2 (~diginet@107.170.146.29) joined #forth 19:45:44 --- join: phadthai (mmondor@ginseng.pulsar-zone.net) joined #forth 19:45:44 --- join: Lord_Nightmare (Lord_Night@unaffiliated/lordnlptp) joined #forth 20:11:14 1 20:11:15 2 |pwr Floor power-of-2, round to down to closest power of 20:11:15 3 2 <= . 20:11:15 4 20:11:15 5 pwr| Ceiling power-of-2, round up to the closest power of 20:11:17 6 2 >= . 20:11:19 7 20:11:29 0 source Arithmetic - Powers of 2 - Basics 20:11:29 1 20:11:30 2 : |pwr ( u -- u' ) |log2 2** ;inline 20:11:30 3 20:11:31 4 : pwr| ( u -- u' ) log2| 2** ;inline 20:11:34 5 20:11:37 --- part: PoppaVic left #forth 20:14:26 Just filling the silence :) 20:17:10 :) 20:17:47 Hi cheater :) 20:19:18 --- join: gravicappa (~gravicapp@h109-187-242-147.dyn.bashtel.ru) joined #forth 20:19:24 hiya :) 20:24:16 b 20:24:16 c reverse Reverse bytes in cell (i.e. reverse endianess). 20:24:16 d 20:24:26 b 20:24:27 c : reverse ( x -- x' ) 20:24:27 d 8 rolx dup 16 rorx $ ff00ff00ff00ff00 mux ; 20:24:27 e 20:35:21 --- quit: dave0 (Quit: dave's not here) 20:38:02 Catch you all later, keep on Forthin' :) 20:38:13 --- quit: rdrop-exit (Quit: Lost terminal) 21:42:04 --- quit: pierpal (Quit: Poof) 21:42:26 --- join: pierpal (~pierpal@host57-236-dynamic.22-79-r.retail.telecomitalia.it) joined #forth 22:32:46 --- quit: pierpal (Ping timeout: 246 seconds) 22:56:47 --- join: dave0 (~dave0@211.26.155.69) joined #forth 22:58:07 re 23:59:59 --- log: ended forth/19.05.11