Re: MiniPicoLisp with SDL on GNU/Linux, Mac, Windows

2020-05-22 Thread r cs
Nice -- thanks for sharing!

If anyone had problems getting to github, it may be because there was a
typo in the provided link text leaving out the period before ".com" (but
the label text for the link is correct);
https://github.com/ckkashyap/MiniPicoLisp/tree/SDL

Regards,
rcs

On Sat, May 23, 2020 at 12:26 AM C K Kashyap  wrote:

> Hi all,
> It is super cool to see SDL graphs driven through miniPicoLIsp :) ... I am
> too excited and wanted to share it before doing some polishing
>
> https://github.com/ckkashyap/MiniPicoLisp/tree/SDL
> 
>
> This code builds and runs on "all" the operating systems :)
>
> My next goal is integrate it with openssl - perhaps implement a generic
> "call" like function.
>
> Regards,
> Kashyap
>


-- 
*Níl aon tinteán mar do thinteán féin. *[Irish Gaelic]
(There is no fireside like your own fireside.)


Re: Native callbacks in PicoLisp

2020-05-22 Thread Alexander Burger
Hi Kashyap,

> In the section about callbacks (
> https://software-lab.de/doc/native.html#funptr) it is not explicitly
> mentioned that the callback (lisp ...)  cannot be called from a different
> thread.

Yes, the docs nowhere mention threads, as they are not an issue in PicoLisp. It
rather uses communicating processes.

You *could* probably use PicoLisp in a threaded program, but it would need
precautions like creating all locally bound symbols in thread-private
namespaces.


> However, since PicoLisp does not have threads, I'd imagine that
> callbacks cannot be called from a different thread. Is that correct
> understanding?

I have not thought about this. Not sure atm what kind of conflicts might show
up.

☺/ A!ex

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



MiniPicoLisp with SDL on GNU/Linux, Mac, Windows

2020-05-22 Thread C K Kashyap
Hi all,
It is super cool to see SDL graphs driven through miniPicoLIsp :) ... I am
too excited and wanted to share it before doing some polishing

https://github.com/ckkashyap/MiniPicoLisp/tree/SDL

This code builds and runs on "all" the operating systems :)

My next goal is integrate it with openssl - perhaps implement a generic
"call" like function.

Regards,
Kashyap


Native callbacks in PicoLisp

2020-05-22 Thread C K Kashyap
Hi Alex et al,

In the section about callbacks (
https://software-lab.de/doc/native.html#funptr) it is not explicitly
mentioned that the callback (lisp ...)  cannot be called from a different
thread. However, since PicoLisp does not have threads, I'd imagine that
callbacks cannot be called from a different thread. Is that correct
understanding?

Regards,
Kashyap


Re: picoLisp 19.12: variable length array in structure fixes

2020-05-22 Thread C K Kashyap
Super ...Congratulations Andras!

I just gave it a spin and it just worked. I generated 64bit and 32bit
executables (after installing libffi-dev and libffi-dev:i386) and tried
(call "ls") :)
I am particularly happy since I will be able to reference C code for the
FFI implementation that I could potentially use in miniPicoLisp.

Regards,
Kashyap


On Fri, May 22, 2020 at 10:05 AM Alexander Burger 
wrote:

> Hi Andras,
>
> > The code at https://github.com/pahihu/picoLisp <
> https://github.com/pahihu/picoLisp> fulfils Mike’s super
> > goal - all pil64 specific tests passed as well. It has namespaces,
> > native C calls and coroutines and the documented features of
> > pil64 - except the external symbol and database format.
>
> Wow! Big achievement, thanks a lot!!
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: picoLisp 19.12: variable length array in structure fixes

2020-05-22 Thread Alexander Burger
Hi Andras,

> The code at https://github.com/pahihu/picoLisp 
>  fulfils Mike’s super
> goal - all pil64 specific tests passed as well. It has namespaces,
> native C calls and coroutines and the documented features of
> pil64 - except the external symbol and database format.

Wow! Big achievement, thanks a lot!!

☺/ A!ex

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


Re: picoLisp 19.12: variable length array in structure fixes

2020-05-22 Thread Andras Pahi
Hi all,

The code at https://github.com/pahihu/picoLisp 
 fulfils Mike’s super
goal - all pil64 specific tests passed as well. It has namespaces,
native C calls and coroutines and the documented features of
pil64 - except the external symbol and database format.

Andras

> On 2020. Apr 19., at 13:11, Mike  wrote:
> !!!
> Super goal - huge.l should pass all code with your patch set.
> 
> 
> p.s. I dont have enough energy right now to debug all this.  
> 
> (mike)