beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
ShannonB has joined #picolisp
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #picolisp
f[x] has quit [Remote host closed the connection]
ShannonB has quit [Remote host closed the connection]
ShannonB has joined #picolisp
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #picolisp
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #picolisp
ello has quit [Remote host closed the connection]
ello has joined #picolisp
rob_w has joined #picolisp
ello has quit [Quit: ZNC 1.9.1 - https://znc.in]
ello has joined #picolisp
theruran has quit [Quit: Connection closed for inactivity]
rob_w has quit [Remote host closed the connection]
f[x] has joined #picolisp
geri has joined #picolisp
<geri> hey-hey
<geri> been writing tons of scripts for sway in picolisp
<geri> example! https://0x0.st/Xkke.txt
<geri> i have a less fancy but very simple version in about 25 lines too
<geri> using ` for caching is very neat
<geri> actually working version, forgot to re-add some stuff
<abu[7]> Sorry, later
<geri> np
<beneroth> geri, you could use (;) instead of (get), e.g. (; @ nodes) - saves the quotes. (;) expects as first argument an evaluated argument, the other arguments are taken as quoted.
<beneroth> maybe you prefer (get), nothing wrong with that
<geri> yeah like first time hearing about that one XD
<geri> i can use it for direct gets, but not for mapping functions
<geri> fine with me
<geri> or orthogonal way, hmm
<abu[7]> Still on the road ...
<geri> where to?
<abu[7]> geri, I answered your last question after you lefl last time
<abu[7]> Several people near here
<geri> when was that
<abu[7]> hmm, last week?
<geri> lemme check
<abu[7]> 9th 20:04
<geri> gotta check what input does :D
<abu[7]> Yeah, it was input
<abu[7]> Better than pipe here
<geri> faster?
<abu[7]> T
<abu[7]> No child process
<geri> aighty
<geri> can i read a line from proc i sent inputs to without piping?
<beneroth> input is for within the same process
<beneroth> if there is another process involved, then you have a pipe or networking (or file)
<geri> (pipe (out '(cf -p "Push container to workspace: ")) (line T)))
<geri> basically this but cleaner
<geri> cf is a wrapper for dmenu
<abu[7]> (pipe (out '(cf .. seems too much
<abu[7]> (pipe (exec ...
<abu[7]> I do often have (pipe (exec "@bin/ssl" ...
<abu[7]> Creates only *one* child
<geri> usually out would take lines of stdin as input
<geri> just an exception here
<geri> exec wont kill pil here?
<abu[7]> out does not do any input
<geri> input from prinls
<abu[7]> exec replaces the process
<geri> to program via out
<abu[7]> Standard fokk+exex of Unix
<geri> okee
<geri> is call just a wrapper around fork exec?
<abu[7]> Yes
<geri> today ive learned :D
<abu[7]> 👍☺
<geri> (pipe (out '(sed "s/H/h/") (prinl "Hi!")) (line T))
<geri> more accurate example
<abu[7]> ok
<geri> can you do this one any neater?
<geri> cf is weird and it has to get some input to work properly, even if its empty
<abu[7]> ok
f[x] has quit [Remote host closed the connection]
f[x] has joined #picolisp
<geri> i love that `and` just rebinds @ at every expression evaluated
<geri> un-nesting expressions is sometimes very useful
_whitelogger has joined #picolisp
<geri> gtg, have fun
<abu[7]> o/
geri has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
f[x] has quit [Remote host closed the connection]
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #picolisp
f[x] has joined #picolisp
f[x] has quit [Remote host closed the connection]