Re: Vip without [N]curses

2019-08-11 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, >> (for termux I always have to adapt the first line in /bin/vip, >> i.e. replace /usr with termux $PREFIX, /data/data/com.termux/files/usr) > > This is no longer necessary if you install in Termux > >$ apt install termux-exec > > With that, hashbangs like

Re: Vip without [N]curses

2019-08-11 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, > It should be a problem only on the first bootstrap. After you > downloaded the *.s > files once and got a running system, it will self-build from that time on. I could fix this now, maybe a rather Archlinux specific problem. Fist I figured out, that java

Re: Vip without [N]curses

2019-08-11 Thread Thorsten Jolitz
OpenJDK Runtime Environment (IcedTea 2.6.13) (Arch Linux build 7.u171_2.6.13-1-x86_64) OpenJDK 64-Bit Server VM (build 24.171-b02, mixed mode) > > > BR, > Geo > On Sunday, 11 August 2019, 09:54:04 pm GMT+9, Thorsten Jolitz > wrote: > > Alexander Burger writes:

Re: Vip without [N]curses

2019-08-11 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, > more and more I got frustrated with all the quirks of Ncurses (as > discussed here > and in IRC), so I decided to abandon them, and implement Vip directly > with ANSI > escape sequences (VT-100). > > To my surprise this turned out quite easy, and the result

Re: Yet Another Emacs PicoLisp Mode - hybrid

2019-07-07 Thread Thorsten Jolitz
Grant Shangreaux writes: Hello Grant, > I would be happy to make > a pull-request into the tj64 version if it is welcome, and Alexis I > would be interested in helping to improve your version as well > (especially since it is the one listed on MELPA). > > Would be glad to hear from Emacs users

Re: Setup for Emacs org-mode?

2019-07-07 Thread Thorsten Jolitz
r...@tamos.net writes: Hi Rick, > Hi Lawrence, > > Welcome back to the list! > >> Anyone have the definitive setup they could share for picolisp on >> Emacs org-mode? > > AFAIK, there is no "definitive setup" in Emacs. > >> There seems to be two picolisp-modes > > Three is the count I have. > >

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

2018-05-11 Thread Thorsten Jolitz
Joe Bogner writes: Hey Joe, > > For WSL, you need to build picoLisp on a linux machine and then transfer > it down. You can follow the download/install instructions, but here is > generally what I did maybe I don't really understand what you mean by transfer down, but in my

Re: Emacs mode can't run pil

2018-03-03 Thread Thorsten Jolitz
Lawrence Bottorff writes: Hi Lawrence, [just for the protocoll, I send you the identical answer on the org-mode mailing list already]. > I'm looking at picolisp -- and wondering how it works, or better, why it > doesn't really work work with babel. First problem, I couldn't

Re: Chinese input causes mess in the REPL

