Re: Examples of quote usage instead of lambda

2020-02-06 Thread Wilhelm Fitzpatrick
On 2/6/20 9:41 AM, John Duncan wrote: The dotted pair syntax (a . b) refers to the car and cdr of a list. I too had been scratching my head about the use of the dotted notation in the function documentation, but I just had a lightbulb. Since in a regular list, the cdr is the "tail", in an

Constructing functions programmatically?

2020-02-01 Thread Wilhelm Fitzpatrick
Hello, I've recently stumbled across Picolisp (while playing around with Termux) and have been reading up and finding it very intriguing. In the process of learning, I experimented with making a function to generate incrementor functions, e.g. (make-inc 2) would return a function that adds two

Subscribe

2020-01-31 Thread Wilhelm Fitzpatrick
Hello Wilhelm Fitzpatrick :-) You are now subscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Local install problem

2020-03-25 Thread Wilhelm Fitzpatrick
I tried doing a local install of picolisp in my Chromebook's Linux container (Debian Buster). After downloading and building the 19.12 tarball, I find that the pil script in picoLisp/bin has /usr/bin/picolisp as the shbang, so it wouldn't actually work as a local installation. Did I miss a

Re: Digging into Symbols

2020-04-28 Thread Wilhelm Fitzpatrick
On 4/28/20 2:18 AM, Guido Stepken wrote: E.g Python dqueue doesn't show any performance loss here The performance of a particular python data structure has no bearing on the fact that your original statement: In most Lisp languages, you only can "append" to a list, never "prepend" ..is

Re: Digging into Symbols

2020-04-27 Thread Wilhelm Fitzpatrick
Thanks for the insights, Alex! On 4/27/20 1:53 PM, Alexander Burger wrote: This means, a pointer to a cell points direcly to its CAR, while a pointer to a symbol points to its VAL. In both cases (car ...) or (val ...) are just a single pointer derefernces (memory fetches). Ah, so car and val

Digging into Symbols

2020-04-27 Thread Wilhelm Fitzpatrick
I've been digging down to really understand the symbol implementation in Picolisp, since symbols are used for so many purposes within the language. One surprising thing I learned last night is that (get ...) has a side effect! It moves the key that was accessed to the head of the symbol

Re: PilCon 2020

2020-04-22 Thread Wilhelm Fitzpatrick
I'll add my voice as being another who would be interested in an online convention. -Wilhelm On 4/21/20 11:13 PM, George-Phillip Orais wrote: Same here, as lurker and amateur PicoLisper, I love to join and the attend this online PilCon 2020, thank you Alex! -- UNSUBSCRIBE:

Re: Digging into Symbols

2020-04-27 Thread Wilhelm Fitzpatrick
On 4/27/20 2:42 PM, Guido Stepken wrote: In most Lisp languages, you only can "append" to a list, never "prepend".: "Prepend", aka "add to the beginning" seems the natural (and non-destructive) operation of Lisp, e.g. (cons 9 (1 2 3)) -> (9 1 2 3) ..perhaps that is what you meant?

Re: Stop using US controlled software stacks!!!

2020-04-27 Thread Wilhelm Fitzpatrick
China is changing gears, decoupling from TCP/IP protocol. Means: USA becoming isolated. It's a 320 million people state, making just 5% of global population. https://cntechpost.com/2020/03/30/huawei-aims-to-reshape-internet-with-protocol-called-new-ip/ China certainly has long wanted to

Re: divmod?

2020-05-03 Thread Wilhelm Fitzpatrick
I'm not finding such a thing in the function reference, but asking on the off chance I'm overlooking it. Is there a way in Picolisp to get a division result and remainder as a single operation? Sure http://ix.io/2kBM Thanks! But as Alex intuited, I was looking to leverage the underlying

Formatting in the REPL?

2020-05-02 Thread Wilhelm Fitzpatrick
I'm experimenting with the object system in Picolisp, and I'm wondering if there is a way of teaching the REPL to invoke some formatting function when displaying an object instance? Having to constantly invoke (show) to see what is going on with the instances does get a little tedious...

divmod?

2020-05-02 Thread Wilhelm Fitzpatrick
I'm not finding such a thing in the function reference, but asking on the off chance I'm overlooking it. Is there a way in Picolisp to get a division result and remainder as a single operation? -wilhelm -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Do free Open Source Foundation's Software Stacks fall under US Export Law?

2020-05-06 Thread Wilhelm Fitzpatrick
On 5/6/20 11:35 AM, Guido Stepken wrote: If this is really the case, it promise, i say 'goodbye' from PicoLisp mailing list!!! I promise! Oh, Guido, please don't make promises you can't keep 藍 -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Formatting in the REPL?

2020-05-03 Thread Wilhelm Fitzpatrick
Perhaps by setting '*Prompt'? ww https://software-lab.de/doc/refP.html#*Prompt ☺/ A!ex Thanks for the tip! I think I'm on to something... : (de *Prompt (cond ((isa '+Fixed @) (format> @)) (T ""))) # *Prompt redefined -> *Prompt : : (fixed 1234 2) -> $171307330464572 12.34: (fixed+ @

Re: Fridays for Functions (Was: PilCon 2020)

2020-06-03 Thread Wilhelm Fitzpatrick
I'd definitely try to join to listen and learn. On 6/2/20 11:26 PM, Jean-Christophe Helary wrote: On Jun 3, 2020, at 14:54, Alexander Burger wrote: I would propose informal Jitsi meetings every second Friday or so. The time could be alternating 8:00 and 16:00 UTC, to allow attendance from

Re: PilCon Friday

2020-11-06 Thread Wilhelm Fitzpatrick
Only topics whose questioners were present were discussed, so we didn't talk about the interpreter only approach, holding it as a topic for future session. Alex addressed the "array avoidance" question, explaining the how arrays would complicate the core single data type implementation and

Re: pilbox file sharing

2021-01-18 Thread Wilhelm Fitzpatrick
Is the one having issues a newer version of Android perhaps (Android 10 or 11?) Android has been locking thing down to require use of the Storage Access Framework in the most recent version of the OS, I believe. -wilhelm On 1/18/21 12:47 PM, Shaughan Lavine wrote: I have two Android devices

Re: pilbox file sharing

2021-01-18 Thread Wilhelm Fitzpatrick
ProtonMail mobile Original Message On Jan 18, 2021, 7:32 PM, Wilhelm Fitzpatrick < raf...@well.com> wrote: Is the one having issues a newer version of Android perhaps (Android 10 or 11?) Android has been locking thing down to require use of the S

Re: pilbox file sharing

2021-01-19 Thread Wilhelm Fitzpatrick
On 1/18/21 11:21 PM, Alexander Burger wrote: I have not looked at the Scoped Storage API yet. Is it really a problem? The PilBox core runtime does not depend on external storage, so the API should be accessible from Lisp (with perhaps a slight modification of AndroidManifest.xml), no? ☺/ A!ex

Re: Possible bug with prog1 and @

2022-02-08 Thread Wilhelm Fitzpatrick
This behavior seems like it is "as advertised"? I see in the documentation: "Flow- and logic-functions store the result of their controlling expression - respectively non-NIL results of their conditional expression - in @." So the case when (sym? A2) seemingly would not update the current