DGASAU has quit [Read error: Connection reset by peer]
DGASAU has joined #lisp
kark has quit [Ping timeout: 260 seconds]
kark has joined #lisp
xkapastel has joined #lisp
v0|d has quit [Ping timeout: 260 seconds]
bitmapper has quit []
rumbler31 has joined #lisp
torbo has joined #lisp
_whitelogger has joined #lisp
turona has quit [Ping timeout: 272 seconds]
turona has joined #lisp
gioyik has quit [Quit: WeeChat 2.7]
igemnace has joined #lisp
notzmv has quit [Remote host closed the connection]
ravndal has quit [Ping timeout: 268 seconds]
efm has quit [Ping timeout: 258 seconds]
quazimodo has quit [Ping timeout: 258 seconds]
efm has joined #lisp
igemnace has quit [Quit: WeeChat 2.7]
smazga has joined #lisp
harovali has joined #lisp
smazga has quit [Ping timeout: 240 seconds]
efm has quit [Ping timeout: 260 seconds]
igemnace has joined #lisp
_whitelogger has joined #lisp
<|Pirx|>
hi
|Pirx| has joined #lisp
<Josh_2>
hi
slyrus__ has joined #lisp
notzmv has joined #lisp
slyrus_ has quit [Ping timeout: 272 seconds]
statusf90 has quit [Quit: statusf90]
Codaraxis has quit [Ping timeout: 240 seconds]
dale has quit [Quit: My computer has gone to sleep]
quazimodo has joined #lisp
ebzzry has quit [Read error: Connection reset by peer]
ebzzry has joined #lisp
shifty has quit [Ping timeout: 268 seconds]
ebzzry has quit [Ping timeout: 260 seconds]
vaporatorius__ has joined #lisp
dale has joined #lisp
vap1 has quit [Ping timeout: 268 seconds]
slyrus has joined #lisp
klltkr has joined #lisp
ahungry has joined #lisp
slyrus__ has quit [Ping timeout: 268 seconds]
Nilby has joined #lisp
ravndal has joined #lisp
chocimir has joined #lisp
xkapastel has quit [Quit: Connection closed for inactivity]
oxum_ has joined #lisp
oxum has quit [Read error: Connection reset by peer]
asdf_asdf_asdf has quit [Quit: asdf_asdf_asdf]
smazga has joined #lisp
ebrasca has joined #lisp
smazga has quit [Ping timeout: 272 seconds]
dddddd has quit [Remote host closed the connection]
oni-on-ion has quit [Read error: Connection reset by peer]
space_otter has joined #lisp
slyrus_ has joined #lisp
slyrus has quit [Ping timeout: 240 seconds]
slyrus has joined #lisp
slyrus_ has quit [Ping timeout: 268 seconds]
Codaraxis has joined #lisp
sauvin has joined #lisp
shifty has joined #lisp
clothespin has joined #lisp
Necktwi has quit [Ping timeout: 258 seconds]
torbo has quit [Remote host closed the connection]
Picantest has quit [Ping timeout: 268 seconds]
Necktwi has joined #lisp
rwcom has quit [Quit: Ping timeout (120 seconds)]
Honeycombb has joined #lisp
rwcom has joined #lisp
froggey has quit [Ping timeout: 265 seconds]
froggey has joined #lisp
_whitelogger has joined #lisp
zmt00 has joined #lisp
malfort_ has quit [Quit: Leaving]
Picantest has joined #lisp
malfort has joined #lisp
Picantest has quit [Read error: Connection reset by peer]
Picantest has joined #lisp
zaquest has quit [Quit: Leaving]
gravicappa has joined #lisp
<beach>
Good morning everyone!
chocimir has quit [Ping timeout: 272 seconds]
chocimir has joined #lisp
shifty has quit [Ping timeout: 268 seconds]
zdm has joined #lisp
Honeycombb has quit [Read error: Connection reset by peer]
<Josh_2>
Hey beach
karlosz has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 272 seconds]
X-Scale` is now known as X-Scale
smazga has joined #lisp
<Josh_2>
Is it possible for me to modify the default behaviour of the automatically generated accessor functions that are created when I define a new class?
<beach>
Sure, they are just methods on generic functions. You can add auxiliary methods, or you can redefine the primary method.
<beach>
... unless you mean that you want DEFCLASS to generate accessors that behave differently. That might be more complicated.
smazga has quit [Ping timeout: 272 seconds]
<Josh_2>
hmm, well my problem is that I have lots of different classes where the type is either a keyword or a byte array, however when it comes to actually using instances of those classes I have to manually convert from a byte array to a string, and I was wondering if I could just get the accessor functions to call the converting code for me
<Josh_2>
the type of the slots are either a*
narimiran has joined #lisp
<beach>
Sure, just define a :BEFORE method on the accessor.
<Josh_2>
but that way I have to go through all the accessors and define the :before method
<Josh_2>
I also completely forgot that these were normal generic functions...
<beach>
That's what I meant by my second utterance "... unless you mean..."
<Josh_2>
yes
<beach>
The easiest way would be to define a wrapper macro for DEFCLASS. The right (but more complicated) way would probably be to use the MOP in some creative way.
<pjb>
clim does just that. It defines its own defclass, so it can generate the accessors (and other things) as it wishes.
<pjb>
You can do the same.
<Josh_2>
how would I go about doing that?
<pjb>
or :around, if you want to convert from byte vectors to strings.
<Bike>
probably define a custom class of standard-reader-method that does your conversion and then specialize reader-method-class to return it
<beach>
It took me three attempts to get through the book.
gxt has joined #lisp
<pjb>
It's much simplier to define your own defclass macro.
<pjb>
Also, instead of naming it your-lisp:defclass, you can name it your-program:define-slot-converting-class or something.
ebzzry has joined #lisp
chocimir has joined #lisp
jellopudding has joined #lisp
jellopudding has quit [Remote host closed the connection]
jello_pudding has quit [Ping timeout: 260 seconds]
Cymew has joined #lisp
femi has quit [Ping timeout: 258 seconds]
chocimir has quit [Ping timeout: 272 seconds]
seok has joined #lisp
<seok>
Morning
<seok>
does anyone have experience with tinkerpop/gremlin?
chocimir has joined #lisp
<beach>
Hello seok.
<seok>
hello beach
ealfonso has joined #lisp
femi has joined #lisp
frgo_ has quit [Ping timeout: 272 seconds]
quazimodo has quit [Ping timeout: 258 seconds]
emys has joined #lisp
ealfonso has quit [Ping timeout: 272 seconds]
scymtym has quit [Ping timeout: 265 seconds]
nullman has quit [Remote host closed the connection]
nullman has joined #lisp
Cymew has quit [Quit: Konversation terminated!]
cmatei has quit [Ping timeout: 265 seconds]
emys has quit [Ping timeout: 272 seconds]
cmatei has joined #lisp
Cymew has joined #lisp
mingus has joined #lisp
Kaisyu72 has joined #lisp
ralt has joined #lisp
Kaisyu7 has quit [Ping timeout: 265 seconds]
Kaisyu722 has joined #lisp
Kaisyu72 has quit [Ping timeout: 272 seconds]
quazimodo has joined #lisp
davepdotorg has joined #lisp
quazimodo has quit [Ping timeout: 260 seconds]
chocimir has quit [Ping timeout: 268 seconds]
kscarlet has joined #lisp
igemnace has quit [Ping timeout: 265 seconds]
hhdave has joined #lisp
smazga has joined #lisp
smazga has quit [Ping timeout: 268 seconds]
scymtym has joined #lisp
emys has joined #lisp
igemnace has joined #lisp
Kaisyu7 has joined #lisp
phoe has quit [Quit: leaving]
phoe has joined #lisp
Kaisyu722 has quit [Ping timeout: 258 seconds]
kscarlet has quit [Ping timeout: 260 seconds]
emys has quit [Ping timeout: 260 seconds]
emys has joined #lisp
Necktwi has joined #lisp
emys has quit [Ping timeout: 258 seconds]
nullman has quit [Remote host closed the connection]
nullman has joined #lisp
rememberYou has joined #lisp
rememberYou has quit [Client Quit]
rememberYou has joined #lisp
frgo has joined #lisp
rememberYou has quit [Quit: ERC (IRC client for Emacs 26.3)]
libertyprime has joined #lisp
EvW has joined #lisp
tumdum has quit [Ping timeout: 265 seconds]
montaropdf has joined #lisp
statusf90 has joined #lisp
montaropdf has quit [Quit: ERC (IRC client for Emacs 26.3)]
montaropdf has joined #lisp
igemnace has quit [Ping timeout: 268 seconds]
rtra has joined #lisp
tiwEllien has joined #lisp
EvW has quit [Ping timeout: 272 seconds]
montaropdf has quit [Ping timeout: 258 seconds]
igemnace has joined #lisp
shifty has joined #lisp
|Pirx| has quit [Ping timeout: 260 seconds]
doublex__ has joined #lisp
doublex_ has quit [Ping timeout: 260 seconds]
cyraxjoe has quit [Quit: No Ping reply in 180 seconds.]
brown121407 has quit [Read error: Connection reset by peer]
cyraxjoe has joined #lisp
brown121407 has joined #lisp
shifty has quit [Ping timeout: 268 seconds]
shifty has joined #lisp
jmercouris has joined #lisp
kscarlet has joined #lisp
bendersteed has quit [Ping timeout: 272 seconds]
statusf90 has quit [Quit: statusf90]
kscarlet has quit [Ping timeout: 265 seconds]
montaropdf has joined #lisp
montaropdf has quit [Remote host closed the connection]
ebzzry has quit [Read error: Connection reset by peer]
roland` has joined #lisp
roland` has quit [Client Quit]
montaropdf has joined #lisp
montaropdf has quit [Remote host closed the connection]
montaropdf has joined #lisp
heisig has joined #lisp
frgo has quit [Ping timeout: 258 seconds]
statusf90 has joined #lisp
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
EvW has joined #lisp
rwcom0 has joined #lisp
rwcom has quit [Ping timeout: 265 seconds]
rwcom0 is now known as rwcom
kscarlet has joined #lisp
kscarlet has quit [Remote host closed the connection]
pfdietz has quit [Remote host closed the connection]
lucasb has joined #lisp
jonatack has quit [Quit: jonatack]
seok has quit [Remote host closed the connection]
amerlyq has joined #lisp
oxum has quit [Remote host closed the connection]
Lycurgus has joined #lisp
Lycurgus has quit [Client Quit]
EvW has quit [Ping timeout: 245 seconds]
asdf_asdf_asdf has joined #lisp
oxum has joined #lisp
Posterdati has joined #lisp
wxie has joined #lisp
flamebeard has quit [Remote host closed the connection]
jeosol has quit [Remote host closed the connection]
flamebeard has joined #lisp
flamebeard has quit [Remote host closed the connection]
flamebeard has joined #lisp
oxum has quit [Ping timeout: 258 seconds]
CrazyEddy has quit [Ping timeout: 268 seconds]
shifty has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Ping timeout: 245 seconds]
nullman has quit [Ping timeout: 265 seconds]
_fe_ has joined #lisp
flamebeard has quit [Remote host closed the connection]
flamebeard has joined #lisp
Bike has joined #lisp
emys has joined #lisp
brown121407 has quit [Ping timeout: 240 seconds]
pfdietz has joined #lisp
brown121407 has joined #lisp
ebrasca has joined #lisp
wxie has quit [Ping timeout: 258 seconds]
FreeBirdLjj has joined #lisp
v88m has quit [Ping timeout: 268 seconds]
sindan has quit [Ping timeout: 265 seconds]
gko_ has joined #lisp
dddddd has joined #lisp
flamebeard has quit []
brown121407 has quit [Read error: Connection reset by peer]
brown121407 has joined #lisp
random-nick has joined #lisp
amerlyq has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 260 seconds]
mingus has quit [Ping timeout: 265 seconds]
gigetoo has joined #lisp
amerlyq has joined #lisp
LiamH has joined #lisp
frgo has joined #lisp
orivej has joined #lisp
asdf_asdf_asdf has quit [Quit: asdf_asdf_asdf]
seok has joined #lisp
emys has quit [Ping timeout: 260 seconds]
emys has joined #lisp
smazga has joined #lisp
notzmv has quit [Ping timeout: 268 seconds]
statusf90 has quit [Quit: statusf90]
asdf_asdf_asdf has joined #lisp
smazga has quit [Ping timeout: 258 seconds]
emys has quit [Ping timeout: 240 seconds]
znebula has quit [Ping timeout: 272 seconds]
emys has joined #lisp
emys has quit [Ping timeout: 268 seconds]
heisig has quit [Quit: Leaving]
emys has joined #lisp
Cymew has quit [Ping timeout: 272 seconds]
dale_ has joined #lisp
dale_ is now known as dale
sauvin has quit [Ping timeout: 265 seconds]
jprajzne has quit [Quit: Leaving.]
jonatack has joined #lisp
emys has quit [Ping timeout: 272 seconds]
nullman has joined #lisp
efm has joined #lisp
LiamH has quit [Quit: Leaving.]
trittweiler has quit [Remote host closed the connection]
trittweiler has joined #lisp
sauvin has joined #lisp
emys has joined #lisp
ebrasca has left #lisp ["ERC (IRC client for Emacs 26.3)"]
zmt01 has joined #lisp
zmt00 has quit [Ping timeout: 248 seconds]
LiamH has joined #lisp
<Xach>
/
emys has quit [Ping timeout: 258 seconds]
<dlowe>
never heard of them. What are they?
edgar-rft has quit [Quit: Leaving]
<mister_m>
Hello again - can i use DESTRUCTURING-BIND to extract the car, and cdr / "rest" of a list? I'm a little confused about how destructuring lambda lists work.
<mister_m>
I didn't know you could just do dot notation there, awesome. Does the "rest" of the list when destructuring this way give a proper list?
<beach>
mister_m: Only if the original list returned by <some-form> is proper.
<mister_m>
thanks!
<beach>
mister_m: I mean, (cdr '(a b c . d)) is (b c . d) which is not proper.
smazga has joined #lisp
patlv has joined #lisp
<beach>
So (multiple-value-bind (car . cdr) '(a b c . d) ...) will give A as the value of CAR and (B C . D) as the value of CDR, so CDR is not proper.
DaisyChristieeee has joined #lisp
emys has joined #lisp
jonatack has quit [Ping timeout: 265 seconds]
eschulte has joined #lisp
<Shinmera>
You could also use &rest instead of the dotted pair, I suppose.
<DaisyChristieeee>
Whats wrong with it ? https://bit.ly/38yoZCp Could you please help me to debug it..
<mister_m>
Shinmera: that works as well
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
<phoe>
DaisyChristieeee: what is there to debug? This isn't Lisp code.
<DaisyChristieeee>
Whats wrong with it ? https://bit.ly/38yoZCp Could you please help me to debug it..
<DaisyChristieeee>
it is
<DaisyChristieeee>
check
DaisyChristieeee was banned on #lisp by phoe [*!*DaisyChri@139.5.252.*]
DaisyChristieeee was kicked from #lisp by phoe [DaisyChristieeee]
<phoe>
there, debugged
rwcom9 has joined #lisp
jmercouris has quit [Remote host closed the connection]
frgo has quit [Ping timeout: 258 seconds]
DaisyChristieeee has quit [K-Lined]
montaropdf has quit [Quit: See you later]
rwcom has quit [Ping timeout: 265 seconds]
rwcom9 is now known as rwcom
<phoe>
golly, I've become unusually proficient at using the chanserv commands as of late
gxt has quit [Ping timeout: 240 seconds]
<seok>
with dexador, if I do (dex:get ..) with keep-alive to true every time, does the connection remain open?
<seok>
Not sure how it works
bitmapper has joined #lisp
Necktwi has quit [Read error: Connection reset by peer]
emys has quit [Ping timeout: 245 seconds]
kajo has quit [Ping timeout: 252 seconds]
emys has joined #lisp
kenu has quit [Remote host closed the connection]
v88m has joined #lisp
<phoe>
if it works like a HTTP keepalive, then yes, it must stay open
rtra has quit [Ping timeout: 240 seconds]
Necktwi has joined #lisp
<_death>
seok: it has a connection pool.. note that keep-alive is true by default.. if you have many requests to many servers, you'll run out of file descriptors unless you clear the connection pool every now and then :/
<seok>
the documentation says the default is nil though
<seok>
_death: so would it be fine if I am connecting to one server only?
<phoe>
asdf_asdf_asdf: what is get-type/signature-func?
<asdf_asdf_asdf>
Derived type of SB-ALIEN::ALLOC-TMP is
<asdf_asdf_asdf>
I must write (values (member func2) &optional), how get this type?
random-nick has quit [Ping timeout: 258 seconds]
<phoe>
*must* write? where?
<White_Flame>
if I understand this correctly, 1) you can with implementation internals, and since that's the case, 2) are you sure you need that info?
<no-defun-allowed>
What‽
<asdf_asdf_asdf>
What I should put into type instead int (signed-byte 32)?
<phoe>
judging by what you say you must do in order to keep on writing lisp, you are likely doing something horribly wrong now
<phoe>
what are you trying to do?
<White_Flame>
also, if this is a FFI question and not a plain function question, you need to be a lot more specific
<no-defun-allowed>
asdf_asdf_asdf: Can you do me a favour and avoid the FFI, and more so SBCL's FFI and its internals, until you learn Common Lisp please?
emys has joined #lisp
<asdf_asdf_asdf>
I learn SBCL and Common Lisp.
<White_Flame>
you should never be hitting anything SB-ALIEN: if you're just learning CL
<phoe>
I honestly have no idea how you ended up trying to write VALUES types by hand
<phoe>
and I say it's high time to backtrack
<Nilby>
For me (lambda-list 'print) -> (sb-impl::object &optional stream)
<Nilby>
First thing I tried to write in CL was an implementation independant FFI.
<phoe>
so basically a UFFI and/or a CFFI?
<Nilby>
Yes. It was before CFFI was written, and UFFI didn't work right.
<Nilby>
It was both hightly educational & highly boring & frustrating.
<phoe>
I see
<Shinmera>
highly boring and frustrating is how I feel every time I do FFI
<Shinmera>
*bored
<Shinmera>
eh, whatever, you get what I mean. I'm off to bed.
gabiruh has quit [Ping timeout: 248 seconds]
dddddd has quit [Ping timeout: 258 seconds]
varjag has quit [Quit: ERC (IRC client for Emacs 26.1)]
sjl has joined #lisp
emys has quit [Ping timeout: 272 seconds]
sjl_ has quit [Ping timeout: 260 seconds]
<cl-arthur>
How to check the metaclass of an object? And how to check whether an object is an instance or a class object?
<phoe>
(class-of (class-of x))
<phoe>
also (typep x 'class)
<no-defun-allowed>
A class is an instance of a class (circular much?) by the way.
<phoe>
metaclass == class of class
<phoe>
metaclass of object == class of class of object
<no-defun-allowed>
You said it even; the metaclass is...that.
<phoe>
;; also, all class objects are instances - no-defun-allowed mentioned that up there
<phoe>
;; so you might want to double-check your nomenclature
madage has quit [Remote host closed the connection]
gabiruh has joined #lisp
madage has joined #lisp
emys has joined #lisp
knicklux has quit [Ping timeout: 268 seconds]
<cl-arthur>
Thanks :)
Jesin has quit [Quit: Leaving]
LiamH has quit [Quit: Leaving.]
gioyik has quit [Ping timeout: 240 seconds]
gioyik has joined #lisp
Bike has joined #lisp
davsebamse has joined #lisp
davsebam1e has quit [Ping timeout: 240 seconds]
davsebam1e has joined #lisp
davsebamse has quit [Ping timeout: 265 seconds]
gabiruh has quit [Ping timeout: 258 seconds]
davr0s has quit [Remote host closed the connection]