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/>
random-nick has quit [Ping timeout: 264 seconds]
gxt has quit [Remote host closed the connection]
gxt has joined #commonlisp
Lycurgus has quit [Quit: leaving]
kztx has quit [Quit: nyaa~]
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life has joined #commonlisp
Oladon has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
mariari has quit [Ping timeout: 264 seconds]
mariari has joined #commonlisp
santiagopim has quit [Ping timeout: 255 seconds]
gxt has quit [Ping timeout: 256 seconds]
waleee has quit [Ping timeout: 240 seconds]
contrapunctus has joined #commonlisp
gxt has joined #commonlisp
X-Scale has quit [Ping timeout: 248 seconds]
gxt has quit [Remote host closed the connection]
gxt has joined #commonlisp
bh34e5 has joined #commonlisp
meritamen has joined #commonlisp
ocreugf has joined #commonlisp
<fiddlerwoaroof> cedb: there is linedit
<ixelp> GitHub - sharplispers/linedit: Readline-style line-editor for Common Lisp.
contrapunctus has left #commonlisp [#commonlisp]
<fiddlerwoaroof> (ql:quickload :linedit)(linedit:install-repl)
<fiddlerwoaroof> Gives you tab-complete And M-i for documentation
bh34e5 has quit [Read error: Connection reset by peer]
bjorkintosh has quit [Ping timeout: 240 seconds]
dinomug has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
X-Scale has joined #commonlisp
meritamen has quit [Remote host closed the connection]
Oladon has quit [Quit: Leaving.]
CO2 has quit [Quit: WeeChat 4.1.0]
ocreugf has left #commonlisp [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
mariari has quit [Ping timeout: 255 seconds]
notzmv has quit [Ping timeout: 264 seconds]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
overclucker_ has joined #commonlisp
overclucker has quit [Ping timeout: 258 seconds]
dcb has quit [Quit: MSN Messenger 4.1.0]
Lycurgus has joined #commonlisp
Lycurgus has quit [Changing host]
Lycurgus has joined #commonlisp
contrapunctus has joined #commonlisp
Lycurgus has quit [Quit: leaving]
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
random-jellyfish has quit [Changing host]
dinomug has quit [Remote host closed the connection]
dinomug has joined #commonlisp
zxcvz has joined #commonlisp
amb007 has quit [Remote host closed the connection]
amb007 has joined #commonlisp
X-Scale has quit [Ping timeout: 248 seconds]
zxcvz has quit [Quit: zxcvz]
dinomug has quit [Remote host closed the connection]
X-Scale has joined #commonlisp
shka has joined #commonlisp
dinomug has joined #commonlisp
meritamen has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
habamax has joined #commonlisp
contrapunctus has joined #commonlisp
X-Scale has quit [Quit: Client closed]
thollief has joined #commonlisp
herjazz has joined #commonlisp
pve has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
contrapunctus has joined #commonlisp
dinomug has quit [Remote host closed the connection]
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
anticrisis has quit [Read error: Connection reset by peer]
pranavats has joined #commonlisp
<cedb> fiddlerwoaroof: hell yeah thanks
mariari has joined #commonlisp
anticomputer has quit [Ping timeout: 256 seconds]
anticomputer has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
donleo has joined #commonlisp
meritamen has quit [Remote host closed the connection]
santiagopim has joined #commonlisp
Guest66 has joined #commonlisp
meritamen has joined #commonlisp
meritamen has quit [Client Quit]
random-nick has joined #commonlisp
lispy has quit [Ping timeout: 248 seconds]
dino_tutter has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
meritamen has joined #commonlisp
meritamen has quit [Remote host closed the connection]
cage has joined #commonlisp
amb007 has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
CO2 has joined #commonlisp
mgl has joined #commonlisp
random-nick has quit [Ping timeout: 255 seconds]
kuao has joined #commonlisp
mgl has quit [Ping timeout: 240 seconds]
random-nick has joined #commonlisp
McParen has joined #commonlisp
rgherdt has joined #commonlisp
<McParen> hey #cl, can somebody maybe tell why we can equalp structs but not clos objects, or maybe point me to a doc explaining that?
<hayley> EQUAL and EQUALP seem to be rather arbitrarily designed. I guess a structure is meant to be seen as "plain old data" for which structural equality is reasonable, and a standard instance is associated with a more abstract form of equality?
<hayley> <https://dl.acm.org/doi/pdf/10.1145/2986012.2986031> is an excellent paper on the general topic of designing equality predicates.
<McParen> is this maybe because defstruct automatically generates a predicate and defclass doesnt and equalp somehow hooks into that?
<McParen> a class is basically identical to a struct, a data structure with slots.
<McParen> except for the fact that defstruct initializes several utility functions.
<hayley> Both are equivalent to functions, but few languages define equality on functions (other than reference equality).
rgherdt has quit [Ping timeout: 258 seconds]
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1.90)]
Lycurgus has joined #commonlisp
Lycurgus has quit [Changing host]
Lycurgus has joined #commonlisp
kuao has quit []
tyson2 has joined #commonlisp
mgl has joined #commonlisp
<beach> McParen: Careful with the terminology. There is no such thing as a "CLOS object", and every Common Lisp object is an instance of some class.
<McParen> beach, i have not tried to be precise. the difference in question is (make-instance 'foo) vs (make-foo).
jonatack has quit [Ping timeout: 255 seconds]
<beach> (MAKE-INSTANCE 'FOO) will make an "instance of a standard class".
jonatack has joined #commonlisp
herjazz has quit [Quit: leaving]
Lycurgus has quit [Quit: leaving]
yitzi has joined #commonlisp
chomwitt has joined #commonlisp
Monad has joined #commonlisp
Monad is now known as pequod
pequod is now known as pequod3141
bh34e5 has joined #commonlisp
Guest66 has quit [Quit: Client closed]
<beach> Speaking of which, this seems to be allowed: (defmethod make-instance ((object (eql 'integer)) &key value &allow-other-keys) value) and then (make-instance 'integer :value 234)
<pequod3141> Hello, I' am playing around with hash-tables using the make-hash library from https://github.com/genovese/make-hash. I have created a simple package with a function to access the hash-table (https://pastecode.io/s/wzbn0y1e). Can anybody tell me why I cannot access the hash-table-keys from outside the package :package-test via (package-test:foo 'a) but can access it via (package-test:foo package-test::'a)? Thank you.
<ixelp> GitHub - genovese/make-hash: A Common Lisp package for hash table creation with flexible, extensible initializers.
<beach> pequod3141: It looks like the symbol A is in the PACKAGE-TEST package.
<beach> pequod3141: If so, you can't access it without a package prefix when you are in a different package. Unless of course you import that symbol into the different package.
<beach> pequod3141: If you define your *LETTER-TABLE* in your client package, you should be fine.
<pequod3141> Is it not somehow possible to say (defun foo (sym) (gethash (make-symbol-internal-to-package sym) *letter-table*))
<beach> :clhs intern
<beach> ::clhs intern
<ixelp> CLHS: Function INTERN
<pequod3141> I tried that but defining foo as (defun foo (sym)
<pequod3141> (gethash (intern sym) *letter-table*)) and then calling (package-test:foo "a") still returns nil.
<beach> That's because symbol have upper-case names by default.
<beach> And you just created a symbol with a lower-case name.
<pequod3141> (package-test:foo "A") doesn't work also :/
Gleefre has quit [Remote host closed the connection]
<beach> If you just call (INTERN SYM) without specifier which package, it will use the current package, i.e., the value of *PACKAGE*.
<beach> Try (intern sym :package-test)
<pequod3141> Thank you, that worked.
<beach> You can even do (intern (symbol-name symbol) :package-test) so that you can use symbols from any package to designate the ones in the PACKAGE-TEST package.
<beach> Pleasure.
notzmv has joined #commonlisp
<pequod3141> I just tried that but used (string symbol) instead of symbol-name :)
<beach> Sure, that works.
tibfulv has quit [Ping timeout: 272 seconds]
tibfulv has joined #commonlisp
waleee has joined #commonlisp
<pequod3141> Bye
pequod3141 has quit [Quit: Textual IRC Client: www.textualapp.com]
dino_tutter has quit [Ping timeout: 255 seconds]
mgl has quit [Ping timeout: 245 seconds]
notzmv has quit [Ping timeout: 258 seconds]
newbie has joined #commonlisp
waleee has quit [Ping timeout: 255 seconds]
mgl has joined #commonlisp
Gleefre has joined #commonlisp
ldb has joined #commonlisp
newbie is now known as Equill
notzmv has joined #commonlisp
mgl has quit [Ping timeout: 240 seconds]
cage has quit [Remote host closed the connection]
notzmv has quit [Ping timeout: 264 seconds]
notzmv has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
McParen has left #commonlisp [#commonlisp]
Equill has quit [Ping timeout: 252 seconds]
dcb has joined #commonlisp
mgl has joined #commonlisp
dcb has quit [Read error: Connection reset by peer]
dcb has joined #commonlisp
ldb has quit [Read error: Connection reset by peer]
tyson2 has joined #commonlisp
amb007 has quit [Ping timeout: 240 seconds]
amb007 has joined #commonlisp
tyson2` has joined #commonlisp
igemnace has joined #commonlisp
random-jellyfish has quit [Ping timeout: 272 seconds]
Equill has joined #commonlisp
Equill has quit [Ping timeout: 264 seconds]
X-Scale has joined #commonlisp
waleee has joined #commonlisp
notzmv has quit [Ping timeout: 258 seconds]
Equill has joined #commonlisp
Equill has quit [Client Quit]
dino_tutter has joined #commonlisp
X-Scale has quit [Ping timeout: 248 seconds]
dinomug has joined #commonlisp
loke has joined #commonlisp
igemnace has quit [Remote host closed the connection]
mgl has quit [Ping timeout: 258 seconds]
_whitelogger has joined #commonlisp
tyson2` has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
mgl has joined #commonlisp
notzmv has joined #commonlisp
varjag has joined #commonlisp
yitzi has quit [Ping timeout: 258 seconds]
yitzi has joined #commonlisp
Oladon has joined #commonlisp
tyson2 has joined #commonlisp
reb has joined #commonlisp
attila_lendvai has joined #commonlisp
contrapunctus has joined #commonlisp
waleee has quit [Ping timeout: 246 seconds]
reb has quit [Ping timeout: 240 seconds]
reb has joined #commonlisp
blackshuck has joined #commonlisp
waleee has joined #commonlisp
yitzi has quit [Remote host closed the connection]
X-Scale has joined #commonlisp
rgherdt has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
blackshuck has left #commonlisp [Using Circe, the loveliest of all IRC clients]
Gleefre has quit [Remote host closed the connection]
zxcvz has joined #commonlisp
Inline has quit [Remote host closed the connection]
skeemer has joined #commonlisp
Gleefre has joined #commonlisp
rgherdt_ has joined #commonlisp
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
anticrisis has joined #commonlisp
rgherdt has quit [Ping timeout: 248 seconds]
akoana has joined #commonlisp
Gleefre has quit [Ping timeout: 248 seconds]
Gleefre has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
mgl has quit [Ping timeout: 240 seconds]
rgherdt_ has quit [Ping timeout: 264 seconds]
random-jellyfish has quit [Ping timeout: 264 seconds]
attila_lendvai has quit [Ping timeout: 240 seconds]
thollief has quit [Quit: Leaving]
attila_lendvai has joined #commonlisp
mgl has joined #commonlisp
tyson2 has joined #commonlisp
Inline has joined #commonlisp
pve has quit [Quit: leaving]
Lycurgus has joined #commonlisp
masinter has quit [Remote host closed the connection]
Lycurgus has quit [Quit: leaving]
tyson2 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
waleee has quit [Ping timeout: 248 seconds]
tyson2 has quit [Remote host closed the connection]
waleee has joined #commonlisp
tyson2 has joined #commonlisp
X-Scale has quit [Ping timeout: 248 seconds]
vats has joined #commonlisp
rgherdt has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 240 seconds]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
habamax has joined #commonlisp
yitzi has joined #commonlisp
notzmv has quit [Ping timeout: 272 seconds]
rgherdt__ has joined #commonlisp
bh34e5 has quit [Ping timeout: 272 seconds]
rgherdt__ has quit [Remote host closed the connection]
rgherdt_ has quit [Ping timeout: 260 seconds]
waleee has quit [Ping timeout: 255 seconds]
notzmv has joined #commonlisp
bh34e5 has joined #commonlisp
chomwitt has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
shka has quit [Ping timeout: 264 seconds]
amb007 has quit [Ping timeout: 264 seconds]
varjag has quit [Ping timeout: 272 seconds]
amb007 has joined #commonlisp
akoana has quit [Quit: leaving]
attila_lendvai has quit [Ping timeout: 264 seconds]
dino_tutter has quit [Ping timeout: 260 seconds]
habamax has quit [Remote host closed the connection]
habamax has joined #commonlisp
vats has quit [Ping timeout: 252 seconds]