Re: database setup in language learning

2014-07-22 Thread Alexander Burger
Hi Steven, > I have decided that man's best friend is 1) a dog, 2) hexdump. ;) Indeed! Though in this case, when exploring the structure of a PicoLisp database, I would recommend 'show' and 'edit'. Perhaps you already found "http://picolisp.com/wiki/?usingedit";? It explains this specifically in

Re: database setup in language learning

2014-07-22 Thread steven
Hi Alex, I have decided that man's best friend is 1) a dog, 2) hexdump. ;) What I did was try out the various prefix classes you mentioned with the +List, +Ref, +String etc. in different combinations, and just went and looked at them. More on that below. > Exactly. But this may not be a good ide

Re: database setup in language learning

2014-07-22 Thread Alexander Burger
Hi Steven, > > Hello marmorine, > Ummm... Steven. ;) Oops! Sorry :) > Tried all sorts of size combinations, found one that is more compact, to > use (0 +Wrds) instead of the block size 1 for it. But then I guess you > should take a look with "size" to make sure you are not cutting things > to c

Re: database setup in language learning

2014-07-21 Thread steven
On Thu, 17 Jul 2014 09:13:38 +0200 Alexander Burger wrote: > Hello marmorine, > Ummm... Steven. ;) > > A few minor notes: > No quoting for local transient symbols, the the (use (G N) has also been corrected. These are small things, but very useful for me. > > You may be able to tune that

Re: database setup in language learning

2014-07-17 Thread Alexander Burger
On Thu, Jul 17, 2014 at 09:13:38AM +0200, Alexander Burger wrote: > And then later try (as in your case) > >(while (id (db: +Wrds) (rand 1 *Max))) > > because there may be holes in the file due to deleted objects. Sorry, there are two errors: You must also call 'ext?' to check if you found a

Re: database setup in language learning

2014-07-17 Thread Alexander Burger
Hello marmorine, > (note: a bit long being a first post) No problem :) > post a first attempt to check form and convention and company, so here > the latest variant (working): > ... Fine. That looks good. A few minor notes: 1. As "___ " is a local transient symbol, the single quote is not r

Re: database setup in language learning

2014-07-16 Thread Henrik Sarvell
Hi, I just skimmed your post quickly, this project/code might be of use for you: https://bitbucket.org/hsarvell/indexer See also the dbs function http://software-lab.de/doc/refD.html#dbs (with more examples of usage in the example project shipping with PicoLisp) for how to possibly make the size s