Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #34771
| From | Paul E Bennett <Paul_E.Bennett@topmail.co.uk> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: A poor mans memoizer. |
| Date | 2014-12-04 10:19 +0000 |
| Organization | Hidecs Consultancy |
| Message-ID | <ceaqooFaohkU1@mid.individual.net> (permalink) |
| References | <547db280$0$6898$e4fe514c@dreader36.news.xs4all.nl> <LfCdnVD5DKD3l-PJnZ2dnUU7-c2dnZ2d@supernews.com> <547f0d79$0$15861$e4fe514c@dreader35.news.xs4all.nl> |
Albert van der Horst wrote: [%X] >>*sigh* No stack comments anywhere. Very hard to read, even though the >>definitions are short and look well-factored, because it's unclear what >>the inputs and outputs are. > > The BAG is in library format, i.e. it is intended > to be loaded. It is not part of the memoization I > present and not intended to be documented or discussed. > > But .. > > There are stack comments, but not in a format > familiar to you. My stack comments reveal more about the > actual working of the words than the silly (my opinion!) > ( n n -- ud ) diagrams. > > What is unclear about > > ( For VALUE and BAG : ADDRESS of value in bag/nill.) > > If I compress that to ( n addr -- addr ) are you happy? > > Let's see: > I use > BAG ( Create a bag "x" with X items. ) > !BAG ( Make the BAG empty ) > BAG-WHERE ( For VALUE and BAG : ADDRESS of value in bag/nill.) > BAG+! ( Push ITEM to the BAG ) > > I'm pretty sure a competent Forther can recreate the > BAG-package inasfar needed for memoize from this spec in any > Forth in no time. > > That is my goal, which only comes into play if just > clipping the BAG screens and load it fails. In following my coding style standard, I have two types of commenting for each word. The first is the normal stack comment in the standardised style used within the standards document. The second is a glossary text entry, again in the style of the standards document. I include both types in each definitions source code. Such documentation style works with products like DocGen to assist in extracting just the names and comments for use in other documentation. -- ******************************************************************** Paul E. Bennett IEng MIET.....<email://Paul_E.Bennett@topmail.co.uk> Forth based HIDECS Consultancy.............<http://www.hidecs.co.uk> Mob: +44 (0)7811-639972 Tel: +44 (0)1235-510979 Going Forth Safely ..... EBA. www.electric-boat-association.org.uk.. ********************************************************************
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A poor mans memoizer. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-02 12:37 +0000
Re: A poor mans memoizer. the_gavino_himself <visphatesjava@gmail.com> - 2014-12-02 05:37 -0800
Re: A poor mans memoizer. "Elizabeth D. Rather" <erather@forth.com> - 2014-12-02 08:52 -1000
Re: A poor mans memoizer. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-03 13:17 +0000
Re: A poor mans memoizer. "Elizabeth D. Rather" <erather@forth.com> - 2014-12-03 09:07 -1000
Re: A poor mans memoizer. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-04 09:08 +0000
Re: A poor mans memoizer. Paul Rubin <no.email@nospam.invalid> - 2014-12-04 12:42 -0800
Re: A poor mans memoizer. stephen@mpeforth.com (Stephen Pelc) - 2014-12-05 12:18 +0000
Re: A poor mans memoizer. Mark Wills <markwills1970@gmail.com> - 2014-12-04 03:47 -0800
Re: A poor mans memoizer. "Elizabeth D. Rather" <erather@forth.com> - 2014-12-04 08:43 -1000
Re: A poor mans memoizer. mhx@iae.nl - 2014-12-03 14:47 -0800
Re: A poor mans memoizer. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-04 09:31 +0000
Re: A poor mans memoizer. "Elizabeth D. Rather" <erather@forth.com> - 2014-12-04 08:58 -1000
Re: A poor mans memoizer. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-05 12:11 +0000
van der Horsts Stallman convention (was: A poor mans memoizer.) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-12-05 12:23 +0000
Re: van der Horsts Stallman convention "Elizabeth D. Rather" <erather@forth.com> - 2014-12-05 09:01 -1000
Re: van der Horsts Stallman convention (was: A poor mans memoizer.) albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-06 10:06 +0000
Re: A poor mans memoizer. Paul E Bennett <Paul_E.Bennett@topmail.co.uk> - 2014-12-04 10:19 +0000
Should Forth Be Recommended Here? Celeros <kern000@gmail.com> - 2014-12-05 11:42 +0200
Re: Should Forth Be Recommended Here? Paul E Bennett <Paul_E.Bennett@topmail.co.uk> - 2014-12-05 14:54 +0000
Re: A poor mans memoizer. Rob Sciuk <rob@controlq.com> - 2014-12-05 14:08 -0500
csiph-web