Re: Stream from call

2024-04-25 Thread Tomas Hlavaty
On Thu 25 Apr 2024 at 11:03, Patrick Lebas wrote: > How can I get the Stream-out from > (call 'ls) and put it into a string (setq str...) ? THANKS. (in '(ls) (read)) you might want something else than read -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Printed representation of (char 0) ?

2024-02-13 Thread Tomas Hlavaty
On Tue 13 Feb 2024 at 08:35, Thorsten Jolitz wrote: > But shouldn't hex 23232424 print to something like ##^N^N$$ > instead of no ^N could mean SO character with byte value 14 see the program ascii a NUL character would be displayed as ^@ > So the printed ASCII string (as char) carries

Re: Printed representation of (char 0) ?

2024-02-12 Thread Tomas Hlavaty
On Tue 13 Feb 2024 at 08:28, Thorsten Jolitz wrote: > But when I have a hexadecimal message string with fixed length, and the > positions inside the string carry semantics? A certain value in a certain > position has a meaning? it is not a string, at least not in picolisp/C/unix sense you need

Re: Printed representation of (char 0) ?

2024-02-12 Thread Tomas Hlavaty
On Tue 13 Feb 2024 at 00:25, Thorsten Jolitz wrote: > I would like to achieve a roundtrip like this: why? NUL is often a string sentinel value so trying to use it as a character value will lead to issues do not do that -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Printed representation of (char 0) ?

2024-02-12 Thread Tomas Hlavaty
On Mon 12 Feb 2024 at 23:25, Thorsten Jolitz wrote: > Shouldn't the (char 0) representation print to something > like ^N or so too, like (char 1), (char 2) etc? ^@ what are you trying to achieve? why not use base64, for example? -- UNSUBSCRIBE:

Re: minipicolisp pointers

2023-10-21 Thread Tomas Hlavaty
On Sat 21 Oct 2023 at 12:26, C K Kashyap wrote: > By "call", I mean the regular PicoLisp "call", which is used to call > external programs. I see. Maybe you could take the "call" function from the old full picolisp which was in C. -- UNSUBSCRIBE:

Re: minipicolisp pointers

2023-10-21 Thread Tomas Hlavaty
On Sat 21 Oct 2023 at 10:50, C K Kashyap wrote: > Could I have some pointers on extending MiniPicoLisp to implement > "call" and external objects? not sure what do you mean by "call" and external objects but https://logand.com/sw/mplisp/files.html shows how to extend minipicolisp with ffi. > My

Re: Hello from the bakery

2023-08-15 Thread Tomas Hlavaty
On Mon 14 Aug 2023 at 09:05, Abraham Palmer wrote: > I'm really a bread baker its fascinating how much IT stuff one needs to know to run a bakery i like muffins but the link to picture of muffins is broken https://boxturtlebakery.com/products/culturedmuffins.jpg >

Re: An assembly question from the past

2022-04-01 Thread Tomas Hlavaty
On Thu 31 Mar 2022 at 15:25, Henry Baker wrote: > An aside: if one is executing on a 64-bit machine, how hard is it to > execute a 32-bit 'application'? Can one easily start up a 32--bit > thread inside a 64-bit machine?   This 32 inside 64 question is > purely theoretical (for the moment)... I

Re: An assembly question from the past

2022-03-29 Thread Tomas Hlavaty
On Tue 29 Mar 2022 at 18:49, Alexander Burger wrote: > As C does not allow access to the carry bit, you have to do ugly and > inefficient > tricks, by looking at the most significant bit of the result and trying to > detect an overflow. For example, in bigAdd() in pil32's src/big.c: > >carry

Re: quote form in picolisp

2021-12-16 Thread Tomas Hlavaty
On Thu 16 Dec 2021 at 21:48, Alexander Burger wrote: > 'quote' is the mother of all functions. It does nothing, and just returns > Args. > No need for "special forms"! Because there is no concept of compiler. Compilation in picolisp is done ahead of time manually in another language. --

Re: wiki function: _render

