Re: building on macos

2025-01-28 Thread Jean-Christophe Helary
Regarding the dependency on llvm-16, I get that during the build process with llvm-10: (cd src; make) /opt/local/libexec/llvm-10/bin/llc: error: /opt/local/libexec/llvm-10/bin/llc: picolisp.bc: error: Invalid value (Producer: 'LLVM16.0.6' Reader: 'LLVM 10.0.1') make: *** [../bin/

How to use enum? to check for existence in sparse array

2025-01-28 Thread Lindsay Lawrence
Hi Alex, Is this a bug or is my understanding of how to use enum? from the documentation not correct. I have a little project where I would like to use 'enum. I was using 'idx before, but 'enum looks like a much better fit. My current problem is that in a sparse array I am getting false positiv

Re: How to use enum? to check for existence in sparse array

2025-01-28 Thread Lindsay Lawrence
> Is this a bug or is my understanding of how to use enum? from the > documentation not correct. > > My mistake! The correct syntax is (enum? *HT Val) and not (enum? '*HT Val). I was quoting the tree name. Doh! Regards, Lindsay Note: I am still not entirely clear why 'enum? can return unexpect

Re: How to use enum? to check for existence in sparse array

2025-01-28 Thread Lindsay Lawrence
> > Note: I am still not entirely clear why 'enum? can return unexpected (at > least to me) results in the sparse array case (see below) > Is it because 'enum precreates key nodes in the tree for a sparse array in > order to keep it balanced?. > > Ok. I think I get the structure. (val (enum? *HT Va

(em)

2025-01-28 Thread Jean-Christophe Helary
Is it my (macOS) system or (em) does not work ? I guess it must be a library that is not loaded at launch ? pil -em + !? (em) em -- Undefined -- Jean-Christophe Helary https://sr.ht/~brandelune/ @jchelary@sciences.social -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Connecting stderr

2025-01-28 Thread Lindsay Lawrence
Hi, When calling, or piping, to an external process from picolisp, is there a way to connect the stderr of that process on another channel as well, so that it can be read, and distinguished, from stdout. /Lindsay

Subscribe

2025-01-28 Thread Emon Sahariar
Hello Emon Sahariar :-) You are now subscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: How to set initial job environment values?

2025-01-28 Thread Lindsay Lawrence
> > > > 'curry' is a bit overkill here. I would directly 'fill' a 'job': > Thanks! 'fill' is indeed the function I was looking for here. Working with 'nth', I did learn more about the picolisp machine and list internals. /Lindsay z

Re: Delayed Mails

2025-01-28 Thread Lindsay Lawrence
On Tue, Jan 28, 2025 at 9:47 AM Alexander Burger wrote: > Sorry for the five delayed Mails! It was my fault :( > > ☺/ A!ex 👍

Re: How to set initial job environment values?

2025-01-28 Thread Alexander Burger
On Sun, Jan 26, 2025 at 12:51:10AM -0800, Lindsay Lawrence wrote: > Is there a simpler way to set the curry environment's State value to Seed > than what I am doing here? > > Regards, > Lindsay > > (de randomLehmer (Seed) >(let > (Fn > (curry > ((State . 1)) >

picolisp db encryption?

2025-01-28 Thread Lindsay Lawrence
Question: Is it possible to encrypt picolisp dbs on the fly? For example, to hook into the low level functions that do block reads and writes in order to apply encryption? For example, it would be a useful option, when setting up a 'pool' to specify a key that is used to decrypt/encrypt block rea

Re: picolisp db encryption?

2025-01-28 Thread Alexander Burger
On Tue, Jan 28, 2025 at 11:10:25AM -0800, Lindsay Lawrence wrote: > Question: Is it possible to encrypt picolisp dbs on the fly? For example, > to hook into the low level functions that do block reads and writes in > order to apply encryption? Not so easily. If it were only for reading from such

unsubscribe

2025-01-28 Thread Alex Williams
Good bye Alex Williams :-( You are now unsubscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Connecting stderr

2025-01-28 Thread Lindsay Lawrence
On Sat, Jan 25, 2025 at 8:56 AM Lindsay Lawrence < lawrence.lindsayj...@gmail.com> wrote: > Is there a straightforward way from PicoLisp, when executing an external > process, to get stderr on a separate channel? > I'd like to do something like (pipe) where I can connect stdin and stdout, > but ha

Re: How to use enum? to check for existence in sparse array

2025-01-28 Thread Alexander Burger
On Mon, Jan 13, 2025 at 10:58:55PM -0800, Lindsay Lawrence wrote: > Ok. I think I get the structure. > (val (enum? *HT Val) is the test I need to use and is very fast! Right. Sorry once more for the late reply! > My apologies for the email noise as I worked through this. No problem! ;) ☺/ A!e

Updated wiki example

2025-01-28 Thread Lindsay Lawrence
Hi, https://picolisp.com/wiki/?RunExe I optimized the code used in the example I previously added to the wiki. Being able to pipe 1M inserts into a sqlite db in ~2.5secs from picolisp is all kinds of awesome. I also added a link to an additional example: https://github.com/thinknlive/picolisp-li

Re: Connecting stderr

2025-01-28 Thread Lindsay Lawrence
Hi, Re-asking the question: Is there a straightforward way from PicoLisp, when executing an external process, to get stderr on a separate channel? I'd like to do something like (pipe) where I can connect stdin and stdout, but have an additional channel for the child's stderr /Lindsay On Wed, J

How to set initial job environment values?

2025-01-28 Thread Lindsay Lawrence
Hi, Is there a simpler way to set the curry environment's State value to Seed than what I am doing here? Regards, Lindsay (de randomLehmer (Seed) (let (Fn (curry ((State . 1)) NIL (setq State (% (* State 279470273) 4294967291)) ) ) (set

Re: (em)

2025-01-28 Thread Alexander Burger
On Tue, Jan 14, 2025 at 09:44:10AM +, Jean-Christophe Helary wrote: > Is it my (macOS) system or (em) does not work ? > > I guess it must be a library that is not loaded at launch ? > > pil -em + > !? (em) > em -- Undefined AFAIK (em) was supported only on pil64, not on current pil21. Not s

Delayed Mails

2025-01-28 Thread Alexander Burger
Sorry for the five delayed Mails! It was my fault :( ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Subscribe

2025-01-28 Thread Jean-Christophe Helary
> On Jan 13, 2025, at 20:21, Alexander Burger wrote: > > On Sun, Jan 12, 2025 at 02:53:49AM +, Jean-Christophe Helary wrote: >> Hello Jean-Christophe Helary >> :-) >> You are now subscribed >> >> >> Am I subscribed ? > > Yes :) Though this answer is probably not helpful, because y