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

Re: reading a shell command's output

2018-10-25 Thread Curtis
> Or, of course, you can load the task upon a shell: > >(call "sh" "-c" "cat locations.csv | fzf --multi | xclip") Hey! I much prefer that, to having a separate script file. I was trying to do something similar earlier but couldn't get it to work. Thanks very much for the help! --

Re: reading a shell command's output

2018-10-25 Thread Curtis
Just in case anyone else is trying to use fzf in the same way. I "solved" the problem by using the system clipboard instead of trying to read directly from fzf. I'm using a shell script because I don't know if it's possible to pipe a file to a system command using picolisp. I'm sure there is a

Re: reading a shell command's output

2018-10-24 Thread Curtis
Thank you, but that isn't exactly what I was looking for. I want to use fzf's interface to interactively filter the list of items, then, have picolisp read what I actually selected. With -f, fzf is non-interactive. Changing your example to: (in '(fzf) (until (eof) (println (line T causes it

Re: reading a shell command's output

2018-10-24 Thread Curtis
Thanks for the quick reply. I'll see if I can get 'fzf' to dump it's output to a temp file. Thank you. On Wed, Oct 24, 2018 at 12:46 PM Alexander Burger wrote: > Hi Curtis, > > > I'm trying to run a program (fzf - a really useful ncurses text fuzzy > > finder) and rea

reading a shell command's output

2018-10-24 Thread Curtis
Hello everyone! I'm trying to run a program (fzf - a really useful ncurses text fuzzy finder) and read its output using (in), but I'm not getting it to work. : (in '(fzf) (line T)) Failed to read /dev/tty -> NIL The command I actually want to run is a bit more complicated. At the command line,

Re: file function purpose

2018-10-17 Thread Curtis
Thanks for taking the time to explain. I understand, now. On Wed, Oct 17, 2018, 4:43 PM wrote: > Typo, in my example (car (file)) of course returns "somepath/" (contains > the directory separator '/'). > > You can easily test the behaviour by creating a file foo.l containing > the following

Re: file function purpose

2018-10-17 Thread Curtis
What I mean to say is, it looks as though, from where "file" is being called, it would always return NIL. On Wed, Oct 17, 2018 at 1:19 PM Curtis wrote: > > I'm a little confused by the purpose of the (file) function's use in > the example given here: https://software-lab.de

file function purpose

2018-10-17 Thread Curtis
I'm a little confused by the purpose of the (file) function's use in the example given here: https://software-lab.de/doc/refF.html#file The example is: (load (pack (car (file)) "localFile.l")) # Load a file in same directory But, doesn't (load "localFile.l") do the same thing? I noticed the

Re: My 5 minutes lightning talk at FrosCon

2018-09-26 Thread Curtis
Thanks a lot. It's very interesting. I always appreciate articles/tutorials for beginners. On Wed, Sep 26, 2018, 5:59 AM Joh-Tob Schäg wrote: > Since there is some much stir around the presentation made by mtsd. (Great > work by the way) I decided it is a good time to put my lightning talk at >

Re: Slides and notes from my Picolisp presentation

2018-09-25 Thread Curtis
I enjoyed it a lot. Thanks. You should write a nice tutorial based on the app you mentioned in the talk. ;) On Tue, Sep 25, 2018, 7:05 AM Mattias Sundblad wrote: > Hello everyone! > > I recently held some presentations about Picolisp, minimalism and > software development. The slides and notes

Sorting a table

2018-07-23 Thread Curtis
I have been attempting to learn PicoLisp by going through the tutorials at http://www.prodevtips.com/tag/pico-lisp/. I'm finding it rather difficult, though. The third tutorial, "Working with tables in PicoLisp", has the following code to sort a table: (setq *People '((name John phone