2018-02-04 Thread Thorsten Jolitz
Danilo Kordic writes: > GNU Emacs can be used as a line editor. Execute elisp expression > ``(term "/absolute/path/to/pil")'' then activate `term-line-mode' with > ``C-C C-j''. > > Is this of any help? How much does it count :) ? Cool! I did not know this ... --

Re: Which emacs mode to use?

2017-04-14 Thread Thorsten Jolitz
Tim Johnson writes: Hi Tim, > I note that my emacs (25.1.1 on ubuntu) will install and provide > 'picolisp-mode as an elpa package. I'm not the author of this mode, but I somehow took over maintainership (more or less) and did some contributions to the mode (in my github

Re: Method undefined - why?

2017-03-23 Thread Thorsten Jolitz
Thorsten Jolitz <tjol...@gmail.com> writes: > so somehow my understanding of read macros is false here: > > (class ~(any (pack '+ ClsNm))) Grrr ... of course when reading (de foo (ClsNm) ...) ClsNm is still NIL, so the outcome of the above is (class +) which can't work. Sorr

Re: Method undefined - why?

2017-03-23 Thread Thorsten Jolitz
Thorsten Jolitz <tjol...@gmail.com> writes: > Alexander Burger <a...@software-lab.de> writes: Ok, this works ;-) : (de foo2 (ClsNm MethNm) (class +Bar) (dm plus> (X) (+ 1 X))) -> foo2 : (foo2) -> plus> : (setq B (new '(+Bar))) -> $177641167640474 : (plus

Re: Method undefined - why?

2017-03-23 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, >> : (de +Test >>(T (Hi) (=: hi Hi)) >>(hi> (Nm) (or (text (: hi) Nm) "Dear Sir or Madam,")) ) >> -> +Test > > .. while this is half of the lunch ... > >> : (hi> Foo "Alex") >> !? (hi> Foo "Alex") >> hi> -- Undefined # => WHY? >

Re: Method undefined - why?

2017-03-23 Thread Thorsten Jolitz
) > hi> -- Undefined ? Should it work? Does it work for others, but not for me? This would be my questions ... ;-) > On Thu, Mar 23, 2017 at 3:17 PM, Thorsten Jolitz > <tjol...@gmail.com> wrote: > > Hi List, > > playing around a bit wih Pil classes/objec

Method undefined - why?

2017-03-23 Thread Thorsten Jolitz
Hi List, playing around a bit wih Pil classes/object, here is something I don't understand: #+BEGIN_SRC picolisp : (de +Test (T (Hi) (=: hi Hi)) (hi> (Nm) (or (text (: hi) Nm) "Dear Sir or Madam,")) ) -> +Test : (setq Foo (new '(+Test) "Hi @1")) -> $176777024346263 : (hi> Foo

Re: JavaCode with static class methods

2017-03-04 Thread Thorsten Jolitz
Alexander Burger writes: Hi Joe, Hi Alex, >> I'm experimenting a bit with the 'java' function, and the StringBuilder >> ... >> (java "java.lang.Math" 'sqrt 4) > > It needs a different call: >: (java "java.lang.Math" 'sqrt (-6 . 64.0)) thanks for the hints, so

JavaCode with static class methods

2017-03-02 Thread Thorsten Jolitz
Hi List, I'm experimenting a bit with the 'java' function, and the StringBuilder and GregorianCalendar example from the JavaCode Wiki entry work fine, but I wonder how to use a constructorless class like e.g. java.lang.Math with its static class methods? #+NAME: JavaCode - none of these work

Re: PicoLisp as Femto extension language

2016-09-05 Thread Thorsten Jolitz
Thorsten Jolitz <tjol...@gmail.com> writes: Hi List, [funny enough, in GNUS Ricks posts to this thread don't show up for me, while I can see them in the www.mail-archive.com, so I follow up to my own post instead of his.] My original idea was to compile Femto as shared library, crea

PicoLisp as Femto extension language

2016-09-04 Thread Thorsten Jolitz
Hi List, recently I found out about Femto, a minimal Emacs implementation in less than 2k lines of C (including ncurses, though): , | git clone https://github.com/hughbarney/femto.git ` , | Femto is an extended version of Atto Emacs. | | In Defining Atto as the lowest functional

Re: Extending the wiki markup syntax

2016-03-09 Thread Thorsten Jolitz
Alexander Burger writes: Hi Alex, Hi List, thanks for the cool tractatus and the as always very interesting views about wiki markup. I don't know if I should mention it, because it's in a raw state and I don't have much time to polish it now, but as you know there does

Re: Emacs REPL not "full-featured"?

2016-01-01 Thread Thorsten Jolitz
Lawrence Bottorff writes: > I've got a REPL started in Emacs (called from ELPA version of picolisp > major mode with run-picolisp), but I'm noticing it doesn't have such > features as more, edit, what, etc. Starting picolisp from the command > line with pil is however

Re: org mode picolisp?

2015-12-29 Thread Thorsten Jolitz
"O.Hamann" writes: Hi All, as the author of of ob-picolisp I should make some smart comment now, but I'm afraid I cannot add much to the discussion, the former answers explained it all very well. As the answers show, the library still seems to work fine, so the original

Re: Single File Function Reference

2015-10-17 Thread Thorsten Jolitz
writes: Hi List, > There are two books about picolisp available, one containing also the > reference [...] Thought I'm not absolutely sure that the reference in > there is on the newest current state, maybe someone else can > confirm/deny this. The function reference

