Re: Fridays for Functions

2020-07-29 Thread Alexander Burger
Hi Davide, > I would have a topic for the next FFF Q Great! > I have not managed to get my head around the differences between tasks and > forks, and in which occasion to use one instead of the other. I found some > information in the wiki and in the function reference, but it would be nice >

Re: PilBox files

2020-07-28 Thread Alexander Burger
Hi Shaughan, > That all works fine, _but_ first it is necessary to go to > Settings->Apps->PilBox->Permissions and grant the Storage permission. That's right. This is the list of instructioons which I give to my customers: Install "PilBox" from Google Play Store Don't start it yet!

Re: PilBox files

2020-07-28 Thread Alexander Burger
Hi Shaughan, > 'Sorry—I should have been more explicit: I meant in storage. That is, there > is no > /storage/emulated/0/Android/data/de.software_lab.pilbox/files > and no > /storage//Android/data/de.software_lab.pilbox/files. > Is there a way to store large files on an external sd card? I see.

Re: pilbox help

2020-07-19 Thread Alexander Burger
Hi Shaughan, > I'm stumped about how to get an app into PilBox: > > I make a directory myapp containing, among other things, a file named App.l. I > zip the directory. This is good, but make sure that the file contains a name and a call to 'menu' at minimum, because otherwise nothing will be

Re: 8KLISP for 8080?

2020-07-19 Thread Alexander Burger
On Sat, Jul 18, 2020 at 07:29:25PM -0400, r cs wrote: > Did 8K lisp run on the 8080? Interested in trying it out on an 8085 using > REXCPM on a Model 100 I don't remember whether it was pure 8080 or also used some dedicated Z80 instructions. We

Fridays for Functions

2020-07-15 Thread Alexander Burger
Hi all, as a reminder, the next Fridays for Functions meeting will be the day after tomorrow, 17th of July, at 16:00 UTC. https://meeting.itship.ch/PilCon Are there any requests? If not, I could try again to talk about the Catalonian Forest Fire program. Otherwise I'm open for any other

Re: Fridays for Functions (Was: PilCon 2020)

2020-07-03 Thread Alexander Burger
Hi Domingo, > I used this two lua scripts to get/generate then: > > > > --local html = io.open("roseta-code.html"):read("*a") > local base_url = "http://rosettacode.org; > local html = io.popen("curl " .. base_url .. > "/wiki/Category:PicoLisp"):read("*a") > > html = html:gsub("Pages in

Re: Fridays for Functions (Was: PilCon 2020)

2020-07-03 Thread Alexander Burger
On Fri, Jul 03, 2020 at 12:53:03AM -0700, C K Kashyap wrote: > OopsI did not plan my day well...its at 1am here :(I'll have to > join in the morning to see if the meeting is still on. Oh, a pity! Sorry, we just finished :( Surely in 2 weeks it is better (16 UTC) ☺/ A!ex --

Re: Fridays for Functions (Was: PilCon 2020)

2020-07-02 Thread Alexander Burger
On Thu, Jul 02, 2020 at 09:28:09AM -0700, C K Kashyap wrote: > Just to confirm - is this at 8am UTC on 3rd July? Yes, that's right. About 15 hours and 20 minutes from now ;) ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Fridays for Functions (Was: PilCon 2020)

2020-07-01 Thread Alexander Burger
Hi Kashyap, > Would this be recorded? There is just not enough picoLisp video content > out there in my opinion. > I would like a session on History/evolution of Picolisp in your own words AFAIK not in the current setup. Jitsi allows some connection to youtube iirc, but I have not

Re: Fridays for Functions (Was: PilCon 2020)

2020-07-01 Thread Alexander Burger
Hi all, On Thu, Jun 18, 2020 at 08:42:48AM +0200, Alexander Burger wrote: > The first one is on 3rd of July, 8:00 UTC > >https://meeting.itship.ch/PilCon My proposal would be to start free-form, exchanging ideas and questions. If there is interest, I could explain and de

Re: PicoLisp in Wikipedia

2020-06-29 Thread Alexander Burger
On Mon, Jun 29, 2020 at 08:08:53AM -0400, r cs wrote: > Sure Alex, I would be happy to do that. Great! Thanks a lot! :) It would be really nice if you, Jon, and perhaps others, could improve that page. It is very bad as it is currently. Any ideas are welcome! ☺/ A!ex -- UNSUBSCRIBE:

Re: PicoLisp in Wikipedia

