Re: PicoLisp REPL on Twitter

2022-04-19 Thread Christophe Gragnic
On Tue, Apr 19, 2022 at 4:56 PM Alexander Burger wrote: > > I wanted to do that, but Mr. Twitter did not allow me to install a PicoLisp > sandbox on his server. I guess you could still watch for tweets sent to this account and make it post a reply. You may not even need to use the API:

Re: wordle

2022-02-13 Thread Christophe Gragnic
Thanks. For those who don't follow this wonderful channel 3Blue1Brown, here is a Wordle solver explained: https://www.youtube.com/watch?v=v68zYyaEmEA chri -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Picolisp Outlook

2021-02-21 Thread Christophe Gragnic
Hi! My personal thoughts below Le dim. 21 févr. 2021 à 17:57, a écrit : > ... where do you see the future of Picolisp in the years to come? > People willing to use it will use it. People not aware of it or not wanting to use it will not use it. That's all. Alex just made a "coup de maître"

Re: Time to say goodbye

2020-05-16 Thread Christophe Gragnic
On Mon, Feb 10, 2020 at 5:06 PM Jon Kleiser wrote: > > Hi Alexander and the rest, Hi Jon, Just a big thanks, 3 months later, to you Jon. You were very helpful and unlocked many possibilities for my project that used EmuLisp. Maybe we'll see you at PilCon 2020 that we'll have to organize

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

2020-05-06 Thread Christophe Gragnic
On Wed, May 6, 2020 at 3:11 PM John Duncan wrote: > > 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. Just

Re: PilCon 2020

2020-04-28 Thread Christophe Gragnic
On Tue, Apr 28, 2020 at 8:48 AM Jean-Christophe Helary wrote: > > Definitely. Maybe the day before ? A short rehearsal for all the people who > have presentations to see if things work well ? I was thinking about having much more time before the event. Like at least a month or two but I don't

Re: PilCon 2020

2020-04-28 Thread Christophe Gragnic
On Tue, Apr 28, 2020 at 7:44 AM Alexander Burger wrote: > We used Jitsi a lot during the last weeks. I have tried up to only 5 members > so > far, but performance was good. Beneroth has set up his own server. I don't > know > how well it scales for more members, and what can be done to optimize

Re: pil21, some progress

2020-02-16 Thread Christophe Gragnic
On Sun, Feb 16, 2020 at 12:12 AM C K Kashyap wrote: > > Thanks Alexa friend of mine recently made a RISC V processor using fpga > and it got me intrigued by the whole FPGA thing ...perhaps a picolisp machine > may be possible :) Hi, Did you know about this?

Re: PicoLisp for 9-11 years' kids

2019-04-17 Thread Christophe Gragnic
On Wed, Apr 17, 2019 at 12:18 AM wrote: > > Too bad. I'm curious now if there was a predecessor to Python as the > mandated computer language. If so, what was it? Hi, Say 5% of the high school teachers used only calculators for programming (yeah, Texas Instr Basic or Casio Basic), 5% used

Re: PicoLisp for 9-11 years' kids

2019-04-16 Thread Christophe Gragnic
On Sun, Apr 14, 2019 at 8:07 PM cilz wrote: > > I guess it's microAlg which you can find here: > http://microalg.info/ > I' dont know if there is an english translation of the website which is > french. Hi, very glad that MicroAlg left some memories here and there! The website, all the

Re: Survey results

2018-07-17 Thread Christophe Gragnic
Thanks Arie for the good work, that was very informative. You should be proud of the "go on with the result of the survey" answer. chri On Tue, 17 Jul 2018 9:25 pm Alexander Burger wrote: > Hi Arie, > > > please find all survey results attached. Since a lot of comments were > given > > it

Re: Needing a trick with 'de

2017-10-16 Thread Christophe Gragnic
On Mon, Oct 16, 2017 at 3:25 PM, Alexander Burger wrote: > This is just unnecessary overhead, as 'let' is basically 'bind' (or 'use' to > be > more correct) plus 'setq'. And 'X' is bound already by the function call. So > why > waste time and (stack)space? Because I

Re: Needing a trick with 'de

2017-10-15 Thread Christophe Gragnic
On Sat, Oct 14, 2017 at 7:48 AM, Alexander Burger wrote: > You are close :) Hi Alex, Thanks, I'm making some progress at last! A personal lesson: when meta-programming, I should make more use of pp. > I would do this: > >(de decar Lst > (def (++ Lst) >

