Re: Remove vla-member in anonymous bindFrame structs for clang compatibility

2018-08-09 Thread Alexander Burger
Hi Alex, > But it seems to be more like this: > src - 32bit version > src64 - 64bit version > - ./arch ./sys define platforms and architectures > - ./lib/asm.l defines an IR and implements an an IR -> ASM code generator > ersatz - java implementation 100% correct. > in order to build the

Re: Remove vla-member in anonymous bindFrame structs for clang compatibility

2018-08-09 Thread Alexander Burger
Hi Alex, > Unfortunately, that crashes with "abort trap: 6", same for some other tests. > I'll see if I can find out what the issue is there. Can it be that simply this single test fails? test/lib.l, line 21 ### abort ### (test 6 (abort 2 (+ 1 2 3))) giving an error like ((abort 2

Re: Remove vla-member in anonymous bindFrame structs for clang compatibility

2018-08-09 Thread Alexander Burger
Hi Alexander, > struct { > int vla[g()]; // vla-member, int array of size g() > } s; > The patch attached translates all uses of bindFrame as an anonymous struct > with a VLA-member to a combination of a regular byte-vla for memory and a > bindFrame pointer into that memory. Cool! I was

Re: Server-Sent Events

2018-08-06 Thread Alexander Burger
On Sun, Aug 05, 2018 at 01:56:25PM +0200, Alexander Burger wrote: > a new article explaining how to use Server-Sent Events in PicoLisp: > >https://picolisp.com/wiki/?ServerSentEvents Now I also added a section on how to use Server-Sent Events in PilBox. ♫ Alex -- UN

Server-Sent Events

2018-08-05 Thread Alexander Burger
Hi all, a new article explaining how to use Server-Sent Events in PicoLisp: https://picolisp.com/wiki/?ServerSentEvents ♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: test message

2018-08-03 Thread Alexander Burger
On Fri, Aug 03, 2018 at 06:04:28PM +, Loyall, David wrote: > > Off topic, but it would be really nice if you would not send HTML-*only* > > messages. > > Apologies! I understand the problem and I'll try to remember to select > 'Plain Text' mode in Outlook in the future. > > This message

Re: test message

2018-08-03 Thread Alexander Burger
On Fri, Aug 03, 2018 at 06:35:31PM +0200, Johann-Tobias Schäg wrote: > id="outgoing-font-settings">#response_container_BBPPID{font-family: initial; > font-size:initial; color: initial;} style="background-color: rgb(255, 255, 255); background-image: initial; > line-height: initial;">

Re: test message

2018-08-03 Thread Alexander Burger
On Fri, Aug 03, 2018 at 04:30:14PM +, Loyall, David wrote: > I have not received new picolisp mail for a while, so I am testing the > mailing list. Works. Can you see this reply? ♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: What parts of picolisp did you have the most trouble understanding?

2018-07-31 Thread Alexander Burger
Hi Arie, I agree with everything you wrote, except: > 1. mutability. Operations like 'cut' alter the contents of their > argument(s). So, it is very important to understand that in PicoLisp > 'functions' often are not functions in the mathematical sense, because > there arguments would never be

Re: Sorting a table

2018-07-23 Thread Alexander Burger
He Curtis, > The third tutorial, "Working with tables in PicoLisp", has the following > code to sort a table: > ... > Still, it seems so complicated. Is there a simpler way of doing this? Indeed! I wonder why there is so much and complicated code. You can do it all out of the box. : (setq

Re: Survey results

2018-07-21 Thread Alexander Burger
Hi Arie, > To avoid further noise, I'll contact those that (I think) volunteered to > (try to) help with the Wiki in private. > ... > - one is Alexander, who (I guess) likes to leave the layout to the > community members and will put things 'in production' Correct :) So more in PM ... —Alex

Re: Survey results

2018-07-17 Thread Alexander Burger
Hi Arie, > please find all survey results attached. Since a lot of comments were given > it maybe needs a bit of time to sink in before moving forward. Wow! Impressive! —Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: picolisp at last ?

2018-07-14 Thread Alexander Burger
Hi Olaf, > Outdated thread, but just to keep my promise: > - dusty rasp has 64bit picolisp running, examined by (== 64 64) ==> T > - *CPU shows 'emu' > Os is a 64bit archlinux. I see. So it built emu as it could not find a matching Makefile entry. A native version would be preferrable if

Re: how to determine pil 64bit/32bit version?

2018-07-13 Thread Alexander Burger
On Fri, Jul 13, 2018 at 12:08:55PM +0200, O.Hamann wrote: > Document string for (version flg) says: 'The JVM- and C-versions print an > additional "JVM" or "C",' > > Am I right, that a result list like (16 12 8) signals definitely a 64bit > picolisp version? No, this plain list (16 12 8) is

Re: A few questions from a confused lisper

2018-07-12 Thread Alexander Burger
Hi Johan, > First off, I'm confused about what the correct way of doing local exits. > There's no "return" or "return-from" -- instead the closest thing I've found > is "quit", which is sort of akin to "error" in CL Correct. There is no 'return' function jumping directly out of a nested

Re: p :- p. in pilog

2018-07-09 Thread Alexander Burger
Hi Bruno, > there is this rule in prolog: > p :- p. > That is infinitely recursive. If you query the database for > ... > How can you write p :- p. in pilog, so that it does the infinite loop that : (be p () (p)) : (? (p)) —Alex -- UNSUBSCRIBE:

Re: Repeated call to fill out the survey on changing the Wiki

2018-07-07 Thread Alexander Burger
On Sat, Jul 07, 2018 at 08:41:23PM +0200, Johann-Tobias Schäg wrote: > How many of those 193 did you talk to? Not talked to, but they may have read the call to fill out the survey. So a little more than 10% did so far. —Alex > > >   Ursprüngliche Nachricht   > Von: a...@software-lab.de >

Re: Repeated call to fill out the survey on changing the Wiki

2018-07-07 Thread Alexander Burger
On Sat, Jul 07, 2018 at 06:56:07PM +0200, Johann-Tobias Schäg wrote: > i find your active pushing of this survey very uncommon in this community. I > think 20 people are much. Well, depends ... this list currently has 193 members. —Alex -- UNSUBSCRIBE:

Re: Pilog unification of a nested predicate

2018-07-03 Thread Alexander Burger
Hi Bruno, > (be vertical (line (point @X @Y) (point @X @Z))) > (be horizontal (line (point @X @Y) (point @Z @Y))) > > and the query: > (? (vertical line (point 1 2) (point 1 3))) Yes, OK, but then I would rather go with: (be vertical ((line (point @X @Y1) (point @X @Y2 (be horizontal

Re: Pilog unification of a nested predicate

2018-07-03 Thread Alexander Burger
On Tue, Jul 03, 2018 at 12:21:13AM -0500, Bruno Franco wrote: > I had too many parentheses in the query. > > The correct form is: > (? (vertical line (point 1 2) (point 1 3))) No, this does not look right. We can't tell much unless we know all your definitions. —Alex -- UNSUBSCRIBE:

Re: Testing test.l

2018-07-03 Thread Alexander Burger
On Mon, Jul 02, 2018 at 11:06:07PM +0200, Joh-Tob Schäg wrote: > I recently got a windows pc and installed the linux simulation layer. I > ... > in @test/src/main.l are the following problems: > ... > > (unless (member *OS '("SunOS" "OpenBSD" "Cygwin" "AIX" "HP-UX" "IRIX64")) > >(sigio (setq

Re: Wiki css

2018-06-25 Thread Alexander Burger
Hi all, > after reading a few reactions and also my struggle to get things right (in > *my* opinion), I realize that it really is impossible to please everybody. > > Given the fact that also I seem to be the only person not liking the old > CSS and that the new CSS is a "regression" it is much

Re: Wiki - asking for last calls on fonts etc.

2018-06-25 Thread Alexander Burger
Hi Arie, > - don't limit the page to use 60% of the browser window, it's a waste > > of real-estate (too much whitespace on left/right). That technique > > should be reserved for blogs/articles. > > > > ​Well, that choice was made long ago by Alexander Burger him

Re: Proposal for Wiki CSS changes

2018-06-22 Thread Alexander Burger
Hi Arie, > well, I will try :) > But my knowledge of this kind of stuff is very limited ... > > This will take a bit of time. No hurry :) I'd recommend you ask in IRC if you are not sure about some of the details. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Proposal for Wiki CSS changes

2018-06-22 Thread Alexander Burger
Hi Arie, > please find attached the desired changes to the CSS. It is not clear to me what has to be changed, added or deleded. Can't you just send me the modified "wiki/lib.css"? Same for the other changes. Not clear which context is meant ... ♪♫ Alex -- UNSUBSCRIBE:

Re: Wiki - asking for last calls on fonts etc.

2018-06-18 Thread Alexander Burger
Hi Arie, > ok. That is out of my reach :) > > @Alex can we take that into account when updating the rest of the CSS? Yes, just let me know what you want to have changed. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PLEAC last part finished (File Access)

2018-06-16 Thread Alexander Burger
On Sat, Jun 16, 2018 at 03:56:15PM +0200, Arie van Wingerden wrote: > Or do you mean e.g. something line: > ./script mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PLEAC last part finished (File Access)

2018-06-16 Thread Alexander Burger
Hi Arie, > please have a look. > I am still not very sure about the read STDIN until EOF. Yes, the examples are a bit meaningless as they are now. > I created a small script, but when is EOF of STDIN really signalled??? Concerning stdinread: You need an (in NIL ..), because when the script

Re: PLEAC Pattern Matching ready

2018-06-16 Thread Alexander Burger
On Sat, Jun 16, 2018 at 02:28:11PM +0200, Alexander Burger wrote: > > ​?? What is wrong? > > Only the spacing of closing parens (chop "abcd efg") ) ) Concerning the indentation rules, the recommendation is to stay roughly close to the output format of 'pp' / 'pretty' ♪♫

Re: PLEAC Pattern Matching ready

2018-06-16 Thread Alexander Burger
On Sat, Jun 16, 2018 at 02:18:46PM +0200, Arie van Wingerden wrote: > >(de isalpha? (Lst) > > (fully > > '((C) > > (or (>= "Z" C "A") (>= "z" C "a")) ) > > Lst ) ) > > ​Great! Nice function. Didn't know that :)​ Yes, fully. But also (>= "Z" C "A") > >

Re: Question on PLEAC example

2018-06-16 Thread Alexander Burger
On Sat, Jun 16, 2018 at 02:05:33PM +0200, Arie van Wingerden wrote: ># Read STDIN till EOF > >: (setq Var (in NIL (till NIL T))) >This is a line >a peaceful line >it is not drunk >it drinks no wine ># Here I pressed ctrl+d which forces PicoLisp to end > > As discussed

Re: PLEAC Pattern Matching ready

2018-06-16 Thread Alexander Burger
Hi Arie, > please check chapter 6 on pattern matching. Thanks! : (de isalpha? (Lst) (not (find '((C) (and (or (< C "A") (> C "Z")) (or (< C "a") (> C "z" Lst))) This is a little inefficient, and the indentation

Re: idx, Rosettacode Word_count example

2018-06-15 Thread Alexander Burger
Hi Jon, > (de aB (W) (if (idx 'B W T) (inc (car @)) (set W 1))) > (de aC (W) (if (idx 'C W T) (inc (car @)) (set W 1))) > > I then did a couple of (aB 'foo) and then (aC 'foo), and noticed that the use > of aC interferred with the values registered by aB. I think one would need > separate name

Re: Tractatus Blaesicus

2018-06-13 Thread Alexander Burger
Hi Arie, > My idea was indeed to replace the current contents with something else. > Tractatus logico-philosophicus is a great suggestion (mind you, I didn'read > it yet ... :) Haha, me neither. I have the book, but never managed to get beyond the first three or four pages, and then jumped to

Re: Tractatus Blaesicus

2018-06-13 Thread Alexander Burger
On Wed, Jun 13, 2018 at 05:00:42PM +0200, Arie van Wingerden wrote: > So, I think there are 2 things to be done really: > > 1. a more attractive intro on the main Wiki page, which could use the > enhanced and extended text of Tractatus Blaesicus Yes, but the point is not the text, but the

Re: Tractatus Blaesicus

2018-06-13 Thread Alexander Burger
On Wed, Jun 13, 2018 at 12:05:38PM +0200, Arie van Wingerden wrote: > Of course it *is* useful, however, reading it is very tedious, not the > least because every time you wish to open a sub paragraph, the page "jumps" > to the top. It is intended to be opened and closed while browsing, so

Re: Tractatus Blaesicus

2018-06-13 Thread Alexander Burger
Hi Arie, > that is a very good idea. If Alex is OK I will try and do such thing. Sure. The point of the tractatus was also to demonstrate how easy it is to create such kind of interactive text, with a combination of HTML-generating code and static text. This cannot be expressed in the Wiki

Re: Wiki progress again: hashes

2018-06-13 Thread Alexander Burger
Hi Arie, On Wed, Jun 13, 2018 at 09:36:09AM +0200, Arie van Wingerden wrote: > Added that example. > You'd like it :) Thanks! :) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Wiki progress again: hashes

2018-06-12 Thread Alexander Burger
On Tue, Jun 12, 2018 at 04:39:34PM +0200, Arie van Wingerden wrote: > the 'hashes' section is now ready. Very good again! For "Inverting a Hash" there is - besides your version of 'cons'ing CDRs and CARs to an inverted association list - now also a direct way: The 'rassoc' (reverse assoc)

Re: Question on PLEAC hashes example

2018-06-12 Thread Alexander Burger
Hi Arie, > This example (in "Traversing a Hash"): > >#- ># download the following standalone program >#!/usr/bin/picolisp /usr/lib/picolisp/lib.l > >(load "@lib/misc.l") > >(in (opt) > (until (eof) > (when (match '(~(chop "From: ")

Re: Failing example PLEAC

2018-06-12 Thread Alexander Burger
On Tue, Jun 12, 2018 at 02:41:27PM +0200, Arie van Wingerden wrote: > the attached program dutree.l seems to misbehave in Windows WSL. > > Would you please verify that it works correctly under native Linux? Yes, seems to work fine. I did: $ pil dutree.l . ♪♫ Alex -- UNSUBSCRIBE:

Re: Wiki progress ...

2018-06-12 Thread Alexander Burger
Hi Arie, > the page on "Arrays" is ready. This was quite abit of work :) Looks very good! I'm really impressed! > @Alex Would you please check this page? Sure :) It says This is the first line. And this the second. A fourth line. Is this intended? Or is the third line missing? ;)

Re: Stuck at PLEAC example

2018-06-10 Thread Alexander Burger
On Sun, Jun 10, 2018 at 02:13:10PM +0200, Arie van Wingerden wrote: > Please give a complete example! I would do it this way: (setq Employees '(emp1 emp2 emp3 emp4 emp5)) (mapc put Employees '(name .) '("Abel" "Jones" "Millner" "Noles" "Zaphod") ) (mapc put

Re: Wiki progress

2018-06-09 Thread Alexander Burger
On Sun, Jun 10, 2018 at 07:04:44AM +0200, Alexander Burger wrote: > In the DB GUI of the wiki (you get there after logging in, and going to "My > account"), there is a menu entry "Upload". Here you can upload another logo or > CSS file. Another, probably simpler and

Re: Wiki progress

2018-06-09 Thread Alexander Burger
Hi Olaf and Arie, > Per accident I stumbled on the possibility of adding a per elemnt CSS > style, since it wasn't documented at that moment. I added that to the Wiki > doc here: https://picolisp.com/wiki/?help > > Maybe there is a way to define classes etc. and use those. > I guess Alex would

Re: Subscribe

2018-06-09 Thread Alexander Burger
On Sat, Jun 09, 2018 at 03:20:19PM +0200, Johan Persson wrote: > I suppose the subject suffices? Yes, perfect! :) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Simulate EOF in terminal ...

2018-06-08 Thread Alexander Burger
Hi Arie, > For some examples it isn't clear how they should be run. > They are not "ready to run" straight away. > > Since I try to make the examples approachable, I strive to also give the > code (and/or data) to make such examples work. > > In this case I guessed that the example could use

Re: Simulate EOF in terminal ...

2018-06-08 Thread Alexander Burger
Hi Arie, > when (e.g.) executing this code in a terminal, which expects typed input, I > can't manage to simulate an EOF in the terminal: > > (until (eof) >(prinl (glue " " (flip (split (line) " " ) This is not possible. Standard input cannot be closed, and then continued in the

Re: picolisp at last ?

2018-06-06 Thread Alexander Burger
On Wed, Jun 06, 2018 at 10:43:39PM +0900, Jean-Christophe Helary wrote: > Btw, it is PL 1.6 that is in the Debian repositories. Hmm, there was never a version 1.6 - perhaps 16.2? In any case, it looks like you installed an ancient (means: stable) Debian. Both the testing (buster) and unstable

Re: picolisp at last ?

2018-06-06 Thread Alexander Burger
Hi Jean-Christophe, > I installed Debian in a virtual environment and then picolisp. > I'm going to remove all the cruft to only keep a terminal and the like. This (Debian in a VM) is probably the best way. Thanks for the info! ♪♫ Alex -- UNSUBSCRIBE:

Re: Another PLEAC question

2018-06-06 Thread Alexander Burger
Hi Arie, > For now I'll leave this one out and put it on a todo list. Yes, this is better. I do even think that you don't need to put it onto the todo list, as it is not a very helpful example. > Please have a look if the rest in that section is ok! Yes. The rest of datesandtimes.html I have

Re: Another PLEAC question

2018-06-05 Thread Alexander Burger
Hi Arie, > first I tried a GMail mail header, but that contains loads of extra stuff. > Then I copied a sample header from here > https://www.forensicswiki.org/wiki/Email_Headers#Sample_Header but using > that doesn't show any results. You are right. It seems the example matches only a very

Re: Another PLEAC question

2018-06-05 Thread Alexander Burger
Hi Alex, > on page http://pleac.sourceforge.net/pleac_picolisp/datesandtimes.html near > the end is the program 'hopdelta'. > > It seems there should be some input file called 'header'. Uh, I don't remember at all. Seems I did that in 2011, still have those sourcer. However I don't have that

Re: Stuck on function 'expDat' on PLEAC

2018-06-05 Thread Alexander Burger
Hi Arie, > (at least under Windows WSL) the function 'expDat' does not seem to work as > expected. > > My results: >: (expDat "31") >-> NIL We have June with only 30 days ;) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Wiki progress on PLEAC examples

2018-06-04 Thread Alexander Burger
Hi Arie, > now the first 2 parts (Strings and Numbers) are complete. > > Here and there I had to change things a little and also to add a few > comments. Very nice, and well done! A huge piece of work. I think it looks all OK, I could not find any obvious mistake. This is becoming a really

Re: Another question on PLEAC docs

2018-06-03 Thread Alexander Burger
Hi Arie, > It appears to be related to rounding. > Please explain or point me to the correct docs :) Please take a look at Rick Hanson's excellent explanation: https://the-m6.net/blog/fixed-point-arithmetic-in-picolisp.html ♪♫ Alex -- UNSUBSCRIBE:

Re: Help needed on your soundex example

2018-06-03 Thread Alexander Burger
On Sun, Jun 03, 2018 at 02:17:45PM +0200, Arie van Wingerden wrote: > It was a bit of a hassle to find a nice example, but I came up with this: > ... >: (let (InHostname (clip (in NIL (line T))) InHostnameSoundex (soundex > InHostname)) > (println "InHostname:" InHostname "

Re: PicoLisp library docs

2018-06-02 Thread Alexander Burger
Hi Arie, > in the PLEAC docs there are a few references to functions in separate > libraries. > > Are those library functions referenced somewhere on the web? I'm afraid they are not ... > If those reference do not exist, they maybe should be added I think. True ♪♫ Alex -- UNSUBSCRIBE:

Re: Help needed on your soundex example

2018-06-02 Thread Alexander Burger
Hi Arie, > since I notice that getpwent seems to disbehave under Windows WSL I'll > leave the following out if you agree: > > (let (User (clip (in NIL (line T))) Code (soundex User)) >(while (native "@" "getpwent" '(S S I I S S S)) # 'native' only in I see. 'getpwent' is Unix-specific. On

Re: Another question on PLEAC docs

2018-06-02 Thread Alexander Burger
On Sat, Jun 02, 2018 at 07:05:31PM +0200, Arie van Wingerden wrote: > the results of the functions below do not reflect the common outcomes in > math AFAICT. > > : (deg2rad 90) > -> 2 > > Result 2 where I expected something like 1.5707963268. You should try (deg2rad 90.0) :) ♪♫ Alex --

Re: Help needed on your soundex example

2018-06-02 Thread Alexander Burger
Hi Arie, > Well, then this might be a better show off: > > : (soundex "Smith") > -> "S530" > : (soundex "Smithe") > -> "S530" > : (soundex "Smyithe") > -> "S530" > > because that shows what soundex is really about, don't you think?! Exactly. Mapping "similar" names to the same key. In German,

Re: Help needed on your soundex example

2018-06-02 Thread Alexander Burger
Hi Arie, > just started on the "Soundex Matching" example here: > http://pleac.sourceforge.net/pleac_picolisp/strings.html > > It looks like a nice program, however, it doen't state what kind of input > it expects :) Typically personal names, but can be any string: : (soundex "Hello World")

Re: Wiki progress update ...

2018-06-02 Thread Alexander Burger
Hi Arie, > The first section of PLEAC (Strings) is now at about 76% ready. > ... > Some examples are rewritten a little, in order to make it easier for people > to just copy and paste the code to see what happens. > > I took great effort to verify each and every example. Pefect! Indeed a *lot*

Re: Wiki progress ...

2018-05-28 Thread Alexander Burger
On Sun, May 27, 2018 at 05:03:19PM +0200, Arie van Wingerden wrote: > Hi all, > > started to put all PLEAC examples in the Wiki, inorder to preserve the > material in case PLEAC vanishes sometime, because it is not updated often > anymore. You could say that is was substituted in some way by the

Re: Understanding spacing in Wiki edit

2018-05-26 Thread Alexander Burger
Hi Arie, > checked the source and *did* find one thing missing :-) > > > ("$" # CSS style > > ( (cons 'style (till "^I^J^M}" T)) > > (char) > > (recurse T) ) ) Haha, perfect! I did not remember, sorry! :) > This was what I saw being used here: >

Re: Understanding spacing in Wiki edit

2018-05-25 Thread Alexander Burger
centering, colors etc.) There ain't any :) ♪♫ Alex > 2018-05-25 18:08 GMT+02:00 Alexander Burger <a...@software-lab.de>: > > > On Fri, May 25, 2018 at 05:54:00PM +0200, Arie van Wingerden wrote: > > > Solved! > > > >

Re: Understanding spacing in Wiki edit

2018-05-25 Thread Alexander Burger
On Fri, May 25, 2018 at 05:54:00PM +0200, Arie van Wingerden wrote: > Solved! > > instead of writing: > > :{ > > lines of code > > ... > > ... > > } > > > > New section > > > > I should write: > > :{ > > lines of code > > ... > > ...} > > New section I always used it in two ways. 1. Inline

Re: Request

2018-05-25 Thread Alexander Burger
Hi Arie, > OK. Maybe it then should be in that readme? The README file has no http links. And just "WSL" would not be understandable probably. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Understanding spacing in Wiki edit

2018-05-25 Thread Alexander Burger
Hi Arie, > I can't get spacing between lines as I want it. > Tried with just empty lines and also with &{n}. Strange, why should this not work? "&{n}" is fine. > I'd like to have exactly one blank line before each underlined line. > https://picolisp.com/34809/7667136248745052~?pce-de-function

Re: Request

2018-05-25 Thread Alexander Burger
On Fri, May 25, 2018 at 02:04:02PM +0200, Arie van Wingerden wrote: > maybe it is useful to reference the Windows WSL installation Wiki page also > here: >https://software-lab.de/down.html > > The link is: >https://picolisp.com/wiki/?WSL Yes. However, I just notice that down.html

Re: Public link to my PicoLisp notes in EvenNote

2018-05-25 Thread Alexander Burger
On Fri, May 25, 2018 at 01:23:00PM +0200, Arie van Wingerden wrote: > I've rewritten the article, but not yet on the Wiki. I cleaned up a lot of > unnecessary markup stuff. > I'll post it within this mail.Please comment before I put it up on the Wiki! OK >- nil and t are just symbols (yoy

Re: Public link to my PicoLisp notes in EvenNote

2018-05-25 Thread Alexander Burger
Hi Arie, > In order to get things right, I will rewrite the article and put it on the > Wiki. > Personally I find this a very nice way to try and also learn a lot, even > with "very uninteresting functions". Indeed! And "uninteresting" was perhaps the wrong word :) ♪♫ Alex -- UNSUBSCRIBE:

Re: Public link to my PicoLisp notes in EvenNote

2018-05-25 Thread Alexander Burger
Hi Arie, > here is the public link: >https://www.evernote.com/pub/hotcore/picolisp > > There are 2 ways to use it: > 1. just use the link in a browser A bit tedious is that evernote needs JavaScript. I have JS off by default in Chrome, and use I mostly w3m anyway. A few notes: "nil is

Re: Ins and outs of the 'de' function

2018-05-24 Thread Alexander Burger
Hi Arie, > Today, I tried to approach one function (de) in a structured manner and > wrote it down. > > If and only if such things will be appreciated, I intend to continue bit by > bit to create some useful docs with examples and a bit of extra explanation This will surely be appreciated! And

Re: Aha moment :-)

2018-05-23 Thread Alexander Burger
Hi Arie, > Playing around I got this surprise: > I wanted to set variable x to value '(1 2 3 4): > 1. first try (without RTFM): > ... > 2. second try (superficially RTFM) > ... > 3. third try (now RTFM) Yeah, as you see, PicoLisp is radically different both from CL and Scheme :) >: (de x

Re: Latest (better) way to install PicoLisp on Windows WSL + Question

2018-05-20 Thread Alexander Burger
Hi Arie, > Maybe this could put on the Wiki (and replace the Flinux thing, which > appears to be broken). > Is Alex the maintainer, or also a community thing to do this? Anybody can do - just click on "Log in" and then "Create account". ♪♫ Alex -- UNSUBSCRIBE:

Re: Subscribe

2018-05-20 Thread Alexander Burger
Hi Arie, > Could not leave PicoLisp alone. I *have* to dig in. Great! Welcome back! ☺/ ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

[SOLVED]: PilBox IOException "No such file"

2018-04-20 Thread Alexander Burger
Hi all, On Wed, Apr 18, 2018 at 02:30:35PM +0200, Alexander Burger wrote: > I have a customer with Samsung Xcover 4 devices, and they get an IOException > 'Cannot run program "bin/picolisp" ... No such file'. Now I received an Xcover 4 and could take a closer look. The reason wa

Re: Strange behavior with 'httpGate'

2018-04-18 Thread Alexander Burger
Hi Erik, > Everything works so long as I'm logged into the server and have restarted > httpGate or started the picolisp process manually (same as httpGate does). > > Calling external functions is broken, once I've logged out and left Hmm, this looks like it has to do with the runtime

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 03:54:56PM +, David Bloom wrote: > I'm not certain that is relevant but I did run into issues with pil in > termux that was corrected with the page below. There's a newer fix on the > page linked below but I've been using termux-fix-shebang successfully for > about a

Re: 32 vs 64 bit ???

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:37:47PM +0200, Manuel Cano wrote: > I've found this also when having problems with the interpreter (bash.) > May be file encoding or end line chars. > > https://unix.stackexchange.com/questions/27054/bin-bash-no-such-file-or-directory Hmm, "#!/bin/bash no such file or

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:31:42PM +0200, Arie van Wingerden wrote: > It might have to do with a change in Android 7: > > https://developer.android.com/about/versions/nougat/android-7.0-changes.html > read paragraph: >File system permission changes OK, but I have it running on 7 and 8

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:11:43PM +0200, Arie van Wingerden wrote: > I really think the device should be debugged to find the problem. Yep, I will try to get one. > Last 2 things: > 1. could it have to do with moving the App to an SD Card? Thought so too, but the screenshot of the error shows

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 05:07:35PM +0200, Richard Z wrote: > maybe the binary has the name or link to the dynamic linker hardcoded and > it has a different name on this system? This could perhaps be. The glibc library. But from what I tested I think we would see a different error message. ♪♫

Re: Similar error on Android

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:33:36PM +0200, Arie van Wingerden wrote: > Found similar error here: > https://stackoverflow.com/questions/49660145/error-2-no-such-file-or-directory-when-hosting-an-executable-within-android-a This code is problematic. Runtime.getRuntime().exec("/system/bin/chmod

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:43:55PM +0200, Arie van Wingerden wrote: > I just checked that both CPU and GPU of that device are both 64 bit. > Is it possible they somehow use a 32 bit version op PILBOX? This is checked by PilBox at startup with System.getProperty("os.arch") > I searched in Google

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 04:19:16PM +0200, Arie van Wingerden wrote: > Maybe there is restricted access higher up in the path? But it is the app's home directory (in Android each app is its own user). And it works on all other devices. ♪♫ Alex -- UNSUBSCRIBE:

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi Arie, > trying to help you out ... Good :) > https://stackoverflow.com/questions/47726155/java-io-ioexception-cannot-run-program-adb-exe-createprocess-error-5-access-is > > Which concerns Windows, but similar error. > So, maybe might have to do with user rights on the PicoLisp executable

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi Richard, > > I have a customer with Samsung Xcover 4 devices, and they get an IOException > > 'Cannot run program "bin/picolisp" ... No such file'. > > did you try the absolute path? Yes. The Android way, by calling 'getFilesDir().getPath();'. This gives the absolute path to the app's

Re: PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
On Wed, Apr 18, 2018 at 02:48:21PM +0200, Arie van Wingerden wrote: > Is that device rooted maybe? In that case other rogue Apps might interfere I don't think so. They bought several Xcover devices for their use, and they are not power users. They got the error on all of them. ♪♫ Alex --

Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie, > @Joe could you show me an example where db locking didn't work? > Maybe I can test this and see if it does work correctly in the way I > now set up PicoLisp in WSL? You don't even need a DB to test the locking, the 'ctl' function will do. To test it, open two terminals and start

PilBox IOException "No such file"

2018-04-18 Thread Alexander Burger
Hi all, Anyone here who tried PilBox: I have a customer with Samsung Xcover 4 devices, and they get an IOException 'Cannot run program "bin/picolisp" ... No such file'. However, the same APK works fine on other devices. How can "bin/picolisp" be missing? Any ideas? ♪♫ Alex -- UNSUBSCRIBE:

Re: Question about tutorial ...

2018-04-18 Thread Alexander Burger
Hi Arie, > * root@HP-Arie:/usr/share/doc/picolisp/doc# **pil family.l -main -go +* > ... > *!? (pool "family/" *Dbs) "family/" -- Open error: No such file or > directory ?* This is probably because the "family/" directory does not exist yet. Or did you unpack the file "family64.tgz"? In

Re: PicoLisp on Windows WSL first tryout fails ...

2018-04-17 Thread Alexander Burger
Hi Arie, > After that picolisp installed just fine. So far, so good! > > I notice that the package name is picolisp17.12+20180218-1, which seems to > be version 17.12 (looking at that name), > but "pil -version" says 18.2.17. How about that? That's OK, an intermediate version release :) ♪♫

Re: PicoLisp on Windows WSL first tryout fails ...

2018-04-17 Thread Alexander Burger
Hi Arie, > So, I tried it another way by just installing the Debian package PicoLisp: >sudo apt-get install picolisp > and indeed, now starting pil just works. However, it is an older version ( > *15.11.0*). Yes, it is Debian "stable". > On this page: >

Re: PicoLisp on Windows WSL first tryout fails ...

2018-04-17 Thread Alexander Burger
Hi Philipp, Arie, > pil is just a wrapper around picolisp, it loads a few libraries etc as Yes, but > standard, but it relies on the intepreter being at /usr/bin/picolisp, This is not completely correct. Note that there are two 'pil's in the distribution: One in bin/ #!/usr/bin/picolisp

Re: PicoLisp tshirts!

2018-04-16 Thread Alexander Burger
Hi Philipp, > you, my first PicoLisp design tshirt > > https://teespring.com/picolisp Wow! Very nice!! > I shall certainly be ordering one myself. I believe the way that Me too :) Thanks! ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Version 17.12 question / error

2018-04-11 Thread Alexander Burger
On Wed, Apr 11, 2018 at 11:58:38PM +0200, Henrik Sarvell wrote: > Regarding detach, would this be a proper way of doing a server where detach > is optional?: > > (de server (P H Detach) >... >(loop > (setq *Sock (listen P)) > (NIL (fork) (close P)) > (close *Sock) ) >

Re: Version 17.12 question / error

2018-04-11 Thread Alexander Burger
Hi Henrik, > Thanks Alex, will try and find the time to refactor all the local calls in > the ext library sources. Yes, sorry for the confusion! The change in namespace semantics last year was a serious cut, but namespaces in PicoLisp were relatively new at that time, and the change resulted in

Re: Version 17.12 question / error

2018-04-09 Thread Alexander Burger
Hi Henrik, > When I try to run my stuff I get [ext/base.l:9] pico -- Bad symbol namespace > > And that file currently looks like this: > https://bitbucket.org/hsarvell/ext/src/31474ae47656ae0c020f7009c9ed14c5cc86cc44/base.l?at=default=file-view-default It is the 'local' call: (local num?)

  1   2   3   4   5   6   7   8   9   10   >