jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
bjorkintosh has quit [Quit: Leaving]
euandreh has quit [Ping timeout: 260 seconds]
czy has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
akoana has joined #commonlisp
nij- has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
rtoy has joined #commonlisp
pve has quit [Quit: leaving]
occ has joined #commonlisp
theesm has quit [Ping timeout: 246 seconds]
theesm has joined #commonlisp
random-nick has quit [Ping timeout: 260 seconds]
perrierjouet has quit [Ping timeout: 248 seconds]
n0den1te has joined #commonlisp
euandreh has joined #commonlisp
n0den1te has quit [Quit: Leaving]
waleee has quit [Quit: uppdattar datta]
waleee has joined #commonlisp
waleee has quit [Ping timeout: 248 seconds]
lucasta has quit [Remote host closed the connection]
lucasta has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
akoana has quit [Quit: leaving]
lucas_ta has joined #commonlisp
lucasta has quit [Ping timeout: 265 seconds]
dipper_ has quit [Remote host closed the connection]
<ahc> so, sbcl under Emacs and Slime, I get this error "Couldn't execute "/bin/csh": No such file or directory". Sure enough, echo $SHELL -> /bin/bash. How would I fix this?  Backtrace even says SB-EXT:RUN-PROGRAM "/bin/csh". Which way forward? i) set sbcl to use bash in .sbcl ii) install csh iii) alias csh to use bash ?
<ahc> I've looked through sbcl manual. Can find any reference.
<ahc> Can't find. Googled.
<beach> I have never seen this problem. When do you get this error?
<ahc> When I ran some lisp code, which calls an external program.
<ahc> evaluated .. I guess
<beach> And did you write the code that calls the external program?
<ahc> No.   In the Backtrace, I can see  SB-IMPL::PROGRAM = "/bin/csh"  so I'm wondering where that was set.
<beach> I think you need to contact the person who wrote that code.
<ahc> I'll try setting  SB-IMPL::PROGRAM = "/bin/bash"
<ahc> No, it set it OK but same error. OK. I'll check with the code curator.
occ has quit [Ping timeout: 248 seconds]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #commonlisp
jonatack3 has joined #commonlisp
jonatack2 has quit [Ping timeout: 265 seconds]
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
dcb has quit [Quit: MSN Messenger 3.8]
occ has joined #commonlisp
paul0 has quit [Changing host]
paul0 has joined #commonlisp
Noisytoot has quit [Ping timeout: 276 seconds]
Noisytoot has joined #commonlisp
pvb has joined #commonlisp
<bjorkintosh> ahc, for giggles, does it work when your shell is csh?
<bjorkintosh> merely wondering.
<ahc> A brute force quick fix, installing csh.
<ahc> In the legacy code base, I notice a sbcl.lisp file in its /src folder. csh is set there several times. So I'm getting close.
Noisytoot has quit [Ping timeout: 255 seconds]
Noisytoot has joined #commonlisp
rgherdt has joined #commonlisp
ryanbw has quit [Ping timeout: 250 seconds]
<ahc> Well that was a quick fix. Works perfectly. Thank you.
<bjorkintosh> question is, why is the default set to csh at all?
<beach> Are you sure it was the default?
<bjorkintosh> not at all, come to think of it.
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
kenran has joined #commonlisp
admich has joined #commonlisp
karlosz has joined #commonlisp
|3b| has quit [Remote host closed the connection]
|3b|` has joined #commonlisp
Noisytoot is now known as Guest808
Guest808 has quit [Killed (cadmium.libera.chat (Nickname regained by services))]
Noisytoot has joined #commonlisp
Noisytoot has quit [Excess Flood]
Noisytoot has joined #commonlisp
karlosz has quit [Ping timeout: 246 seconds]
shka has joined #commonlisp
ryanbw has joined #commonlisp
Noisytoot has quit [Ping timeout: 268 seconds]
lucas_ta has quit [Remote host closed the connection]
Noisytoot has joined #commonlisp
xristos has quit [Ping timeout: 248 seconds]
ryanbw1 has joined #commonlisp
ryanbw has quit [Quit: I'll be back.]
karlosz has joined #commonlisp
pve has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
karlosz has quit [Quit: karlosz]
|3b|` is now known as |3b|
karlosz has joined #commonlisp
gridbugsmasher42 has quit [Quit: You have been kicked for being idle]
karlosz has quit [Read error: Connection reset by peer]
Equill has joined #commonlisp
occ has quit [Ping timeout: 248 seconds]
admich has quit [Remote host closed the connection]
rgherdt_ has joined #commonlisp
rgherdt has quit [Read error: Connection reset by peer]
jeffrey has joined #commonlisp
aartaka has joined #commonlisp
ahc has quit [Quit: Client closed]
McParen has joined #commonlisp
rgherdt_ is now known as rgherdt
cage has joined #commonlisp
tevo has quit [Ping timeout: 265 seconds]
tevo has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
Inline has joined #commonlisp
random-nick has joined #commonlisp
tevo has quit [Ping timeout: 246 seconds]
MajorBiscuit has joined #commonlisp
AmyMalik is now known as Reinhilde
solanav has joined #commonlisp
<solanav> Hi! I'm new to Common Lisp and have been trying sly after using slime for a couple weeks and sly's process keeps getting killed when I get an exception in the REPL. Is this intended? Am I missing some kind of config so it restarts or controls the exceptions? Thanks!
<solanav> For example if I call a function wrong, I get "Process sly-pty killed" and "Server side close"
<jackdaniel> I can only say that this is not something expected, probably your lisp implementation crashes
<jackdaniel> what is the common lisp implementation that you use?
nij- has joined #commonlisp
<nij-> (with-output-to-string (s) (uiop:run-program "ehco" :output s :error-output s)) reports error without much reason except telling me code is 127. How do I make it return more info to me?
<nij-> (Yest, I know ehco is spelt wrong.)
azimut has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 260 seconds]
<solanav> I use sbcl on my mac, so should be ok right? Pretty standar
<solanav> SBCL 2.3.3
<jackdaniel> yes, that's pretty standard
<jackdaniel> I don't have any experience with mac but I know that some people use this system
rgherdt_ is now known as rgherdt
occ has joined #commonlisp
shka has quit [Read error: Connection reset by peer]
shka has joined #commonlisp
<Bike> nij-: pass :ignore-error-status t if you want the error message to be actually put in the string
cage has quit [Remote host closed the connection]
szkl has quit [Quit: Connection closed for inactivity]
perrierjouet has joined #commonlisp
kevingal has joined #commonlisp
kevingal_ has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 265 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
dtman34 has joined #commonlisp
<nij-> Bike, thank you!
mingus has quit [Ping timeout: 276 seconds]
tyson2 has joined #commonlisp
<Bike> nij-: or you can use the restart, of course
dilated_dinosaur has quit [Ping timeout: 255 seconds]
dilated_dinosaur has joined #commonlisp
robin has quit [Read error: Connection reset by peer]
chrcav has quit [Ping timeout: 246 seconds]
rtoy has left #commonlisp [#commonlisp]
chrcav has joined #commonlisp
robin has joined #commonlisp
robin has quit [Remote host closed the connection]
robin has joined #commonlisp
rgherdt_ is now known as rgherdt
xristos has joined #commonlisp
nij- has quit [Ping timeout: 265 seconds]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #commonlisp
solanav_ has joined #commonlisp
solanav has quit [Ping timeout: 250 seconds]
dcb has joined #commonlisp
solanav_ has quit [Remote host closed the connection]
kenran has quit [Remote host closed the connection]
aartaka has quit [Ping timeout: 265 seconds]
solanav has joined #commonlisp
solanav has quit [Client Quit]
alhazraed has joined #commonlisp
lucasta has joined #commonlisp
morganw has joined #commonlisp
cage has joined #commonlisp
lucasta has quit [Remote host closed the connection]
notzmv has quit [Ping timeout: 265 seconds]
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
<McParen> does somebody know of a library for parsing command line input that is similar to common lisp? i know of unix-opts, but thats for unix-style syntax.
<McParen> i'd like something that resembles lisp lambda lists, but with small differences.
<jackdaniel> if you feel adventurous check out clim command argument list parsing
<McParen> can you give me a hint where to look?
kenran has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
<jackdaniel> McParen: you could start here: http://bauhh.dyndns.org:8000/clim-spec/27-6.html#_1440
<ixelp> CLIM 2 Specification — 27.6 The Command Processor
<jackdaniel> as I've said - if you feel adventurous. there are many concepts like command tables and presentation types that may feel foreign
cowboy8625 has joined #commonlisp
<McParen> thanks, I'd like to take a look if it somehow can serve my purpose or help me improve my own
<jackdaniel> and from more down to earth solutions (i.e from the unixland), I've found net.diderverna.clon to be an excellent library for defining the cli interface and parsing arguments
<McParen> ok, will take a look at that too, thanks.
<jackdaniel> sure
<pjb> McParen: you can really use any parser you want on (uiop:command-line-arguments)
<pjb> McParen: so for example: (destructuring-bind (file &key pin output verbose) (intern-keywords '("/tmp/foo" ":pin" "4263" ":verbose" "t")) …)
<pjb> McParen: but I prefer natural language command line arguments. You could fork out the NLP parsing to GPT…
<pjb> eg.: my-package-manager install a common-lisp implementation # and let gpt convert "install a common-lisp implementation" into a more restricted set of commands with a specific prompt.
<McParen> pjb: thanks. what I'm trying to do is feeding command line arguments to lisp handler functions, so I need to map the arguments to function lambda lists.
<McParen> I basically want the string "a b :c 1" to be parsed as ("a" "b" :c 1) for a lambda list (a b & key c), etc.
<pjb> yes. You need to process the argument list to convert strings into keywords or numbers, or keep them as strings Perhaps you'd want to parse also '#C(1 2)' and other lisp things? A simple read-from-string is not enough, since some arguments may not have a lisp syntax (eg. paths).
<pjb> McParen: note command line arguments are obtained as lists of strings, not a whole string.
cowboy8625 has quit [Ping timeout: 256 seconds]
<pjb> You start with ("a" "b" ":c" "1") and want ("a" "b" :C 1)
cowboy8625 has joined #commonlisp
<McParen> yes, doing the basics by hand isnt very hard, but covering all the lisp quirks like rest, optional, key, default arguments, etc, quickly becomes involved.
cowboy8625 has quit [Ping timeout: 252 seconds]
cowboy8625 has joined #commonlisp
<pjb> McParen: you don't have to process that yourself. eg. if you want to handle errors, you may use (handler-case (destructuring-bind …)).
selfish has joined #commonlisp
<McParen> pjb: i think i have to process that myself, because I have several differences from the way destructurung bind processes its arguments.
<McParen> for example i need the &rest argments to be saved in one string, instead of a list, and preserve any whitespace between the words.
<pjb> In that case, yes.
<pjb> You may copy and modify the argument processing code in some implementation. Perhaps sicl ?
<McParen> the use is for parsing an irc command line, the rest is basically the text the user types, so it has to preserve the whitespace.
<pjb> I have one such example in botihn /msg botihn sources
cowboy8625 has quit [Quit: WeeChat 3.5]
<pjb> McParen: I just split the words: https://gitlab.com/com-informatimago/com-informatimago/-/blob/master/small-cl-pgms/botihn/botihn.lisp#L286 and the parse them. You could keep the rest with each split word.
<ixelp> small-cl-pgms/botihn/botihn.lisp · master · com-informatimago / com.informatimago · GitLab
<McParen> ok, thanks for the suggestions, I'll look into them.
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 268 seconds]
<McParen> a good entry point for the sicl parser seems to be "parse-destructuring-bind": https://github.com/robert-strandh/SICL/blob/master/Code/Cleavir/Code-utilities/destructuring.lisp#L396
<ixelp> SICL/destructuring.lisp at master · robert-strandh/SICL · GitHub
waleee has joined #commonlisp
<pjb> then you can parse the command word by word using (car current), and when you need the rest as a single string use (cdr current) {the last one}.
tibfulv has quit [Remote host closed the connection]
<McParen> pjb, thanks for the help, I will have to process that first before I can comment.
tibfulv has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
lucasta has joined #commonlisp
masinter has joined #commonlisp
tyson2 has joined #commonlisp
waleee has quit [Ping timeout: 256 seconds]
notzmv has joined #commonlisp
bollu has quit [Remote host closed the connection]
rgherdt_ has quit [Remote host closed the connection]
bollu has joined #commonlisp
attila_lendvai has joined #commonlisp
NicknameJohn has joined #commonlisp
karlosz has joined #commonlisp
szkl has joined #commonlisp
son0p has joined #commonlisp
kevingal_ has quit [Ping timeout: 255 seconds]
kevingal has quit [Ping timeout: 255 seconds]
tyson2 has quit [Remote host closed the connection]
LW has joined #commonlisp
lucasta has quit [Quit: Leaving]
kenran has quit [Remote host closed the connection]
occ has quit [Ping timeout: 276 seconds]
karlosz has quit [Quit: karlosz]
occ has joined #commonlisp
McParen has left #commonlisp [#commonlisp]
waleee has joined #commonlisp
waleee has quit [Ping timeout: 250 seconds]
MajorBiscuit has quit [Ping timeout: 250 seconds]
Brucio-61 has quit [Read error: Connection reset by peer]
Brucio-61 has joined #commonlisp
scymtym has quit [Remote host closed the connection]
scymtym has joined #commonlisp
shka has quit [Ping timeout: 240 seconds]
attila_lendvai has quit [Ping timeout: 276 seconds]
LW has quit [Quit: WeeChat 3.6]
morganw has quit [Remote host closed the connection]
waleee has joined #commonlisp
X-Scale has joined #commonlisp
waleee has quit [Ping timeout: 265 seconds]
Lord_of_Life has quit [Ping timeout: 248 seconds]