ping Alex :) On Wed, Jan 24, 2024 at 7:58 AM C K Kashyap <ckkash...@gmail.com> 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 > <https://github.com/lispware/minilisp/blob/2c4581d2288eafd4b5f65b88e37411e22993fc5a/src/lisp_sdl_libuv.c#L533> > " > > Regards, > Kashyap >