2020-06-29 Thread Alexander Burger
Hi Jon, cool, thanks a lot! > I can edit that page, if you tell me when and what to write. I see that the > “Stable release 20.6” is now in the box on the right. Yes, indeed, so it is adjusted already: | latest release version = 20.6 | latest release date = {{Start date and

PicoLisp in Wikipedia

2020-06-29 Thread Alexander Burger
Hi all, today I released picoLisp-20.6. During those releases every half year, I also fix every time the "latest release version" and "latest release date" in the PicoLisp page in Wikipedia https://en.wikipedia.org/wiki/Picolisp However, since quite sime time, Wikipedia complains: A

Re: Bug?

2020-06-21 Thread Alexander Burger
On Mon, Jun 22, 2020 at 05:27:37AM +, Shaughan Lavine wrote: > Does something have to be allowed for forms.l to work? I'm getting > '*Get [::1] not allowed'. That's right. Some global variables used in HTTP transactions need to be allowed. But this is done automatically in the first few lines

Re: Bug?

2020-06-21 Thread Alexander Burger
Hi all, > OK, thanks, It isn't worth trying to modify the reader. I'll just add the > decimal point while processing the input. It is not a good idea to use the Lisp reader in a GUI. Imagine what a malicious user can do with read macros! She could enter things like `(call "sh" "-c" "rm -r *").

Re: Fridays for Functions (Was: PilCon 2020)

2020-06-18 Thread Alexander Burger
Hi all, On Wed, Jun 03, 2020 at 07:54:22AM +0200, 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 most time > zones. No big planning and schedule. Let's start with

Re: Permissions problem

2020-06-16 Thread Alexander Burger
Hi Shaughan, > I have a permissions problem: When I run pil @lib/form.l+ I get: > [/usr/lib/picoLisp/lib/form.l:2657] … @doc/form/refD.html" -- Open error: > Permission denied .. > Everything works fine without the + OK. This is because only in debug mode the tail if lib/form.l is loaded:

Fridays for Functions (Was: PilCon 2020)

2020-06-02 Thread Alexander Burger
Hi all, after we canceled PilCon 2020, we discussed in this list and in IRC the idea of doing something online instead. Some people proposed Jitsi. A linear format of just streaming presentations is a bit uninteresting. This could be done in a Youtube channel. What do you think about a free-form

Re: Native callbacks in PicoLisp

2020-05-22 Thread Alexander Burger
Hi Kashyap, > In the section about callbacks ( > https://software-lab.de/doc/native.html#funptr) it is not explicitly > mentioned that the callback (lisp ...) cannot be called from a different > thread. Yes, the docs nowhere mention threads, as they are not an issue in PicoLisp. It rather uses

Re: picoLisp 19.12: variable length array in structure fixes

2020-05-22 Thread Alexander Burger
Hi Andras, > The code at https://github.com/pahihu/picoLisp > fulfils Mike’s super > goal - all pil64 specific tests passed as well. It has namespaces, > native C calls and coroutines and the documented features of > pil64 - except the external symbol and

Pil21 can bootstrap

2020-05-17 Thread Alexander Burger
Hi all, a short note about the Pil21 status: It can now bootstrap by itself, meaning that it does no longer need another PicoLisp to build the *.ll and *.bc files from the sources. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

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

2020-05-16 Thread Alexander Burger
On Sat, May 16, 2020 at 05:06:31PM +0200, Alexander Shendi (Web.DE) wrote: > Can't you simply bounce his mails? I'm afraid handing matters over to the > police isn't going to be effective. It is all not effective I believe. I just ignore it ... ☺/ A!ex -- UNSUBSCRIBE:

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

2020-05-16 Thread Alexander Burger
On Sun, May 10, 2020 at 04:06:47PM +0200, pd wrote: > Thanks Alex for your absolute amazing and beautiful work and dedication. Thank you all too! For me it is a lot of fun :) > Fortunately noise is over and list returns to pure signal. Yes indeed! Unfortunately for me it is not over. Guido

Re: native/lisp in picolisp32

2020-05-08 Thread Alexander Burger
On Fri, May 08, 2020 at 06:42:33PM +0200, Alexander Burger wrote: > Yes, miniPicoLisp and Ersatz do not depend on POSIX. Mini just uses the C > standard I/O stuff. "POSIX" basically means "Unix". It means processes (yes, fork()) and process groups, terminal handling, si

Re: native/lisp in picolisp32

2020-05-08 Thread Alexander Burger
On Fri, May 08, 2020 at 09:28:36AM -0700, C K Kashyap wrote: > again, miniPicoLisp is also POSIX compliant right - but it uses a very > narrow slice of the POSIX API. Or am I understanding POSIX wrong here? Yes, miniPicoLisp and Ersatz do not depend on POSIX. Mini just uses the C standard I/O

Re: native/lisp in picolisp32

2020-05-08 Thread Alexander Burger
Hi Kashyap, > If I remember correctly - pil21 initially did not have the POSIX > requirement. Is there a way to get older versions of pil21 (I know that it > is a strange request for a POC :) ) How do you mean that? Pil21 is not even finished for the first version. But anyway it was always

Re: native/lisp in picolisp32

2020-05-08 Thread Alexander Burger
Hi Kashyap, > I think I have fully digested gen3m.c at this point :). I am now trying to > figure out how to do FFI min miniPicoLisp and I realized that only pil64 > has native/lisp support. Is there any reason it could not be done in the > 'c' implementation of pil32? Pil32 and miniPicoLisp are

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

2020-05-06 Thread Alexander Burger
Hi Guido, On Wed, May 06, 2020 at 08:35:33PM +0200, Guido Stepken wrote: > Perhaps you *all* learn, what a JIT compiler really is, in difference > to a AOT Ahead of Time Compiler. > > https://en.wikipedia.org/wiki/Just-in-time_compilation > > Make ZEROpointZERO sense then to let Picolisp do,

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

2020-05-06 Thread Alexander Burger
Hi John, > Just wanted to tell you how much I appreciate your work. I hope you find a > blowhard like Guido amusing and not too irritating. I get the impression > he’s hardly written a line of code in his life, and that was probably in > Java. Thanks a lot John! :) ☺/ A!ex -- UNSUBSCRIBE:

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

2020-05-06 Thread Alexander Burger
On Wed, May 06, 2020 at 12:51:33PM +0200, Guido Stepken wrote: > Use Mike's DYNASM JIT Engine. Better, faster, smaller (tiny, in comparison > to LLVM), more portable. He's from Munich. Useless. Sigh! How often have I told here that the main purpose of pil21 is portability? I need it to build

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

2020-05-06 Thread Alexander Burger
On Wed, May 06, 2020 at 09:55:08AM +0200, Guido Stepken wrote: > Lisp, as functional language, should > better be implemented in a functional language Point for pil21 :) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Structure sharing bignums in pil32

2020-05-03 Thread Alexander Burger
Hi Andras, > I would like to ask that structure sharing is used in pil32 bigNums or not ? > In doSub(), doAbs() it uses structure sharing, but otherwise in big.c > it copies the argument then modifies it. Correct. And also in pil64 and pil21. All other arithmetic operations except add/sub

Re: divmod?

2020-05-02 Thread Alexander Burger
Hi Wilhelm, > 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? No, there is not. I thought about it initially, but found that it makes no sense

Re: Formatting in the REPL?

2020-05-02 Thread Alexander Burger
Hi Wilhelm, > Picolisp, and I'm wondering if there is a way > of teaching the REPL to invoke some formatting > function when displaying an object instance? Perhaps by setting '*Prompt'? ww https://software-lab.de/doc/refP.html#*Prompt ☺/ A!ex -- UNSUBSCRIBE:

Re: miniPicoLisp cons(Nil, Nil);

2020-05-02 Thread Alexander Burger
Hi Kashyap, > Could you please tell me why we have the cons(Nil, Nil); in gen3m.c right > after insert(, "NIL", romSym("NIL", "(Rom+1)")); ? This allocates a dummy cell, required by 'NIL'. From doc/structures you see NIL: / | V +-+-+-+-+

Pil21 Status

2020-05-01 Thread Alexander Burger
Hi all, pil21 reached the first milestone: It passes the bignum tests in @misc/bigtest :) Next goal is self-bootstrap ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Does anybody use repo bitbucket.org/mmamkin/picolisp?

2020-04-30 Thread Alexander Burger
Hi Mansur, > I am going to remove one of the automated mirror PicoLisp repos: > https://bitbucket.org/mmamkin/picolisp/ because Bitbucket will remove > Mercurial support soon. That's a pity! Lots of thanks for support and maintenance!! ☺/ A!ex -- UNSUBSCRIBE:

Re: PilCon 2020

2020-04-27 Thread Alexander Burger
Hi Tomas, > > Would it make sense to plan an online conference instead? We are playing > > around > > with Jitsi Meet currently. Any thoughts? > > I tried Jitsi and it seems broken on NixOS (throwing some Java exception > about a DNS class not found). We used Jitsi a lot during the last weeks.

Re: Digging into Symbols

2020-04-27 Thread Alexander Burger
On Mon, Apr 27, 2020 at 02:38:35PM -0700, Wilhelm Fitzpatrick wrote: > > Correct. The first character(s) need to be accessed more prominently. > > > Hmm... because checking the first > byte/character is just a mask, rather than > shift & mask? Yes, but most of all it concerns the first up to 8

Re: Digging into Symbols

2020-04-27 Thread Alexander Burger
Hi Wilhelm, > that (get ...) has a side effect! It moves the > key that was accessed to the head of the > symbol "tail". I assume this is a performance > optimization to cause recently accessed > properties to "bubble up" to the front of the > list in case they are re-accessed soon. Yes,

Re: MiniPicolisp Questions

2020-04-22 Thread Alexander Burger
Hi Kashyap, > Quick question - when you mentioned "doubling of space" - perhaps you were > talking about systems that can only have WORD aligned pointers - is that > correct? Not only. Also on a byte-addressed machine, imagine if you make a cell of two 9-byte words, you get every cell aligned at

Re: MiniPicolisp Questions

2020-04-22 Thread Alexander Burger
On Wed, Apr 22, 2020 at 03:49:41PM +0200, Guido Stepken wrote: > Well, we have year 2020, not Dijksra 1978. Even embedded systems have a MMU > and you get "Memory Access Violation", so no pointer rage checks needed to > be handled by CPU any longer. Sigh, you don't understand at all how a Lisp

Re: MiniPicolisp Questions

2020-04-22 Thread Alexander Burger
Hi Geo, > I think you mean 0xF000 for everything? This is indeed cool! but hmm does > it limit the memory for each data type? Yes, what Guido writes is nonsense. Fixed-sized address spaces are a terrible solution. Doesn't scale, and is extremely inefficient due to the necessary pointer range

Re: MiniPicolisp Questions

2020-04-21 Thread Alexander Burger
Hi Kashyap, > About the the CELL having an additional byte, I meant that the CELL size > would be 2*WORD + 1... that should work too right? I would not need any > masking in that case. I see. Yes, that would work. But it would either double the memory usage, or require some management of this

PilCon 2020

2020-04-21 Thread Alexander Burger
Hi all, yesterday the Oktoberfest, the largest annual event in Bavaria, was canceled. I think we will also have to cancel the other large event, PilCon. It is not sure whether such events will be allowed legally by end of July, and how the international travel situation will be. I hope this is

Re: MiniPicolisp Questions

2020-04-21 Thread Alexander Burger
Hi Kashyap, > 1. About RAM vs ROM. Call me lazy but I would really appreciate a > description of how the RAM vs ROM decision is taken here (and in general > too..I mean, it is not clear to me how gen3m.c determines how something is > never written to or not) > if (x > 0) >

Replace LLVW - Was: Stop using US controlled software stacks!!!

2020-04-20 Thread Alexander Burger
Hi Guido, On Sun, Apr 19, 2020 at 06:41:31PM +0200, Guido Stepken wrote: > But this is not the point. The point is, that MetaCola was a code > generator, where you can implement whole programming languages within just > a few lines of code. > ... > OMeta Parser/Interpreter has been translated

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Alexander Burger
On Sun, Apr 19, 2020 at 06:10:25PM +0900, George-Phillip Orais wrote: > You mentioned nokolisp, I also tried that and from what I remember the > source code was only runnable on an old DOS? Then 8kLisp is even better: https://software-lab.de/8kLisp.tgz It run on CP/M, and the whole

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Alexander Burger
Hi Guido, > Look at LLVM generated bloat and compare with Nokolisp. Less is more!!! In > terms of size as well as of security. True, LLVM is huge (as is gcc, and other equivalent systems), but this is irrelevant because I *use* it only to translate *my* code. The generated pil21 'picolisp'

Re: Stop using US controlled software stacks!!!

2020-04-18 Thread Alexander Burger
Hi Guido, > Using US software stacks, even if open source and under a free license are > not tolerable. For any nation, for any kind of project. Then no software stack, from anywhere, is tolerable. In case of pil21, where is the problem? I use Lisp to generate LLVM-IR, then the llvm assembler

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-18 Thread Alexander Burger
Hi Andras, > If you are interested I have patched the 19.12 32bit sources to compile > without GCC. > I have attached the changed files: pico.h, main.c, apply.c and flow.c Thanks a lot! > Since clang does not support variable length array in structures I allocate > the bindFrame > with

Re: Latest pil21 under OpenBSD 6.6-STABLE

2020-04-17 Thread Alexander Burger
Hi Rick, > > > The latest pil21 (with I/O fns) under OpenBSD/amd64 6.6-STABLE (and most > > > probably other BSD-platforms) requires patches to build lib.bc from > > > lib.c. It isn't very much, 5 lines or so. > ... > I second that. And thank you, both Alexanders! :) Done via PM yesterday :)

Re: Latest pil21 under OpenBSD 6.6-STABLE

2020-04-14 Thread Alexander Burger
Hi Alexander, > The latest pil21 (with I/O fns) under OpenBSD/amd64 6.6-STABLE (and most > probably other BSD-platforms) requires patches to build lib.bc from lib.c. It > isn't very much, 5 lines or so. > > If there is any interest, let me know, I can send the changes tomorrow. I'm > too

Re: pil21 language reference?

2020-04-13 Thread Alexander Burger
Hi Guido, > Where are the tests? What tests do you mean? ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pil21 language reference?

2020-04-13 Thread Alexander Burger
Hi Alexander, > I have now compiled pil21 on OpenBSD-6.7-beta/arm64 (aka -current), mainly by > copying the files over from amd64. Perfect. > I have an additional question. Is the a pil21 language reference? Can I use > the pil64 docs? Which functions are missing? There is no reference yet.

Re: Pil21 on Linux Mint/aarch64

2020-04-13 Thread Alexander Burger
Hi Karl-Heinz, > resulting Errormessage gave the used version of llvm* as 6.0., this is > the default installed version on Mint. After throwing out default > install (-6.0), install of version 9 and some tidying up, calling make > resulted in a working picolisp 21. Great, thanks for the info!

Re: Pil21 on NetBSD9/aarch64

2020-04-13 Thread Alexander Burger
On Mon, Apr 13, 2020 at 11:05:52AM +0200, Alexander Shendi (Web.DE) wrote: > The build of the Emu picolisp variant does not work for me. It first compiles > a program called sysdefs, then crashes because it can't find emu.code.l. If > you do > . /sysdefs > emu.code.l the it fails with another

Re: PicoLisp Sources

2020-04-13 Thread Alexander Burger
Hi Geo, > Would that be the 'car' from the running pil64? No, it is a different symbol, defined in the 'llvm' namespace (see my previous mail). ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PicoLisp Sources

2020-04-13 Thread Alexander Burger
Hi Tomas, > ># (car 'var) -> any > >(de _car (Exe) > > (car (needVar Exe (eval (cadr Exe ) > > ^ > what is this car? It is a function defined in "src/lib/llvm.l": (asm () ((X) (ssa (inc '*Ssa) "inttoptr i64 " X " to i64*") (ssa (inc '*Ssa)

Re: Pil21 on NetBSD9/aarch64

2020-04-12 Thread Alexander Burger
On Sun, Apr 12, 2020 at 06:25:11PM +0200, Alexander Shendi (Web.DE) wrote: > 1. Yes, Makefile and lib.c as included in pil21/src. > ... > The problem is that I can't regenerate the bitcode files from the Lisp files. > Otherwise the executable seems to work fine. Good to know. Concerning the

Re: Pil21 on NetBSD9/aarch64

2020-04-12 Thread Alexander Burger
Hi Alexander, > Sorry to follow up on my own post, but with some hacking at lib.c and changing > the Makefile I was able to bootstrap a working picolisp binary. The lib.c and Makefile in pil21/src/? So it worked with emu? > However I can't seem to be able to regenerate the *.bc files from the

Re: Pil21 on NetBSD9/aarch64

2020-04-12 Thread Alexander Burger
Hi Alexander, > I have tried building pil21 under NetBSD 9/aarch64. I tried to use > Ersatz-picolisp under OpenJDK8 to generate the *.ll files to bootstrap pil21, > but it seems some language constructs used in llvm.l are not supported. Unfortunately, neither Ersatz, nor pil32 or miniPicoLisp

Re: Did you know? Webassembly Containers are (Pico-)Lisp machines!

2020-04-12 Thread Alexander Burger
Hi Guido, > All you need to do, is to let PicoLisp Interpreter convert PicoLisp Source > into that Lisp dialect, Webassembly VM does understand, and you're done! OK, if it is so easy, why don't you do it? Still it doesn't solve the portability issue. I want PicoLisp to run also in iOS (also

Re: Did you know? Webassembly Containers are (Pico-)Lisp machines!

2020-04-12 Thread Alexander Burger
On Sun, Apr 12, 2020 at 10:36:58AM +0200, Guido Stepken wrote: > Why porting Picolisp onto LLVM, when there already is a JIT compiler in > every Webassembly container, that accepts Lisp code? The answer is "portability" -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

PicoLisp Sources

2020-04-12 Thread Alexander Burger
On Sun, Apr 12, 2020 at 08:09:46AM +0200, Tomas Hlavaty wrote: > Rowan Thorpe writes: > > parentheses are not used because as is stated at > > https://picolisp.com/wiki/?src64 "Assembly language is not a > > functional language, i.e. the individual instructions do not "return" > > a value. So a

Re: Did you know? Webassembly Containers are (Pico-)Lisp machines!

2020-04-12 Thread Alexander Burger
Hi Rowan, > By the way what I love most about Picolisp is that it feels like as > good a hybrid as you can get between the "typical functional > lisp/scheme" mental model and something that feels "forth-like" in > terms of minimalism/precision/close-to-the-metal von-neumann >

Re: Interning symbols in lib/simul.l

2020-04-12 Thread Alexander Burger
Hi Bruno, > I'm studying lib/sumul.l, specifically the 'grid function. I understand how > it works now, but I have two doubts: > > 1) why are symbols in the grid interned? > ... >(if (> DX 26) > (box) >

Re: Porting Picolisp onto the simplest possible processor - The new SISC!

2020-04-10 Thread Alexander Burger
Hi Guido, > I've succeeded now to design my own CPU. I was curious, how many > instructions - e.g. from Intel Instruction Set Architecture- i could > ... > Only 1 - in words "ONE" - single instruction left: MOV. Yeah, this single instruction set fascinated me too, since the early 90s when we

Re: 64bit miniPicoLisp

2020-04-09 Thread Alexander Burger
On Thu, Apr 09, 2020 at 09:46:05PM -0700, C K Kashyap wrote: > gcc. Things work fine when I use gcc 7.5 or above on Linux. However, when I > use gcc 6.3, I find that some of the symbols are not found. I have not dug Not sure, this looks like an issue with linker options for exported symbols. ☺/

Re: miniPicoLisp/picoLisp difference

2020-04-09 Thread Alexander Burger
Hi Kashyap, > (let (A 1 (B . C) (2 3)) B) -> 2 > > where as in miniPicoLisp (compiled using gcc 7.5 on ubuntu with -m32 added > to gcc in the Makefile) I get NIL for the same expression. Is that expected? Yes, 'let' with list arguments (destructuring bind) is supported only in pil64. ☺/ A!ex

Re: minipicolisp with Microsoft C compiler

2020-04-09 Thread Alexander Burger
Hi Kashyap, > I just realized that picolisp source has tests and I am going to try and > find out how many of them are valid for miniPicoLisp. Yes, lib/test.l is a good way to start. But you musst probably throw out the larger part of it. > better way to get the tests for miniPicoLisp, please

Re: Vip screen resize

2020-04-09 Thread Alexander Burger
Hi Wojtek, > for some reason it won't allow me to exit insert mode. It worked fine > yesterday and I have no idea what changed. Initially I thought it > might be some escaping issue, i.e. Esc/C-[ being interpreted as some > other symbol, but it works fine for Vim (both Esc and C-[). What I'm >

Re: Vip screen resize

2020-04-08 Thread Alexander Burger
Hi Wojtek, > I typically use my Vip/Picolisp setup inside Tmux. I've noticed that when I Me too. I never have any shell session running without Tmux, neither locally nor remote. > resize the window occupied by Vip, it does not automatically adapt to the > new dimensions, nor could I find a

Re: Turtle graphics

2020-03-31 Thread Alexander Burger
Hi Alfonso, > during the last months I've been writing a > small library for drawing graphics using > commands like in Logo's turtle graphics. I'm > glad to share it with you all. It's hosted in > the following Bitbucket repository: > https://bitbucket.org/alfonsovillen/turtle/src/master/ Wow,

Re: Review request for the patch for 64bit compilation of miniPicoLisp

2020-03-25 Thread Alexander Burger
On Wed, Mar 25, 2020 at 10:09:19AM -0700, C K Kashyap wrote: > I see, if the assumption was long to be 64 bits then perhaps all the > "long"s in the code should be changed to int64_t I see that there are > several usages of long in the code other than the couple of places I > changed. The

Re: Review request for the patch for 64bit compilation of miniPicoLisp

2020-03-25 Thread Alexander Burger
Hi Kashyap, > I've decided to try and extend miniPicoLisp with networking(or perhaps just > the capability to call into external program) to make it useful as a > scripting system that I can share with my colleagues. Please do let me know > if that's not a good idea. This is surely a good idea.

Re: Bug in rand

2020-03-25 Thread Alexander Burger
Hi Alfonso, > I've noticed that the "rand" function doesn't work with negative arguments: > > Version 20.3.16 > > : (rand -10 10) > > -> 1152921504606846966 > > Version 19.12.28 > > : (rand -10 10) > > -> -5 > > I don't know in which exact version the bug appeared. Oops, thanks a lot! This is my

Re: Local install problem

2020-03-25 Thread Alexander Burger
Hi Wilhelm, > 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. There is also a local 'pil' script, i.e. "picoLisp/pil". You can call it with an absolute

Re: Graph database

2020-03-13 Thread Alexander Burger
On Fri, Mar 13, 2020 at 10:22:12PM +0100, Alexander Burger wrote: > Perhaps this helps? https://software-lab.de/doc/tut.html#ext > > It is really very simple. Understanding PicoLisp symbols is perhaps the important point. https://software-lab.de/doc/ref.html#symbol The rest is ju

Re: Graph database

2020-03-13 Thread Alexander Burger
On Fri, Mar 13, 2020 at 04:02:44PM -0500, Lawrence Bottorff wrote: > Could you point me to a beginner's treatment of this topic, especially an > example of a graph database, and what exactly a picolisp pointer is? Perhaps this helps? https://software-lab.de/doc/tut.html#ext It is really very

Re: Graph database

2020-03-13 Thread Alexander Burger
Hi Lawrence, > I take it the picolisp graph database follows more the Neo4j property graph > idea than any RDF/OWL triples, correct? That seems obvious, but I thought > I'd check. I haven't dived in deep, buy you seem to use Lisp objects to > create a vertex. But then what are the edges? Again,

Re: List to Chunks of size N

2020-03-04 Thread Alexander Burger
Hi Kashyap, > I've written a function to break a list into chunks of size N - > > (de Chunks (Lst N) >(make > (while Lst > (link (head N Lst)) > (cut N 'Lst) ) ) ) This works, but 'head' and 'cut' both traverse the list, so the work is duplicated. Just 'cut'

Re: Assembler for RISC V

2020-02-19 Thread Alexander Burger
Hi Kashyap, > What would you recommend if I had to write an assembler for RISC V? Can I > look at llvm.l in pil21 or should I look at lib/asm.l in pil64? I would say that lib/asm.l is the way to go. It maps directly to a target assembly language (or C in case of 'emu'). llvm is a different,

Re: pil21 on macOS Catalina

2020-02-18 Thread Alexander Burger
On Tue, Feb 18, 2020 at 08:53:40PM +0900, Makoto Kimura wrote: > ... in the Apple world. Though I didn’t do much, I’ll just describe what I > did: Cool! Thanks a lot Mak! ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pil21, some progress

2020-02-16 Thread Alexander Burger
Hi Jean-Christophe, > Are there relatively trivial tasks that low-skilled people can help with ? Not sure if trivial, but LLVM code can (and has to?) be optimized on several levels. I have not found the energy yet to research that in detail. The main and only reference I used for the

Re: pil21, some progress

2020-02-14 Thread Alexander Burger
Hi Kashyap, > Hey Alex, I did a quick comparison of a couple of .l files (gc.l and > flow.l) between pil21 and the current src64 files. I was expecting the > assembly files to not have much changes - I mean, in theory, only an > arch/llvm.l and perhaps minor tweaks in some more file should have

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Kashyap, > "libffi-dev" instead of libffi since apt complained that it could not find > libffi. Good to know! > llvm-link: base.bc: error: Unknown attribute kind (60) (Producer: > 'LLVM9.0.1' Reader: 'LLVM 6.0.0') Oh! LLVM 6 is extremely old, isn't it? I have no idea how much LLVM changed

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Jean-Christophe and Kashyap, > Quick related question - I can build pl21 using LLVM target on Linux right? > I am planning to give it a shot on docker this weekend. It should require just these steps: apt install make clang llvm libffi pkg-config tar xfz pil21.tgz cd pil21 (cd

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Jon, > Great! Now it works. I just did a “(+ 2 3 4 5)” and got 14. ;-) Glad to hear that :) > What’s the most important things missing? Functions or stability? Stability is all right at the moment, though I did not do any significant testing. But concerning functionality, the largest part

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Jon, > I have now made some progress in building pil21 on my Mac. Good! :) > lib.c:7:35: warning: format specifies type 'unsigned long' but the argument > has type 'int64_t' > (aka 'long long') [-Wformat] >fprintf(stderr, "%s %lX\n", s, n); I see, that's an easy one. Just a

Re: Time to say goodbye

2020-02-10 Thread Alexander Burger
Hi Jon, > Does it mean that the standard macOS “make” is too old? (It’s possible.) No idea. I think any make is OK, no special requirements. > Have you considered implementing PicoLisp in Zig? > https://ziglang.org Also no idea, never heard of. No, the point is that I

Re: Time to say goodbye

2020-02-10 Thread Alexander Burger
On Mon, Feb 10, 2020 at 08:52:45PM +0100, Alexander Burger wrote: > On Mon, Feb 10, 2020 at 08:41:20PM +0100, Alexander Burger wrote: > > To build it, you need a 64-bit hardware, and install the packages > > > >make clang llvm lldb pkg-config > > Oops, and of cour

Re: Time to say goodbye

2020-02-10 Thread Alexander Burger
On Mon, Feb 10, 2020 at 08:41:20PM +0100, Alexander Burger wrote: > To build it, you need a 64-bit hardware, and install the packages > >make clang llvm lldb pkg-config Oops, and of course libffi ;( ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Time to say goodbye

2020-02-10 Thread Alexander Burger
On Mon, Feb 10, 2020 at 08:24:10PM +0100, Jon Kleiser wrote: > > Especially with Mac users in mind, I'm working on an LLVM version of > > PicoLisp > > (https://software-lab.de/pil21.tgz). You should be a little more patient ;) > > Now you got me curious! I had to try it right away; maybe a bit

Re: Time to say goodbye

2020-02-10 Thread Alexander Burger
Hi Jon, > I have not been an active PicoLisp user for quite some time. The main reasons > for that have been (a) the difficulties related to building PicoLisp for > macOS, Oh, that's a pity! Especially with Mac users in mind, I'm working on an LLVM version of PicoLisp

Re: Examples of quote usage instead of lambda

2020-02-06 Thread Alexander Burger
On Thu, Feb 06, 2020 at 12:41:51PM -0500, John Duncan wrote: > Yeah, it's explained in the reference manual: > ... > In contrast to other Lisp implementations, the symbol LAMBDA itself does > not exist in PicoLisp but is implied from context. > ... > Hope this helps a bit. Alex would probably

Re: Examples of quote usage instead of lambda

2020-02-06 Thread Alexander Burger
Hi Lawrence, > I've been a passive observer for a while, but now I'm really trying to grok > picolisp. Welcome! :) > So let's start with the FAQ bit about *I cannot find the LAMBDA > keyword in PicoLisp. *The example is basically syntax sugar for > > ((quote (X Y) (+ X Y)) 3 4) > > but this

Re: Constructing functions programmatically?

2020-02-01 Thread Alexander Burger
Hi Wilhelm, > Hello, I've recently stumbled across Picolisp > (while playing around with Termux) and have Welcome o/ :) > experimented with making a function to > generate incrementor functions, e.g. (make-inc > 2) would return a function that adds two to > its input. My current solution looks

Re: Using mime for htm & txt file extensions

2020-01-29 Thread Alexander Burger
Hi SuperSaiyan, > This is the improvised code which solves both: > > $ pil @lib/http.l @lib/xhtml.l -'(and(mime "txt" "text/plain; > charset=utf-8")(mime "htm" "text/html; charset=utf-8"))' --server 9092 tst.l This is not correct. -'(and (mime ...))' results in ((and (...))) and will most

  1   2   3   4   5   6   7   8   9   10   >