2021-09-11 Thread Tomas Hlavaty
On Sat 11 Sep 2021 at 18:11, Jean-Christophe Helary wrote: >(prin "<" C D " id=\"h" D "-" E "\">") > which would give us: > My heading What if the value of E is something like ">alert('xss'); -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Enumerated Trees in PicoLisp

2021-03-25 Thread Tomas Hlavaty
On Thu 25 Mar 2021 at 12:23, Alexander Burger wrote: > On Thu, Mar 25, 2021 at 12:11:55PM +0100, Alexander Burger wrote: >> Binary heaps are close, but not the same. > > And useless for the intended purpose. At least I see no way to insert and look > up by number (?) because you always take the

Re: Enumerated Trees in PicoLisp

2021-03-25 Thread Tomas Hlavaty
On Thu 25 Mar 2021 at 10:40, Alexander Burger wrote: > Probably this algorithm exists already, because it is so simple and obvious. > But > I found it by myself and did not bother to search for it (mainly because I > don't > know what name to search for). binary heap -- UNSUBSCRIBE:

Re: FEXPRs / PilCon

2021-03-16 Thread Tomas Hlavaty
On Sun 14 Mar 2021 at 09:34, Alexis wrote: > My guess is that Tomas is using the latter meaning, and wants > 'pure' functions that simply return strings, without sending them > to an output device. The final string to be output would be > created by combining the return values of multiple

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 21:13, Alexander Burger wrote: > On Sat, Mar 13, 2021 at 08:59:37PM +0100, Tomas Hlavaty wrote: >> On Sat 13 Mar 2021 at 19:09, Alexander Burger wrote: >> > On Sat, Mar 13, 2021 at 06:48:22PM +0100, Tomas Hlavaty wrote: >> >>(de

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 19:09, Alexander Burger wrote: > On Sat, Mar 13, 2021 at 06:48:22PM +0100, Tomas Hlavaty wrote: >>(de (Col . Prg) >> (prin "") >> (run Prg) >> (prin "") ) >> >> prin has side-effect. > &

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 18:48, Tomas Hlavaty wrote: > would be better written as: > >(de p @ (cons 'p (args))) s/args/rest: (de p @ (cons 'p (rest))) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 19:09, Alexander Burger wrote: > On Sat, Mar 13, 2021 at 06:48:22PM +0100, Tomas Hlavaty wrote: >>(de (Col . Prg) >> (prin "") >> (run Prg) >> (prin "") ) >> >> prin has side-effect. > &

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 16:04, Alexander Burger wrote: > I don't get your problem with side effects! in your example: (de (Col . Prg) (prin "") (run Prg) (prin "") ) prin has side-effect. Col is not properly escaped! This example: (de Prg (prin "") (run

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 15:03, Alexander Burger wrote: > On Sat, Mar 13, 2021 at 02:09:30PM +0100, Tomas Hlavaty wrote: >> Avoiding allocations is wrong thing to do for this use-case. Printing >> directly is severely inconvenient. Do you have a neat solution to the >> svg vi

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 14:09, Tomas Hlavaty wrote: >> But the FEXPR solution explained at PilCon allocates no new cells at all. It >> prints directly. > > Avoiding allocations is wrong thing to do for this use-case. Printing > directly is severely inconvenient. Do you

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 13:33, Alexander Burger wrote: > It does. Just the syntax is different: > >(de (@Str) (fill '(p @Str))) > > This also creates just 2 cells. True, I forgot about fill. > But the FEXPR solution explained at PilCon allocates no new cells at all. It > prints directly.

Re: FEXPRs / PilCon

2021-03-13 Thread Tomas Hlavaty
On Sat 13 Mar 2021 at 08:27, Alexander Burger wrote: >(de Prg > (prin "") > (run Prg) > (prin "") ) > > [...] > > One question that came up was why FEXPRs could not be replaced with normal > functions (EXPRs), simply 'pack'ing strings: > >(de (Str) > (pack "" Str

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
On Sun 22 Nov 2020 at 12:09, Alexander Burger wrote: > On Sun, Nov 22, 2020 at 11:49:11AM +0100, Tomas Hlavaty wrote: >> it is only mess because you really want to find a loophole > > I don't want to find a loophole. I leave everything as it is (MIT/X11). I just > wan

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
On Sun 22 Nov 2020 at 11:16, Alexander Williams wrote: > Tomas, you're allowed to relicense the MIT version of PicoLisp you > received, as GPLv3, as long as you maintain the MIT license text. what about customers that ban GPL on their machines? -- UNSUBSCRIBE:

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
On Sun 22 Nov 2020 at 11:12, Davide BERTOLOTTO wrote: > Right, but apparently nobody went to court for such topics, so it is still > gray zone. what if i don't want to risk going to court because of this? -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
On Sun 22 Nov 2020 at 11:23, Alexander Burger wrote: > On Sun, Nov 22, 2020 at 11:03:31AM +0100, Alexander Burger wrote: >> In my understanding it is irrelevant how the library is linked, or the fact >> that >> pil21 "depends" on it > > This is all such a mess! What is "linking" other than

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
On Sun 22 Nov 2020 at 09:59, Davide BERTOLOTTO wrote: > In my personal opinion it will be okay if we use the readline library in > pil21, since it is a *library* and we are not making a 'derivative' work > out of it this is wrong there is exactly the same precedent already, see clisp

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
Hi Alex, On Sun 22 Nov 2020 at 09:22, Alexander Burger wrote: > Yes, I want pil21 as a piece be completely "free", in the spirit of MIT. then it cannot depend on GPL library >>From what I underseod so far, the GPL is all about "distributing". PicoLisp >>does > *not* distribute any GPLed code

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
On Sun 22 Nov 2020 at 07:00, Alexander Burger wrote: > It is not even linked at *compile* time, but - dynamically - at runtime > (shared library). i don't think this makes any difference the question is: does pil21 depend on GPL software? if yes, the combined work has GPL licence. if not,

Re: Licence Dilemma

2020-11-22 Thread Tomas Hlavaty
On Sun 22 Nov 2020 at 01:32, Alexander Williams wrote: > Not a lawyer here, but PicoLisp 21 does **not** need to be GPL'd. it does not because it is already compatible with GPL > Everyone seems to confuse "linking to a GPL'd library that exists on the > host computer" VS "linking to a GPL'd

Re: httpGate for non-picolisp apps

2020-08-31 Thread Tomas Hlavaty
Hi Alex, On Sat 29 Aug 2020 at 09:22, Alexander Burger wrote: >> This could be fixed by adding a fallback case to httpGate. > > httpGate does have such a fallback: If a file (or symbolic link) named "void" > exists, it is sent as a reply for terminated sessions. It may contain > anything, >

Re: httpGate for non-picolisp apps

2020-08-29 Thread Tomas Hlavaty
Hi Grant, On Sat 29 Aug 2020 at 01:04, Grant Shangreaux wrote: >> I suspect other apps cannot handle this. > > i thought this was probably the case. just wondered if someone out > there may have tried and come up with a solution already :) unfortunately, httpGate has a fatal flaw: when a

Re: cells in picolisp [tutorial, slides]

2020-06-06 Thread Tomas Hlavaty
nice presentation andr...@itship.ch writes: > Hi George, You know you can display PDFs also in 'presentation mode' ? > Depends on the PDF reader software, but most can do that. For example, open the PDF in Emacs after installing pdf-tools. Press P for fit to page. Press n for next page, p for

Re: native/lisp in picolisp32

2020-05-08 Thread Tomas Hlavaty
Hi Kashyap, C K Kashyap writes: > 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? I just wanted > to make sure that there is no "impossibility"

Re: PilCon 2020

2020-04-28 Thread Tomas Hlavaty
Hi Alex, > I always used the Jitsi Meet app on Android for audio and video, and sometimes > additionally Firefox on a Debian PC to demonstrate things on a shared > screen. firefox sounds good Yesterday I tried to watch the Lisp conference but streaming kept stopping so I had to give up. Not

Re: PilCon 2020

2020-04-26 Thread Tomas Hlavaty
Hi Alex, Alexander Burger writes: > 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. makes sense. Thanks for letting us know. > Would it make

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
thanks for the links > With nuclear energy, there came a requirement for more > authoritarianism, stronger vertical power structures. Why? Because > the potential for damage is huge. See, for example, the radioactive > boy scout, David Hahn [6]. I do recall that there was some similar >

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
Guido Stepken writes: > Well, perhaps you could find a few papers about "Frank" at Viewpoint > Research homepage. Bert Freudenberg, Ian Piumarta, Alan Kay certainly have > the full "Frank" code. I might have heard something about that research. Probably related to that concise vector graphics

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
Tomas Hlavaty writes: > Guido Stepken writes: >> Using US software stacks, even if open source and under a free license are >> not tolerable. For any nation, for any kind of project. > Where can I learn more about your work? probably here: https://stepken.blogspot.c

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
Jo-To Schäg writes: > However the PicoLisp community does not like to solve problems for > other people. Especially if it is motivated for political reasons. > Do not expect Alex to spend his time on satisfying your paranoia or > political motivations. Where I live we had freedom of movement

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
Alexander Burger writes: > In case of pil21, where is the problem? > llvm assembler to convert to machine code ^ I think he is pointing here > Do you seriously believe the libraries contain backdoors? I don't think he said anything like that. My understanding is that he said that llvm is

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
Guido Stepken writes: > That group implemented a whole operating system in MetaCola language within > 20.000 lines of code only. GUI, TrueType Fonts, mouse, keyboard driver ... > everything included, called "Frank" for Frank - enstein. interesting, where can I learn more? -- UNSUBSCRIBE:

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
Guido Stepken writes: > Picolisp, thanks to Alex' brilliant ideas, behind the scenes, serves as > prototype of a new kind of "minimalistic, highly efficiency" software > strategy within the EU. Goal is: Back to the roots, small modules, security > review everywhere, minimal hardware requirements,

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
Hi Guido, Guido Stepken writes: > Using US software stacks, even if open source and under a free license are > not tolerable. For any nation, for any kind of project. > > US Cloud Act, Patriot Act, by law, force US companies as well US > organisations in general, such as Linux Foundation as well

Re: Stop using US controlled software stacks!!!

2020-04-19 Thread Tomas Hlavaty
andr...@itship.ch writes: > I have to disagree with your tone. I empathise with his tone. This issue is frustrating. Just this week a friend of mine was told by her employer to install whatsapp so that they can keep her updated about the suspended work due to the pandemic. I told her about the

Re: PicoLisp Sources

2020-04-14 Thread Tomas Hlavaty
Hi Alex, interesting. Thanks for explanation. Tomas -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PicoLisp Sources

2020-04-13 Thread Tomas Hlavaty
Hi Alex, interesting. Alexander Burger writes: > Now in pil21 the source is (in "src/subr.l"): > ># (car 'var) -> any >(de _car (Exe) > (car (needVar Exe (eval (cadr Exe ) ^ what is this car? Tomas -- UNSUBSCRIBE:

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

2020-04-12 Thread Tomas Hlavaty
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 fully parenthesized syntax is useless and just tedious." because picolisp

Re: Installation and update

2020-01-08 Thread Tomas Hlavaty
On NixOS, picolisp has been available out of the box on 32 and 64 bit intel and arm: $ nix-shell -p picolisp -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Version 17.12 question / error

2018-04-11 Thread Tomas Hlavaty
Henrik Sarvell writes: > I should probably create a small writeup on how to do that > for a typical PL project listening on a non standard port. https://logand.com/blog/picolisp-behind-nginx-proxy.html from 22sep2009, time flies! -- UNSUBSCRIBE:

Re: Let's Encrypt Expiry

2017-05-28 Thread Tomas Hlavaty
I got these emails too and everything worked well for me. The email also said: For details about when we send these emails, please visit https://letsencrypt.org/docs/expiration-emails/. In particular, note that this reminder email is still sent if you've obtained a slightly different

Re: Header parsing

2017-04-19 Thread Tomas Hlavaty
What about using Maildir on the email server? Then you don't have any issues with parsing and locking the spool file. -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PicoLisp on Ubuntu

2016-01-17 Thread Tomas Hlavaty
Hi Jon, > My old Mac mini has an Intel Core 2 Duo, and that is supposed to be a > 64-bit machine. However, when I should pick the Ubuntu version for > this Mac from this page http://www.ubuntu.com/download/desktop both > the drop-down menus says "32-bit — for machines with less than 2GB > RAM".

Re: PicoLisp on Ubuntu

2016-01-17 Thread Tomas Hlavaty
Hi Jon, > model name: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz the processor is 64 bit: http://ark.intel.com/products/27255/Intel-Core2-Duo-Processor-T7200-4M-Cache-2_00-GHz-667-MHz-FSB so it should be possible to install 64 bit linux. Tomas -- UNSUBSCRIBE:

Re: Trying to build pil64 on Raspberry Pi

2016-01-05 Thread Tomas Hlavaty
Hi Jon, > just wanted to try if 64-bit PicoLisp could run on this Pi Zero, but I Pi is 32 bit. 64 bit picolisp doesn't work there. You could try ersatz. 32 bit picolisp works, you just need to fix makefile manually yourself. If you search this mailing list, you'll find out how to achieve

Re: Hosting PicoLisp

2015-12-13 Thread Tomas Hlavaty
Hi Christophe, Christophe Gragnic writes: > My host of choice is quite nice but doesn't allow me to run my own > processes. Everything must live behing Apache. I guest most people on > this list run their own servers but maybe you'll have some answers to > these two

Re: picolisp in nix

2015-10-03 Thread Tomas Hlavaty
Hi Mattias, Mattias Sundblad writes: > I believe you can look at http://software-lab.de/doc/ChangeLog to > check for new versions? good idea, I could just poll the first line of the link for changes. Thank you, Tomas -- UNSUBSCRIBE:

Re: picolisp in nix

2015-10-03 Thread Tomas Hlavaty
Hi Alex, Alexander Burger writes: > Yes, I've announced it always in Twitter. I'm planning a new release in > about a month or so. i see. Unfortunatelly, I don't read twitter. If it is not too much duplicated work, would it be possible to send announcements to this

Re: low level VM and disassemble

2015-08-25 Thread Tomas Hlavaty
Hi Erik, one of the immediate steps for pil64 compilation goes through asm file. You can study that. Otherwise picolisp doesn't have a disassembler and it also doesn't have a compiler. Cheers, Tomas Erik Gustafson erik.d.gustaf...@gmail.com writes: Hi List, I'd like to develop a better

compiling on arm

2015-06-28 Thread Tomas Hlavaty
Hi Alex, I am trying to compile the latest picolisp 3.1.10 on 32 bit ARM. I remember I sent a patch fixing ARM compilation a while ago but that wasn't accepted, because the aditional cases would make the Makefile ugly. I ca fix it quickly simply by calling (cd src ; sed -i s/-m32//g

pil keeps parent shell around

2015-06-28 Thread Tomas Hlavaty
Hi Alex, is it expected that calling pil keeps the parent shell process around? tomas@x ~ % pstree | grep pi | |-zsh---pil---picolisp I can see pil in the process list but I would prefer if it was replaced by the picolisp process (aka shell exec). Thank you, Tomas -- UNSUBSCRIBE:

Re: compiling on arm

2015-06-28 Thread Tomas Hlavaty
Hi Alex, I am trying to compile the latest picolisp 3.1.10 on 32 bit ARM. I remember I sent a patch fixing ARM compilation a while ago but that wasn't accepted, because the aditional cases would make the Makefile ugly. Really? When was that? Please excuse my bad memory .. ;) I managed to

Re: pil keeps parent shell around

2015-06-28 Thread Tomas Hlavaty
Hi Alex, tomas@x ~ % pstree | grep pi | |-zsh---pil---picolisp I can see pil in the process list but I would prefer if it was replaced by the picolisp process (aka shell exec). This can be done with the (surprise!) 'exec' function

Re: https server side

2015-05-26 Thread Tomas Hlavaty
Hi Luis, PicoLisp comes with httpGate, which is a http and https proxy using openssl library. It is usually run on port 80 and proxies connections to PicoLisp processes. I don't remember the exact command line arguments. I don't use httpGate, but use nginx instead, see

Re: Installation issues

2015-02-11 Thread Tomas Hlavaty
Hi Lawrence, alias pil='~/opt/picoLisp/pil +' This works fine from shell; starts up REPL However emacs can't start the REPL (run-picolisp): Searching for program: no such file or directory, pil What can I do to make emacs see ~/opt/picoLisp/pil  ? have you tried alias

Re: PicoLisp roots

2014-09-21 Thread Tomas Hlavaty
Hi Jerome a good starting point is http://software-lab.de/doc/tut.html Cheers, Tomas -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: try picolisp

2014-09-02 Thread Tomas Hlavaty
Hi Christophe, Christophe Gragnic christophegrag...@gmail.com writes: It should be possible to find the original values from another instance of picolisp, for example. Is it always possible? try it: in 1st console: $ ~/picoLisp/p : call - 267631 : ^d in 2nd console: $ ~/picoLisp/p :

Re: Swimming against the tide, again (this time with numbers)

2014-09-02 Thread Tomas Hlavaty
Hi Christophe, Christophe Gragnic christophegrag...@gmail.com writes: is my suggestion: «…by multiplying with (or dividing by) the scale factor.» could become «…by multiplying with (or dividing by) the scale factor, which is always `1.0`.» it doesn't have to be always 1.0. If it was, it

Re: try picolisp

2014-08-31 Thread Tomas Hlavaty
Hi Christophe, Christophe Gragnic christophegrag...@gmail.com writes: On Sat, Aug 30, 2014 at 11:31 AM, Tomas Hlavaty t...@logand.com wrote: Executing a script doesn't mean every line will work as expected! `rm -fr /` can be executed, but doesn't always work ;) You see, then you

Re: try picolisp

2014-08-31 Thread Tomas Hlavaty
Hi Christophe, Christophe Gragnic christophegrag...@gmail.com writes: On Sun, Aug 31, 2014 at 12:09 PM, Tomas Hlavaty t...@logand.com wrote: would this clasify? You mean «clarify»? sorry, I meant classify. Cheers, Tomas -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Swimming against the tide, again (this time with numbers)

2014-08-31 Thread Tomas Hlavaty
Hi Christophe, Christophe Gragnic christophegrag...@gmail.com writes: : (scl 1) # just for some examples to show - 1 : 1 - 1 : 1.0 - 10 : (* 1.0 1.0) - 100 : (+ 1 1.0) - 11 It's is just impossible for a teacher to explain this to a newbie without being considered a fool. PicoLisp

Re: try picolisp

2014-08-30 Thread Tomas Hlavaty
Christophe Gragnic christophegrag...@gmail.com writes: On Fri, Aug 29, 2014 at 9:43 PM, Tomas Hlavaty t...@logand.com wrote: that is impossible, and even contradictory! You can't allow arbitrary functionality and disallow some functionality at the same time. Executing a script doesn't mean

Re: try picolisp

2014-08-30 Thread Tomas Hlavaty
Hi Amaury, Amaury Hernández Águila amhe...@gmail.com writes: A Container is basically a VM, but cheaper. kind of, but not really. You can say that in the context of your accepted trade-offs but it is not true in general. The downsides negligible, like the limitation of running only a

Re: try picolisp

2014-08-29 Thread Tomas Hlavaty
Hi Amaury, Amaury Hernández Águila amhe...@gmail.com writes: [...] The safe execution environment is achieved by running the code in a Docker container. what do you mean by safe? It's certainly not secure. Using VM like Alex suggests is better. Cheers, Tomas -- UNSUBSCRIBE:

Re: try picolisp

2014-08-29 Thread Tomas Hlavaty
Hi Christophe Christophe Gragnic christophegrag...@gmail.com writes: The idea here is not access to the REPL, but (quote from the Tcl ref): «safe to execute an arbitrary script from your worst enemy without fear of that script damaging the enclosing application or the rest of your computing

Re: Documentation again

2014-08-12 Thread Tomas Hlavaty
Henrik Sarvell hsarv...@gmail.com writes: I noted that it's not possible to download PDFs at all from Scribd anymore without paying $9. What about making them downloadable from picolisp.com? On Tue, Aug 12, 2014 at 1:57 AM, Thorsten Jolitz tjol...@gmail.com wrote: Are you aware of

Re: Build transient value on the fly

2014-07-28 Thread Tomas Hlavaty
Hi Christophe, No problem for Display, but hello should spontaneously have its value changed to some XML containing the string hello. in other words, you want to use the transient symbol hello as a variable? What is preventing you? It's often done in PicoLisp. (let hello 123 (println

Re: Build transient value on the fly

2014-07-28 Thread Tomas Hlavaty
Hi Christophe, No problem for Display, but hello should spontaneously have its value changed to some XML containing the string hello. in other words, you want to use the transient symbol hello as a variable? What is preventing you? The problem is that I would like to avoid maintaining a

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Tomas Hlavaty
Hi Henrik, 44KB / second is far from insignificant IMO, it works out to 0.35 Mbit/s if I'm not mistaken, we're paying 20 EUR per month per 1Mbit at our current co-location. Well worth spending a couple of days to avoid permanently. wow, 20 EUR per 1Mbit? 160 EUR per 1MByte? In 2014? I

Re: My possibly wrong use of apply

2014-07-08 Thread Tomas Hlavaty
Hi Christophe, 2) rewrite xml so that it evaluates its args, then quote the args in my calls to it. Exactly! I would do: (de xml (Lst) # See also lib/xm.l and lib/xml.l ... ) and then provide also a quoting function (de xmlq Lst (xml Lst) ) giving a convenient

Re: Regarding the implementations of PicoLisp

2014-05-14 Thread Tomas Hlavaty
Hi all, Alexander Burger a...@software-lab.de writes: On Tue, May 13, 2014 at 10:57:45PM +0300, Rowan Thorpe wrote: On 13 May 2014 21:46, Jorge Acereda Maciá jacer...@gmail.com wrote: ..[snip].. Am I missing something? alloca() just adds an offset to the stack pointer: see man alloca(3)

Re: Regarding the implementations of PicoLisp

2014-05-09 Thread Tomas Hlavaty
Hi Christophe, Now my question: how far could be pushed the idea to write a maximal subset of Picolisp in a minimal subset of Picolisp? I have explored this in my Java implemembtation: $ git clone http://logand.com/git/wl.git where the core is in Java and many functions are implememted in

Re: PicoLisp on mac osx : bug

2013-11-19 Thread Tomas Hlavaty
Hi Denis, 1) The changes I made are surely not perfect, they are likely to cause some troubles on the other OSs or other (older?) versions of mac os x. So I have just explained them here, because they could be useful for another user or to correctly fix the makefile (sorry I cannot help

Re: Great canvas article and demo

2013-09-16 Thread Tomas Hlavaty
Hi Jakob, Jakob Eriksson ja...@aurorasystems.eu writes: On September 16, 2013 at 9:30 AM Tomas Hlavaty t...@logand.com wrote: 3) I guess most of the overhead of the http request is probably establishing the connection. My bett is that it doesn't really matter if you send 1kB or 5kB

Re: Great canvas article and demo

2013-09-08 Thread Tomas Hlavaty
Hi Alex, very nice demo indeed, especially the use of plio protocol to do stuff in the browser;-) Another way of achieving the same result without any need for javascript would be using SVG. It works very well across browsers nowadays. Canvas could be an iframe with a refresh rate if required

Re: PicoLisp and SWIG

2013-05-16 Thread Tomas Hlavaty
Hi Thorsten, Maybe you should do a bit more publicity and marketing for your libraries? You have some quite interesting stuff in your 'backcatalog' that is not at all linked to or documented in the PicoLisp Wiki. yeah, but it is much more interesting to write code;-) indeed, this would be

Re: PicoLisp and SWIG

2013-05-16 Thread Tomas Hlavaty
Hi Thorsten, use this SWIG command line, which produces, besides the probably bloated C code, a kind of 'Lisp pseudo code' too, that should be easily transformed into 'native calls: ,-- | swig -cffi -c++ example.i That is CFFI, portability layer for Common Lisp:

Re: PicoLisp and SWIG

2013-05-15 Thread Tomas Hlavaty
Hi Thorsten, I'm Cc-ing picolisp mailing list too just in case others find it interesting. Thorsten Jolitz tjol...@googlemail.com writes: Hi Tomas, hast du mal was mit PicoLisp und SWIG gemacht? zB hier bei der Erzeugung des FFI:

Re: Performance of Recursion vs Iteration in PicoLisp

2013-05-13 Thread Tomas Hlavaty
Hi Thorsten, The notion of 'tail-recursion' does not have any meaning in an interpreted language like PicoLisp, since its only for compiler optimizations -right? I think you are confusing the terms. What you are probably after is called tail call optimisation (TCO), which is an

Re: Performance of Recursion vs Iteration in PicoLisp

2013-05-12 Thread Tomas Hlavaty
Hi Thorsten, The notion of 'tail-recursion' does not have any meaning in an interpreted language like PicoLisp, since its only for compiler optimizations -right? I think you are confusing the terms. What you are probably after is called tail call optimisation (TCO), which is an optimisation

Re: arm

2013-03-21 Thread Tomas Hlavaty
Hi Rick, Which OS / arm board combination are you using? linux, pandaboard, beagleboard, rpi. Cheers, Tomas -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pil64 Darwin Port

2012-11-19 Thread Tomas Hlavaty
Hi Axel, asm-pil32 is a project that would allow us to get rid of C-pil32 entirely. not sure it is a good idea. The asm version is inferior to the c version in terms of portability. Cheers, Tomas -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: picolisp on beaglebone

2012-08-15 Thread Tomas Hlavaty
Hi Alex, If you are in the installation directory (i.e. in a local installation as in your case), start it as ./pil lib/test.l $(/bin/pwd) -bye + It should just print OK if everything is all right. Otherwise it drops into an error handler. got OK, everything works then:-) Thank you,

