skapate has quit [Remote host closed the connection]
narimiran has joined #lisp
moshes has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
shka_ has joined #lisp
gaqwas has joined #lisp
gaqwas has joined #lisp
moshes has quit [Remote host closed the connection]
zeroish has joined #lisp
bilegeek has quit [Quit: Leaving]
bilegeek has joined #lisp
imode has quit [Ping timeout: 252 seconds]
Stanley00 has joined #lisp
Stanley00 has quit [Read error: Connection reset by peer]
Stanley00 has joined #lisp
narimiran has quit [Ping timeout: 252 seconds]
mindCrime has joined #lisp
surabax has joined #lisp
pve has joined #lisp
mindCrime has quit [Ping timeout: 260 seconds]
<phoe>
morning
<beach>
Hello phoe. How are you feeling today?
<phoe>
I think all the Pfizer side effects are gone, I'm at 100% today
<beach>
Congratulations!
<phoe>
thanks - next chance to feel ill in five weeks from now
<beach>
For dose #2?
<phoe>
yes
notzmv has quit [Ping timeout: 260 seconds]
kmeow has joined #lisp
Inline has joined #lisp
masp has joined #lisp
kenran has joined #lisp
notzmv has joined #lisp
cosimone has joined #lisp
paul0 has quit [Remote host closed the connection]
paul0 has joined #lisp
waleee-cl has joined #lisp
lotuseater has joined #lisp
_paul0 has joined #lisp
Codaraxis has joined #lisp
paul0 has quit [Ping timeout: 240 seconds]
Codaraxis_ has quit [Ping timeout: 260 seconds]
bilegeek has quit [Quit: Leaving]
hendursa1 has quit [Ping timeout: 240 seconds]
hendursa1 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
<lukego>
anyone use c-mera? I'm not quite sure what to make of it yet
amb007 has joined #lisp
<no-defun-allowed>
But why?
<lukego>
me? I'd like to do a little ad-hoc assembler code generation in Lisp at the moment, and SBCL's interface seems a bit too unstable (examples from the blogoverse didn't work), and that lead me to asmjit, which takes its inputs via C++ code. So I'm looking for a nice way to output C++ source and wondering if c-mera is more practical than FORMAT for my purposes.
<phoe>
isn't C-Mera C and not C++?
<phoe>
I mean, it's close enough, but still
<lukego>
no it does C, C++, CUDA, etc as separate modules.
<phoe>
I see, TIL
_paul0 has quit [Remote host closed the connection]
<lukego>
but not all syntax maps so nicely e.g. x86::rax becomes (from-namespace x86 rax) which is pretty verbose and it feels a bit like non-verbosity is the main selling point here
paul0 has joined #lisp
<lukego>
So it seems like I'll end up with my own doman-specific surface syntax anyway, e.g. simply :RAX, and at that point I'm not sure c-mera buys me anything over FORMAT especially in combination with a C++ pretty-printer like clang-fmt
<lukego>
having toyed with c-mera for ten minutes maybe I'll now try the ad-hoc route and come back if that feels bothersome.
amb007 has quit [Read error: Connection reset by peer]
nicktick has quit [Ping timeout: 260 seconds]
anticrisis has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
long4mud has quit [Quit: WeeChat 3.0.1]
nicktick has joined #lisp
nicktick has quit [Ping timeout: 260 seconds]
Stanley00 has quit [Remote host closed the connection]
Stanley00 has joined #lisp
dickbarends has joined #lisp
Stanley00 has quit [Ping timeout: 260 seconds]
afterK has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
ym has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
<ym>
Sup. How do I suppress slime's REPL buffer output?
hjudt has quit [Ping timeout: 252 seconds]
v88m has quit [Ping timeout: 240 seconds]
<Shinmera>
like, prevent anything from being printed, or?
<beach>
So instead of a REPL, it's a REL.
nij has joined #lisp
hjudt has joined #lisp
aartaka_d has joined #lisp
afterK has quit [Quit: WeeChat 3.1]
aartaka has quit [Ping timeout: 268 seconds]
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 240 seconds]
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<nij>
Hello! I have made a thread that calls run-program (bt:make-thread (lambda () (uiop:run-program "/some/process/that/loops" :output *sta..))).
<phoe>
nij: OK, what about it?
hypercube has quit [Ping timeout: 276 seconds]
<nij>
However, I don't know how to kill the looping shell process in lisp.. destroying the thread does not help.
<nij>
In particular, the process is ffmpeg. I can kill it by `pkill ffmpeg`.. but I hope to do that in a lispy way.
<phoe>
if it doesn't stop on stream EOF, then sending it a unix signal of sorts might be needed
<nij>
Oh.. so PID must be recorded when calling run-program?
<phoe>
I think so, yes - and AFAIK then RUN-PROGRAM and/or LAUNCH-PROGRAM is capable of returning a process information sort of structure
<phoe>
and that includes PID
<nij>
Can I "bind" the thread and the pid, so that when the thread dies, the program dies?
<phoe>
it's the other way around
<phoe>
the program quits, *then* the thread finishes
<phoe>
if you mean bt:destroy-thread then it *won't* work - it is only supposed to be used as a last measure
kenran has quit [Remote host closed the connection]
<jdz>
nij: For that you need process groups or somesuch.
Retrohourman has joined #lisp
<jdz>
nij: You may want to check the :WAIT parameter to RUN-PROGRAM.
Retrohourman has quit [Read error: Connection reset by peer]
<nij>
jdz: what is a process group?
<jdz>
nij: Something you should read about if you are going to do UNIX process management.
elderK has quit [Quit: Connection closed for inactivity]
<nij>
I see. I think uiop doesn't have that much. But sbcl does.. I will use sb's instead.
<nij>
jdz: I bound cgroups with lisp/common lisp .. etc
<nij>
and started searching "control groups common lisp", "control groups sbcl".. etc.
amb007 has quit [Read error: Connection reset by peer]
<nij>
Thanks, I will look into that.
cosimone has quit [Remote host closed the connection]
<ym>
Shinmera, yes, preventing from being printed.
<Shinmera>
bind *standard-output* to an empty broadcast stream
amb007 has joined #lisp
<jdz>
I wonder if somebody has written some fiction that features a universe (or a pocket dimension or whatever) that contains the bits directed to /dev/null and empty broadcast streams.
<jdz>
Maybe a game?
<nij>
Hmm.. though sb-ext:run-program provides more than uiop:run-program.. it seems that sb-ext:run-program does it asynchronously.. :(
<jdz>
I'd suggest to not use uiop:run-program at all.
<ym>
Shinmera, kludgy, but works, thanks.
<jdz>
Especially from threads.
<Shinmera>
ym: how is it kludgy
<ym>
Well, writing (with-output-to-string (str) (let ((*standard-output* str)) ... )) each time feels sort of kludge.
<nij>
jdz: Using uiop:run-program, I can just pass a dirty string "echo 3 | grep hi" into it.
<Nilby>
it's just the unix syscalls that suck in any language
<nij>
With sb-ext:run-program, the first argument must be a callable thing, eg "/usr/bin/echo". That restricts (afaik) one sb-ext:run-program form to one callable thing, in contrast to uiop:run-program.
<jdz>
Nilby: Yes, everything's fine and dandy until you need some magic numbers that are only available in C headers.
<jdz>
nij: You will also find that in that case uiop:run-program uses "sh -c", and then you're in the land of hurt if you fail to properly escape a string or a quote or, god forbid, use strings provided by the user.
andreyorst has joined #lisp
<jdz>
nij: I'd suggest to never, ever, invoke a process with a command line constructed by concatenating stings (unless you're very VERY sure nothing bad can happen, which is pretty much never).
<nij>
Oh... I see.
amb007 has quit [Read error: Connection reset by peer]
<jdz>
Heh, concatenating strings in the context of unix process invocations really is akin to concatenating stings.
<nij>
jdz: I've replaced a one-liner with a 20~liner, but it's much safer now! Thanks :)
<pjb>
ym: but 1- setting *terminal-io* is not conforming, and 2- it doesn't seem to work in slime-repl anyway, they must circumvent *terminal-io* and use the swank/gray::slime-output-stream directly.
<pjb>
jdz: in Tron, nothing is said of the bits that are garbage collected.
Nilby has quit [Ping timeout: 245 seconds]
<pjb>
The problem is "When NIL these streams are only temporarily redirected to Emacs using dynamic bindings while handling requests." This combines badly with the notion that a REPL is a continuous process. slime-repl is not. I've posted an issue about a related subject, the + ++ +++ * ** *** / // /// variables.
nij has quit [Quit: ERC (IRC client for Emacs 27.2)]
nicktick has joined #lisp
niflce has joined #lisp
Nilby has joined #lisp
vsync has quit [Ping timeout: 265 seconds]
niflce has quit [Quit: ERC (IRC client for Emacs 27.2)]
frost-lab has quit [Quit: Connection closed]
dra has quit [Remote host closed the connection]
monolithic has quit [Ping timeout: 252 seconds]
monolithic has joined #lisp
red-dot has joined #lisp
<etimmons>
nij: UIOP has two functions: run-program and launch-program, equivalent to :wait t and :wait nil respectively. launch-program returns a process object you can use to send signals to
<etimmons>
Plus, unrecognized keyword arguments to both are passed directly to the underlying function in the implementation
<etimmons>
You might also be interested in https://github.com/ruricolist/cmd/ I've never tried it, but IIRC it was received well on Reddit when it was announced
frost-lab has joined #lisp
monolithic has quit [Remote host closed the connection]
monolithic has joined #lisp
niflce has joined #lisp
frost-lab has quit [Quit: Connection closed]
CrashTestDummy2 has joined #lisp
CrashTestDummy has quit [Ping timeout: 240 seconds]
srandon111 has left #lisp ["leaving"]
CL-ASHOK has joined #lisp
CrashTestDummy3 has joined #lisp
CrashTestDummy2 has quit [Ping timeout: 240 seconds]
theruran has quit [Quit: Connection closed for inactivity]
IPmonger has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
IPmonger has joined #lisp
saganman has joined #lisp
saganman has quit [Changing host]
saganman has joined #lisp
mrchampion has joined #lisp
theothornhill has quit [Ping timeout: 268 seconds]
saganman has left #lisp [#lisp]
Nilby has quit [Ping timeout: 245 seconds]
f4r5983 has quit [Read error: Connection reset by peer]
hypercube has joined #lisp
amb007 has quit [Ping timeout: 246 seconds]
amb007 has joined #lisp
CL-ASHOK has quit [Quit: Ping timeout (120 seconds)]
aindilis has quit [Remote host closed the connection]
<jackdaniel>
there is also external-program which is good in this sense that it doesn't try to do more than provide a compatibiliy layer between different implementations
aindilis` has joined #lisp
f4r5983 has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
renzhi has joined #lisp
xkapastel has joined #lisp
azrazalea has quit [Quit: ZNC 1.6.2+deb2~bpo8+1 - http://znc.in]
azrazalea has joined #lisp
monolithic has quit [Ping timeout: 252 seconds]
gxt has quit [Ping timeout: 240 seconds]
monolithic has joined #lisp
imode has joined #lisp
gxt has joined #lisp
MIF has quit [Quit: Bye --MIF]
MIF has joined #lisp
MIF is now known as Guest55856
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
theothornhill has joined #lisp
monolithic has quit [Remote host closed the connection]
theothornhill has quit [Ping timeout: 265 seconds]
monolithic has joined #lisp
andreyorst has quit [Quit: WeeChat 2.8]
andreyorst has joined #lisp
ym has quit [Ping timeout: 252 seconds]
theothornhill has joined #lisp
sm2n has joined #lisp
aindilis` has quit [Ping timeout: 240 seconds]
Stanley00 has joined #lisp
yoonkn has quit [Remote host closed the connection]
Stanley00 has quit [Ping timeout: 240 seconds]
epony has quit [Ping timeout: 240 seconds]
epony has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
maiqthefalse has joined #lisp
niflce has quit [Ping timeout: 265 seconds]
theothornhill has quit [Ping timeout: 240 seconds]
Oladon has joined #lisp
ym has joined #lisp
ym is now known as Guest71236
ebrasca has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
long4mud has joined #lisp
maxwilliamson has quit [Remote host closed the connection]
maxwilliamson has joined #lisp
andreyorst has quit [Ping timeout: 252 seconds]
andreyorst has joined #lisp
CrashTestDummy2 has joined #lisp
Guest10524 has quit [Ping timeout: 240 seconds]
CrashTestDummy3 has quit [Ping timeout: 265 seconds]
skapata has joined #lisp
leytzher has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
yuu has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
iamFIREcracker has quit [Ping timeout: 260 seconds]
yuu has quit [Client Quit]
oog has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
leytzher has quit [Ping timeout: 260 seconds]
Stanley00 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
Krystof has joined #lisp
Guest71236 has quit [Remote host closed the connection]
contrapunctus has joined #lisp
oog has quit [Quit: ERC (IRC client for Emacs 27.2)]
contrapunctus has left #lisp ["Disconnected: closed"]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
contrapunctus has joined #lisp
Stanley00 has quit [Ping timeout: 240 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
v88m has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
Guest55856 has joined #lisp
Guest55856 has quit [Changing host]
amb007 has quit [Read error: Connection reset by peer]
Guest55856 is now known as MIF
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
aeth has quit [Ping timeout: 252 seconds]
amb007 has quit [Read error: Connection reset by peer]
aeth has joined #lisp
amb007 has joined #lisp
Oladon has quit [Quit: Leaving.]
theothornhill has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
nicktick has quit [Ping timeout: 240 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
Inline has quit [Ping timeout: 260 seconds]
maiqthefalse has quit [Quit: Connection closed for inactivity]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
Inline has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
theothornhill has quit [Ping timeout: 240 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
theothornhill has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
perrier-jouet has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
theothornhill has quit [Ping timeout: 268 seconds]
homonyms has joined #lisp
homonyms has quit [Remote host closed the connection]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
theothornhill has joined #lisp
homonyms has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
homonyms has quit [Client Quit]
theothornhill has quit [Remote host closed the connection]
mindCrime has joined #lisp
homonyms has joined #lisp
theothornhill has joined #lisp
theothornhill has quit [Remote host closed the connection]
theothornhill has joined #lisp
hiroaki has quit [Ping timeout: 260 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
theothor` has joined #lisp
hendursa1 has quit [Quit: hendursa1]
theothornhill has quit [Remote host closed the connection]
hendursaga has joined #lisp
theothor` has quit [Remote host closed the connection]
homonyms has quit [Read error: Connection reset by peer]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
perrier-jouet has quit [Quit: WeeChat 3.1]
CL-ASHOK has joined #lisp
hiroaki has joined #lisp
LispSporks has joined #lisp
CL-ASHOK` has joined #lisp
CL-ASHOK` has left #lisp [#lisp]
luckless has quit [Ping timeout: 240 seconds]
CL-ASHOK has quit [Ping timeout: 260 seconds]
luckless has joined #lisp
LispSporks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xkapastel has quit [Quit: Connection closed for inactivity]
xkapastel has joined #lisp
waleee-cl has joined #lisp
akoana has joined #lisp
masp has quit [Quit: Konversation terminated!]
msk has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
hiroaki has quit [Ping timeout: 260 seconds]
safe has joined #lisp
mindCrime has quit [Ping timeout: 268 seconds]
anticrisis has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
karlosz has joined #lisp
mindCrime has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
hypercube has quit [Ping timeout: 260 seconds]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
skapate has joined #lisp
casual_friday has quit [Remote host closed the connection]
skapata has quit [Ping timeout: 260 seconds]
casual_friday has joined #lisp
akoana has quit [Quit: leaving]
luckless has quit [Ping timeout: 240 seconds]
mindCrime has quit [Ping timeout: 240 seconds]
Stanley00 has joined #lisp
luckless has joined #lisp
Stanley00 has quit [Ping timeout: 260 seconds]
hypercube has joined #lisp
luckless has quit [Ping timeout: 240 seconds]
CrazyPython has joined #lisp
Nilby has joined #lisp
vsync_ has joined #lisp
luckless has joined #lisp
Guest10524 has joined #lisp
klltkr has joined #lisp
msk has quit [Quit: Leaving]
heisig has quit [Quit: Leaving]
LispSporks has joined #lisp
hypercube has quit [Ping timeout: 276 seconds]
loli has quit [Quit: WeeChat 3.1]
loli has joined #lisp
loli has quit [Client Quit]
loli has joined #lisp
semz has quit [Quit: Leaving]
maxwilliamson has quit [Remote host closed the connection]
maxwilliamson has joined #lisp
Inline has quit [Ping timeout: 260 seconds]
hiroaki has joined #lisp
luckless has quit [Ping timeout: 240 seconds]
luckless has joined #lisp
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
gaqwas has quit [Ping timeout: 240 seconds]
nicktick has joined #lisp
pve has quit [Quit: leaving]
LispSporks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Oladon has joined #lisp
luckless has quit [Ping timeout: 240 seconds]
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
shka_ has quit [Ping timeout: 252 seconds]
luckless has joined #lisp
gaqwas has quit [Ping timeout: 240 seconds]
mathrick_ has quit [Ping timeout: 246 seconds]
hypercube has joined #lisp
zacts has joined #lisp
zacts has quit [Client Quit]
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
long4mud has quit [Quit: WeeChat 3.0.1]
surabax has quit [Quit: Leaving]
Spawns_Carpeting has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
LispSporks has joined #lisp
LispSporks has quit [Client Quit]
Spawns_Carpeting has joined #lisp
msk has joined #lisp
Spawns_Carpeting has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
Spawns_Carpeting has joined #lisp
motersen has quit [Remote host closed the connection]