<Regenaxer>
(and alse 'reverse', 'flip' and 'trim')
<Regenaxer>
'waitFd' event handler was finished before that, but not really tested
<tankf33der>
i will play
<Regenaxer>
good
razzy has quit [Quit: Connection closed]
<aw->
Regenaxer tankf33der hi
<aw->
is there a 'standard' way to validate if data is _actually_ PLIO when sent using (rd) ?
<aw->
when received* using (rd)
anddam has quit [Quit: WeeChat 2.7.1]
anddam has joined #picolisp
<Regenaxer>
Hi aw-! No, there is no check
<Regenaxer>
A separate validator can be imagined, but there is not much redundancy to check for
<aw->
does the PLIO format use a special header in the message?
<Regenaxer>
no
<Regenaxer>
Plio is just an expression
<Regenaxer>
You could wrap your own header
<Regenaxer>
Plio by itself may be a single byte
<Regenaxer>
(and often is, e.g. when reading the DB)
<Regenaxer>
You can see PLIO on the same level an an s-exwr
<Regenaxer>
you wont want to send redundancy with each parenthesis
<aw->
hmmm I see
<aw->
so validate is just checking if the data matches what I send
<Regenaxer>
No, you define some protocol
<Regenaxer>
plio is just the raw data
<aw->
ok ok
<Regenaxer>
Typical use case is rpc
<Regenaxer>
then you have commands and arguments
<Regenaxer>
these need to be checked, authenticated etc.
<aw->
right
<tankf33der>
aw-: o/
<aw->
ok next question
<aw->
when parent process (fork) some child process, and child sets a global variable (setq *Myvar 1234), how can I make that variable appear in the parent?
<aw->
(tell 'setq *Myvar 1234) ?
<Regenaxer>
'tell' is only from parent to child, and from child to siblings. You can use 'boss'
<Regenaxer>
Needs @lib/boss.l
<aw->
boss?
<Regenaxer>
It uses 'hear'
<aw->
ohhh
<aw->
and fifo
<Regenaxer>
Except that, you could use named pipes
<Regenaxer>
yes
<aw->
yaeh i guess a named pipe would wokr
<Regenaxer>
T
<Regenaxer>
Boss is a little easier perhaps
<Regenaxer>
I load it in all apps
<aw->
i see..
<Regenaxer>
I use it to reload files in a running app
<Regenaxer>
$ psh <app>
<tankf33der>
today's two commits are ok
<Regenaxer>
: (boss 'load "file.l")
<Regenaxer>
Thanks tankf33der
<Regenaxer>
So the next started child inherits the loaded file
<aw->
Regenaxer: is (tell) the only way to make a child process do something?
<Regenaxer>
Depends what you mean with only way
<Regenaxer>
it is the easiest to send something from parent
<Regenaxer>
or child to child
<Regenaxer>
But you can of cours use anything else
<Regenaxer>
sockets, pipes, files
<Regenaxer>
signals of course
<Regenaxer>
(doc '*Sig1)
libertas has joined #picolisp
<Regenaxer>
So in your case, just (boss 'setq '*Myvar 1234)