Re: Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Maybe it has something to do with apt-get upgrade as well?
Glad to hear the issue disappeared!

2018-04-18 14:16 GMT+02:00 Joe Bogner :

> Arie, I followed your WSL steps on a newer machine and I don't see the db
> locking issue any more. Thanks! My other machine has the problem but its
> WSL is at least 6 months old - so maybe it was fixed in WSL since then or
> possibly something fixed/changed by following your instructions. Thanks,
> I'll do some additional testing later
>
> On Wed, Apr 18, 2018 at 6:23 AM, Arie van Wingerden  > wrote:
>
>> Hi Alex,
>>
>> 1) root mode was because I tried a lot of different things, but missed
>> the obvious family64.tgz 
>> 2) had a few problems with cd-ing into folders, because under Windows it
>> is a bit different
>>
>> So, after unpacking family64.tgz into a local folder in my home dir
>> everything works great!
>>
>> Now starting to really learn the PicoLisp language better.
>>
>> @Joe could you show me an example where db locking didn't work?
>>  Maybe I can test this and see if it does work correctly in the way I
>> now set up PicoLisp in WSL?
>>
>> Thx. again!
>> /Arie
>>
>> 2018-04-18 11:50 GMT+02:00 Alexander Burger :
>>
>>> Hi Arie,
>>>
>>> > *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main
>>> -go +*
>>> > ...
>>> > *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
>>> > directory   ?*
>>>
>>> This is probably because the "family/" directory does not exist yet. Or
>>> did you
>>> unpack the file "family64.tgz"?
>>>
>>> In general, I would recommend not to run all this as user root. Better
>>> log in as
>>> a normal user, and do in any of your local directories:
>>>
>>>$ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
>>>family.l
>>>family/
>>>family/@
>>>family/B
>>>family/C
>>>family/A
>>>$ pil /usr/share/doc/picolisp/doc/family.l -main -go +
>>>
>>> ♪♫ Alex
>>>
>>> --
>>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>>
>>
>>
>


Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie,

> @Joe could you show me an example where db locking didn't work?
>  Maybe I can test this and see if it does work correctly in the way I
> now set up PicoLisp in WSL?

You don't even need a DB to test the locking, the 'ctl' function will do.

To test it, open two terminals and start pil in both of them. Then in the first
one:

   : (ctl "a" (key))

This creates a file "a", locks it, and waits for you to type a key.

Then in the second terminal:

   : (ctl "a")

This should block, because the first one has still a lock on the file.

Now, if you type any key in the first terminal, both 'ctl' calls should return.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Question about tutorial ...

2018-04-18 Thread Joe Bogner
Arie, I followed your WSL steps on a newer machine and I don't see the db
locking issue any more. Thanks! My other machine has the problem but its
WSL is at least 6 months old - so maybe it was fixed in WSL since then or
possibly something fixed/changed by following your instructions. Thanks,
I'll do some additional testing later

On Wed, Apr 18, 2018 at 6:23 AM, Arie van Wingerden 
wrote:

> Hi Alex,
>
> 1) root mode was because I tried a lot of different things, but missed the
> obvious family64.tgz 
> 2) had a few problems with cd-ing into folders, because under Windows it
> is a bit different
>
> So, after unpacking family64.tgz into a local folder in my home dir
> everything works great!
>
> Now starting to really learn the PicoLisp language better.
>
> @Joe could you show me an example where db locking didn't work?
>  Maybe I can test this and see if it does work correctly in the way I
> now set up PicoLisp in WSL?
>
> Thx. again!
> /Arie
>
> 2018-04-18 11:50 GMT+02:00 Alexander Burger :
>
>> Hi Arie,
>>
>> > *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go
>> +*
>> > ...
>> > *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
>> > directory   ?*
>>
>> This is probably because the "family/" directory does not exist yet. Or
>> did you
>> unpack the file "family64.tgz"?
>>
>> In general, I would recommend not to run all this as user root. Better
>> log in as
>> a normal user, and do in any of your local directories:
>>
>>$ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
>>family.l
>>family/
>>family/@
>>family/B
>>family/C
>>family/A
>>$ pil /usr/share/doc/picolisp/doc/family.l -main -go +
>>
>> ♪♫ Alex
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>
>
>


Re: Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Hi Alex,

1) root mode was because I tried a lot of different things, but missed the
obvious family64.tgz 
2) had a few problems with cd-ing into folders, because under Windows it is
a bit different

So, after unpacking family64.tgz into a local folder in my home dir
everything works great!

Now starting to really learn the PicoLisp language better.

@Joe could you show me an example where db locking didn't work?
 Maybe I can test this and see if it does work correctly in the way I
now set up PicoLisp in WSL?

Thx. again!
/Arie

2018-04-18 11:50 GMT+02:00 Alexander Burger :

> Hi Arie,
>
> > *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go
> +*
> > ...
> > *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
> > directory   ?*
>
> This is probably because the "family/" directory does not exist yet. Or
> did you
> unpack the file "family64.tgz"?
>
> In general, I would recommend not to run all this as user root. Better log
> in as
> a normal user, and do in any of your local directories:
>
>$ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
>family.l
>family/
>family/@
>family/B
>family/C
>family/A
>$ pil /usr/share/doc/picolisp/doc/family.l -main -go +
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie,

> *   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go +*
> ...
> *!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
> directory   ?*

This is probably because the "family/" directory does not exist yet. Or did you
unpack the file "family64.tgz"?

In general, I would recommend not to run all this as user root. Better log in as
a normal user, and do in any of your local directories:

   $ tar xvfz /usr/share/doc/picolisp/doc/family64.tgz
   family.l
   family/
   family/@
   family/B
   family/C
   family/A
   $ pil /usr/share/doc/picolisp/doc/family.l -main -go +

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Question about tutorial ...

2018-04-18 Thread Arie van Wingerden
Hi,

tried this:

*​ root@HP-Arie:/usr/share/doc/picolisp/doc#  *​
*pil @lib/http.l --server 8080 @doc/hello.l -wait*
works OK! Can use the GUI from within standard Windows in browser.

But this:
*   root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go +*
fails with:


*!? (pool "family/" *Dbs)   "family/" -- Open error: No such file or
directory   ?*

I guess it has something to do with location of
​some ​
PicoLisp files?
​What am I doing wrong?


TIA
/Arie