Re: miniPicoLisp + libuv +libSDL

2024-02-02 Thread C K Kashyap
Thanks Alex and RCS :)

On Thu, Feb 1, 2024 at 10:40 AM Alexander Burger 
wrote:

> On Thu, Feb 01, 2024 at 09:05:17AM -0800, C K Kashyap wrote:
> > I finally got around to recording a video (my video recording muscles
> have
> > atrophied :)  )
> >
> > https://www.youtube.com/watch?v=Uv0ZiZAfcGc
>
> Wow, that's cool! Now I see what your intentions are!
>
> Thanks!
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: miniPicoLisp + libuv +libSDL

2024-02-01 Thread Alexander Burger
On Thu, Feb 01, 2024 at 09:05:17AM -0800, C K Kashyap wrote:
> I finally got around to recording a video (my video recording muscles have
> atrophied :)  )
> 
> https://www.youtube.com/watch?v=Uv0ZiZAfcGc

Wow, that's cool! Now I see what your intentions are!

Thanks!
☺/ A!ex

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


Re: miniPicoLisp + libuv +libSDL

2024-02-01 Thread r cs
Thank you for sharing it!
rcs

On Thu, Feb 1, 2024 at 12:15 PM C K Kashyap 
wrote:

> I finally got around to recording a video (my video recording muscles have
> atrophied :)  )
>
> https://www.youtube.com/watch?v=Uv0ZiZAfcGc
>
> Regards,
> Kashyap
>
> On Fri, Jan 26, 2024 at 8:06 AM C K Kashyap  wrote:
>
>> Thanks Alex - I'll take the "very good" for now :)
>>
>> I think I found a better example for demo - libuv's file change callback
>> ... I'll do a demo using that -> make changes to a picolisp script and the
>> screen gets updated as I save the script :)
>>
>> Regards,
>> Kashyap
>>
>> On Fri, Jan 26, 2024 at 7:48 AM Alexander Burger <
>> picolisp@software-lab.de> wrote:
>>
>>> Hi Kashyap,
>>>
>>> > ping Alex :)
>>>
>>> Yes, very good! There is just not much I can say here :)
>>>
>>> ☺/ A!ex
>>>
>>> --
>>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>>
>>

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


Re: miniPicoLisp + libuv +libSDL

2024-02-01 Thread C K Kashyap
I finally got around to recording a video (my video recording muscles have
atrophied :)  )

https://www.youtube.com/watch?v=Uv0ZiZAfcGc

Regards,
Kashyap

On Fri, Jan 26, 2024 at 8:06 AM C K Kashyap  wrote:

> Thanks Alex - I'll take the "very good" for now :)
>
> I think I found a better example for demo - libuv's file change callback
> ... I'll do a demo using that -> make changes to a picolisp script and the
> screen gets updated as I save the script :)
>
> Regards,
> Kashyap
>
> On Fri, Jan 26, 2024 at 7:48 AM Alexander Burger 
> wrote:
>
>> Hi Kashyap,
>>
>> > ping Alex :)
>>
>> Yes, very good! There is just not much I can say here :)
>>
>> ☺/ A!ex
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>
>


Re: miniPicoLisp + libuv +libSDL

2024-01-26 Thread C K Kashyap
Thanks Alex - I'll take the "very good" for now :)

I think I found a better example for demo - libuv's file change callback
.. I'll do a demo using that -> make changes to a picolisp script and the
screen gets updated as I save the script :)

Regards,
Kashyap

On Fri, Jan 26, 2024 at 7:48 AM Alexander Burger 
wrote:

> Hi Kashyap,
>
> > ping Alex :)
>
> Yes, very good! There is just not much I can say here :)
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: miniPicoLisp + libuv +libSDL

2024-01-26 Thread Alexander Burger
Hi Kashyap,

> ping Alex :)

Yes, very good! There is just not much I can say here :)

☺/ A!ex

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


Re: miniPicoLisp + libuv +libSDL

2024-01-26 Thread C K Kashyap
ping Alex :)

On Wed, Jan 24, 2024 at 7:58 AM C K Kashyap  wrote:

> Hi Alex et al,
> For quite some time now (years), I've been attempting to have a
> miniPicoLisp + libSDL + libUV working (on Windows as well) for a while and
> I have finally got it working :) ... Much of my time was wasted attempting
> "3 part cell" etc.
>
> I thought that I'd record a video of the demo before sharing but I am
> becoming impatient now :). I have the working version here -
> https://github.com/lispware/minilisp/tree/libuv2
> To see the demo, simply execute server.l (which listens on port 8080 for
> the mouse click locations and returns an RGB color). Then execute client.l
> - this opens an SDL window and sends the mouse click location to port 8080
> and draws a square on the window with the color returned from the server.
> [Please take a look at the Docker file to see the dependencies that are
> needed]
>
> I think I need to work on modelling the callbacks better. It would be
> great if I could have some pointers on how to do it better/right. For
> example, I modelled uv_tcp_listen here -
> https://github.com/lispware/minilisp/blob/2c4581d2288eafd4b5f65b88e37411e22993fc5a/src/lisp_sdl_libuv.c#L573
>  I
> execute the callback from the C callback "on_connection
> 
> "
>
> Regards,
> Kashyap
>


miniPicoLisp + libuv +libSDL

2024-01-24 Thread C K Kashyap
Hi Alex et al,
For quite some time now (years), I've been attempting to have a
miniPicoLisp + libSDL + libUV working (on Windows as well) for a while and
I have finally got it working :) ... Much of my time was wasted attempting
"3 part cell" etc.

I thought that I'd record a video of the demo before sharing but I am
becoming impatient now :). I have the working version here -
https://github.com/lispware/minilisp/tree/libuv2
To see the demo, simply execute server.l (which listens on port 8080 for
the mouse click locations and returns an RGB color). Then execute client.l
- this opens an SDL window and sends the mouse click location to port 8080
and draws a square on the window with the color returned from the server.
[Please take a look at the Docker file to see the dependencies that are
needed]

I think I need to work on modelling the callbacks better. It would be great
if I could have some pointers on how to do it better/right. For example, I
modelled uv_tcp_listen here -
https://github.com/lispware/minilisp/blob/2c4581d2288eafd4b5f65b88e37411e22993fc5a/src/lisp_sdl_libuv.c#L573
I
execute the callback from the C callback "on_connection

"

Regards,
Kashyap