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/>
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 250 seconds]
jonatack1 has joined #commonlisp
jon_atack has quit [Ping timeout: 246 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
random-nick has quit [Ping timeout: 245 seconds]
nij- has quit [Ping timeout: 264 seconds]
ezakimak has quit [Ping timeout: 252 seconds]
|3b| has quit [Server closed connection]
paulapatience has quit [Server closed connection]
paulapatience has joined #commonlisp
|3b| has joined #commonlisp
nij- has joined #commonlisp
dipper has quit [Ping timeout: 250 seconds]
waleee has quit [Ping timeout: 264 seconds]
igemnace has quit [Ping timeout: 250 seconds]
habamax has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
jonatack1 has quit [Quit: WeeChat 3.8]
jonatack has joined #commonlisp
igemnace has joined #commonlisp
habamax has joined #commonlisp
igemnace has quit [Ping timeout: 246 seconds]
igemnace has joined #commonlisp
ello has joined #commonlisp
ello_ has joined #commonlisp
ello has quit [Client Quit]
nij- has quit [Ping timeout: 246 seconds]
igemnace has quit [Ping timeout: 250 seconds]
ello_ has quit [Remote host closed the connection]
igemnace has joined #commonlisp
bjorkint0sh has joined #commonlisp
grawlinson has quit [Server closed connection]
bjorkintosh has quit [Ping timeout: 264 seconds]
NotThatRPG has quit [Quit: Textual IRC Client: www.textualapp.com]
ello has joined #commonlisp
ello has quit [Remote host closed the connection]
grawlinson has joined #commonlisp
karlosz has quit [Quit: karlosz]
thonkpod has quit [Ping timeout: 258 seconds]
thonkpod has joined #commonlisp
ronald has quit [Ping timeout: 246 seconds]
bjorkint0sh has quit [Remote host closed the connection]
bjorkint0sh has joined #commonlisp
dipper has joined #commonlisp
habamax has quit [Ping timeout: 246 seconds]
son0p has quit [Ping timeout: 250 seconds]
SetoTaisho has joined #commonlisp
CrashTestDummy has joined #commonlisp
bjorkint0sh has quit [Ping timeout: 246 seconds]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
pranavats has left #commonlisp [Disconnected: Hibernating too long]
igemnace has quit [Ping timeout: 250 seconds]
pranavats has joined #commonlisp
igemnace has joined #commonlisp
sukaeto1 has quit [Server closed connection]
sukaeto1 has joined #commonlisp
igemnace has quit [Ping timeout: 264 seconds]
igemnace has joined #commonlisp
mathrick has joined #commonlisp
JonBoone[m] has quit [Server closed connection]
JonBoone[m] has joined #commonlisp
SetoTaisho has quit [Ping timeout: 260 seconds]
hayley has quit [Server closed connection]
hayley has joined #commonlisp
hayley has quit [Changing host]
hayley has joined #commonlisp
ec has joined #commonlisp
rtypo has joined #commonlisp
shka has joined #commonlisp
SetoTaisho has joined #commonlisp
Inline has joined #commonlisp
rgherdt has joined #commonlisp
msavoritias has joined #commonlisp
habamax has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
sjl_ has quit [Ping timeout: 240 seconds]
sjl_ has joined #commonlisp
Gleefre has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
dcb has quit [Quit: MSN Messenger 3.8]
Gleefre has quit [Remote host closed the connection]
pve has joined #commonlisp
zxcvz has joined #commonlisp
Gleefre has joined #commonlisp
Gnuxie has quit [Server closed connection]
habamax has quit [Ping timeout: 260 seconds]
matt` has joined #commonlisp
Gnuxie has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
habamax has joined #commonlisp
waleee has joined #commonlisp
dino_tutter has joined #commonlisp
Inline has quit [Ping timeout: 264 seconds]
prokhor has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 264 seconds]
Lord_of_Life has joined #commonlisp
dipper has quit [Ping timeout: 245 seconds]
euandreh has joined #commonlisp
waleee has quit [Ping timeout: 245 seconds]
BierLiebHaber has quit [Remote host closed the connection]
BierLiebHaber has joined #commonlisp
morganw has joined #commonlisp
AndrewYu has quit [Quit: Leaving]
SetoTaisho has quit [Ping timeout: 264 seconds]
AndrewYu has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
habamax has joined #commonlisp
igemnace has quit [Remote host closed the connection]
rainthree has joined #commonlisp
rainthree has quit [Read error: Connection reset by peer]
rainthree has joined #commonlisp
mi6x3m has joined #commonlisp
<mi6x3m> hey, I need some help again with https://pastebin.com/PJcT4XPJ
<ixelp> (defmacro def-indicator (name (&key ((:cache-for (duration units)) nil cache-for - Pastebin.com
<mi6x3m> when I use it as (def-indicator foo () nil) I get an error "too few elements to satisfy lambda list (duration units)"
<mi6x3m> but this error is nonsense because the keyword argument is not provided
<beach> I can't see that your keyword parameter is valid.
<beach> clhs 3.4.4
<ixelp> CLHS: Section 3.4.4
<mi6x3m> @beach, all KW arguments are optional
<mi6x3m> so an empty list should work
<beach> I am not talking about arguments. I am talking about the keyword parameter.
<mi6x3m> I mean ({var | (keyword-name var)} [init-form [supplied-p-parameter]])}* clearly covers it
<mi6x3m> ((:cache-for <destructuring>) nil :cache-for-p)
<mi6x3m> it works quite nicely for the cases where I do use the kw parameters
<beach> Fair enough. It is probably valid.
<mi6x3m> seems to be a parser bug
<mi6x3m> maybe i can report it to some sbcl folks
<beach> Well, whether the arguments are valid, I don't know.
<beach> Perhaps it is that the default value is NIL which is not a list of two elements.
<beach> What if you do ((:cache-for (duration units)) '(1 2)) instead?
<mi6x3m> LOL THIS WAS IT
<mi6x3m> omg
<mi6x3m> how subtle :D
<beach> Indeed.
<mi6x3m> jesus
<mi6x3m> good eyes beach
<beach> Thank you.
* beach must be having an unusually good day.
random-nick has joined #commonlisp
mi6x3m has quit [Ping timeout: 250 seconds]
rainthree has quit [Read error: Connection reset by peer]
karlosz has joined #commonlisp
habamax has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
mi6x3m has joined #commonlisp
kevingal has joined #commonlisp
SetoTaisho has joined #commonlisp
rainthree has joined #commonlisp
minion has quit [Ping timeout: 246 seconds]
specbot has quit [Ping timeout: 256 seconds]
easye has quit [Ping timeout: 264 seconds]
azimut has joined #commonlisp
dino_tutter has quit [Quit: Leaving]
<beach> Shinmera: I am looking at the Parachute documentation, and I can't find the place where it says what a DESIGNATOR is for the first argument of TEST.
<Shinmera> the documentation for TEST refers to RESOLVE-TESTS, but for some reason that's not in the page. It's in the source though: https://github.com/Shinmera/parachute/blob/master/documentation.lisp#L77
<ixelp> parachute/documentation.lisp at master · Shinmera/parachute · GitHub
<beach> I see. Thanks.
luna-is-here has quit [Quit: luna-is-here]
luna-is-here has joined #commonlisp
kevingal has quit [Ping timeout: 264 seconds]
igemnace has joined #commonlisp
dipper has joined #commonlisp
mi6x3m has quit [Ping timeout: 264 seconds]
euandreh1 has joined #commonlisp
euandreh has quit [Ping timeout: 250 seconds]
euandreh1 is now known as euandreh
Perflosopher has quit [Ping timeout: 240 seconds]
Perflosopher has joined #commonlisp
edwlan[m] has quit [Server closed connection]
edwlan[m] has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
HerlockSholmes has joined #commonlisp
jonatack has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
sjl_ has quit [Ping timeout: 250 seconds]
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
lottaquestions has quit [Quit: Konversation terminated!]
sjl_ has joined #commonlisp
azimut has joined #commonlisp
jaimelm has quit [Server closed connection]
jaimelm has joined #commonlisp
Devon has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
karlosz has quit [Quit: karlosz]
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
ronald has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
HerlockSholmes has left #commonlisp [BRB!]
mrcom has quit [Read error: Connection reset by peer]
HerlockSholmes has joined #commonlisp
mrcom has joined #commonlisp
tyson2 has joined #commonlisp
liminality has joined #commonlisp
<liminality> hi guys
<liminality> i'm trying to setup some sort of... "lazy" data structure, basically i define a my-list as (list x), setq x to 5, check my-list => (5). setq x 8, check my-list => (8)
<liminality> similar I guess to the function symbol table
<liminality> anyone have any ideas/leads i could follow? i've tried using the force/delay from SICP but it doesn't quite work right
<beach> I don't see how my-list can go from (5) to (8) by the use of (setq x...), when there is no x in my-list.
<liminality> the idea i guess is to define the list as a list containing 'x, and only to evaluate the value of x when i ask for the contents of the list
<beach> I also don't understand in which way this data structure is "lazy".
<liminality> its lazy in that it checks the value of the symbols stored inside of it, when we ask the list what it contains, instead of checking the values of the symbols we pass to it when we define it.
<liminality> since, normally, if i define x as 5, then my-list as (list x), it'll resolve to (5). i want to store a list of symbols whose values are looked up whenever i query the list
<Gleefre> If it is a special variable, then it would be simple - you can lookup it with symbol-value: (symbol-value '*read-base*)
macronimon has joined #commonlisp
<liminality> i see
<liminality> i'll look into that, thanks!
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
Oladon has joined #commonlisp
karlosz has joined #commonlisp
ezakimak has joined #commonlisp
pranavats has left #commonlisp [Disconnected: Hibernating too long]
tyson2 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
azimut has joined #commonlisp
<pjb> liminality: you want to make places first class objects. Places are dealt with at compilation-time (macro-expansion time), so you cannot use places per-se. Instead, you could use closures, to implement something like locatives.
<ixelp> Pascal Bourguignon's Usenet posts of interest
dino_tutter has joined #commonlisp
<liminality> thanks pjb
<liminality> i ended up storing the code for things in lambdas, then storing those lambdas in a hash table
<pjb> (defvar *my-list* (list 'x)) (defvar *x* (& (first *my-list*))) (setf (deref x) 5) (assert (equal *my-list* '(5))) (setf (deref x) 8) (assert (equal *my-list* '(8)))
<liminality> and funcalling the lambdas as i fetch them from the table
<pjb> then you can add symbol-macros.
<liminality> you wrote that up now? woh
<pjb> And finally, you could add a macro that would let you define all this by writing (define *my-list* as (list x))
<pjb> Yes. In the first usenet article cited, there's a little bug, since (funcall 'get locative) should be (funcall locative 'get) and similarly for 'set.
<liminality> i see i see
<liminality> thanks again! and, bye all
liminality has quit [Quit: Leaving]
cage has joined #commonlisp
Inline has joined #commonlisp
Devon has quit [Ping timeout: 264 seconds]
waleee has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
igemnace has quit [Remote host closed the connection]
SetoTaisho has quit [Ping timeout: 252 seconds]
Oladon has quit [Quit: Leaving.]
akoana has joined #commonlisp
Oladon has joined #commonlisp
luna-is-here has quit []
matt` has quit [Ping timeout: 264 seconds]
rainthree has quit [Ping timeout: 250 seconds]
luna-is-here has joined #commonlisp
luna-is-here has quit [Client Quit]
elevenkb has quit [Server closed connection]
elevenkb has joined #commonlisp
puchacz has joined #commonlisp
puchacz has quit [Client Quit]
puchacz has joined #commonlisp
puchacz has quit [Quit: Client closed]
puchacz has joined #commonlisp
McParen has joined #commonlisp
tevo has quit [Read error: Connection reset by peer]
luna-is-here has joined #commonlisp
tevo has joined #commonlisp
Oladon has quit [Quit: Leaving.]
cdegroot has quit [Server closed connection]
cdegroot has joined #commonlisp
tyson2 has joined #commonlisp
luna-is-here_ has joined #commonlisp
luna-is-here has quit [Ping timeout: 240 seconds]
cage has quit [Quit: rcirc on GNU Emacs 28.2]
msavoritias has quit [Remote host closed the connection]
luna-is-here_ has quit []
luna-is-here has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
akoana has quit [Quit: leaving]
ixelp has quit [Server closed connection]
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
ixelp has joined #commonlisp
macronimon has quit [Quit: Client closed]
loke has quit [Server closed connection]
loke has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
semz has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
semz has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
pranavats has joined #commonlisp
puchacz has quit [Quit: Client closed]
<McParen> &part
McParen has left #commonlisp [#commonlisp]
Krystof has quit [Ping timeout: 258 seconds]
Inline has quit [Ping timeout: 250 seconds]
Krystof has joined #commonlisp
zabow has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
zabow has quit [Quit: Leaving]
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
rtypo has quit [Ping timeout: 246 seconds]
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mzan has joined #commonlisp
xaltsc has joined #commonlisp
shka has quit [Ping timeout: 250 seconds]
morganw has quit [Remote host closed the connection]
pve has quit [Quit: leaving]
dino_tutter has quit [Ping timeout: 264 seconds]
abrantesasf has joined #commonlisp
Gleefre has quit [Ping timeout: 246 seconds]
karlosz has quit [Quit: karlosz]
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
habamax has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
pranavats has left #commonlisp [Disconnected: Hibernating too long]
pranavats has joined #commonlisp
akoana has joined #commonlisp