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
of cause for
nested symbol property-lists, but requires some manual list processing
for flat lists with key/val pairs - or am I missing something?
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
...), (let (L) ...) and quite a lot of other
combinations, but always get NIL or an error.
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
' or 'asoq'):
: (cdr (asoq 'b '((a . 1) (b . 2) (c . 3
- 2
: (cadr (memq 'b '(a 1 b 2 c 3)))
- 2
ok, I see, so no need for more syntax.
Thanks!
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
!
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
`
So I'm kind of stuck here, a few hints would be very welcome.
TIA
PS
Very exciting things going on in the PicoLisp universe right now!
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
be necessary. Something like this:
(g Current temperature in Berlin is {Temp} \{°Celsius\} (its
really hot!) )
resulting in:
- Current \temperature\ in Berlin is 33 {°Celsius} (its really hot!)
would be much more comfortable as syntax, but harder to implement.
--
cheers,
Thorsten
very clear. Well, nice that, as
always with PicoLisp, there is an easy way to make it work ;-)
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
3))
| - (3 4 5)
`
How would the above behavior inside let bindings be achieved in
PicoLisp?
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Rick Hanson cryptor...@gmail.com writes:
Hi Rick,
Reading your other post I was wondering how it worked for you and
thought it must be because of debug mode, and well ... correctly
guessed ;-)
Hi Thorsten! Yes. :) And btw thanks for picolisp-mode. Please count
me as a happy user.
Oh
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
fill, and think more about the whole issue, but the last
version with @X looks pretty close to what I'm looking for.
Again, thanks for the explanations (and patience)!
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
. But maybe not in public, I don't
want to drive more people off the mailing list ;-)
However, I will use your factorized code as starting point for new
investigations, thanks again!
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
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
dy
else takes over the task?
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
- with session, Emacs starts one PicoLisp instance and keeps it
alive, so that state is preserved. The call from the second code
block goes to the same PicoLisp instance where symbol X was set to
3 before, so the state of X is preserved and can be used for (+
X 2) e.g.
--
cheers,
V (next)
| (and (gt0 N) (space (- N (length V
| (prin V)
| (and
| (lt0 N)
| (space (- 0 N (length V))) ) ) )
|(prinl) )
| -> tab
`
But I guess one could configure Emacs to show the 'doc' results in
emacs-w3m or eww i
ion. I've
> shot myself into the food this way many times.
That made me really curios - was it vegetables, meat, or rather seafood?
;-)
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
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
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
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
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
es to objects, equivalent to
>
>: (setq hi> meth)
>-> 22951574276
>
> With that, the following works
>
>: (hi> Foo "Thorsten")
Ok, I see.
But, in a source file it's obvious how to use (class) and (dm)
(class 1 ...)
(dm ...)
(dm ...)
(clas
)
> 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
-> $176777024346263
: (methods Foo)
-> ((T . +Test) (hi> . +Test))
#+END_SRC
Is that strange, or is the problem sitting in front of the computer?
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
h" 'sqrt (-6 . 64.0))
thanks for the hints, so actually I was pretty close, just ignorant
about the peculiarities of those numeric arguments.
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
#+BEGIN_SRC picolisp
(java "java.lang.Math" 'sqrt 4)
(java java.lang.Math 'sqrt 4)
(java 'java.lang.Math 'sqrt 4)
(setq M (java "java.lang.Math" T)) // returns null, no constructor
#+END_SRC
Thanks for any hints.
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@sof
r a long time, I did not touch these libraries anymore.
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
here.
> It is intended to be copied to - or linked from - /usr/bin.
>
> The other 'pil' looks different:
>
> exec ${0%/*}/bin/picolisp ${0%/*}/lib.l @ext.l "$@"
>
> and it is the main workhorse. It can be called locally
>
> $ ./pil +
>
> or with a relative or ab
ount :) ?
Cool! I did not know this ...
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
1
| : -> org-babel-picolisp-eoe
| : (setq X3 (foo1 8))
| 'org-babel-picolisp-eoe
| -> 10
| : -> org-babel-picolisp-eoe
| :
`
Hope that helps
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
two picolisp-modes
>
> Three is the count I have.
>
> 1. picolisp-mode bundled in the picolisp distro.
>- N.B. hasn't been updated in years.
>
> 2. Thorsten/tj64 version
>- https://github.com/tj64/picolisp-mode
>- first commit dated Apr 2012
[...]
Th
with the newest PicoLisp dev
download I get a make error, see PS1.
Cheers
Thorsten
PS 0
I looked into vip.l and some vt100 docs, but I find it really hard to
understand how e.g. "split window (qs)" is implemented with the vt100
escape sequences?
Could you elaborate on this a bit?
PS 1
O
nown Java problem with
versions of JRE and JDK which do not work together (the java class file
was compiled with a newer Java version than the installed runtime Java).
So not really a PicoLisp problem, sorry for the noise ...
Cheers
Thorsten
PS
[tj@arch bin]$ ls
lisp picoLisp picoLisp-19.6.tgz
that java verson shows 7, but in the ArchLinux repos
there are Open JDK/JRE 12 already. When I installed the newest version,
the verbose output gave the decisive hint, problem was the default Java
ENV.
This works now, did not have to download anything.
Thanks
Thorsten
PS
(3/4) Installiere jre-op
Vip itself than draws the separating status line for each window
(except the "mini buffer", in Emacs terminology).
So its really just PicoLisp drawing on one terminal screen, not much
vt100 "intelligence" involved. Thats cool ;-)
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
nds this interesting too ... ;-)
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
your hints and do some more experimentation over the
weekend.
Luckily, If I manage to wrap one such C function, I can reuse that
understanding for many others
Cheers
Thorsten
Am Di., 24. Nov. 2020 um 07:50 Uhr schrieb Alexander Burger <
a...@software-lab.de>:
> On Mon, Nov 23, 2020
re not too messy ...
cheers
Thorsten
PS
when I understand how this works, I will use the input values for native as
parameters for the pil wrapper, but for now I just write them inside of
'native'.
*> \param[in] N
33 *> \verbatim
34 *> N is INTEGER
35 *> number of elements
t this dumps
: (de rpois (X) (native "libRmath.so" "rpois" 1.0 (X . 1.0) ) )
-> rpois
: (rpois 2.567)
Segmentation fault
When I debug it, X=3 when the function is called.
So probably my function call is wrong?
Cheers
Thorsten
ooks irrelevant here.
So how do I specify a
## double pwilcox(double, double, double, int, int);
signature correctly?
Cheers
Thorsten
Am Fr., 13. Nov. 2020 um 17:15 Uhr schrieb Thorsten Jolitz <
tjol...@gmail.com>:
> Hi Alex,
> yes that works with (cons X 1.0), I knew it was a triv
: (rmath~pnorm_both 1.2 2 3)
-> (-122 -2162)
now I only have to understand the meaning of some of these functions.
What I find irritating is that the pointer args are not used for input but
only as a kind of return values.
Thanks for your help!
Cheers
Thorsten
Am So., 15. Nov. 2020 um 22:55 U
Hi Alex,
yes that works with (cons X 1.0), I knew it was a trivial problem.
Thanks!
Cheers
Thorsten
Am Fr., 13. Nov. 2020 um 08:00 Uhr schrieb Alexander Burger <
a...@software-lab.de>:
> Hi Thorsten,
>
> welcome back! :)
>
> > I'm playing around with the native function
000) (cons Z 1000) I "J")
! (bt)
("pwilcox" 2700 6200 2100 3 ..)
X 2700
Y 6200
Z 2100
I 3
"J" 2
Cheers
Thorsten
PS 1
(de pnorm_both ("X" "Y" "Z" "I" "J")
(! native `*LibRmath "pnorm_both" 1
its reading the function
definitions from a library file vs defining the definition directly in the
repl.
(load "libRmath.l") seems to have a problem with the char J used for a
paramter, and somehow converts it into a transient symbol.
The easy solution is therefore to avoid J as parameter na
structure), i.e. when CMD can be any R command
that may take/return any of the subtypes (char, logical, int, vector, list
)?
Is there maybe a generic solution on the 'native' side too, without the
primitive specifications?
Thanks in advance and Cheers
Thorsten
PS
For those interested here
)
-> 65814160
how can I extract the result from that Pointer in PicoLisp (lack of C
skills ... ;-)?
Cheers
Thorsten
Am Di., 6. Apr. 2021 um 10:23 Uhr schrieb Alexander Burger <
a...@software-lab.de>:
> Hi Thorsten,
>
> > I wonder how to deal with the R SEXP Data structure in
Thorsten.
Am Di., 6. Apr. 2021 um 22:20 Uhr schrieb Cesar Rabak :
> Hi Thorsten,
>
> The quote you copied here (coming from the ref. of yours R's C Interface),
> describes IIUC a structure, more accurately the model of, for calling
> "foreing" C functions in R and not the conv
thon,R...)
>
> Greets
>
>
> El lun., 22 feb. 2021 22:40, Thorsten Jolitz escribió:
>
>> Maybe we should sponsor Alex (3 month work?) to build that "killer app"
>> with the clear goals
>>
>> - for all those millions of (data) scientists that
Hi Alex,
Alexander Burger schrieb am Di., 23. Feb. 2021, 09:33:
> Hi Thorsten,
>
> > Maybe we should sponsor Alex (3 month work?) to build that "killer app"
> > with the clear goals
>
> Hmm, no need to specially sponsor me, but thanks for the proposal!
>
&g
lexander Burger ()
>> escribió:
>>
>>> Hi all,
>>>
>>> sorry for the multiple mails! Seems I have a DNS problem on
>>> the server ...
>>>
>>> On Tue, Feb 23, 2021 at 09:18:57AM +0100, Alexander Burger wrote:
>>> > Hi Thorsten,
>>> > ...
>>>
>>> --
>>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>>
>>>
so
one would need the length of it too, not only the type (or is it a valid
strategy to just use some very big value for the specification like '(1.0 .
) or so)?
Cheers
Thorsten
*Composition of an R node: *
the SEXP subtypes are defined like this:
typedef unsigned int SEXPTYPE;
52 #define
> So, if I understand correctly we could use the introspective power of
> picolisp and write a {meta?}program to produce the "library" for Pil, and
> then use this to call R from picolisp?
>
> --
> Cesar Rabak
>
> On Thu, Apr 8, 2021 at 4:14 PM Thorsten Jolitz wrote
Hi Alex,
thanks for your effort here, I can follow your reasoning, emulating Emacs
produces a lot of commands , which is not exactly in the spirit of
simplicity, and one can just adapt it's workflow instead of adding more
commands.
But maybe I can reuse your code anyway!
Cheers Thorsten
Alexander
be inside the expression/definition, and first jumps to the
opening paren, then evaluates.
(de foo (X) (+ X| 2))
With the cursor behind X would then either return X+2 or foo. Saves some
cursor movements before evaluation, but needs different keybindings, not
only one.
Cheers
Thorsten
Alexan
tempts,
but never had the time/energy/stamina/skills to bring it on. So this is
just an idea I had for quite some time ...
Cheers
Thorsten
pd schrieb am Mo., 22. Feb. 2021, 12:26:
>
>
> El lun., 22 feb. 2021 9:31, Alexander Burger
> escribió:
>
>> ... and immune to tempo
inda similiar ideas, Thorsten.
>
> PicolispDB is certainly a killer feature - multi-paradigm database
> (Key-Value, Object, Document, Graph, Relational.. really everything
> covered), ACID (transactions), many indexing capabilities (including
> text and spatial indexing), performant, e
Then I get the error in
PS.
(There is an /OPT directory in this debian install, if that's what the
error refers to)
Did anyone try (and maybe solve) this too?
Cheers
Thorsten
PS
*Error*
nbv3@nbox:~/bin/pil21$ (cd src/; make)
make: opt: No such file or directory
make: *** [Makefile:40: base.bc] Erro
Hi Mike, Hi Karl,
yes shame on me, I somehow forgot temporarily that it's PIL21 now, ;-(
Cheers
Thorsten
PS
with this line from INSTALL:
$ sudo apt install make clang llvm libreadline-dev libffi-dev libssl-dev
pkg-config
nbv3@nbox:~/bin/pil21$ (cd src/; make)
nbv3@nbox:~/bin/pil21$ ./pil
ab=+1&*ID=&*ID=$login", while Edge
shows "about:blank#blocked". I started the server in debug mode (pil
wiki/main.l -main -go +), but no messages show up in the server window.
Did anyone experience the same issue?
Cheers
Thorsten
cleaned up the Wiki DB and
started again, but same problem
Regards, Thorsten
PS
Before that, the links look the same:
WSL2/Debian
Log in
Archlinux:
Log in
=> click on login
Log
in
Am Di., 28. Dez. 2021 um 16:27 Uhr schrieb O.Hamann :
> And another idea:
>
> Did you try other
<https://abdus.dev/posts/fixing-wsl2-localhost-access-issue/>
Cheers
Thorsten
PS 1
$ pil wiki/main.l -main -go +
(and (== 'login *ID) (app))
! *ID
-> NIL
! (setq *ID 123456789) # naive try
-> 123456789
# naiv try did not work
Can't load -2.html?*Menu=+0&*Tab=+1&*ID=+123456
Not sure if that is a valid idea ;-)
Would probably only possible with Picolisp, due to the small size and easy
installation.
Cheers
Thorsten
Alexander Burger schrieb am Mo., 19. Juli 2021, 10:47:
> Hi all,
>
> next PilCon will be tomorrow, July 20th, at 16:00 UTC on
>
>
everybody else was just fine except you and me.
Cheers
Thorsten
Mansur Mamkin schrieb am Mi., 21. Juli 2021, 17:19:
> Hi all,
>
> During last PilCon I repeatedly lost shared screen after several seconds
> of connection (or little more). Helped reconnection only. The same
> behavior
Hi Alex,
since I cannot attend every PilCon, I would not want to provoke a change
that maybe causes problems for others that attend more frecuently.
Otherwise it would of course be ok to try SSH again. For me, the jitsi
problem was just that the shared screen comes and goes, and was mostly gone
s
are ok too, but on WSL2 the servername instead of port is used to build the
URL.
$ pil wiki/main.l -main -go +
(server (or (format (sys "PORT")) *WikiPort) "!wiki")
! *WikiPort
-> 5000
Cheers
Thorsten
PS
I start the wiki the normal way
$ pil wiki/main.l -main -go +
*Socket
1877 =
Hi Alex,
yes, $NAME was the computername ("asuspn"), and by setting name to
$ echo $NAME
5000
everything works, I even get the wiki page with CSS then like in the real
wiki.
So, problem identified and solved, thanks!
Cheers
Thorsten
Am Mi., 19. Jan. 2022 um 17:56 Uhr schrieb
http://localhost:asuspn/?h <http://localhost:5000/?help>ome
are supposed to work before a session id is acquired, but somehow they do
work on normal Linux.
Since (session P H) is called with the Port P (5000), why not use it for
URL construction (instead of *Port1)?
Cheers
Thorsten
//localhost:5000
Cheers
Thorsten
Am Mi., 19. Jan. 2022 um 14:43 Uhr schrieb O.Hamann :
> Hi Thorsten, thanks for your solution!
>
> Just to be curious:
> Did you try 127.0.0.1:5000 instead of localhost:5000 ?
> Same pn-replacing effect?
>
> Regards, Olaf
>
>
> On
httpGate is built together with pil21?
Just to let you know
Cheers
Thorsten
e="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write;
encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
I could not figure out how to include this in a page with the PicoLisp Wiki
Syntax - probably it's not possible?
Cheers
Thorsten
Hi Alex,
simplification looks good, will test later.
I thought about security too. I even would like to have 2 embed options,
one only for iframes, the other for any html (produced by an external tool)
Hi Alex,
thanks!
And in case it's a personal private wiki one could even outcomment the new
syntax element and eliminate the check for an schrieb am Do., 13. Okt. 2022, 08:24:
> Hi Thorsten,
>
> > I thought about security too. I even would like to have 2 embed options,
> > on
ure-in-picture" allowfullscreen>
Am So., 17. Juli 2022 um 15:46 Uhr schrieb Alexander Burger <
a...@software-lab.de>:
> Hi Thorsten,
>
> > is there a way to embed content in a PicoLisp Wiki file?
> > ...
> > But when sharing e.g. a youtube video, there is
insert any kind of code.
>
> With this element its easy to embed youtube videos in wiki pages, they all
> have an embed link (see PS 2)
>
> Would you consider to add something like this in wiki/lib.l ?
> Cheers
> Thorsten
>
>
>
> PS 1
>
>
> 1 fil
master/org-plus-contrib-20181210/ob-picolisp.el>
I kept the additional functionality in my version, but copied all the
changes from the other version.
Then I tested in Emacs Doom with PIL21 installed, and it worked (in
general), did not test the whole functionality, see PS.
Cheers
Thorsten
PS
#+
Yes, and I added eedit.l to picolisp iirc, so one could chose between vim
and emacs keybindings in the repl line editor.
Inferior-picolisp.el is responsable for the picolisp repl in Emacs, so when
starting it the user could choose between the 2 editing styles.
You don't necessary see that repl in
il21, most likely the
problems you see are related to plisp-mode itself.
Maybe try the original mode standalone, and if that works, try it with
org-mode.
plisp-mode was developed by someone else, and I don't know if it was ever
used "in production".
Cheers
Thorsten
Am Mi., 30.
;5\" \"4\" \"-\" \"0\" \"5\" \" \" \" \" NIL NIL
NIL NIL NIL NIL NIL NIL \"$\" \"$\""
although somehow I still think it would be fine to have 'pack that prints
the NIL too, in this special case:
: (pack (ma
ame conversion as above! just an example how it
might look) :
[image: image.png]
Cheers
Thorsten
interesting discussion, I'm playing around with rd and pr right
now.
Thanks for the input
Cheers
Thorsten
Am Mi., 14. Feb. 2024 um 08:04 Uhr schrieb Alexander Burger <
picolisp@software-lab.de>:
> Hi Thorsten,
>
> > I wonder if there actually is a way to directly print ^@ in PicoLis
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
>
> --
> UNSUBSCRIB
Burger schrieb am Di., 13. Feb. 2024,
07:56:
> Hi Thorsten,
>
> > it's been some time .. ;-)
>
> Welcome back! :)
>
>
> > I'm playing around a bit with hex<->ascii conversion in PicoLisp, and I
> > have the problem that (char 0) = NIL
> >
> >
;
"232320001010F000323032342D30322D303931302D35342D303520202424"
: (length W)
-> 72
Am Mo., 12. Feb. 2024 um 23:56 Uhr schrieb Tomas Hlavaty <
picolisp@software-lab.de>:
> On Mon 12 Feb 2024 at 23:25, Thorsten Jolitz
> wrote:
> > Shouldn't the (char
expected conversion result in PicoLisp as a
reference for comparison, and the above solution is fine for that.
Am Di., 13. Feb. 2024 um 09:09 Uhr schrieb Alexander Burger <
picolisp@software-lab.de>:
> Hi Thorsten,
>
> > But shouldn't hex 23232424 pr
201 - 286 of 286 matches
Mail list logo