Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-22 Thread alfonso . villen
Hi Curtis,

thanks a lot for testing!

You're right, a rather recent SDL2 version is needed because of
SDL_CreateRGBSurfaceWithFormat.

I hope you can give picoblocks and breakout a try, they're the only
examples that include sound/music.

Best,
Alfonso


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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-22 Thread Curtis

This is wonderful work. I can see myself having fun with it. Thank you.

I am running Ubuntu 16.04.0 LTS (xenial). Many of the demos worked just 
fine, but the sdl_pong.l demo, and the picoblocks game both failed with 
the following error:


   !? (native "/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0" 
"SDL_CreateRGBSurfaceWithFormat" 'N 0 "IW" "IH" "IBpp" "IPxf")
   [DLL] /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0: undefined symbol: 
SDL_CreateRGBSurfaceWithFormat



I think the SDL2 library bundled with this version of Ubuntu is a bit 
old. Running the command

   nm -D libSDL2-2.0.so | grep SDL_CreateRGBSurface
gives these results:
   000478f0 T SDL_CreateRGBSurface
   00047900 T SDL_CreateRGBSurfaceFrom
The SDL_CreateRGBSurfaceWithFormat function isn't found.

The libsdl wiki (https://wiki.libsdl.org/SDL_CreateRGBSurfaceWithFormat) 
says that that function was only added from SDL 2.0.5. I will try 
installing a newer version of libSDL and test it again.


On 3/15/19 6:46 PM, alfonso.vil...@gmail.com wrote:

Hello,

I want to share with you my progresses on the following Bitbucket
repository:

https://bitbucket.org/alfonsovillen/picolispffi/src/master/

I would be thankful if someone could take some time to try the demos
and tell me whether they run well.

Best regards,
Alfonso Villén




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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread C K Kashyap
Excellent news :) ... that means that image itself has everything that's
needed (atleast for demos 1 to 13).
It maybe just a matter of tweaking the X server settings on my mac - adding
OpenGL 3.3 support perhaps ... I'll look.

Docker in general would be slower than host because of virtualization.

Regards,
Kashyap

On Mon, Mar 18, 2019 at 4:19 PM  wrote:

> Hello Kashyap,
>
> I've tried your Docker image again.
>
> I configured my display manager (LightDM, file:
> /etc/lightdm/lightdm.conf) with xserver-allow-tcp=true.
>
> Then I run "xhost +" in a terminal.
>
> All demos 1 to 13 worked, but with errors from libGL:
>
> libGL error: MESA-LOADER: failed to retrieve device information
> libGL error: unable to load driver: amdgpu_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: amdgpu
> libGL error: failed to open drm device: No such file or directory
> libGL error: failed to load driver: radeonsi
>
> Demos 12 and 13 are very slow, but I don't know why.
>
> Regards,
> Alfonso
>
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread alfonso . villen
Hello Kashyap,

I've tried your Docker image again.

I configured my display manager (LightDM, file:
/etc/lightdm/lightdm.conf) with xserver-allow-tcp=true.

Then I run "xhost +" in a terminal.

All demos 1 to 13 worked, but with errors from libGL:

libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: amdgpu_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: amdgpu
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: radeonsi

Demos 12 and 13 are very slow, but I don't know why.

Regards,
Alfonso


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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread C K Kashyap
Could you try enabling TCP in you X server please?

On Mon, Mar 18, 2019 at 9:29 AM C K Kashyap  wrote:

> Oh!!! ... It assumes communication over TCP port 6000! ... Linux by
> default uses unix socket I think - which is not TCP.
>
> On Mon, Mar 18, 2019 at 7:50 AM  wrote:
>
>> Hello Kashyap,
>>
>> the Docker image starts, but when I run the command "run-alfonso-
>> sdl.sh" I get the following error:
>>
>> error: XDG_RUNTIME_DIR not set in the environment.
>> SDL error: No available video device
>>
>> On my host, XDG_RUNTIME_DIR is set to /run/user/1000.
>>
>> I guess there's no communication with the host's X server.
>>
>> Regards,
>> Alfonso
>>
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>
>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread C K Kashyap
Oh!!! ... It assumes communication over TCP port 6000! ... Linux by default
uses unix socket I think - which is not TCP.

On Mon, Mar 18, 2019 at 7:50 AM  wrote:

> Hello Kashyap,
>
> the Docker image starts, but when I run the command "run-alfonso-
> sdl.sh" I get the following error:
>
> error: XDG_RUNTIME_DIR not set in the environment.
> SDL error: No available video device
>
> On my host, XDG_RUNTIME_DIR is set to /run/user/1000.
>
> I guess there's no communication with the host's X server.
>
> Regards,
> Alfonso
>
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread C K Kashyap
I do not have access to a linux host currently. If you could just give this
a try on Docker on linux that would be great - if not anything, it will
give you first hand view of the issue. All you need to do is install Docker
(on your Linux box) and run the image.
docker run -it --rm ckkashyap/tools:picolisp

I tried picoblocks but alas - it need audio and I believe Docker audio is
not quiet there yet :( ...

Regards,
Kashyap

On Sun, Mar 17, 2019 at 4:21 PM  wrote:

> Hi Kashyap,
>
> I'm afraid I can't help you with the Windows/Mac issues... But I'd be
> glad to help if you tell me how.
>
> By the way, did you also try the toy game in the picoblocks/ folder?
>
> Regards,
> Alfonso
>
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread alfonso . villen
Hi Kashyap,

I'm afraid I can't help you with the Windows/Mac issues... But I'd be
glad to help if you tell me how.

By the way, did you also try the toy game in the picoblocks/ folder?

Regards,
Alfonso


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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread C K Kashyap
Hey Alfonso,
I tried the new demo 4 and got the same result -

"Could not create GL context" -- Error creating OpenGL context:

Regards,

Kashyap

On Sun, Mar 17, 2019 at 4:21 AM Alfonso Villén 
wrote:

> Hello Kashyap,
>
> you're doing some serious work to make everything run under Docker, thank
> you!
>
> The problem still seems to be OpenGL. You said that only demos 1 to 3 run

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread Alfonso Villén
Hello Kashyap,

you're doing some serious work to make everything run under Docker, thank
you!

The problem still seems to be OpenGL. You said that only demos 1 to 3 run.
Demo 1-3 tell SDL2 to open a window with an associated renderer
(+RenderWindow from sdlutil.l), but from demo 4 onwards a window with an
OpenGL context is requested (+OpenGLWindow from sdlopengl.l). The required
OpenGL version is 3.3 or higher. Otherwise the shaders won't compile.

I have updated the code of demo 4. Now the window is created with "(new
'(+OpenGLWindow) "SDL Test 4" 400 400 3 3)", so that SDL2 is free to choose
a valid visual without any requirements. The demo runs fine on my Linux PC.

Can you run a quick test with demo 4 and report if it works now, please?


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread alfonso . villen
Hello Kashyap,

you're doing some serious work to make everything run under Docker,
thank you!

The problem still seems to be OpenGL. You said that only demos 1 to 3
run. Demo 1-3 tell SDL2 to open a window with an associated renderer
(+RenderWindow from sdlutil.l), but from demo 4 onwards a window with
an OpenGL context is requested (+OpenGLWindow from sdlopengl.l). The
required OpenGL version is 3.3 or higher. Otherwise the shaders won't
compile.

I have updated the code of demo 4. Now the window is created with "(new
'(+OpenGLWindow) "SDL Test 4" 400 400 3 3)", so that SDL2 is free to
choose a valid visual without any requirements. The demo runs fine on
my Linux PC. You should see a colored quad and the window should close
after a couple of seconds.

Can you run a quick test with demo 4 and report if it works now,
please?


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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread C K Kashyap
Okay ... good news.

So, now mac and windows are at parity wrt Docker. I had to run defaults
write org.macosforge.xquartz.X11 enable_iglx -bool true to get the demos
work in X.

I took the liberty to create a new docker image with a script that clones
Alfonso's SDL and runs demo1.l. This should work out of the box as long as
you have an X server running - since the docker image already sets the
DISPLAY to host :)
This is the source of the image if you are interested -
https://github.com/ckkashyap/mydockerfiles/blob/master/ckkashyap/pil/PicoLisp

All you have to do is -
docker run ckkashyap/tools:picolisp

This will drop you into a BASH shell inside the docker image. Then run
/run-alfonso-sdl.sh - this should should open up the amazing demo!!! (only
demos 1 2 and 3 run as of now - I am just happy that I can render a window
using picolisp now :))

