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/>
azimut has quit [Ping timeout: 255 seconds]
dra has quit [Ping timeout: 256 seconds]
NicknameJohn has quit [Ping timeout: 246 seconds]
tok has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 264 seconds]
bubblegum has quit [Ping timeout: 252 seconds]
bubblegum has joined #commonlisp
waleee has joined #commonlisp
amb007 has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
amb007 has quit [Ping timeout: 272 seconds]
NicknameJohn has joined #commonlisp
mgl has quit [Ping timeout: 255 seconds]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
tyson2 has joined #commonlisp
bubblegum has quit [Ping timeout: 255 seconds]
bubblegum has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 256 seconds]
Lord_of_Life has joined #commonlisp
waleee has quit [Ping timeout: 252 seconds]
SunClonus has joined #commonlisp
SunClonus has quit [Remote host closed the connection]
SunClonus has joined #commonlisp
igemnace has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
hineios2 has quit [Ping timeout: 272 seconds]
bubblegum has quit [Ping timeout: 256 seconds]
bubblegum has joined #commonlisp
hineios2 has joined #commonlisp
son0p has quit [Ping timeout: 260 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
dtman34 has joined #commonlisp
random-nick has quit [Ping timeout: 260 seconds]
<Renfield> Is there a macro which will take a list of forms and return a list of the return values from evaluating each form?
gko has joined #commonlisp
livoreno has quit [Ping timeout: 256 seconds]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
josrr has quit [Remote host closed the connection]
<aeth> Renfield: something like this? ,(defmacro listify (&body body) `(list ,@body)) ,(let ((x 42)) (listify (+ 1 1) (* 2 3) (* x x) (1+ x) (list 1 2 x 4)))
<ixelp> (defmacro listify (&body body) `(list ,@body)) => LISTIFY, further (let ((x 42)) (listify (+ 1 1) (* 2 3) (* x x) (1+ x) (list 1 2 x 4))) => (2 6 1764 43 (1 2 42 4))
<aeth> Renfield: but I'm not sure what benefit it has over just calling (list ...) other than getting &body's indentation in the IDE rather than &rest style indentation
<aeth> Renfield: or do you also want to call multiple-value-list on each expression in body?
<aeth> ,(defmacro listify (&body body) `(list ,@(mapcar (lambda (x) `(multiple-value-list ,x)) body))) ,(listify (+ 1 1) (* 2 3) (get-decoded-time))
<ixelp> (defmacro listify (&body body) `(list ,@(mapcar (lambda (x) `(multiple-value-list ,x)) body))) => LISTIFY, and then (listify (+ 1 1) (* 2 3) (get-decoded-time)) => ((2) (6) (9 7 3 16 2 2024 4 NIL 0))
SunClonus has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
pyooque has joined #commonlisp
puke is now known as Guest5559
Guest5559 has quit [Killed (mercury.libera.chat (Nickname regained by services))]
pyooque is now known as puke
beach has quit [Ping timeout: 246 seconds]
decweb has quit [Ping timeout: 264 seconds]
Inline has quit [Ping timeout: 264 seconds]
brokkoli_origina has quit [Ping timeout: 264 seconds]
beach has joined #commonlisp
<beach> Renfield: It would be good if you would acknowledge that you have seen some answers to your questions. And if the answers don't solve your problem that you say so.
<beach> Renfield: Like the other day, I explained to you why your "conundrum" behaves the way it does, but I got no confirmation that you had seen the explanation.
<aeth> Yes, the question may be much harder and basically require tree-walking. Or not. Who knows.
tyson2 has quit [Remote host closed the connection]
brokkoli_origin has joined #commonlisp
seanw has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
ryanbw has quit [Quit: I'll be back.]
ryanbw has joined #commonlisp
Guestno729 has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
Guestno729 has quit [Quit: Client closed]
ymir has joined #commonlisp
wacki has joined #commonlisp
ymir has quit [Ping timeout: 246 seconds]
ymir has joined #commonlisp
rtypo has joined #commonlisp
<synchrom1> ,(let ((x (make-instance 'standard-object))) (and (class-of x) t))
<ixelp> (let ((x (make-instance 'standard-object))) (and (class-of x) t)) => T
<beach> synchrom1: What is that supposed to do?
<beach> synchrom1: First, using AND like that is a direct violation of the rules on page 13 of the LUV slides. Second, since CLASS-OF always returns a class metaobject, it is obviously not NIL, so the AND is always going to return T.
<synchrom1> Forgive me, I know not these 'LUV slides' of which you speak :)
synchrom1 is now known as synchromesh
<synchromesh> I just wanted to try out the "," bot thing, I didn't mean anything by it particularly
<beach> Oh, OK.
<synchromesh> Thanks for the link, I shall give that a read-through.
<beach> Great!
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
phoxfyre has joined #commonlisp
<phoxfyre> Hello!
amb007 has joined #commonlisp
phoxfyre has quit [Client Quit]
ronald has quit [Ping timeout: 252 seconds]
pve has joined #commonlisp
GreaseMonkey has quit [Remote host closed the connection]
greaser|q has joined #commonlisp
mm007emko has quit [Ping timeout: 252 seconds]
mm007emko has joined #commonlisp
ronald has joined #commonlisp
rgherdt has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
danse-nr3 has joined #commonlisp
decweb has joined #commonlisp
chiselfu1e is now known as chiselfuse
decweb has quit [Ping timeout: 255 seconds]
rogersm has joined #commonlisp
mm007emko has quit [Read error: Connection reset by peer]
mm007emko has joined #commonlisp
Cymew has joined #commonlisp
bendersteed has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
dino_tutter has joined #commonlisp
unl0ckd has joined #commonlisp
unl0ckd has quit [Ping timeout: 268 seconds]
thuna` has joined #commonlisp
mgl has joined #commonlisp
awlygj has joined #commonlisp
rtypo has quit [Ping timeout: 240 seconds]
traidare has joined #commonlisp
shka has joined #commonlisp
azimut has joined #commonlisp
dino_tutter has quit [Ping timeout: 260 seconds]
mm007emko has quit [Read error: Connection reset by peer]
mm007emko has joined #commonlisp
prokhor has quit [Remote host closed the connection]
prokhor has joined #commonlisp
donleo has joined #commonlisp
dcb has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
mivanchev has joined #commonlisp
<mivanchev> hey folks, what would you say is the "current version" of CL ?
<beach> Hello mivanchev. The standard hasn't moved, so that is still the current version.
<mivanchev> yes, the question is more specific than that
amb007 has quit [Ping timeout: 255 seconds]
<mivanchev> i need a version for a linux package manager
<beach> mivanchev: Are you new here? I don't recognize your nick.?
<mivanchev> a <number>.<number> thing, i know about the standard
<beach> mivanchev: Oh, so you are not talking about the language, but of some implementation of it?
<mivanchev> @beach, I'm a long time CL user but new here
amb007 has joined #commonlisp
<beach> I see.
<mivanchev> @beach, yes I need to provide a virtual CL package that SBCL provides (and other packages)
<mivanchev> maybe 226.1994 would work
<beach> Oh, so you are looking for SBCL. Then you will find the current version on the SBCL site.
<mivanchev> I am not looking for SBCL
<beach> I'm lost then.
<mivanchev> SBCL has a version
<mivanchev> but it provides a package common-lisp
<mivanchev> the question is how to version that package
<mivanchev> sbcl-x.y.z provides common-lisp-x.y.z
<beach> Common Lisp packages are different from what is called "packages" in other languages. The COMMON-LISP package has a single version.
<beach> Sorry for being so dense. Maybe someone else understands better.
<mivanchev> it's ok :) I need to provide a number/numbers that would change with later releases of the standard
<beach> Oh, so you *are* talking about the language? The standard very likely won't change.
<mivanchev> won't be updated?
<beach> Correct.
<mivanchev> what :D
<beach> There is no need to.
<beach> External libraries provide additional functionality, often across all major implementations.
<mivanchev> well i need to provide something meaningful for the package
<mivanchev> 0.0.0 won't do
_cymew_ has joined #commonlisp
<beach> What "package" is this again? I mean, there can't be such a thing as a "Common Lisp package" in the sense of "package" as used by other languages.
<mivanchev> it's a virtual package Lisp implementations provide that can be referenced as a dependency by lisp stuff
<beach> You can't download Common Lisp, other than the standards document. You can't run it.
<mivanchev> so multiple implementations declare they provide "common lisp"
jmdaemon has joined #commonlisp
<mivanchev> and stuff as cl-alexandria depend on "common lisp"
<beach> No, they HAVE TO provide a COMMON-LISP package, in order to be called Common Lisp.
phantomics_ has joined #commonlisp
<mivanchev> they provide one but they expect an implementation
<mivanchev> like SBCL
phantomics has quit [Ping timeout: 272 seconds]
<beach> I don't think Alexandria requires a particular implementation. So it has no dependencies.
<mivanchev> fair point, let me sit on that for a while
<beach> All it requires is a conforming implementation of the language. But that is an implicit dependency.
<mivanchev> fair fair
<beach> Maybe you are used to single-implementation languages that evolve every so often, so that the language and the single implementation are basically the same thing. This is not the case for Common Lisp.
<mivanchev> I'm not used to that, but I am used to a lot of weird packaging situations :))
<gilberth> Well, that the whole point of a package manager. I gather that mivanchev wants to teach a package manager that either CCL, SBCL, or ECL will do to run some software implemented in Common Lisp.
<mivanchev> involves a lot of communication to resolve
amb007 has quit [Read error: Connection reset by peer]
<beach> mivanchev: I take your word for it.
<mivanchev> yes that's it gilberth
amb007 has joined #commonlisp
<beach> mivanchev: See, I told you someone else would understand better. :)
<gilberth> mivanchev: And that thingy really needs a version number?
<mivanchev> yes it's how package managers work. however I can just install alexandria like that without dependencies
<mivanchev> and it's for you to use it through whatever you wish
<mivanchev> as beach said
<gilberth> mivanchev: Would you be fine with calling the dependency "ansi-common-lisp". Because this is what we are talking about. It's the one and only ANSI Common Lisp standard we talk about.
<mivanchev> no, it needs to be versioned, ansi standards change (see C language :)) )
<gilberth> ANSI CL won't change.
<beach> It is interesting to me that package managers seem to assume single-implementation languages without a standard that require a version number.
<gilberth> Common Lisp had. But ANSI-CL won't.
<gilberth> beach: That package manager that mivanchev wants to maintain does not assume a single implementation. That's the whole point why he is asking.
<beach> So how can you depend on a language? It can't be dowloaded.
<beach> *downloaded
<gilberth> Many languages come in different versions of the standard. Like C99, C11, C17.
<mivanchev> yes
<gilberth> beach: When I have a program written in Common Lisp I need an implementation to run it, don't I?
<beach> I am not expressing myself very well, so I'll stop.
<mivanchev> it's ok, I got some ideas, i'll just drop alexandria without an implementation
<mivanchev> thanks!
<mivanchev> it's up for the user to resolve how to use it afterwards
<beach> Sounds good.
<mivanchev> not even asdf is required
<gilberth> Alternatives like I know them from debian? "Pick the one you like"
<mivanchev> no, implicit, you have to install one yourself or install something that dictates an implementation (like StumpWM requiring SBCL)
rudi_ has joined #commonlisp
<beach> What SBCL-specific stuff does StumWM require?
<mivanchev> it uses the sbcl binary for starters
<beach> I am surprised.
<gilberth> mivanchev: Anyhow, I still suggest that you go with the name "ansi-common-lisp".
<gilberth> I'm not. It needs to run that Lisp. A pity though. I tried to solve that with a run-lisp.sh script some 30 years ago, didn't catch on and now perhaps lost.
<gilberth> I mean "cl" is not standard command name like "cc" is.
thuna` has quit [Remote host closed the connection]
thuna` has joined #commonlisp
thuna` has quit [Remote host closed the connection]
thuna` has joined #commonlisp
rudi_ is now known as rudi
aurelius_nero_ has joined #commonlisp
aurelius_nero has quit [Ping timeout: 260 seconds]
aurelius_nero_ has quit [Quit: Leaving]
danse-nr3 has quit [Read error: Connection reset by peer]
danse-nr3 has joined #commonlisp
msavoritias has joined #commonlisp
danse-nr3 has quit [Ping timeout: 264 seconds]
danse-nr3 has joined #commonlisp
synchromesh has quit [Read error: Connection reset by peer]
synchromesh has joined #commonlisp
igemnace has quit [Ping timeout: 264 seconds]
igemnace has joined #commonlisp
<splittist> 226.1994 does (more or less) specify the standards document
dra has joined #commonlisp
NicknameJohn has quit [Ping timeout: 264 seconds]
mivanchev has quit [Quit: Leaving]
amb007 has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
waleee has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
random-nick has joined #commonlisp
rogersm has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
Odin- has joined #commonlisp
jmdaemon has quit [Ping timeout: 264 seconds]
elderK has joined #commonlisp
<elderK> phoe: This was a great deal of fun to read: https://gist.github.com/phoe/2b63f33a2a4727a437403eceb7a6b4a3
<ixelp> Package-local nicknames in Common Lisp - a semishitpost about PLNs · GitHub
elderK has quit [Client Quit]
rogersm has joined #commonlisp
rogersm has quit [Quit: Leaving...]
yitzi has joined #commonlisp
Lycurgus has quit [Quit: leaving]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 256 seconds]
rudi has quit [Quit: rudi]
tok has joined #commonlisp
agm has joined #commonlisp
green__ has quit [Ping timeout: 255 seconds]
danse-nr3 has quit [Read error: Connection reset by peer]
tyson2 has quit [Read error: Connection reset by peer]
danse-nr3 has joined #commonlisp
bendersteed has quit [Remote host closed the connection]
Mondenkind has quit [Quit: !]
childlikempress has joined #commonlisp
kaskal has joined #commonlisp
prokhor_ has joined #commonlisp
kaskal- has quit [Ping timeout: 256 seconds]
prokhor has quit [Ping timeout: 252 seconds]
danse-nr3 has quit [Ping timeout: 264 seconds]
danse-nr3 has joined #commonlisp
bendersteed has joined #commonlisp
josrr has joined #commonlisp
les has quit [Quit: Adios]
ronald_ has joined #commonlisp
les has joined #commonlisp
rgherdt_ has joined #commonlisp
lagash has quit [Ping timeout: 268 seconds]
bendersteed has quit [Remote host closed the connection]
rgherdt has quit [Ping timeout: 272 seconds]
ronald has quit [Ping timeout: 260 seconds]
unl0ckd has joined #commonlisp
bendersteed has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
aurelius_nero has joined #commonlisp
cage has joined #commonlisp
a51 has joined #commonlisp
danse-nr3 has quit [Ping timeout: 268 seconds]
danse-nr3 has joined #commonlisp
wacki has quit [Read error: Connection reset by peer]
waleee has quit [Ping timeout: 264 seconds]
wacki has joined #commonlisp
st_aldini has quit [Quit: st_aldini]
unl0ckd has quit [Ping timeout: 268 seconds]
dra has quit [Ping timeout: 256 seconds]
st_aldini has joined #commonlisp
fe[nl]ix has quit [Quit: Valete!]
unl0ckd has joined #commonlisp
dino_tutter has joined #commonlisp
fe[nl]ix has joined #commonlisp
Inline has joined #commonlisp
tyson2 has joined #commonlisp
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jon_atack has quit [Ping timeout: 272 seconds]
mzan has joined #commonlisp
dra has joined #commonlisp
dra has quit [Ping timeout: 268 seconds]
mariari has quit [Quit: WeeChat 4.2.1]
bendersteed has quit [Quit: bendersteed]
mariari has joined #commonlisp
jjnkn has joined #commonlisp
mehlon has joined #commonlisp
lagash has joined #commonlisp
unl0ckd has quit [Ping timeout: 268 seconds]
mi6x3m has joined #commonlisp
<mi6x3m> friends is there a way to copy the files of a system with ASDF?
<mi6x3m> to, like, copy the system
<beach> Do you mean copy the component files of the system?
<mi6x3m> yes
<beach> You can traverse the system using ASDF and copy each file with whatever method you have for copying a file.
josrr has quit [Remote host closed the connection]
<mi6x3m> how would I traverse it
<beach> Let me check...
josrr has joined #commonlisp
<beach> (asdf/plan:required-components <system>)
notzmv has joined #commonlisp
<mi6x3m> lemme see, thanks beach
<beach> Sure.
<beach> I use it to implement a simple function for loading each component file into a first-class global environment.
<mi6x3m> you're hardcore
<beach> That's not the description I would use. I just do whatever I need to in order to get my stuff to work, with as little effort as possible.
<beach> I more sophisticated solution would probably be to define methods on some ASDF functions, but I wasn't up to that.
BrokenCog has quit [Quit: leaving]
Oladon has joined #commonlisp
Cymew has quit [Ping timeout: 252 seconds]
awlygj has quit [Quit: leaving]
awlygj has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
mehlon has quit [Remote host closed the connection]
yitzi has quit [Remote host closed the connection]
danse-nr3 has quit [Ping timeout: 256 seconds]
<Shinmera> you could also just copy the directory tree of asdf:system-source-directory
notzmv has quit [Remote host closed the connection]
phantomics_ has quit [Ping timeout: 255 seconds]
<mi6x3m> the dir tree contains more than the sytem
notzmv has joined #commonlisp
bjorkintosh has quit [Quit: Leaving]
phantomics has joined #commonlisp
traidare has quit [Ping timeout: 255 seconds]
<Shinmera> maybe, maybe not
<mi6x3m> is it customary to have N asdf systems in one ASD file?
<Shinmera> the files of the system may depend on those files, too
<Shinmera> so just copying the .lisp files is not guaranteed to work
<mi6x3m> Shinmera, IMO a system lists all dependencies
<Shinmera> your opinion is wrong, then
<mi6x3m> and something outside of the scope is an ill-described system
<Shinmera> or rather, it does not reflect reality
<mi6x3m> that's possible yeah
<Shinmera> it's not just possible, it is fact
<mi6x3m> yep
<mi6x3m> I mean I am aware
<mi6x3m> was just wandering :)
awlygj has quit [Quit: leaving]
awlygj has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
fe[nl]ix has quit [Quit: Valete!]
fe[nl]ix has joined #commonlisp
bubblegum has joined #commonlisp
phantomics_ has joined #commonlisp
shka has quit [Remote host closed the connection]
shka has joined #commonlisp
phantomics has quit [Ping timeout: 255 seconds]
bubblegum has quit [Read error: Connection reset by peer]
green_ has joined #commonlisp
bubblegum has joined #commonlisp
BrokenCog has joined #commonlisp
BrokenCog has left #commonlisp [#commonlisp]
tyson2 has quit [Remote host closed the connection]
green_ has quit [Ping timeout: 268 seconds]
rogersm has joined #commonlisp
agm has quit [Remote host closed the connection]
agm has joined #commonlisp
SunClonus has joined #commonlisp
bubblegum has quit [Ping timeout: 255 seconds]
bjorkintosh has joined #commonlisp
bubblegum has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
igemnace has quit [Quit: WeeChat 4.2.1]
mi6x3m has quit [Ping timeout: 268 seconds]
jonatack has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
akoana has joined #commonlisp
bubblegum has quit [Ping timeout: 246 seconds]
azimut has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
zxcvz has joined #commonlisp
bubblegum has joined #commonlisp
rtypo has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
zxcvz has quit [Client Quit]
mgl has quit [Ping timeout: 246 seconds]
bubblegum has quit [Ping timeout: 255 seconds]
bubblegum has joined #commonlisp
ymir has quit [Ping timeout: 255 seconds]
rogersm has quit [Remote host closed the connection]
yitzi has joined #commonlisp
amb007 has quit [Ping timeout: 256 seconds]
rogersm has joined #commonlisp
amb007 has joined #commonlisp
dcb has joined #commonlisp
Devon has joined #commonlisp
rogersm has quit [Remote host closed the connection]
amb007 has quit [Ping timeout: 268 seconds]
amb007 has joined #commonlisp
mgl has joined #commonlisp
mgl has quit [Ping timeout: 264 seconds]
ymir has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
rogersm has joined #commonlisp
bubblegum has quit [Ping timeout: 252 seconds]
bubblegum has joined #commonlisp
attila_lendvai_ has joined #commonlisp
rogersm has quit [Quit: Leaving...]
synchromesh has quit [Read error: Connection reset by peer]
synchromesh has joined #commonlisp
traidare has joined #commonlisp
yitzi has quit [Ping timeout: 260 seconds]
yitzi has joined #commonlisp
alcor has joined #commonlisp
tane has joined #commonlisp
msavoritias has quit [Remote host closed the connection]
<aeth> gilberth: not only is "cl" not a standard command name for Common Lisp, the letters "CL" are overloaded between "Common Lisp" and "OpenCL", although fortunately OpenCL is kind of dying because the only alternative short name people use for CL is "clisp", which got taken by a CL implementation decades ago.
mgl has joined #commonlisp
akoana has quit [Ping timeout: 255 seconds]
josrr has quit [Remote host closed the connection]
<random-nick> doesn't opencl use the command name clc?
amb007 has quit [Read error: Connection reset by peer]
<random-nick> hmm no, that's .net?
<aeth> I don't have clc, but I have various clc-* and they have Lispy names
<aeth> like clc-slime and clc-lisp. It appears to be `common-lisp-controller`
jjnkn has quit [Quit: leaving]
<ixelp> common-lisp-controller - Fedora Packages
amb007 has joined #commonlisp
<aeth> The debian.org link there is dead, though.
<random-nick> actually, disregard that, I was thinking of csc, not clc
<random-nick> I don't have a clc either
<aeth> I also think that you may have been thinking of `csi` when you're talking about .net, which iirc presented a name clash between "Chicken Scheme interpreter" and iirc "C# inspector" that made installing both Chicken Scheme and C# impossible in some distros. But at the moment, `csi` is Chicken Scheme for me and I still have mono-core, etc., installed, so that name conflict must have been resolved.
<aeth> That's the sort of name conflict that using `cl` may also present. Although fwiw, I have had `cl` and `lisp` as shell aliases for `sbcl`
<random-nick> the only cl binary in arch linux repositories is in a package called cliquer
<random-nick> and there is no clc
<Pixel_Outlaw> The sad part is when you work in an IBM mainframe era shop and everytime you hear "CL" they mean "Command Language"
* thuna` wonders why the (night) train from Vienna costs double on May 8th
jonatack has quit [Ping timeout: 252 seconds]
greaser|q has quit [Changing host]
greaser|q has joined #commonlisp
greaser|q is now known as GreaseMonkey
triffid has quit [Remote host closed the connection]
attila_lendvai_ has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
<younder> (make-pathname :directory '(:relative "www" "img") :directory (asdf:system-source-directory (asdf:find-system "table-grinder")))
<younder> sorry (make-pathname :directory '(:relative "www" "img") :defaults (asdf:system-source-directory (asdf:find-system "table-grinder")))
<aeth> random-nick: fedora has maxima
<younder> gives: P"www/img/" WFT! Why doesn't it append it to the asdf systems directory?
<_death> you want merge-pathnames, not :defaults
<_death> or asdf:system-relative-pathname
<random-nick> aeth: arch has separate maxima-sbcl and maxima-ecl packages
bubblegum has quit [Read error: Connection reset by peer]
rendar has quit [Ping timeout: 268 seconds]
bubblegum has joined #commonlisp
alcor has quit [Remote host closed the connection]
NicknameJohn has joined #commonlisp
yitzi has quit [Remote host closed the connection]
<younder> OK (merge-pathnames (make-pathname :directory '(:relative "www" "img")) (asdf:system-source-directory "table-grinder")) seems to work. What a PIG of a system to use!
<Shinmera> younder: (pathname-utils:subdirectory (asdf...) "www" "img")
bubblegum has quit [Ping timeout: 268 seconds]
shka has quit [Ping timeout: 268 seconds]
bubblegum has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 29.1]
kenanb has joined #commonlisp
_cymew_ has quit [Ping timeout: 255 seconds]
<ixelp> GitHub - fosskers/filepaths: Modern and consistent filepath manipulation for Common Lisp.
<kenanb> There is this old "Writing a Raytracer in CL" tutorial from Alexander Lehmann ( https://www.youtube.com/watch?v=N1oMRw04W3E ) . In the tutorial, the matrix is represented as a vector, and a usual 2d accessor (i*numCols+j) is implemented.
<ixelp> Writing a Raytracer in Common Lisp - Part 1 - YouTube
<kenanb> Alexander says that a vector is used instead of 2D array, because a 1D array is faster to access than 2D for reasons Alexander is unsure of. Does anyone know if: 1) this is generally true? 2) if there is a standard related reason for it?
<kenanb> I couldn't quite figure out from the standard text, but based on my reading online, my understanding is that even a multi-dim array is defined as a row-major contiguous data block on memory.
<_death> furthermore there is row-major-aref that you can pass a single index to
<kenanb> I can still imagine a suboptimal aref implementation causing a slowdown despite the compact memory layout, presumably due to being too generic etc. But I assume you could still only write your custom accessor, rather than using a vector.
<younder> Thanks! Ill look into it.
<kenanb> _death: yeah.
NicknameJohn has quit [Ping timeout: 260 seconds]
<_death> there are cases where a different representation may make more sense but if you need a 2d array, using one is a good default..
notzmv has quit [Ping timeout: 256 seconds]
agm has quit [Ping timeout: 256 seconds]
<younder> I've made arrays with both 1d and 2d views using array displacement in the past
<kenanb> s/"this is generally true?"/"is this generally true?"
<younder> The layout in memory is the same. but two array structures sharing the same memory interprets the layout differently
notzmv has joined #commonlisp
<kenanb> younder: yeah, that's my understanding as well. so I can't see any reason for slower access other than a slow aref implementation, due to reasons. I will profile and see for myself.
notzmv has quit [Ping timeout: 264 seconds]
traidare has quit [Ping timeout: 256 seconds]
tane has quit [Quit: Leaving]
bubblegum has quit [Ping timeout: 260 seconds]
amb007 has quit [Read error: Connection reset by peer]
NicknameJohn has joined #commonlisp
decweb has joined #commonlisp
amb007 has joined #commonlisp
ronald has joined #commonlisp
ronald_ has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
triffid has joined #commonlisp
louis77 has joined #commonlisp
jonatack has joined #commonlisp
younder has quit [Remote host closed the connection]
<Kingsy> anyone in here familiar with hunchentoot? I am finding it hard to dynamically set the response code and response body myself in my routes. could do with some pointers if possible.
amb007 has quit [Ping timeout: 272 seconds]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
random-jellyfish has joined #commonlisp
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
dra has joined #commonlisp
bubblegum has joined #commonlisp
<louis77> Kingsy: you use only hunchentoot?
<Kingsy> louis77: yes
<louis77> (setq (return-code* *reply*) 404)
<louis77> or better (setq (return-code* *reply*) +http-not-found+)
bubblegum has quit [Ping timeout: 240 seconds]
<louis77> the body is just what your handler returns, either a string or a binary sequence
<Kingsy> louis77: yeah I have tried that. it says the value 404 is not of type SEQUENCE
bubblegum has joined #commonlisp
<louis77> you need to set the response code with setq, not return it from the handler
<scymtym> make sure that (setq ... 404) is not the final form of your function. (setq .... THING) evaluates to THING so maybe you accidentally return the number 404 as the response body instead of a string
<Kingsy> I was using setf, if I use setq I get an error from slime that the variable name is not a symbol
synchromesh has quit [Read error: Connection reset by peer]
<Kingsy> ah ok
jladd has quit [Ping timeout: 255 seconds]
<Kingsy> woohooo yep that worked. arrghh I would have had it working ages ago if I jsut realised it was the response that was failing not the setting of the code.
jladd has joined #commonlisp
synchromesh has joined #commonlisp
<Kingsy> louis77: I very much appreciate your response and help. thankyou
<louis77> Kingsy: glad it works for you now
jladd- has joined #commonlisp
jladd has quit [Ping timeout: 240 seconds]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
bubblegum has quit [Ping timeout: 255 seconds]
bubblegum has joined #commonlisp
mgl has quit [Ping timeout: 246 seconds]
NicknameJohn has quit [Ping timeout: 256 seconds]
donleo has quit [Quit: Leaving]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
<aeth> implicit return values and implicit NILs are easy sources of mistakes
louis77 has left #commonlisp [Using Circe, the loveliest of all IRC clients]
bubblegum has quit [Read error: Connection reset by peer]
louis77 has joined #commonlisp
bubblegum has joined #commonlisp
wacki has joined #commonlisp
NicknameJohn has joined #commonlisp
wacki has quit [Client Quit]
son0p has joined #commonlisp
<Kingsy> hmm can someone give me some advice on how to approach a problem, so I have this simple code. https://bpa.st/A4JA <- which gets executed by a macro. the point of the function is to return a lambda so it can be used by reference in a hashmap later. it works great but now I am in a place where I want to wrap the code within the lambda in a handler-case. and it got me thinking.. this way means whenever I
<ixelp> View paste A4JA
<Kingsy> want something to be added I need to repeat it twice.. there has got to be a better way
bubblegum has quit [Ping timeout: 268 seconds]
fiddlerwoaroof has quit [Quit: Gone.]
josrr has joined #commonlisp
fiddlerwoaroof has joined #commonlisp
rgherdt_ has quit [Quit: Leaving]
bubblegum has joined #commonlisp
zyni-moe has joined #commonlisp
zyni-moe has quit [Client Quit]
<Kingsy> hmm actually maybe I can just pass the variable db with its value into the function rather than it being outside.
dino_tutter has quit [Ping timeout: 260 seconds]
pve has quit [Quit: leaving]
random-jellyfish has quit [Ping timeout: 246 seconds]