Re: Database question

2019-04-16 Thread C K Kashyap
Hi Alex, Does this look reasonable? I tried to implement key-value store/get. I am not sure how to enumerate all the keys though. (pool "test.db") (set *DB "ROOT") (de kv-add (k v) (let nv (new T) (set nv v) (put *DB k nv) (commit)

Re: PicoLisp for 9-11 years' kids

2019-04-16 Thread Christophe Gragnic
On Sun, Apr 14, 2019 at 8:07 PM cilz wrote: > > I guess it's microAlg which you can find here: > http://microalg.info/ > I' dont know if there is an english translation of the website which is > french. Hi, very glad that MicroAlg left some memories here and there! The website, all the keywords,

Re: PicoLisp for 9-11 years' kids

2019-04-16 Thread pd
Hi Christophe, lot of thanks for your work it's awesome On Tue, Apr 16, 2019 at 6:50 PM Christophe Gragnic < christophegrag...@gmail.com> wrote: > > > On Mon, Apr 15, 2019 at 11:20 AM pd wrote: > > > > yes, that it is. A very interesting project specially for education > > Thanks for your inte

Re: PicoLisp for 9-11 years' kids

2019-04-16 Thread rick
Hi Christophe! > The project is now stopped because Python must now be used in high > school in France. Too bad. I'm curious now if there was a predecessor to Python as the mandated computer language. If so, what was it? -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Database question

2019-04-16 Thread Joh-Tob Schäg
Your code has several unclearities/problems. Why do you create and store a new Symbol in the property and then set it's value to the value you want to store? Why don't you just store the value in the property? (Like (put *DB k v) for kv-add) Why do you set the value of the first symbol to "Root" ?

Re: Database question

2019-04-16 Thread C K Kashyap
Thanks Joh-Tob, I think properties work for me. I was thinking that symbol would map to "key" but that need not be the case. My goal is to figure out a way to store records that are 4 tuple - "Entity name", "Attribute", "Value", "TimeStamp/TransactionID" (just like datomic). What do you recommend?

Re: Database question

2019-04-16 Thread Alexander Burger
Hi Kashyap, > I tried to implement key-value store/get. I am > not sure how to enumerate all the keys though. A key/value storage can be done very easily. > (pool "test.db") You store values under keys directly in the DB root object by passing NIL as the tree: (store NIL "KEY" "VALUE") (

Re: Database question

2019-04-16 Thread Alexander Burger
On Tue, Apr 16, 2019 at 03:57:14PM -0700, C K Kashyap wrote: > Thanks Joh-Tob, > I think properties work for me. I was thinking that symbol would map to > "key" but that need not be the case. My goal is to figure out a way to > store records that are 4 tuple - "Entity name", "Attribute", "Value", >

Re: PicoLisp for 9-11 years' kids

2019-04-16 Thread Nehal
Hello Christophe, On 4/16/19, Christophe Gragnic wrote: > >> However I am looking for something only based in PicoLisp. > > Indeed MicroAlg is not what you are looking for. > But let me make some suggestions: > 1) Don't underestimate the (natural) language barrier. > Many of my students were gla