Regards,
Kashyap





On Sat, Mar 16, 2019 at 8:13 AM C K Kashyap  wrote:

> Hi Alfonso,
> Getting to work with SDL was on my TODO anyway - so it's my pleasure to
> test it out :) and Thank you!
>
> I'll dig further - since it's docker, it's still Linux (ubuntu in my case)
> ... I am optimistic  since it worked on Docker on windows.
>
> Regards,
> Kashyap
>
>
> On Sat, Mar 16, 2019 at 4:26 AM Alfonso Villén 
> wrote:
>
>> Hi Kashyap,
>>
>> it's also possible that the OpenGL drivers simply don't support OpenGL
>> 3.3 core profile, or that there's no OpenGL support at all...
>>
>> Am Sa., 16. März 2019 um 05:25 Uhr schrieb C K Kashyap <
>> ckkash...@gmail.com>:
>>
>>> Quick report -
>>> 1. WSL  + XMing - demo1.l worked just fine!  I get a mix of * !?
>>> (native NIL "IMG_Init" 'I IFlag) *and *"Could not create GL context" --
>>> Error creating OpenGL context:* for the other demos.
>>> 2. Docker on windows + XMing - same as WSL
>>> 3. Docker + XQuartz on Mac - none of the demos run - libGL error: No
>>> matching fbConfigs or visuals found and libGL error: failed to load
>>> driver: swrast
>>>
>>> Since it runs on Docker + XMing on windows, I am guessing it must be the
>>> XQuartz that has some quirks that it causes not to work.
>>>
>>> Regards,
>>> Kashyap
>>>
>>>
>>>
>>>
>>> On Fri, Mar 15, 2019 at 7:49 PM C K Kashyap  wrote:
>>>
 Great news ... cant wait to try it out on docker + xserver

 On Fri, Mar 15, 2019 at 7:41 PM  wrote:

> Works on FreeBSD too, if I make this change:
>
> $ git diff | cat
> diff --git a/sdl/findlib.l b/sdl/findlib.l
> index 20371af..f532cb8 100644
> --- a/sdl/findlib.l
> +++ b/sdl/findlib.l
> @@ -5,7 +5,7 @@
>
>  (de findlib (Lib)
> (let Matches
> -  (in '(ldconfig "-p")
> +  (in '(ldconfig "-r")
>   (filter
>  '((F) (sub? Lib F))
>  (make (while (line T) (link @))) ) )
>
> Thanks!  (I just found out that I'm terrible at pong :)
>
> Best, Rick
>
> On Fri, 15 Mar 2019 18:58 -04:00, alfonso.vil...@gmail.com wrote:
> > Hello,
> >
> > I want to share with you my progresses on the following Bitbucket
> > repository:
> >
> > https://bitbucket.org/alfonsovillen/picolispffi/src/master/
> >
> > I would be thankful if someone could take some time to try the demos
> > and tell me whether they run well.
> >
> > Best regards,
> > Alfonso Villén
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
>



Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread C K Kashyap
Hi Alfonso,
Getting to work with SDL was on my TODO anyway - so it's my pleasure to
test it out :) and Thank you!

I'll dig further - since it's docker, it's still Linux (ubuntu in my case)
.. I am optimistic  since it worked on Docker on windows.

Regards,
Kashyap


On Sat, Mar 16, 2019 at 4:26 AM Alfonso Villén 
wrote:

> Hi Kashyap,
>
> it's also possible that the OpenGL drivers simply don't support OpenGL 3.3
> core profile, or that there's no OpenGL support at all...
>
> Am Sa., 16. März 2019 um 05:25 Uhr schrieb C K Kashyap <
> ckkash...@gmail.com>:
>
>> Quick report -
>> 1. WSL  + XMing - demo1.l worked just fine!  I get a mix of * !? (native
>> NIL "IMG_Init" 'I IFlag) *and *"Could not create GL context" -- Error
>> creating OpenGL context:* for the other demos.
>> 2. Docker on windows + XMing - same as WSL
>> 3. Docker + XQuartz on Mac - none of the demos run - libGL error: No
>> matching fbConfigs or visuals found and libGL error: failed to load
>> driver: swrast
>>
>> Since it runs on Docker + XMing on windows, I am guessing it must be the
>> XQuartz that has some quirks that it causes not to work.
>>
>> Regards,
>> Kashyap
>>
>>
>>
>>
>> On Fri, Mar 15, 2019 at 7:49 PM C K Kashyap  wrote:
>>
>>> Great news ... cant wait to try it out on docker + xserver
>>>
>>> On Fri, Mar 15, 2019 at 7:41 PM  wrote:
>>>
 Works on FreeBSD too, if I make this change:

 $ git diff | cat
 diff --git a/sdl/findlib.l b/sdl/findlib.l
 index 20371af..f532cb8 100644
 --- a/sdl/findlib.l
 +++ b/sdl/findlib.l
 @@ -5,7 +5,7 @@

  (de findlib (Lib)
 (let Matches
 -  (in '(ldconfig "-p")
 +  (in '(ldconfig "-r")
   (filter
  '((F) (sub? Lib F))
  (make (while (line T) (link @))) ) )

 Thanks!  (I just found out that I'm terrible at pong :)

 Best, Rick

 On Fri, 15 Mar 2019 18:58 -04:00, alfonso.vil...@gmail.com wrote:
 > Hello,
 >
 > I want to share with you my progresses on the following Bitbucket
 > repository:
 >
 > https://bitbucket.org/alfonsovillen/picolispffi/src/master/
 >
 > I would be thankful if someone could take some time to try the demos
 > and tell me whether they run well.
 >
 > Best regards,
 > Alfonso Villén

 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe

>>>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread Alfonso Villén
Hi Kashyap,

it's also possible that the OpenGL drivers simply don't support OpenGL 3.3
core profile, or that there's no OpenGL support at all...

Am Sa., 16. März 2019 um 05:25 Uhr schrieb C K Kashyap :

> Quick report -
> 1. WSL  + XMing - demo1.l worked just fine!  I get a mix of * !? (native
> NIL "IMG_Init" 'I IFlag) *and *"Could not create GL context" -- Error
> creating OpenGL context:* for the other demos.
> 2. Docker on windows + XMing - same as WSL
> 3. Docker + XQuartz on Mac - none of the demos run - libGL error: No
> matching fbConfigs or visuals found and libGL error: failed to load
> driver: swrast
>
> Since it runs on Docker + XMing on windows, I am guessing it must be the
> XQuartz that has some quirks that it causes not to work.
>
> Regards,
> Kashyap
>
>
>
>
> On Fri, Mar 15, 2019 at 7:49 PM C K Kashyap  wrote:
>
>> Great news ... cant wait to try it out on docker + xserver
>>
>> On Fri, Mar 15, 2019 at 7:41 PM  wrote:
>>
>>> Works on FreeBSD too, if I make this change:
>>>
>>> $ git diff | cat
>>> diff --git a/sdl/findlib.l b/sdl/findlib.l
>>> index 20371af..f532cb8 100644
>>> --- a/sdl/findlib.l
>>> +++ b/sdl/findlib.l
>>> @@ -5,7 +5,7 @@
>>>
>>>  (de findlib (Lib)
>>> (let Matches
>>> -  (in '(ldconfig "-p")
>>> +  (in '(ldconfig "-r")
>>>   (filter
>>>  '((F) (sub? Lib F))
>>>  (make (while (line T) (link @))) ) )
>>>
>>> Thanks!  (I just found out that I'm terrible at pong :)
>>>
>>> Best, Rick
>>>
>>> On Fri, 15 Mar 2019 18:58 -04:00, alfonso.vil...@gmail.com wrote:
>>> > Hello,
>>> >
>>> > I want to share with you my progresses on the following Bitbucket
>>> > repository:
>>> >
>>> > https://bitbucket.org/alfonsovillen/picolispffi/src/master/
>>> >
>>> > I would be thankful if someone could take some time to try the demos
>>> > and tell me whether they run well.
>>> >
>>> > Best regards,
>>> > Alfonso Villén
>>>
>>> --
>>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
>>>
>>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread Alfonso Villén
Hello Kashyap!

First of all, thanks for testing.

The first demo doesn't use SDL2_image, but the others do (to load images
and make textures from them). The line "!? (native NIL "IMG_Init" 'I
IFlag)" shows that SDL2_image either isn't installed or the shared library
couldn't be found by the "findlib" function in the "findlib.l" file.

I don't know exactly why SDL2 fails to get a valid OpenGL context under WSL
and Mac. It might be related to the requests when the windows are created
(8 bits for red, green and blue channels, no alpha, double buffer and 24
bit depth buffer). Neither the demos nor the bindings make any check to see
if the requested framebuffer formats are supported by the hardware or the
libraries. XQuartz seems to try to fall back to a software rasterizer,
without success.

I'd be satisfied enough if the examples ran well on machines with different
Linux distros and I think it's too early to try to fix anything not working
outside of Linux.

Am Sa., 16. März 2019 um 05:25 Uhr schrieb C K Kashyap :

> Quick report -
> 1. WSL  + XMing - demo1.l worked just fine!  I get a mix of * !? (native
> NIL "IMG_Init" 'I IFlag) *and *"Could not create GL context" -- Error
> creating OpenGL context:* for the other demos.
> 2. Docker on windows + XMing - same as WSL
> 3. Docker + XQuartz on Mac - none of the demos run - libGL error: No
> matching fbConfigs or visuals found and libGL error: failed to load
> driver: swrast
>
> Since it runs on Docker + XMing on windows, I am guessing it must be the
> XQuartz that has some quirks that it causes not to work.
>
> Regards,
> Kashyap
>
>
>
>
> On Fri, Mar 15, 2019 at 7:49 PM C K Kashyap  wrote:
>
>> Great news ... cant wait to try it out on docker + xserver
>>
>> On Fri, Mar 15, 2019 at 7:41 PM  wrote:
>>
>>> Works on FreeBSD too, if I make this change:
>>>
>>> $ git diff | cat
>>> diff --git a/sdl/findlib.l b/sdl/findlib.l
>>> index 20371af..f532cb8 100644
>>> --- a/sdl/findlib.l
>>> +++ b/sdl/findlib.l
>>> @@ -5,7 +5,7 @@
>>>
>>>  (de findlib (Lib)
>>> (let Matches
>>> -  (in '(ldconfig "-p")
>>> +  (in '(ldconfig "-r")
>>>   (filter
>>>  '((F) (sub? Lib F))
>>>  (make (while (line T) (link @))) ) )
>>>
>>> Thanks!  (I just found out that I'm terrible at pong :)
>>>
>>> Best, Rick
>>>
>>> On Fri, 15 Mar 2019 18:58 -04:00, alfonso.vil...@gmail.com wrote:
>>> > Hello,
>>> >
>>> > I want to share with you my progresses on the following Bitbucket
>>> > repository:
>>> >
>>> > https://bitbucket.org/alfonsovillen/picolispffi/src/master/
>>> >
>>> > I would be thankful if someone could take some time to try the demos
>>> > and tell me whether they run well.
>>> >
>>> > Best regards,
>>> > Alfonso Villén
>>>
>>> --
>>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
>>>
>>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread alfonso . villen
Thanks, Rick!

I added a comment to sdl/findlib.l so I don't forget your FreeBSD
change.

I really didn't expect everything would work on FreeBSD with just a
single change! I'm happy about that.


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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread alfonso . villen
Thanks Alex!

I think it'd be really great to see people using Picolisp in things
where they use other languages such as Python or Lua. But for this, the
community must offer them some help...

Will be nice to know if everything also works on arm64.


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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread C K Kashyap
Quick report -
1. WSL  + XMing - demo1.l worked just fine!  I get a mix of * !? (native
NIL "IMG_Init" 'I IFlag) *and *"Could not create GL context" -- Error
creating OpenGL context:* for the other demos.
2. Docker on windows + XMing - same as WSL
3. Docker + XQuartz on Mac - none of the demos run - libGL error: No
matching fbConfigs or visuals found and libGL error: failed to load driver:
swrast

Since it runs on Docker + XMing on windows, I am guessing it must be the
XQuartz that has some quirks that it causes not to work.

Regards,
Kashyap




On Fri, Mar 15, 2019 at 7:49 PM C K Kashyap  wrote:

> Great news ... cant wait to try it out on docker + xserver
>
> On Fri, Mar 15, 2019 at 7:41 PM  wrote:
>
>> Works on FreeBSD too, if I make this change:
>>
>> $ git diff | cat
>> diff --git a/sdl/findlib.l b/sdl/findlib.l
>> index 20371af..f532cb8 100644
>> --- a/sdl/findlib.l
>> +++ b/sdl/findlib.l
>> @@ -5,7 +5,7 @@
>>
>>  (de findlib (Lib)
>> (let Matches
>> -  (in '(ldconfig "-p")
>> +  (in '(ldconfig "-r")
>>   (filter
>>  '((F) (sub? Lib F))
>>  (make (while (line T) (link @))) ) )
>>
>> Thanks!  (I just found out that I'm terrible at pong :)
>>
>> Best, Rick
>>
>> On Fri, 15 Mar 2019 18:58 -04:00, alfonso.vil...@gmail.com wrote:
>> > Hello,
>> >
>> > I want to share with you my progresses on the following Bitbucket
>> > repository:
>> >
>> > https://bitbucket.org/alfonsovillen/picolispffi/src/master/
>> >
>> > I would be thankful if someone could take some time to try the demos
>> > and tell me whether they run well.
>> >
>> > Best regards,
>> > Alfonso Villén
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
>>
>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread C K Kashyap
Great news ... cant wait to try it out on docker + xserver

On Fri, Mar 15, 2019 at 7:41 PM  wrote:

> Works on FreeBSD too, if I make this change:
>
> $ git diff | cat
> diff --git a/sdl/findlib.l b/sdl/findlib.l
> index 20371af..f532cb8 100644
> --- a/sdl/findlib.l
> +++ b/sdl/findlib.l
> @@ -5,7 +5,7 @@
>
>  (de findlib (Lib)
> (let Matches
> -  (in '(ldconfig "-p")
> +  (in '(ldconfig "-r")
>   (filter
>  '((F) (sub? Lib F))
>  (make (while (line T) (link @))) ) )
>
> Thanks!  (I just found out that I'm terrible at pong :)
>
> Best, Rick
>
> On Fri, 15 Mar 2019 18:58 -04:00, alfonso.vil...@gmail.com wrote:
> > Hello,
> >
> > I want to share with you my progresses on the following Bitbucket
> > repository:
> >
> > https://bitbucket.org/alfonsovillen/picolispffi/src/master/
> >
> > I would be thankful if someone could take some time to try the demos
> > and tell me whether they run well.
> >
> > Best regards,
> > Alfonso Villén
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
>


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread rick
Works on FreeBSD too, if I make this change:

$ git diff | cat
diff --git a/sdl/findlib.l b/sdl/findlib.l
index 20371af..f532cb8 100644
--- a/sdl/findlib.l
+++ b/sdl/findlib.l
@@ -5,7 +5,7 @@

 (de findlib (Lib)
(let Matches
-  (in '(ldconfig "-p")
+  (in '(ldconfig "-r")
  (filter
 '((F) (sub? Lib F))
 (make (while (line T) (link @))) ) )

Thanks!  (I just found out that I'm terrible at pong :)

Best, Rick

On Fri, 15 Mar 2019 18:58 -04:00, alfonso.vil...@gmail.com wrote:
> Hello,
> 
> I want to share with you my progresses on the following Bitbucket
> repository:
> 
> https://bitbucket.org/alfonsovillen/picolispffi/src/master/
> 
> I would be thankful if someone could take some time to try the demos
> and tell me whether they run well.
> 
> Best regards,
> Alfonso Villén

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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread rick
>From the project README:
> However, in the tests I did, Picolisp performed its fixed-point
> arithmetic calculations much faster than I had expected. In the end,
> I abandoned the C alternative, but left it there for the records.

Excellent!  Great to hear.

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


Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread Alexander Williams

Wow this is AMAZING!!!

I haven't tested it yet, but I looked at the source files and it is 
**very** clean code, well-documented, descriptive comments, screenshots, 
etc. This is by far the most impressive PicoLisp project I've ever seen. 
You clearly put a lot of effort into this, thank you!


I will try it this weekend on arm64 and let you know how it runs.

Great job!


AW

On Fri, 15 Mar 2019, alfonso.vil...@gmail.com wrote:


Hello,

I want to share with you my progresses on the following Bitbucket
repository:

https://bitbucket.org/alfonsovillen/picolispffi/src/master/

I would be thankful if someone could take some time to try the demos
and tell me whether they run well.

Best regards,
Alfonso Villén


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


SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread alfonso . villen
Hello,

I want to share with you my progresses on the following Bitbucket
repository:

https://bitbucket.org/alfonsovillen/picolispffi/src/master/

I would be thankful if someone could take some time to try the demos
and tell me whether they run well.

Best regards,
Alfonso Villén


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