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/>
bubblegum has quit [Ping timeout: 252 seconds]
bubblegum has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
azimut has joined #commonlisp
puke has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
younder` has quit [Remote host closed the connection]
younder has quit [Remote host closed the connection]
yitzi has quit [Remote host closed the connection]
AetherWind has quit [Quit: leaving]
AetherWind has joined #commonlisp
varjag has quit [Ping timeout: 276 seconds]
jmdaemon has quit [Ping timeout: 252 seconds]
dirtcastle has quit [Quit: IRCNow and Forever!]
johnjaye has quit [Ping timeout: 264 seconds]
johnjaye has joined #commonlisp
flounders has quit [Quit: WeeChat 4.1.1]
amb007 has joined #commonlisp
tyson2 has joined #commonlisp
bubblegum has quit [Ping timeout: 252 seconds]
bubblegum has joined #commonlisp
rogersm has joined #commonlisp
younder has joined #commonlisp
rogersm has quit [Ping timeout: 240 seconds]
dra has quit [Ping timeout: 276 seconds]
AetherWind has quit [Quit: leaving]
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
Kyuvi has joined #commonlisp
amb007 has quit [Ping timeout: 256 seconds]
Jach has quit [Ping timeout: 256 seconds]
Jach has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
Kyuvi has joined #commonlisp
AetherWind has joined #commonlisp
Inline has quit [Quit: Leaving]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
bubblegum has quit [Ping timeout: 264 seconds]
josrr has quit [Remote host closed the connection]
bubblegum has joined #commonlisp
Josh_2 has quit [Ping timeout: 252 seconds]
varjag has joined #commonlisp
random-nick has quit [Ping timeout: 256 seconds]
varjag has quit [Ping timeout: 252 seconds]
Kyuvi has quit [Quit: Client closed]
Kyuvi has joined #commonlisp
jmdaemon has joined #commonlisp
Inline has joined #commonlisp
khrbtxyz has quit [Ping timeout: 268 seconds]
khrbtxyz has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
puke has quit [Remote host closed the connection]
puke has joined #commonlisp
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
contrapunctus has joined #commonlisp
puke has quit [Remote host closed the connection]
puke has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
rgherdt has quit [Ping timeout: 264 seconds]
Alfr has quit [Quit: Leaving]
bilegeek has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
villageidiot has joined #commonlisp
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 276 seconds]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
decweb has quit [Ping timeout: 260 seconds]
contrapunctus has left #commonlisp [#commonlisp]
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
contrapunctus has joined #commonlisp
igemnace has joined #commonlisp
kevingal_ has quit [Ping timeout: 260 seconds]
kevingal has quit [Ping timeout: 264 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
amb007 has joined #commonlisp
NicknameJohn has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
zyd has quit [Ping timeout: 246 seconds]
justache has quit [Quit: ZNC 1.8.2 - https://znc.in]
justache has joined #commonlisp
amb007 has quit [Ping timeout: 256 seconds]
NicknameJohn has quit [Ping timeout: 264 seconds]
igemnace has quit [Quit: WeeChat 4.1.2]
tyson2 has quit [Remote host closed the connection]
justache has quit [Quit: ZNC 1.8.2 - https://znc.in]
Kyuvi has quit [Ping timeout: 250 seconds]
justache has joined #commonlisp
bilegeek has quit [Quit: Leaving]
bilegeek has joined #commonlisp
AetherWind has quit [Quit: leaving]
bilegeek_ has joined #commonlisp
Kyuvi has joined #commonlisp
bilegeek has quit [Ping timeout: 260 seconds]
justache has quit [Read error: Connection reset by peer]
EsoAlgo81 has quit [Ping timeout: 276 seconds]
justache has joined #commonlisp
justache has quit [Remote host closed the connection]
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
justache has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
NicknameJohn has joined #commonlisp
contrapunctus has joined #commonlisp
rogersm has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
rogersm has quit [Remote host closed the connection]
bilegeek_ has quit [Quit: Leaving]
energizer_ has joined #commonlisp
ixelp has quit [Ping timeout: 245 seconds]
energizer has quit [Ping timeout: 268 seconds]
contrapunctus has joined #commonlisp
ixelp has joined #commonlisp
donleo has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
Alfr has joined #commonlisp
mulk has quit [Ping timeout: 268 seconds]
benkard has joined #commonlisp
contrapunctus has joined #commonlisp
benkard is now known as mulk
igemnace has joined #commonlisp
mulk has quit [Ping timeout: 256 seconds]
mulk has joined #commonlisp
khrbtxyz has quit [Ping timeout: 256 seconds]
NicknameJohn has quit [Ping timeout: 252 seconds]
contrapunctus has left #commonlisp [#commonlisp]
Lycurgus has joined #commonlisp
khrbtxyz has joined #commonlisp
traidare has joined #commonlisp
villageidiot has quit [Quit: Client closed]
bilegeek has joined #commonlisp
khrbtxyz has quit [Ping timeout: 256 seconds]
contrapunctus has joined #commonlisp
khrbtxyz has joined #commonlisp
mgl_ has joined #commonlisp
zeka_ has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
shka has joined #commonlisp
varjag has joined #commonlisp
bendersteed has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
Kyuvi has quit [Ping timeout: 250 seconds]
dcb has quit [Quit: Connection closed for inactivity]
traidare has quit [Ping timeout: 268 seconds]
bendersteed has quit [Quit: bendersteed]
traidare has joined #commonlisp
bendersteed has joined #commonlisp
Cymew has joined #commonlisp
dino_tutter has joined #commonlisp
danse-nr3 has joined #commonlisp
cross has quit [Ping timeout: 256 seconds]
AndreiDuma has joined #commonlisp
waleee has quit [Ping timeout: 240 seconds]
metsomedog has joined #commonlisp
khrbtxyz has quit [Ping timeout: 256 seconds]
khrbtxyz has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
rgherdt has joined #commonlisp
yitzi has joined #commonlisp
Kyuvi has joined #commonlisp
rogersm has joined #commonlisp
szkl has joined #commonlisp
meritamen has joined #commonlisp
random-nick has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
traidare has quit [Ping timeout: 260 seconds]
rendar has joined #commonlisp
jmdaemon has quit [Ping timeout: 260 seconds]
treflip has joined #commonlisp
khrbtxyz has quit [Ping timeout: 264 seconds]
bilegeek has quit [Quit: Leaving]
josrr has joined #commonlisp
tyson2 has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
green_ has quit [Ping timeout: 264 seconds]
traidare has joined #commonlisp
Odin-LAP has joined #commonlisp
bubblegum has quit [Remote host closed the connection]
bubblegum has joined #commonlisp
igemnace has quit [Remote host closed the connection]
bendersteed has quit [Quit: bendersteed]
mesaoptimizer has joined #commonlisp
<mesaoptimizer> vanilla emacs, god mode, SLIME repl: how do I do a 'load previous line' like C-p does in shells?
<mesaoptimizer> oh, it is M-p, never mind
khrbtxyz has joined #commonlisp
dtman34 has quit [Ping timeout: 268 seconds]
dtman34 has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
NicknameJohn has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
AndreiDuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dra has quit [Quit: Leaving]
Kyuvi has quit [Ping timeout: 250 seconds]
AndreiDuma has joined #commonlisp
AndreiDuma has quit [Client Quit]
rogersm has quit [Remote host closed the connection]
anticomputer has quit [Ping timeout: 240 seconds]
anticomputer has joined #commonlisp
danse-nr3 has joined #commonlisp
azimut has joined #commonlisp
AndreiDuma has joined #commonlisp
azimut has quit [Quit: ZNC - https://znc.in]
azimut has joined #commonlisp
decweb has joined #commonlisp
meritamen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
villageidiot has joined #commonlisp
villageidiot has quit [Quit: Client closed]
villageidiot has joined #commonlisp
traidare has quit [Ping timeout: 264 seconds]
tyson2 has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
meritamen has joined #commonlisp
meritamen has quit [Client Quit]
kevingal has joined #commonlisp
traidare has joined #commonlisp
kevingal_ has joined #commonlisp
Kyuvi has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
Gleefre has joined #commonlisp
NicknameJohn has quit [Ping timeout: 264 seconds]
Odin-FOO has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
traidare has quit [Ping timeout: 256 seconds]
khrbtxyz has quit [Ping timeout: 246 seconds]
khrbtxyz has joined #commonlisp
markb1 has quit [Ping timeout: 268 seconds]
Kyuvi88 has joined #commonlisp
AndreiDuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kyuvi has quit [Ping timeout: 250 seconds]
igemnace has joined #commonlisp
markb1 has joined #commonlisp
AndreiDuma has joined #commonlisp
rogersm has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
NicknameJohn has joined #commonlisp
dcb has joined #commonlisp
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
khrbtxyz has quit [Ping timeout: 260 seconds]
tyson2 has joined #commonlisp
khrbtxyz has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
traidare has joined #commonlisp
traidare has quit [Client Quit]
traidare has joined #commonlisp
azimut has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
tyson2 has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
_cymew_ has joined #commonlisp
Cymew has quit [Ping timeout: 260 seconds]
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
<dbotton> ctrl - up arrows also does same
<dbotton> (on most implementations)
epony has quit [Remote host closed the connection]
danse-nr3 has quit [Ping timeout: 264 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
cross has joined #commonlisp
epony has joined #commonlisp
rtypo has quit [Ping timeout: 256 seconds]
Inline has quit [Ping timeout: 268 seconds]
Inline has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
AndreiDuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danza has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
tyson2 has quit [Read error: Connection reset by peer]
traidare has quit [Ping timeout: 276 seconds]
NicknameJohn has quit [Ping timeout: 260 seconds]
Kyuvi88 has quit [Quit: Client closed]
EsoAlgo811 has joined #commonlisp
green_ has joined #commonlisp
khrbtxyz has quit [Ping timeout: 256 seconds]
khrbtxyz has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
danza has quit [Read error: Connection reset by peer]
Kyuvi has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
NotThatRPG has joined #commonlisp
danza has joined #commonlisp
AndreiDuma has joined #commonlisp
AndreiDuma has quit [Client Quit]
AndreiDuma has joined #commonlisp
danza has quit [Ping timeout: 264 seconds]
yitzi has quit [Remote host closed the connection]
treflip has quit [Quit: Quit]
rogersm has quit [Remote host closed the connection]
rogersm has joined #commonlisp
NotThatRPG has quit [Ping timeout: 264 seconds]
anthk_ has joined #commonlisp
rogersm has quit [Remote host closed the connection]
<anthk_> hello, I did a quick iteractive factorial exercise intro for CL, but this doesn't work in a REPL: https://termbin.com/2ufh
<bjorkintosh> anthk_, 'does not work' comes with errors.
NotThatRPG has joined #commonlisp
<bjorkintosh> what did it spit out?
<anthk_> the variable A doesn't exist
<bjorkintosh> well then :-)
<anthk_> The variable A is unbound.
<anthk_> in sbcl
<anthk_> ah, I came from Scheme, maybe I have to define a b n somehow
<bjorkintosh> voila.
<bike> common lisp does not have scheme's define syntax
<bike> does this actually work in scheme? i thought you had to put the defines before the code. oh well.
<bike> if you want to define a local recursive function, use LABELS
<anthk_> in scheme? yes
<bike> https://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#node_sec_11.3 i thought you had to put the definitions first.
igemnace has quit [Remote host closed the connection]
<anthk_> uhm, same issue with elisp =)
<bike> elisp does also not have scheme's internal definition syntax, i believe, but this is not an elisp channel
<anthk_> ok, I defined fact-iter first and then factorial, same error in sbcl
<bike> the scheme syntax you are trying to use is an abbreviation for a letrec form. this abbreviation is not available in common lisp. you will have to use LABELS, which is like letrec.
<bike> ::clhs labels
<anthk_> but (fact-iter 1 1 10) forks
<Colleen> Clhs: special operator flet, labels, macrolet https://www.lispworks.com/documentation/HyperSpec/Body/s_flet_.htm
<ixelp> CLHS: Special Operator FLET, LABELS, MACROLET
<anthk_> s,forks,works
younder has quit [Remote host closed the connection]
<anthk_> ah, I fixed it
<bike> defun in common lisp defines a common lisp function. when you called your factorial function, it defined a global fact-iter function you can now use.
<bike> defines a global function*
<anthk_> (fact-iter 1 1 x)
<anthk_> I chose PAIP as an starting book, it might not be the best starting one, but I find it more inspiring
<bike> it is very unusual and pretty bad style to have a function define another global function when you run it. you want a local function, which you can define with cl:labels.
<anthk_> I will try to forget scheme-isms them
younder has joined #commonlisp
<bike> well, like i said, you can define it in the scheme way, you just can't use scheme's particular abbreviated syntax
<anthk_> otoh, the lem editor/repl it's fun to use, and I don't have to think on two lisps in parallel
green_ has quit [Ping timeout: 264 seconds]
<bike> and PAIP should be fine. it's not really a tutorial, though. there's https://gigamonkeys.com/book/ available online if you want.
<ixelp> Practical Common Lisp
AndreiDuma has quit [Ping timeout: 252 seconds]
<bjorkintosh> anthk_ speaking spanish to a native portuguese speaker and insisting the listener ought to understand :-) scheme is not common lisp.
<bjorkintosh> all appearances to the contrary.
<anthk_> well, I'm from Spain and a Portuguese might have better luck with Spanish than applying Scheme into CL
<bjorkintosh> hahah
<anthk_> on sbcl/lem, I would like a function to search in the history, there was some Emacs keybinding but I can't remember it
<bjorkintosh> anthk_, also #clschool exists. check it out.
<anthk_> thanks
rogersm has joined #commonlisp
waleee has joined #commonlisp
Odin-FOO has quit [Quit: What's this button do?]
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
rogersm has quit [Quit: Leaving...]
green_ has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
a51 has quit [Quit: WeeChat 4.1.2]
kevingal_ has quit [Ping timeout: 268 seconds]
kevingal has quit [Ping timeout: 268 seconds]
green_ has quit [Remote host closed the connection]
green__ has joined #commonlisp
green__ has quit [Ping timeout: 264 seconds]
czy has quit [Remote host closed the connection]
czy has joined #commonlisp
kevingal has joined #commonlisp
kevingal_ has joined #commonlisp
NotThatRPG has joined #commonlisp
younder has quit [Remote host closed the connection]
younder has joined #commonlisp
josrr has quit [Remote host closed the connection]
rgherdt has quit [Read error: Connection reset by peer]
rgherdt has joined #commonlisp
villageidiot has quit [Quit: Client closed]
Pixel_Outlaw has quit [Quit: Leaving]
tyson2 has joined #commonlisp
puke has quit [Ping timeout: 264 seconds]
khrbtxyz has quit [Ping timeout: 264 seconds]
khrbtxyz has joined #commonlisp
a51 has joined #commonlisp
khrbtxyz has quit [Ping timeout: 256 seconds]
azimut has quit [Ping timeout: 240 seconds]
khrbtxyz has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
Kyuvi has quit [Quit: Client closed]
danza has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
yitzi has joined #commonlisp
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
ronald has quit [Ping timeout: 245 seconds]
Jach has quit [Ping timeout: 255 seconds]
Jach has joined #commonlisp
ronald has joined #commonlisp
yitzi_ has joined #commonlisp
yitzi has quit [Ping timeout: 276 seconds]
ronald has quit [Ping timeout: 245 seconds]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
ronald has joined #commonlisp
yitzi_ has quit [Remote host closed the connection]
energizer_ is now known as energizer
bubblegum has quit [Ping timeout: 252 seconds]
bubblegum has joined #commonlisp
bilegeek has joined #commonlisp
zxcvz has joined #commonlisp
ronald has quit [Ping timeout: 268 seconds]
poselyqualityles has joined #commonlisp
Kyuvi has joined #commonlisp
puke has joined #commonlisp
zxcvz has quit [Remote host closed the connection]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
mgl_ has quit [Ping timeout: 264 seconds]
tyson2 has joined #commonlisp
shka has quit [Ping timeout: 264 seconds]
tyson2 has quit [Remote host closed the connection]
donleo has quit [Quit: Leaving]
ronald has joined #commonlisp
azimut has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inline has quit [Ping timeout: 252 seconds]
mgl_ has joined #commonlisp
Inline has joined #commonlisp
random-jellyfish has joined #commonlisp
<olnw> anthk_: The shortcut to search the listener history in Lem is M-r.
NicknameJohn has joined #commonlisp
contrapunctus has quit [Quit: Gateway shutdown]
pranavats has quit [Quit: Gateway shutdown]
azimut has quit [Ping timeout: 240 seconds]
metsomedog has quit [Remote host closed the connection]
<BrokenCog> ugh. I don't understand what's happening ... I have (load "~/Projects/QuickLisp/setup.lisp") in the top of my lisp file, which is correct - if I manually eval that in the REPL, it loads as does "sbcl --load file.lisp" However "sbcl --script file.lisp" complains QL not installed.
kevingal_ has quit [Remote host closed the connection]
kevingal has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
<Lycurgus> it's getting sbcl without a userinit modified to load ql
<Lycurgus> normally done with the ql install
<Lycurgus> ql isn built into sbcl
<BrokenCog> it's installed. ~/.sbclrc loads it on start.
<aeth> in practice, you want: sbcl --non-interactive --load
<aeth> or, alternatively, at the top of your --script, add (load "~/.sbclrc")
<BrokenCog> aeth: instead of --script? or inaddition?
<aeth> instead of
<aeth> because --script doesn't load the init file by default
<aeth> but, you can also just load it at the top, too
<BrokenCog> yeah, it's the loading it at top of file which isn't working.
<aeth> --script is an alias for --no-sysinit --no-userinit --disable-debugger --end-toplevel-options
danza has quit [Quit: Leaving]
<waleee> BrokenCog: aeth probably meant that you can also load your init file at the top of "file.lisp"
<BrokenCog> ahhh. so, --script is really not what I want. Thanks for that.
<aeth> doing "--non-interactive --load" is basically what you think "--script" should do, whereas "--script" doesn't load the init file that loads quicklisp
<BrokenCog> gotcha
<aeth> my guess is --script came first
<aeth> seems to be common to have the older, worse option with the shorter, nicer name
<BrokenCog> thinking "if they want to load it, they'll just start the REPL" ...
<BrokenCog> indeed.
<aeth> so #!/path/to/sbcl --non-interactive
<aeth> or this: sbcl --non-interactive --load path/to/file.lisp
<BrokenCog> non-interactive does'nt actually eval the file - at least I don't see anything processing.
<BrokenCog> (without --load)
<BrokenCog> I probably should instead add the shebang to the file.
<aeth> the problem with the shebang-at-top-of-file is iirc you'd want to do #!/usr/bin/env sbcl, but then you can't pass --non-interactive
<aeth> or something like that
<aeth> you'd also have to chmod +x the entry point instead of assuming the user has an SBCL
khrbtxyz has quit [Ping timeout: 264 seconds]
<aeth> depending on what you're doing, you can also build an all-in-one executable of your script and SBCL
<aeth> or use a library that is portable across implementations
<aeth> There are as many ways to run a script as there are JSON libraries (-:
<BrokenCog> hmm, --non-interactive --load are not symetric.
<BrokenCog> yeah. I don't need a binary, at least not yet ... so invoking the interpreter manually is fine.
khrbtxyz has joined #commonlisp
NotThatRPG has joined #commonlisp
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #commonlisp
mgl_ has quit [Ping timeout: 252 seconds]
random-jellyfish has quit [Ping timeout: 255 seconds]
dino_tutter has quit [Ping timeout: 255 seconds]
attila_lendvai has quit [Ping timeout: 256 seconds]
amb007 has quit [Ping timeout: 264 seconds]
poselyqualityles has quit [Quit: Using Circe, the loveliest of all IRC clients]
dra has joined #commonlisp