Needing a trick with 'de

2017-10-13 Thread Christophe Gragnic
Hi list! (ha ha, a list…) Could someone provide me with a function which looks like 'de but is not 'de itself. Let's call it 'decar. With de: (de myfn args # here args is the list of the unevaluated args that were # given when calling myfn ) With decar: (decar myfn arg # here arg is the

Re: Update your topics (GitHub)

2017-09-27 Thread Christophe Gragnic
On Wed, Sep 27, 2017 at 5:51 AM, Alexander Williams wrote: > Sure, see json.l here: > https://github.com/aw/picolisp-json/search?l=Common+Lisp Thanks. Maybe you could report those as being picoLisp files? https://github.com/github/linguist/ Don't know how to fix this

Re: Update your topics (GitHub)

2017-09-26 Thread Christophe Gragnic
On Tue, Sep 26, 2017 at 7:28 AM, Alexander Williams wrote: > Hi all, Hi everyone, > GitHub provides the ability to search by language as well, but their > algorithm doesn't always correctly identify PicoLisp code - probably due to > incorrect coding style (*cough* like

Re: PicoLisp as first language

2017-07-31 Thread Christophe Gragnic
On Mon, Jul 31, 2017 at 4:07 PM, Nehal wrote: > Dear PicoLisp programmers, > > Hi! I am Nehal, a new PicoLisp learner and programmer from India. Hi Nehal, hi India ! > I am currently working on making simple, easy to begin with PicoLisp > Documentation for school

Re: Floating Point numbers vs Fixpoint numbers

2017-07-12 Thread Christophe Gragnic
On Wed, Jul 12, 2017 at 8:36 PM, Jimmie Houchin wrote: > > I didn't know if PicoLisp provided a solution without complicating every > function which uses multiplication and division. Yes, the */ function: http://software-lab.de/doc/ref_.html#*/ I think you just have to

Re: Introduction

2017-05-24 Thread Christophe Gragnic
On Wed, May 24, 2017 at 9:10 PM, Jakob Eriksson wrote: > I enjoyed the writeup I did too. Sometimes I really enjoy unnecessary things. Like this video, that I could watch several times in a row: https://www.youtube.com/watch?v=5d7aruKYkKs laughing to tears. Welcome to

Re: unit testing?

2017-02-08 Thread Christophe Gragnic
On Wed, Feb 8, 2017 at 12:13 PM, Alexander Burger wrote: >> I'm thinking of Python's `if __name__ == '__main__' and Perl's unless >> (caller) {...} > > I don't know Python and Perl well enough. But perhaps 'once' is what you think > of? > >(once (load "xxx.l")) No, it's

Re: (NIL) vs Nothing

2017-01-28 Thread Christophe Gragnic
Hi all, On Fri, Jan 27, 2017 at 7:01 PM, dean wrote: > I've got this filtering function > > (de fltr (Buf Ln) >(setq New_buf (mapcar '((Ele) (pack (tail (- (length Ln)) (chop Ele > (filter '((Ele) (pre? Ln Ele)) Buf I'm not an expert, I just want

Re: Discrepancies in lib/misc.l between picoLisp and miniPicoLisp

2016-12-15 Thread Christophe Gragnic
On Thu, Dec 15, 2016 at 2:22 PM, Alexander Burger wrote: > Hi Christophe, > >> Trying to port tests to miniPicoLisp I needed to copy some >> definitions from lib/misc.l from pico to mini, and this is what I found: >> >> 1) Many definitions don't appear in pico. Is it

Discrepancies in lib/misc.l between picoLisp and miniPicoLisp

2016-12-15 Thread Christophe Gragnic
Hi, Trying to port tests to miniPicoLisp I needed to copy some definitions from lib/misc.l from pico to mini, and this is what I found: 1) Many definitions don't appear in pico. Is it intented ? If so, why ? 2) Discrepancy in the $dat implementation: mini (format (pack (car S)))

Re: Tests in PicoLisp

2016-12-14 Thread Christophe Gragnic
On Wed, Dec 14, 2016 at 2:53 PM, Alexander Burger wrote: > Hi Christophe, > >> In lib/test.l I read: >> ««« >> Local usage: >> # ./pil lib/test.l -bye + >> »»» >> >> Shouldn't it be >> ««« >> bin/pil lib/test.l -bye + > > Not really. The bin/pil script is a template to be

Tests in PicoLisp

2016-12-14 Thread Christophe Gragnic
Hi, In lib/test.l I read: ««« Local usage: # ./pil lib/test.l -bye + »»» Shouldn't it be ««« bin/pil lib/test.l -bye + »»» or «./pil ../lib/test.l -bye +» or anything like that? Also, I humbly suggest (once again) this kind of target in the makefiles: ««« test: $(bin)/pil $(lib)/test.l

Re: miniPicoLisp and Emscripten: news, suggestions and questions

2016-12-11 Thread Christophe Gragnic
On Mon, Dec 12, 2016 at 7:35 AM, Alexander Burger wrote: >> I can compile with the bnd[99] trick, until some better idea is found. > > Oh! Does this mean that you allocate 99 entries on each call? This expoldes > the > stack size :) And still might be too small if you e.g.

miniPicoLisp and Emscripten: news, suggestions and questions

2016-12-11 Thread Christophe Gragnic
Hi, I'm back at tweaking miniPicoLisp for it to be compilable by Emscripten. I'm re-reading posts from a discussion we had: http://www.mail-archive.com/picolisp@software-lab.de/msg04447.html It's been 2.5 years now! I'm now a bit stronger in C and can understand some more bits. So I opened up my

Re: misunderstanding executing data as code

2016-12-10 Thread Christophe Gragnic
On Sun, Dec 11, 2016 at 7:31 AM, Joh-Tob Schäg wrote: > One does not simply say that the pil interpreter is misunderstanding. Indeed, but I think that here Dean was talking about his own misunderstanding. > Secondly does 'pack fix your problem? (pack Fn) would indeed be

Re: Why print statement should determine whether I get an error or

2016-12-10 Thread Christophe Gragnic
On Fri, Dec 9, 2016 at 7:58 AM, Bruno Franco wrote: > P.S. > I'm still new to picolisp, so don't take any of what I say as gospel. And if > anyone > can confirm or expand on what I've said, I'd appreciate it a lot. I'm not a veteran but let me expose what I once

Re: Incomplete documentation on 'need'

2016-12-03 Thread Christophe Gragnic
On Sat, Dec 3, 2016 at 10:54 PM, Bruno Franco wrote: > I just wanted to point out that (doc 'need) for version 15.11.0 seems to > miss something. > […] > I also wanted to ask if this kind of topic was appropriate for the mailing > list. It seems so small that I

Re: iterate over list until you find a match

2016-11-24 Thread Christophe Gragnic
On Thu, Nov 24, 2016 at 1:24 PM, Alexander Burger wrote: > Hi Dean, > >> : (T (== 1 1) T) >> !? (T (== 1 1) T) >> T -- Undefined >> .. >> i.e. I'm assuming this is a... >> "A list is evaluated as a function call, with the CAR as the function >> and the CDR the arguments to

Re: stuck re quote

2016-11-22 Thread Christophe Gragnic
On Tue, Nov 22, 2016 at 11:29 AM, dean wrote: > > Also I read that ' is a macro for quote but I couldn't produce a ' > equivalent of ((quote (X) (* X X)) 9) i.e. > > : ((quote (X) (* X X)) 9) > -> 81 > : (('(X) (* X X)) 9) > !? (('(X) (* X X)) 9) > NIL -- Undefined > ? >

Re: Ersatz source code and EmuLisp

2016-10-31 Thread Christophe Gragnic
On Mon, Oct 31, 2016 at 9:57 PM, Jon Kleiser wrote: > Hi Chri, Hi Jon, > This is how you build ersatz/picolisp.jar, and at the same time get the > complete PicoLisp.java source: > cd into the ersatz/, the do "pil mkJar +". Things I already knew: 1) I knew the purpose and

Ersatz source code and EmuLisp

2016-10-31 Thread Christophe Gragnic
Hi PicoLispers, My question: Is there any documentation about the building of the Ersatz jar ? I guess all the keys are in the mkJar file but I'm lost reading it. Background: I'm mostly using a JavaScript version of PicoLisp: EmuLisp and since Jon Kleiser has not much time to extend it further,

Re: Spring 2016 Lisp Game Jam

2016-04-19 Thread Christophe Gragnic
If you need more portability and don't need the DB, you could use miniPicoLisp. And what about Ersatz ? chri -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Redesigned Wiki is Live

2016-03-25 Thread Christophe Gragnic
On Fri, Mar 25, 2016 at 7:55 PM, Erik Gustafson wrote: > The general theme of the feedback was that there is too much text, > not enough super simple code examples […]. Indeed. I'm no PicoLisp expert but I don't know nothing either, and the first code example seems

Re: Redesigned Wiki is Live

2016-03-25 Thread Christophe Gragnic
On Thu, Mar 24, 2016 at 9:49 PM, wrote: > Please host the stylesheets on > picolisp.com instead of using tracking CDN.? I only see fonts (or infos about fonts + fonts) being retrieved from fonts.googleapis.com, no CSS, Although I may agree with this tracking defect, I guess

Re: Tractatus Pico-Blaesicus

2016-03-08 Thread Christophe Gragnic
On Tue, Mar 8, 2016 at 9:45 PM, Mike Pechkin wrote: > hi, Hi Mike, > in the beginning of year I've wrote special preface for Forth or coding in > general. In memory of Descartes. It describes zero step before coding. > in Russian: >

Re: wr function in Ersatz

2016-01-02 Thread Christophe Gragnic
On Thu, Dec 31, 2015 at 12:37 PM, Alexander Burger wrote: > > A better idea: Why do you bother with ErsatzLisp at all? If you don't > have Linux or another POSIX system, instead of starting the Java-VM you > might as well start a Linux-VM and run real PicoLisp with all

Questions about EmuLisp

2016-01-02 Thread Christophe Gragnic
Hi all, These are primarily questions for Alex, but I'm interested in the answers of other people too. I'm a big fan of PicoLisp even if I only scratched the surface yet, since I don't use the server or the DB. I know most of the heavy PicoLisp users here rely extensively on the server and the

Re: A symbol that is bound only once

2015-12-30 Thread Christophe Gragnic
On Tue, Dec 29, 2015 at 11:40 PM, Rick Hanson wrote: > I admit that I didn't watch the video; You should ! The guy is funny. Alternatively you can read a page where I translate every step to PicoLisp: http://galerie.microalg.info/profgra:tests:y_combinator with live code

Re: wr function in Ersatz

2015-12-30 Thread Christophe Gragnic
Hi all, On Tue, Dec 29, 2015 at 8:44 AM, Alexander Burger wrote: > > Partial documentations? Questions why it is not fully implemented? Indeed. But anyway, here you have another question: «why is it not implemented at all?» ! Maybe you could add those binary functions to

Re: wr function in Ersatz

2015-12-28 Thread Christophe Gragnic
On Sun, Dec 27, 2015 at 10:18 AM, Alexander Burger wrote: > Hi Christophe, Hi Alex, >> Is there a reason why 'wr is not included in Ersatz? > > It is simply because the whole family of binary I/O functions is not > supported. > > The plain 'wr' would be quite trivial to

A symbol that is bound only once

2015-12-28 Thread Christophe Gragnic
Hi all, Sorry for this cryptic subject. I couldn't find a better one. So here is a snippet: http://pastebin.com/ydJj2DUU (also as an attached file and pasted at the end of this email). It's from this video: https://www.youtube.com/watch?v=FITJMJjASUs that I'm trying to translate to PicoLisp.

wr function in Ersatz

2015-12-26 Thread Christophe Gragnic
Hi, This may be more a question for Alex. Is there a reason why 'wr is not included in Ersatz? Or am I missing something? chri -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: bitmaps from random

2015-12-21 Thread Christophe Gragnic
On Mon, Dec 21, 2015 at 10:58 PM, Erik Gustafson wrote: > Hi, > > […] > > The built-in 'wr' does just that - writes raw bytes to the current output > channel. Indeed. I missed this one. Thanks. Oops, it seems that Ersatz doesn't have it. On Mon, Dec 21, 2015 at 11:12

Re: PicoLisp Website

2015-12-18 Thread Christophe Gragnic
On Fri, Dec 18, 2015 at 7:17 PM, Erik Gustafson wrote: > Sure thing! I'll send a few screenshots when I'm back at my computer in a > couple hours. I brutally «saved as» a local version then uploaded it here: http://fezzik.free.fr/picolisp/ chri --

Re: PicoLisp Website

2015-12-14 Thread Christophe Gragnic
On Mon, Dec 14, 2015 at 9:05 AM, Alexander Burger wrote: > > So, yes, it is executed on the server. This feature opens up the server > completely, so it is better not enabled on a publicly accessible system. Hi all, hi Alex. Maybe the job could securely be done by EmuLisp.

Hosting PicoLisp

2015-12-13 Thread Christophe Gragnic
Hi, 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 questions: 1) Is it possible to serve a PicoLisp app behing Apache? 2) Do

Re: PicoLisp Website

2015-12-13 Thread Christophe Gragnic
On Sun, Dec 13, 2015 at 6:51 PM, Erik Gustafson wrote: > Hi all, > > Awesome! Thanks for the feedback. Glad you all like it :) I liked it too. Very nice work. I tried to investigate how you embed the REPL but no luck. Could you explain please? Are the exprs executed

Adaptation in PicoLisp of a nice video in Ruby about the Y combinator

2015-12-02 Thread Christophe Gragnic
Hi dear list, I wanted to share the first lines (already quite a few) of a work in progress. I watched this video quite a long time ago: https://www.youtube.com/watch?v=FITJMJjASUs and wanted to see how a PicoLisp version would look like. See what I've done so far here:

Re: Announce: MCU based PicoLisp machines for sale

2015-11-03 Thread Christophe Gragnic
Thanks for the announcement. On Wed, Nov 4, 2015 at 3:03 AM, Raman Gopalan wrote: > > [4]: https://www.adafruit.com/products/284 http://www.4star.it/ worked better for me. chri -- http://profgra.org/lycee/ (site pro) http://delicious.com/profgraorg (liens, favoris)

PicoLisp now detected on GitHub

2015-06-17 Thread Christophe Gragnic
Hi list. They even spelled it correctly ! https://github.com/github/linguist/pull/2449#issuecomment-112829159 See one of your repos or this one: https://github.com/Microalg/Microalg chri -- http://profgra.org/lycee/ (site pro) http://delicious.com/profgraorg (liens, favoris)

A transient with a single hat character

2015-05-20 Thread Christophe Gragnic
Hi list, Is there a way to have just ^ in PicoLisp ? I read the docs, and especially this section: http://www.software-lab.de/doc/ref.html#transient-io and didn't find an answer to my question. Maybe it would be nice to add this corner case to the examples ? chri -- http://profgra.org/lycee/

Re: In ersatz, seed is not returning a small number

2015-04-28 Thread Christophe Gragnic
On Tue, Apr 28, 2015 at 7:58 PM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, Hi Alex. Is it really so important that the random generators give the same results? Not so much important indeed, not crucial, but very interesting! I had never intended that. The reason is that

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-28 Thread Christophe Gragnic
On Tue, Apr 28, 2015 at 8:35 AM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, […] n = (Seed 32) % n; should it be OK? Yes. It works. Great. Thanks for the input! Thank you for considering it ! The 2)b) of my big email (april, 26th) of this thread was not answered but

Re: In ersatz, seed is not returning a small number

2015-04-28 Thread Christophe Gragnic
On Tue, Apr 28, 2015 at 8:38 AM, Alexander Burger a...@software-lab.de wrote: Good, but this is not completely correct. It stores the reduced 32-bit value in 'Seed'. I think 'Seed' must keep the full 64-bit value. Indeed. I'm not used to read lines with interleaved affectations. I changed it

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-27 Thread Christophe Gragnic
On Mon, Apr 27, 2015 at 8:01 AM, Alexander Burger a...@software-lab.de wrote: […] A shift of 32 bits, however, would not suffice, because it would put the sign bit of the original 64-bit number into the MSB of the result. OK, I understand. I have some more ideas to try to make the behaviors

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-26 Thread Christophe Gragnic
On Sun, Apr 26, 2015 at 5:48 PM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, […] return n=0? n*2 : -n*2+1; This ensures the return value is non negative (?). But why would not the result overflow? Yes, it may overflow. The above operation is to keep the sign bit in bit

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-25 Thread Christophe Gragnic
Hi, Still struggling. I'd like some help to find my mistake trying to understand the Ersatz version of initSeed. The source is here, if you don't have it handy: https://code.google.com/p/picolisp/source/browse/ersatz/sys.src#234 final static long initSeed(Any x) { Means it gives back a signed 64

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-24 Thread Christophe Gragnic
On Thu, Apr 23, 2015 at 11:12 AM, Jon Kleiser jon.klei...@fsat.no wrote: Feel free to give it a try. As EmuLisp uses JavaScript numbers, 6364136223846793005 is too many digits, but you may find a way around it. Progress is being made. I use this JS lib for arbitrary big integers:

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-23 Thread Christophe Gragnic
at 10:50 PM, Christophe Gragnic christophegrag...@gmail.com wrote: Now the question. I found discrepancies between PicoLisp: : (rand 1 1000) - 1 : (rand 1 1000) - 934 : (bye) And Ersatz : (rand 1 1000) - 1 : (rand 1 1000) - 967 : (bye) I tried to inspect the source for getting some

Pseudo Random Number Generation across PicoLisp implementations

2015-04-22 Thread Christophe Gragnic
Hi all, The next paragraph gives a bit of context. If you are bored you can skip it and go directly to the technical question. I use PicoLisp to implement a pedagogical language, directly embedded in PicoLisp. In an exercise about dices, I noticed a kind of similarity among the results of my

Re: Static file server with Ersatz

2015-03-16 Thread Christophe Gragnic
Hi Alex, hi Joe. On Mon, Mar 16, 2015 at 9:41 AM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l I haven't thought about this in depth. 'server' might be ported to Ersatz

Static file server with Ersatz

2015-03-16 Thread Christophe Gragnic
Hi list, I'm investigating a way to be able to fire up a static file server like in Python: python -m http.server 8000 but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l 2) grab the path of the requested file 3) read the file and send it to

Re: Google Code closing

2015-03-13 Thread Christophe Gragnic
On Fri, Mar 13, 2015 at 4:32 PM, Alexander Williams a...@unscramble.co.jp wrote: Everyone's comments are valid, but we need to remember: For PicoLisp's user base to grow, lowering barriers to entry should be the first priority. The choice of the repo wouldn't have any effect on pure picolisp

27 implementations of a Lisp

2015-03-13 Thread Christophe Gragnic
Hi, I thought some people here might be interested by this: https://github.com/kanaka/mal Excerpt from the readme: ««« Mal is a learning tool. See the make-a-lisp process guide. Each implementation of mal is separated into 11 incremental, self-contained (and testable) steps that demonstrate core

Rainbow parens for vim users

2015-02-18 Thread Christophe Gragnic
Hi list. I discovered this several weeks ago and thought this afternoon that it may interest some of you. Put this in .vim/ftdetect/lisp.vim au BufNewFile,BufRead *.l set filetype=lisp Then this in your .vimrc let g:lisp_rainbow = 1 for things like +-*/= to stay white: hi def lispFunc

Re: Location of an error

2015-01-26 Thread Christophe Gragnic
On Sat, Jan 24, 2015 at 9:07 AM, Alexander Burger a...@software-lab.de wrote: Now when the code of the user/dev contains a mistake, the location of the error is always at the line where `my_while` is called and not in its body at the line of the mistake. I'm not sure I understand the problem.

Suggestions for the doc of *Err

2015-01-24 Thread Christophe Gragnic
Hi, I was trying to avoid the «? prompt» in case of an error. I know that this REPL is sometimes useful, but not for my use case. I eventually succeeded with (de *Err (bye)). During this journey, I noticed a few things. About *Err, the doc says in: http://www.software-lab.de/doc/refE.html#*Err

Location of an error

2015-01-23 Thread Christophe Gragnic
Hi all, I emulated a «while» loop with a function defined with a `de`, say `my_while`. It has a body that allows a user defined body (the user is a developer!) to be executed, thanks to 'run. Now when the code of the user/dev contains a mistake, the location of the error is always at the line

Re: Syntax Highlighting in PicoLisp

2014-11-22 Thread Christophe Gragnic
On Sat, Nov 22, 2014 at 8:37 AM, Alexander Burger a...@software-lab.de wrote: Hello list, Hello ! I'm opposed to syntax highlighting of symbols in PicoLisp. Wao, this is quite an introduction for a post on the list ! I guess that it is not spontaneous and may be triggered by a discussion on

Syntax in src64

2014-11-11 Thread Christophe Gragnic
Hi Alex, I was staring at this magnificent piece of code, say in this file: https://code.google.com/p/picolisp/source/browse/src64/flow.l and was wondering why and how some pieces of code didn't have parens. My guess about the «why»: since its an assembler, there is no need for a tree of

Re: Is there a 'conc that evaluates its first arg ?

2014-11-05 Thread Christophe Gragnic
On Wed, Nov 5, 2014 at 7:53 AM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, Hi Alex, hi all. I can assure you that 'conc' always evaluates its first arg. OK, then the reason why there is no need to quote A in the example at: http://www.software-lab.de/doc/refC.html#conc is

Is there a 'conc that evaluates its first arg ?

2014-11-04 Thread Christophe Gragnic
Hi, Maybe I should tell my problem as a whole. I'm implementing a embedded language in PicoLisp. I'm currently implementing lists with objects: # Internals (class +Liste) (dm T (ELTS) (=: elts ELTS) ) (dm push (elt) (conc (:: elts) (list elt)) ) # this doesn't work # Interface with

Re: Announce: PicoLisp in Hardware (PilMCU)

2014-09-19 Thread Christophe Gragnic
On Fri, Sep 19, 2014 at 7:08 PM, Loyall, David david.loy...@nebraska.gov wrote: The Internet would like to run this locally. Yes ! Would you post the verilog source and build files? Or a link to a repository? Now PicoLisp should not be jealous of BF anymore: https://github.com/briandef/bf16

Ersatz: Passing/receiving floats to/from Java libs

2014-09-14 Thread Christophe Gragnic
Hi, I was wondering how easy it was to pass floats to java libs from Ersatz, and also maybe receive some and rescale them to ints. I can't find anything about this in the docs of Ersatz or in srborlongan's project: http://picolisp.com/wiki/?JavaIterop Thanks for having read this maybe silly

Re: (index 'any 'lst) implementation

2014-09-03 Thread Christophe Gragnic
On Wed, Sep 3, 2014 at 2:56 PM, Alexander Burger a...@software-lab.de wrote: What you describe here is call lazy evaluation. While some languages support this, PicoLisp (like most other Lisps) doesn't. […] The fundamental rule of Lisp function calls (a function recursively evaluates its

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

2014-09-02 Thread Christophe Gragnic
Hi all, On Mon, Sep 1, 2014 at 6:05 AM, Tomas Hlavaty t...@logand.com wrote: : (* 1.0 1.0) - 100 You want: (*/ 1.0 1.0 1.0), see http://software-lab.de/doc/ref_.html#*/ That's funny because I read about */ right before posting my email but couldn't connect with my problem. If there is room

Re: try picolisp

2014-09-01 Thread Christophe Gragnic
On Mon, Sep 1, 2014 at 5:52 AM, Tomas Hlavaty t...@logand.com wrote: […] it is unsafe by design. […] even if you bind those symbols to 'prog', an attacker could set them to the original values, which are simple numbers. Hey, this is a very nice idea and answer to my question of safe interps.

Re: try picolisp

2014-09-01 Thread Christophe Gragnic
On Mon, Sep 1, 2014 at 10:02 PM, Thorsten Jolitz tjol...@gmail.com wrote: could you elaborate on this a bit? Sorry, I cannot give you better info that what is in the ref: http://www.tcl.tk/man/tcl8.6/TclCmd/interp.htm#M4 chri -- http://profgra.org/lycee/ (site pro)

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

2014-08-31 Thread Christophe Gragnic
Hi all crazy Lispers! I managed to handle being NIL, thanks to Michel and Alex. Now I have another similar problem with numbers. First, I understand the reasons behind having fixpoint numbers in Picolisp (basically simple implementation and control). Now considering that my goal is to implement

Re: try picolisp

2014-08-31 Thread Christophe Gragnic
On Sun, Aug 31, 2014 at 12:09 PM, Tomas Hlavaty t...@logand.com wrote: would this clasify? You mean «clarify»? $ cat /dev/null rm -fr / ^d I executed arbitrary script while limiting its effects. Indeed. The most important missing part is to define, what functionality exactly do you

Re: try picolisp

2014-08-30 Thread Christophe Gragnic
On Sat, Aug 30, 2014 at 8:52 AM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, Hi Alex, I would not disable them system-wide. Oops. Indeed. In fact I'm still very influenced by Tcl. Tch has an «interp» command that allow to create, and in fact cascade, interpreters. Untrusted

Re: try picolisp

2014-08-30 Thread Christophe Gragnic
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 are not allowing arbitrary functionality. Maybe I should have said: «Execute

Re: try picolisp

2014-08-29 Thread Christophe Gragnic
! Christophe Gragnic, If you use Docker containers… Thanks for your proposal. I'm just a (maths teacher) and ((computer science and dev) hobbyist and teacher). I try to build things that are as simple as possible. Building, (and even only maintaining if already built) something like: - web site

Re: try picolisp

2014-08-29 Thread Christophe Gragnic
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 every line will work as expected! `rm -fr /` can be

Re: try picolisp

2014-08-28 Thread Christophe Gragnic
On Thu, Aug 28, 2014 at 7:53 PM, Jakob Eriksson ja...@aurorasystems.eu wrote: Is it hard to implement minimalist version of minipicolisp in browser ? Like http://tryclj.com/ ? Hi Mike. There is EmuLisp, a JS implementation by Jon Kleiser. It is not advertised much on the official PicoLisp

Re: try picolisp

2014-08-28 Thread Christophe Gragnic
On Thu, Aug 28, 2014 at 9:32 PM, Jon Kleiser jon.klei...@fsat.no wrote: Thanks to suggestions from Christophe, I have re-structured the code, And removed some trailing whitespace! (more to come (crossing fingers)). corrected some errors, and implemented a few new functions (more coming).

NIL and

2014-08-23 Thread Christophe Gragnic
Hi all, Is there somewhere some info about being NIL? I'd like to know why, maybe with some historical hindsight, and if there is a mean to trick the interpreter? The language I'm trying to embed in PicoLisp would love to have and NIL different ! chri -- http://profgra.org/lycee/ (site

Re: NIL and

2014-08-23 Thread Christophe Gragnic
On Sat, Aug 23, 2014 at 3:13 PM, Alexander Burger a...@software-lab.de wrote: Is there somewhere some info about being NIL? http://software-lab.de/doc/ref.html#nilSym http://software-lab.de/doc/ref.html#nilSym-io Thanks. I knew about this links, I just wanted to know why. The language

Little mess around the docs in the ref

2014-08-22 Thread Christophe Gragnic
Hi, `car` and `cdr` are ok but all the other combinations should point to: http://software-lab.de/doc/refC.html#cXr Also I didn't forget the thread about the docs that I started. I may thank you and answer to all soonish. chri -- http://profgra.org/lycee/ (site pro)

Re: Build transient value on the fly

2014-08-15 Thread Christophe Gragnic
Dear list, some updates about my problem. I eventually decided to do the things The Good Way. Adding a shortcut to EmuLisp was a fun hack, almost a joke, but not a good idea as: 1) It was not EmuLisp anymore. 2) I may need this export functionality with other platforms (read PicoLisp

Documentation again

2014-08-11 Thread Christophe Gragnic
Le 7 août 2014 14:11, Jon Kleiser jon.klei...@fsat.no a écrit : I use the frame-based solution for doc lookup (index.html by me), here http://www.software-lab.de/doc/, I realised only a few months ago that these pages were Jon's work (or in part?). Thanks for this. I'd be curious to have an

Re: Build transient value on the fly

2014-07-29 Thread Christophe Gragnic
Le 29 juil. 2014 10:40, andr...@itship.ch a écrit : Why not redefine function Afficher? [...] Would that be an idea? But this IS the idea I'm trying to explain!!! The problem was to also redefine transient symbols, dynamically. chri

Re: Build transient value on the fly

2014-07-28 Thread Christophe Gragnic
On Mon, Jul 28, 2014 at 9:27 AM, Tomas Hlavaty t...@logand.com wrote: 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

Re: Build transient value on the fly

2014-07-28 Thread Christophe Gragnic
On Mon, Jul 28, 2014 at 9:11 PM, Tomas Hlavaty t...@logand.com wrote: I can't make sense of what you are trying to achieve. Why do you want to use transient symbols? Why not use normal interned symbols? How does your use case differ? Do you have a simple example? Suppose you embed a DSL

Re: Build transient value on the fly

2014-07-27 Thread Christophe Gragnic
On Sun, Jul 27, 2014 at 3:09 PM, Tomas Hlavaty t...@logand.com wrote: Hi Christophe, Hi. As I tried to explain in this sentence: No problem for Display, but hello should spontaneously have its value changed to some XML containing the string hello. I had no problem with functions (I used a

Build transient value on the fly

2014-07-25 Thread Christophe Gragnic
Hi, The technical/dry question: Is it possible to shortcut the value resolution of transient symbols with a custom function? Something like: (de shortcut_transient (name) (pack name !)) This would add a ! to the default value of a transient sym. If I had to answer, I'd say «no», but PicoLisp is

Re: Build transient value on the fly

2014-07-25 Thread Christophe Gragnic
On Fri, Jul 25, 2014 at 12:00 PM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, Hi Alex. Hmm, so is this the same as the localization does in PicoLisp? Quite the same, except that we don't have a list of all messages to translate. Any transient, even an unexpected one, should

  1   2   >