Re: Let and Glue

2015-08-10 Thread Thorsten Jolitz
Rick Hanson cryptor...@gmail.com writes: Hi Rick, Here is a problem (again!) with using a pil backquote expression, where the user, like you or me, is stuck on CL-unquote thinking. Let's call g again, but now we switch the places of the dates and times. In this case, we might expect the

Re: Let and Glue

2015-08-09 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, sorry for being thick as a brick ... Well, 'bind' is the evaluating version of 'let'. It could be used to implement the outher functions. I'll check that out. What you probably mean is something different. It is a different way of

Re: Let and Glue

2015-08-09 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@gmail.com writes: Hi Alex, When I quote the reference: , | A single backquote character ` will cause the reader to evaluate | the following expression, and return the result. | | : '(a `(+ 1 2 3) z) | - (a 6 z) ` it looks to me as if the difference

Re: Let and Glue

2015-08-09 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, uhh ... bad timing from my side, writing more confused question while you are actually answering them at the same time... Either : (let X (+ 2 3) (list 3 4 X)) # I would prefer a simple 'list' - (3 4 5) or : (let X (+ 2 3)

Re: Let and Glue

2015-08-09 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@gmail.com writes: Hi List, This comes pretty close to what I was looking for, thanks. The only drawback is that normal parens (and double quotes) are very common in text so a lot of escaping would be necessary. Something like this: (g Current temperature in Berlin

Re: Let and Glue

2015-08-08 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I wonder how I can use local variable X inside of the 'glue' argument list: , | : (let X (+ 3 4) X) | - 7 | | : (let X (+ 3 4) (glue '(Number X `(- 4 9 | - Number X -5 | | : (let X (+ 3 4) (glue '(Number `X `(- 4

Re: Let and Glue

2015-08-08 Thread Thorsten Jolitz
Rick Hanson cryptor...@gmail.com writes: Yeah, sorry. I had this on the mind -- a different animal altogether. $ sbcl * (let ((X (+ 3 4))) `(hello ,X ,(- X 9))) (HELLO 7 -2) Maybe I was confused by Emacs Lisp a bit too: , | (let ((x (+ 3 4)) | (y (+ 5 6))) | `(+ 5 x ,y))

Re: Let and Glue

2015-08-08 Thread Thorsten Jolitz
, you have to thanks Guillermo R. Palavecino in the first place, since he wrote it: , | ;; picolisp-mode: Major mode to edit picoLisp. | ;; Version: 1.3 | | ;;; Copyright (c) 2009, Guillermo R. Palavecino | ;;; Copyright (c) 2011, 2012 Thorsten Jolitz ` I just became the (rather

Re: Open Sound Control

2015-07-30 Thread Thorsten Jolitz
Erik Gustafson erik.d.gustaf...@gmail.com writes: Hi Erik, I find the combination of sound picolisp very interesting Me too! One of my long term goals is to write audio software in PicoLisp. Gotta have the most dynamic language for one of the most dynamic human processes ;) after

Re: Open Sound Control

2015-07-30 Thread Thorsten Jolitz
! Rob On Thu, Jul 30, 2015 at 1:26 PM, Thorsten Jolitz tjol...@gmail.com wrote: Erik Gustafson erik.d.gustaf...@gmail.com writes: Hi Erik, https://github.com/erdg/picolisp-osc If interested, more info about OSC can be found here

Re: Open Sound Control

2015-07-29 Thread Thorsten Jolitz
Erik Gustafson erik.d.gustaf...@gmail.com writes: Hi Erik, https://github.com/erdg/picolisp-osc If interested, more info about OSC can be found here: opensoundcontrol.org/introduction-osc opensoundcontrol.org/spec-1_0 I find the combination of sound picolisp very interesting, are you

Re: Property lists and keywords in PicoLisp

2014-11-05 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, In PicoLisp, a property list cannot be seen separated from a symbol. After all, these are properties OF a symbol. It is just an implementation detail that they are a list internally. not in PicoLisp, but e.g. in Emacs Lisp there are

Re: Property lists and keywords in PicoLisp

2014-11-03 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, using flat property lists with keywords like , | (:a b :c d) ` as data (not as a symbol's property list) is pretty common in e.g. Emacs Lisp and elsewhere. In Clojure the keywords even work like functions AFAIK I feel

Property lists and keywords in PicoLisp

2014-11-01 Thread Thorsten Jolitz
Hi List, using flat property lists with keywords like , | (:a b :c d) ` as data (not as a symbol's property list) is pretty common in e.g. Emacs Lisp and elsewhere. In Clojure the keywords even work like functions AFAIK , | (:a Lst) - b ` These 'stand-alone' property lists

Strange PicoLisp site

2014-10-27 Thread Thorsten Jolitz
Hi List, have you seen this website: , | http://www.picolisp.org/ ` Its a nice looking website, but I cannot see no connection to PicoLisp whatsover. Or does 'picolisp' have other no technical meanings to native English speakers? Even the camel case they use is the same as in

Re: Strange PicoLisp site

2014-10-27 Thread Thorsten Jolitz
:49 AM Thorsten Jolitz tjol...@gmail.com wrote: Hi List, have you seen this website: , | http://www.picolisp.org/ ` Its a nice looking website, but I cannot see no connection to PicoLisp whatsover. Or does 'picolisp' have other no technical meanings to native English speakers

Re: Strange PicoLisp site

2014-10-27 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I think the above site is evil. so the message to take home is that evilness might come along with a pretty attractive appearance ... -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: The many uses of PilMCU

2014-10-08 Thread Thorsten Jolitz
Christophe Gragnic christophegrag...@gmail.com writes: Hi Christophe, This thread is meant to collect ideas about PilMCU. At least mine (because I need to clean them up a bit) and ideas of other PicoLispers (out of curiosity). Maybe some items will look more like questions like «is it even

Re: Programming environment for PilMCU

2014-09-22 Thread Thorsten Jolitz
this answer your inquiry? Thanks! Yes, thank you! This stuff is exciting, but a bit new for me too ... On Monday, September 22, 2014 5:29 PM, Thorsten Jolitz tjol...@gmail.com wrote: Alexander Burger a...@software-lab.de writes: Hi Alex, Assuming PilMCU hardware exists and someone wants to use

Re: PicoLisp roots

2014-09-21 Thread Thorsten Jolitz
jerome moliere jer...@javaxpert.com writes: Thanks for your quick reply... Is there a guide explaining major differences between Common Lisp PicoLisp ? I guess, reading your answer , that there 's no just a few syntactic differences between the 2 dialects ... I can read between the lines

Programming environment for PilMCU

2014-09-21 Thread Thorsten Jolitz
Hi List, this might not be a smart question, but anyway: Assuming PilMCU hardware exists and someone wants to use or program it, how would that look like? Where would one type the commands to manage the file system (whats the PilCMU terminal/console?), how would one interact with the PicoLisp

Re: Announce: PicoLisp in Hardware (PilMCU)

2014-09-19 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex (and George), we are proud to announce PilMCU, the Lisp Machine on a Chip! :) though not really a hardware/low-level guy, I think this sounds pretty exiting! How shall we proceed? We need investors (or crowdfunding) to polish,

Re: Announce: PicoLisp in Hardware (PilMCU)

2014-09-19 Thread Thorsten Jolitz
Loyall, David david.loy...@nebraska.gov writes: The Internet would like to run this locally. Would you post the verilog source and build files? Or a link to a repository? I think this has the potential to make a very nice and successfull kickstarter project, so why not try to build a

Re: Announce: PicoLisp in Hardware (PilMCU)

2014-09-19 Thread Thorsten Jolitz
Loyall, David david.loy...@nebraska.gov writes: From: Thorsten Jolitz Loyall, David writes: The Internet would like to run this locally. Would you post the verilog source and build files? Or a link to a repository? I think this has the potential to make a very nice and successfull

Re: Announce: PicoLisp in Hardware (PilMCU)

2014-09-19 Thread Thorsten Jolitz
Christophe Gragnic christophegrag...@gmail.com writes: On Fri, Sep 19, 2014 at 10:53 PM, Loyall, David david.loy...@nebraska.gov wrote: If you sell a FPGA configured to be an open source Lisp CPU, I'll buy a few Someone on Hacker News: «where's the kickstarter page? I want a few of those.»

Re: (index 'any 'lst) implementation

2014-09-03 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I see that the index function evaluates the entire lst before searching for a match. Wouldn’t it be more efficient to evaluate the elements of lst one by one, testing the result for a match, and only proceed with evaluation of the next

Re: try picolisp

2014-09-02 Thread Thorsten Jolitz
Christophe Gragnic christophegrag...@gmail.com writes: 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 thx

Re: try picolisp

2014-09-01 Thread Thorsten Jolitz
Christophe Gragnic christophegrag...@gmail.com writes: Hi Christophe, On Mon, Sep 1, 2014 at 5:52 AM, Tomas Hlavaty Or simply call something that crashes PicoLisp, e.g. […] Here comes the power of embedded interpreters, which PicoLisp does not have. could you elaborate on this a bit? --

Re: try picolisp

2014-08-29 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, Is it hard to implement minimalist version of minipicolisp in browser ? Like http://tryclj.com/ ? In addition to the proposed solutions involving JavaScript versions of PicoLisp: Perhaps not many people are aware that standard

Re: Documentation again

2014-08-27 Thread Thorsten Jolitz
Christophe Gragnic christophegrag...@gmail.com writes: Thanks to all participants of this thread. On Mon, Aug 11, 2014 at 8:57 PM, Thorsten Jolitz tjol...@gmail.com wrote: Are you aware of http://www.scribd.com/doc/103732688/PicoLisp-Works https://github.com/tj64/picolisp-works http

Re: Documentation again

2014-08-27 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: I think you'll know the function http://software-lab.de/doc/refD.html#doc I mostly use it directly from a shell window, with a script 'doc' in my executable path #!/usr/bin/pil @lib/debug.l (raw T) (doc (opt) (opt)) (bye)

Re: Documentation again

2014-08-12 Thread Thorsten Jolitz
, Aug 12, 2014 at 1:57 AM, Thorsten Jolitz tjol...@gmail.com wrote: Christophe Gragnic christophegrag...@gmail.com writes: 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

Re: Documentation again

2014-08-12 Thread Thorsten Jolitz
? On Tue, Aug 12, 2014 at 1:57 AM, Thorsten Jolitz tjol...@gmail.com wrote: Christophe Gragnic

Re: Documentation again

2014-08-12 Thread Thorsten Jolitz
Tomas Hlavaty t...@logand.com writes: Hi Tomas, or to http://ondoc.logand.com which is itself written in PicoLisp:-) Cool! But with https://github.com/tj64/picolisp-works/blob/master/editor.pdf?raw=true I get an error: , | Location: http://ondoc.logand.com/d/4741/1/

Re: Documentation again

2014-08-12 Thread Thorsten Jolitz
Alabhya Singh alab...@yahoo.com writes: Thanks a lot! Thorsten Jolitz for detailed informative help. As an Org-mode fan I would really like to have these docs in Org-mode, would make everything easier, but then you need to prepare the export to LaTeX such that the outcome looks

Re: Documentation again

2014-08-12 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@gmail.com writes: Alabhya Singh alab...@yahoo.com writes: Thanks a lot! Thorsten Jolitz for detailed informative help. As an Org-mode fan I would really like to have these docs in Org-mode, would make everything easier, but then you need to prepare the export

Re: Differences in mapping functions

2014-07-28 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I am often confused between the variants of the map functions: map, mapc, mapcar, mapcan, mapcon, maplist. Yes, indeed. The names of these 6 functions are historic, they are in most Lisp variants since early on. [...] I hope this

Re: RnRS

2014-07-16 Thread Thorsten Jolitz
Alabhya Singh alab...@yahoo.com writes: Dear List, RnRS for picoLisp will help immensely.

Re: RnRS

2014-07-16 Thread Thorsten Jolitz
... -- From: Thorsten Jolitz tjol...@gmail.com; To: picolisp@software-lab.de; Subject: Re: RnRS Sent: Wed, Jul 16, 2014 8:41:01 AM Alabhya Singh alab...@yahoo.com writes

Re: RnRS

2014-07-16 Thread Thorsten Jolitz
Alabhya Singh alab...@yahoo.com writes: 1. I am already on job! Nice! Have converted, by hand, most of docs into orgmode.org format. In this process discovered missing RnRS type doc. Reminds me very much of what I did to produce the two mentioned books. Wouldn't it make more sense to spend

1st time I see PicoLisp in Job Description

2014-06-12 Thread Thorsten Jolitz
Hi List, I somehow found this in the web and its actually the 1st time I see PicoLisp as required skill in a job description! More of this would be nice ... ;) Location: (pack http://www.timesjobs.com/candidate/P2nJobDetailView.html?;

Re: Would a logging framework make sense for PicoLisp

2014-03-10 Thread Thorsten Jolitz
andr...@itship.ch writes: Hi Andreas, I crafted a tiny logging tool consisting of one function and some globals. I'm new to picolisp (and its my first lisp), so feedback and advices are greatly appreciated. great, thank you, I just did a quick first test and it worked:

Re: Would a logging framework make sense for PicoLisp

2014-03-10 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@gmail.com writes: andr...@itship.ch writes: Hi Andreas, I crafted a tiny logging tool consisting of one function and some globals. I'm new to picolisp (and its my first lisp), so feedback and advices are greatly appreciated. great, thank you, I just did a quick

Re: Would a logging framework make sense for PicoLisp

2014-03-10 Thread Thorsten Jolitz
to get it redirected to a function... Does this answer your question? Yes, thanks! Thorsten Jolitz tjol...@gmail.com writes: after testing a bit more I have one question: It seems the levels 'warning and 'error unconditionally print their messages when *LogOn is set to them, but from my

Would a logging framework make sense for PicoLisp

2014-02-25 Thread Thorsten Jolitz
Hi List, sometimes I start putting a lot of (maybe too many) 'msg calls in my code for debugging purposes, what then triggers memories of logging frameworks for Java I once read about. Would it make sense to add such a logging framework to the language as a kind of third debugging tool

Re: Would a logging framework make sense for PicoLisp

2014-02-25 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: On Tue, Feb 25, 2014 at 05:01:21PM +0100, Alexander Burger wrote: One simple way is to use 'err' around your program to redirect standard error (err myLog.txt (main) ) and then use the normal 'trace' and 'msg' functions which print

Query relations that are Lists, Bags or List-Bags

2014-02-06 Thread Thorsten Jolitz
Hi List, assume I have a (hypothetical) database with objects of class +Thing that have relations defined like this: #+name: myBag #+BEGIN_SRC picolisp (rel stamp (+Bag) ((+Symbol)) # timestamp-type ((+Ref +Date)) # start date ((+Time)) )

Re: Query relations that are Lists, Bags or List-Bags

2014-02-06 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, assume I have a (hypothetical) database with objects of class +Thing that have relations defined like this: #+name: myBag #+BEGIN_SRC picolisp (rel stamp (+Bag) ((+Symbol)) # timestamp-type ((+Ref

Re: How to get the Object-ID from a DB-Object?

2014-01-27 Thread Thorsten Jolitz
! On Sun, Jan 26, 2014 at 6:56 PM, Thorsten Jolitz tjol...@gmail.com wrote: Thorsten Jolitz tjol...@gmail.com writes: ,-- --- | Sorry, I sent this post accidentally before I was finished, so I have

Re: How to get the Object-ID from a DB-Object?

2014-01-27 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, I want to export the objects to a textual representation that might be edited and then committed again, so I must be able to find out which DB object is associated to the textual representation. Note that in general it is not

Re: How to get the Object-ID from a DB-Object?

2014-01-27 Thread Thorsten Jolitz
One more doubt: Without going into the details, assume there is a relation like this , | (rel elem-id (+Number)) ` and it is reused: 1. first, it holds an (arbitrary) number that is used during object creation to associate it with other

Re: How to get the Object-ID from a DB-Object?

2014-01-27 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, i.e. can I first assign e.g. 37 to it during the object creation, and then let the 'id' function re-assign e.g. 9 to it when post-processing the newly created objects? Yes, sure. The object doesn't care about the meaning of that number.

How to get the Object-ID from a DB-Object?

2014-01-26 Thread Thorsten Jolitz
Hi List, say I want to use the internal Object ID of database object as a unique string identifier (useful e.g. for export in a textformat), i.e. something like: : (put '{33} 'ID {33}) -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: How to get the Object-ID from a DB-Object?

2014-01-26 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@gmail.com writes: ,- | Sorry, I sent this post accidentally before I was finished, so I have to | send it again. `- Hi List

Re: Transient symbol with a single backslash

2014-01-25 Thread Thorsten Jolitz
Christophe Gragnic christophegrag...@gmail.com writes: On Fri, Jan 24, 2014 at 10:54 PM, Axel Svensson svenssona...@gmail.com wrote: If you need to output something that isn't 'read' readable, then you're trying to output something that isn't lisp code. If that is the case, use the functions

Making 64bit development version fails

2014-01-21 Thread Thorsten Jolitz
Hi List, I just tried to update PicoLisp after reinstalling Archlinux and get this error with the current development version: ,- | $ LC_ALL=C make | make: execvp: as: Not a directory | Makefile:123: recipe for target

Re: Making 64bit development version fails

2014-01-21 Thread Thorsten Jolitz
Pedro Gomes azynhe...@gmail.com writes: Hi Pedro, I tryed on my Ubuntu 12.04 and it worked. Maybe you need to create the bin directory,because I removed the bin directory on my box, rebuilt from scratch it also issued the following error. /usr/bin/ld: cannot open output file

Re: Making 64bit development version fails

2014-01-21 Thread Thorsten Jolitz
for the tips! On 21 January 2014 13:04, Thorsten Jolitz tjol...@gmail.com wrote: Pedro Gomes azynhe...@gmail.com writes: Hi Pedro, I tryed on my Ubuntu 12.04 and it worked. Maybe you need to create the bin directory,because I removed the bin

Re: Small observation re. (gt0 X) and ( X 0)

2013-11-15 Thread Thorsten Jolitz
Jon Kleiser jon.klei...@usit.uio.no writes: Hi Jon, If you read the docs carefully, you may know that (gt0 X) and ( X 0) are NOT equivalent. This is my small observation today: X:1 T --- (gt0 X) - 1 NIL ( X 0) - T T Have a nice weekend! Surprising at

Re: About mail delivery from mail listing

2013-10-21 Thread Thorsten Jolitz
Mansur Mamkin mmam...@mail.ru writes: I saw that some mail listings have sequential numbering in mail subject. If some letter was not received, the hole in numbering is immediately evident. Yes, emacs-w3m is a good example. I think that is quite useful for referencing mails and threads too.

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, ,-- | (class +a) | (rel a1) | | (class +b +a) | (rel b1) | | (class +C +b) | (rel C1) | | (class +D +a) | (rel D1) `-- now ,--- | (select a1 +C) `--- and

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, But in general, note that (select a1 +C) reads SELECT a1 from C. This means, you specified no search criterion at all. yes, but my point is I specifiy a class +C and I'm surprised that its superclasses are matched too as

Re: Class inheritance - unexpected behaviour?

2013-09-29 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: On Sun, Sep 29, 2013 at 01:31:06PM +0200, Alexander Burger wrote: Yes, I understood that. Unfortunately, 'select' by itself doesn't filter for specific classes (as, for example, the 'db' and 'collect' functions do). It simply gathers objects it

Class inheritance - unexpected behaviour?

2013-09-28 Thread Thorsten Jolitz
Hi List, assume this class hierarchy: ,-- | (class +a) | (rel a1) | | (class +b +a) | (rel b1) | | (class +C +b) | (rel C1) | | (class +D +a) | (rel D1) `-- now ,--- | (select a1 +C) `--- and ,--- | (select a1 +D) `---

Re: Some initial questions

2013-09-25 Thread Thorsten Jolitz
O.Hamann o.ham...@gmx.net writes: Hi, There is not much help found by searching google (stackoverflow and similar) for best practices or 'oneliner' But there is ,--- | http://de.scribd.com/doc/103733857/PicoLisp-by-Example

Re: A few quick emu/pil timings

2013-09-24 Thread Thorsten Jolitz
Mansur Mamkin mmam...@mail.ru writes: in case of Windows don't forget to look at coLinux and andLinux: Isn't archlinux quite popular now between 'minimalists'? ,--- | https://www.archlinux.org/ `--- -- cheers, Thorsten -- UNSUBSCRIBE:

(path @lib/) does not work with local installation?

2013-09-15 Thread Thorsten Jolitz
Hi Alex, Hi List, with my global PicoLisp installation ($ pil +) function ,--- | (path @lib/) `--- does work as expected: ,-- | : (pwd) - /home/tj `-- , | : (path @lib/) | - /usr/lib/picolisp/lib/

Re: How to produce strange syntax in PicoLisp?

2013-09-12 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, , | (de hashtag (Lst) |... return Lst with leading hashtag... ) ` ... , | #(\A\ 0 1 (:parent 1))

Add relation to entity

2013-09-11 Thread Thorsten Jolitz
Hi List, a very nice feature of the PicoLisp object system is the ability to add new attributes at runtime (add new properties to the symbols property list), e.g. create an object with 5 attributes although the class only expects 2 attributes. But what about external symbols (entities)? If

Re: Add relation to entity

2013-09-11 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, Therefore, a property of an '+Entity' should always be assigned using 'put' and related methods. These methods take care of maintaining all side effects necessary for DB consistency. [...] However, I would recommend always to use

Re: Add relation to entity

2013-09-11 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: On Wed, Sep 11, 2013 at 12:42:24PM +0200, Thorsten Jolitz wrote: Thanks, then I will just map over my property list and assign them the canonical way with 'put' and friends. Or, if you have (or convert) the property list in a form like (key1

Re: Add relation to entity

2013-09-11 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: On Wed, Sep 11, 2013 at 12:42:24PM +0200, Thorsten Jolitz wrote: Thanks, then I will just map over my property list and assign them the canonical way with 'put' and friends. Or, if you have (or convert) the property list in a form like (key1

Re: Add relation to entity

2013-09-11 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: On Wed, Sep 11, 2013 at 01:47:01PM +0200, Thorsten Jolitz wrote: Ok, one question remains (back to the original topic of this thread, so to say): Right :) ,-- | (class +MyClass +Entitiy) | (rel :friend (+String

How to produce strange syntax in PicoLisp?

2013-09-11 Thread Thorsten Jolitz
Hi List, say I have this piece of Emacs Lisp print syntax I want to store in PicoLisp: , | #(A 0 1 (:parent 1)) ` My best idea is to write a function , | (de hashtag (Lst) |... return Lst with

Re: Is there something like 'ignore-errors' in PicoLisp?

2013-08-16 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, , | NIL -- Target not found | ? ` ... I there a way to wrap the function calls send to the server in a kind of 'ignore-errors' expression, that just returns NIL if things go wrong and

Is there something like 'ignore-errors' in PicoLisp?

2013-08-15 Thread Thorsten Jolitz
Hi List, say I call (non-interactively) a PicoLisp TCP server from a (Emacs Lisp) program, and sometimes things go wrong, e.g. , | NIL -- Target not found | ? ` Now the server is in state where he does not process the incoming request - if I

Re: kill without 'KILL does not work for PicoLisp processes

2013-07-17 Thread Thorsten Jolitz
Alexander Burger a...@software-lab.de writes: Hi Alex, is it normal that a simple 'kill' won't kill PicoLisp processes, only with option 'KILL it works? No. A normal kill with SIGTERM (i.e. -15) should work. SIGKILL (i.e. -9) should be used only in extreme emergencies, because it may

  1   2   >