Re: First class environments (Was: ... dynamic scoping and lambda

2012-06-11 Thread Tomas Hlavaty
Hi Alex, The following example is conceived, a normal application would not use 'X' and 'Y' in that way, but other parts of the form's runtime environment are indeed following this schema. But this example may show what I mean by separating activation of an environment from its execution:

Re: First class environments (Was: ... dynamic scoping and lambda

2012-06-10 Thread Tomas Hlavaty
Hi Alex, What I mean is to separate the _activation_ of an environment from its _execution_. In PicoLisp, the call to 'job' (the activation of the environment) can be in a library, not only the definition. Only this makes it possible, for example, to store code fragments like (foo X Y) as

Re: efficiently building a large list

2012-05-31 Thread Tomas Hlavaty
Hi Joe, Sidebar: Is there a way to disable the interactive session from printing the return of a statement? For example, if I do a (setq ABC L) where L is a million items, I'd prefer the option of not having all million items print on my console. I've worked around this by wrapping it in a

Re: FEXPRs

2012-05-22 Thread Tomas Hlavaty
Hi Alex, FEXPRs a not so very important. They just allow you to avoid having to quote everything. I don't understand all the fuss that is made about them. It is perhaps because they are more powerful than the holy macros. If you don't have a compiler, then it doesn't matter. However, they

Re: PicoLisp SSL Problem

2012-02-15 Thread Tomas Hlavaty
Hi Alex, Yes, but as I tried to explain in my previous mail, it won't work with the application server. It depends on 'httpGate' rewriting parts of the HTTP header, and inserting certain PicoLisp-specific new headers, which would not work if 'httpGate' believes to work unencrypted. Perhaps,

  1   2   3   >