Xach changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/>
rwcom has quit [Ping timeout: 260 seconds]
rwcom2 is now known as rwcom
Lord_of_Life has quit [Ping timeout: 265 seconds]
Lord_of_Life_ is now known as Lord_of_Life
Codaraxis has joined #lisp
cosimone has quit [Ping timeout: 260 seconds]
EvW1 has quit [Ping timeout: 252 seconds]
XenophonF has joined #lisp
harovali1 has quit [Ping timeout: 268 seconds]
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
Bike has quit [Quit: leaving]
<pjb> Josh_2: (defpackage "YOUR-LISP" (:use "CL") (:shadow "DEFCLASS") (:export . #.(the same symbols as CL))) (defmacro your-lisp:defclass …)
<pjb> Josh_2: then in your progran (:use "YOUR-LISP") instead of (:use "CL).
orivej has quit [Ping timeout: 240 seconds]
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 258 seconds]
X-Scale` is now known as X-Scale
oldtopman has joined #lisp
oldtopman has quit [Remote host closed the connection]
oldtopman has joined #lisp
brown121407 has quit [Ping timeout: 272 seconds]
brown121407 has joined #lisp
oxum_ has quit [Remote host closed the connection]
ggole has joined #lisp
<ebrasca> Morning beach!
oxum has joined #lisp
ebrasca has quit [Remote host closed the connection]
chocimir has quit [Ping timeout: 265 seconds]
oxum has quit [Ping timeout: 265 seconds]
oxum has joined #lisp
mangul has joined #lisp
oxum has quit [Ping timeout: 268 seconds]
zaquest has joined #lisp
harovali1 has joined #lisp
harovali has quit [Ping timeout: 258 seconds]
oxum has joined #lisp
Codaraxis_ has joined #lisp
oxum has quit [Ping timeout: 258 seconds]
Codaraxis has quit [Ping timeout: 268 seconds]
space_otter has quit [Remote host closed the connection]
Necktwi has quit [Ping timeout: 265 seconds]
chocimir has joined #lisp
zdm has quit [Quit: WeeChat 2.7]
ahungry has quit [Remote host closed the connection]
jello_pudding has joined #lisp
jello_pudding has quit [Client Quit]
smazga has joined #lisp
chocimir has quit [Ping timeout: 258 seconds]
jello_pudding has joined #lisp
vlatkoB has joined #lisp
smazga has quit [Ping timeout: 268 seconds]
dale has quit [Quit: My computer has gone to sleep]
smazga has joined #lisp
Posterdati has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
chocimir has joined #lisp
smazga has quit [Ping timeout: 258 seconds]
oxum has joined #lisp
shifty has joined #lisp
chocimir has quit [Ping timeout: 272 seconds]
karlosz has quit [Quit: karlosz]
<Josh_2> This MOP stuff is pretty confusing
varjag has joined #lisp
jprajzne has joined #lisp
shifty has quit [Ping timeout: 240 seconds]
flamebeard has joined #lisp
emaczen has joined #lisp
gxt has joined #lisp
gxt has quit [Remote host closed the connection]
emaczen has quit [Ping timeout: 265 seconds]
<beach> Josh_2: It can be, yes.
<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.
<Shinmera> (destructuring-bind (a . b) ...)
<beach> Sure: (destructuring-bind (car . cdr) <some-form> ...)
<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?
<_death> looks like doc or code needs a fix
<seok> ah, so the doc is wrong?
FreeBirdLjj has quit [Remote host closed the connection]
<_death> when there's a mismatch like that, hard to tell which one is wrong
FreeBirdLjj has joined #lisp
<seok> thanks guys
clothespin has quit [Ping timeout: 260 seconds]
<_death> wrong(doc|code) or wrong(code|doc)
<seok> apparently ArangoDB's http api supports keep alive, so I figured it would be right to use it
ggoes has quit [Remote host closed the connection]
<_death> I guess it's best to specify it explicitly
FreeBirdLjj has quit [Ping timeout: 245 seconds]
manualcrank has quit [Quit: WeeChat 1.9.1]
karlosz has joined #lisp
frgo has joined #lisp
jonatack has joined #lisp
harovali has joined #lisp
gko_ has quit [Ping timeout: 265 seconds]
varjag has joined #lisp
harovali1 has quit [Read error: Connection reset by peer]
igemnace has quit [Quit: WeeChat 2.7]
seok has quit [Remote host closed the connection]
ebrasca has joined #lisp
clothespin has joined #lisp
davepdotorg has quit [Ping timeout: 240 seconds]
amerlyq has quit [Quit: amerlyq]
ggole has quit [Quit: Leaving]
sjl_ has joined #lisp
rtra has joined #lisp
Khisanth has quit [Ping timeout: 265 seconds]
emys has quit [Ping timeout: 268 seconds]
nullman has quit [Ping timeout: 260 seconds]
nullman has joined #lisp
emys has joined #lisp
_whitelogger has joined #lisp
hhdave has quit [Quit: hhdave]
Necktwi has quit [Quit: leaving]
karlosz has quit [Quit: karlosz]
william1_ has joined #lisp
scymtym has quit [Ping timeout: 260 seconds]
Khisanth has joined #lisp
rtra has quit [Ping timeout: 268 seconds]
rtra has joined #lisp
slyrus_ has joined #lisp
slyrus has quit [Ping timeout: 258 seconds]
zmv has joined #lisp
EvW1 has joined #lisp
emys has quit [Ping timeout: 240 seconds]
pjb has quit [Ping timeout: 246 seconds]
emys has joined #lisp
Necktwi has joined #lisp
zmv has quit [Remote host closed the connection]
emys has quit [Ping timeout: 258 seconds]
mangul has quit [Read error: Connection reset by peer]
shangul has joined #lisp
igemnace has joined #lisp
emys has joined #lisp
emys has quit [Ping timeout: 246 seconds]
cosimone has joined #lisp
clothespin has quit [Ping timeout: 245 seconds]
lonjil2 has quit [Quit: Quit.]
lonjil has joined #lisp
bitmapper has quit [Remote host closed the connection]
emys has joined #lisp
pjb has joined #lisp
cosimone_ has joined #lisp
igemnace has quit [Ping timeout: 260 seconds]
cosimone has quit [Ping timeout: 248 seconds]
efm has quit [Ping timeout: 260 seconds]
rtra has quit [Ping timeout: 268 seconds]
rtra has joined #lisp
emys has quit [Ping timeout: 258 seconds]
v88m has quit [Ping timeout: 258 seconds]
efm has joined #lisp
igemnace has joined #lisp
bitmapper has joined #lisp
clothespin has joined #lisp
rwcom8 has joined #lisp
bendersteed has joined #lisp
rwcom has quit [Ping timeout: 260 seconds]
rwcom8 is now known as rwcom
visage_ has quit [Quit: visage_]
bitmapper has quit [Remote host closed the connection]
emys has joined #lisp
EvW1 has quit [Ping timeout: 248 seconds]
ym has quit [Quit: Leaving]
rtra has quit [Ping timeout: 240 seconds]
tiwEllien has quit [Remote host closed the connection]
tiwEllien has joined #lisp
clothespin has quit [Ping timeout: 248 seconds]
seok has joined #lisp
rtra has joined #lisp
emys has quit [Ping timeout: 268 seconds]
emys has joined #lisp
Codaraxis_ has quit [Ping timeout: 265 seconds]
stepnem_ has joined #lisp
stepnem has quit [Ping timeout: 258 seconds]
raghavgururajan has joined #lisp
Khisanth has quit [Ping timeout: 265 seconds]
bitmapper has joined #lisp
cl-arthur has joined #lisp
brown121407 has quit [Ping timeout: 265 seconds]
brown121407 has joined #lisp
clothespin has joined #lisp
sauvin has quit [Read error: Connection reset by peer]
edgar-rft has joined #lisp
Khisanth has joined #lisp
efm has quit [Remote host closed the connection]
brown121407 has quit [Read error: Connection reset by peer]
brown121407 has joined #lisp
sjl has quit [Quit: WeeChat 2.2-dev]
knicklux has joined #lisp
jmercouris has joined #lisp
<jmercouris> what shell do you guys use?
<Josh_2> bash
<hiroaki> bash, ksh when i have to
efm has joined #lisp
<jmercouris> no shell with lispy syntax?
<pjb> bash, or eshell ;-)
<jmercouris> like (ls :l :a)
<pjb> jmercouris: if you want that, scsh is cool (but scheme).
<hiroaki> in this case, emacs ;)
<pjb> You could re-implement it in CL./
<LdBeth> There’s a package running clisp as a login shell
<jmercouris> scsch looks cool
<LdBeth> However, trust me you won’t like an interactive shell without command/path completion
gioyik has joined #lisp
<LdBeth> scheme shell and it’s variants are ok while only used for scription
<jmercouris> Yes
<LdBeth> That’s say, it’s solely a Unix program oriented script language
ralt has quit [Quit: Connection closed for inactivity]
<jmercouris> Yes
random-nick has quit [Ping timeout: 265 seconds]
rtra has quit [Ping timeout: 272 seconds]
<LdBeth> Actually, there’s an Emacs fork that was optimized to be used as login shell
rtra has joined #lisp
<LdBeth> SXEmacs I recall
<jackdaniel> there is a shelisp program written in CL which allows you to mix the repl and the shell (like bash) with a special reader macros
<jackdaniel> (and underneath - a run-program)
cosimone_ has quit [Quit: Quit.]
<LdBeth> I hope they could provide features like Do What I Mean or command abbreviation to make it useable
jmercouris has quit [Remote host closed the connection]
random-nick has joined #lisp
ebrasca has quit [Remote host closed the connection]
emys has quit [Ping timeout: 240 seconds]
shangul has quit [Ping timeout: 268 seconds]
william1_ has quit [Ping timeout: 268 seconds]
klltkr has quit [Read error: Connection reset by peer]
cosimone has joined #lisp
Codaraxis has joined #lisp
klltkr has joined #lisp
Ven`` has joined #lisp
emys has joined #lisp
rtra has quit [Quit: WeeChat 2.3]
karlosz has joined #lisp
asdf_asdf_asdf31 has joined #lisp
efm has quit [Quit: Konversation terminated!]
karlosz has quit [Client Quit]
gabiruh has quit [Ping timeout: 258 seconds]
asdf_asdf_asdf has quit [Ping timeout: 258 seconds]
asdf_asdf_asdf31 is now known as asdf_asdf_asdf
ym has joined #lisp
_fe_ has quit [Quit: Leaving]
narimiran has quit [Quit: leaving]
pfdietz has quit [Remote host closed the connection]
gabiruh has joined #lisp
patlv has quit [Quit: Leaving]
Codaraxis has quit [Ping timeout: 245 seconds]
hail_eris has joined #lisp
zclark has joined #lisp
karlosz has joined #lisp
emys has quit [Ping timeout: 245 seconds]
kajo has joined #lisp
orivej has quit [Ping timeout: 260 seconds]
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 268 seconds]
gravicappa has quit [Ping timeout: 260 seconds]
karlosz has quit [Quit: karlosz]
clothespin has quit [Ping timeout: 268 seconds]
gioyik has quit [Ping timeout: 260 seconds]
manualcrank has joined #lisp
shifty has joined #lisp
jeosol has joined #lisp
<asdf_asdf_asdf> Hi. How check type of function? (defun hello (a b) (+ a b)) (typep #'hello '(function (fixnum fixnum))
<phoe> asdf_asdf_asdf: no portable way of doing this
pnp has joined #lisp
<phoe> especially since HELLO can also accept non-fixnum arguments
<phoe> e.g. (hello 1/2 1/2) is valid
gioyik has joined #lisp
harovali has quit [Ping timeout: 258 seconds]
<Shinmera> asdf is trying to use CL as if it were C. Unsurprisingly, it is not going well.
<asdf_asdf_asdf> OK, how check type #'hello with (function ...?
<eeeeeta> what
* eeeeeta read that 3 times and still has no idea what is being asked
slyrus has joined #lisp
<White_Flame> do you need anything more than FUNCTIONP?
<phoe> Shinmera: how?
<no-defun-allowed> You can only really test (typep #'hello 'function) which is a given if it's in the function namespace.
<phoe> asdf_asdf_asdf: in standard CL, you don't. The language doesn't work that way.
<Shinmera> phoe: Don't ask me
<eeeeeta> > (typep (function ...) 'function)
<eeeeeta> 🤔
<phoe> TYPEP won't work that way because
<phoe> > An error of type error is signaled if type-specifier is values, or a type specifier list whose first element is either function or values.
<pnp> Hi all, which is the command to indent the whole buffer in Emacs? ... M-x mark-whole-buffer and M-x indent-region does not works
<White_Flame> also, there's (and (symbolp obj) (fboundp obj)) if you want to check for funcallable symbols
<phoe> So (typep x '(function ...)) will blow up.
<pnp> I'm using slime + paredit
slyrus__ has quit [Ping timeout: 268 seconds]
<phoe> pnp: C-x M-x indent-region
<phoe> uh
<phoe> pnp: C-x h M-x indent-region
<phoe> so basically, select all + indent region
<phoe> that's what works for me
<pnp> ok... thank you
<no-defun-allowed> C-x h C-M-\
<Shinmera> I typically do C-x h TAB
<pnp> Shinmera! wow
<pnp> yes the last works for me too
emys has joined #lisp
Codaraxis has joined #lisp
<asdf_asdf_asdf> I want to slot of struct put type function.
Bike has quit [Quit: Bike]
<phoe> I didn't manage to parse that grammar
pnp has quit [Remote host closed the connection]
<no-defun-allowed> You want a structure where a slot has a function type?
<asdf_asdf_asdf> Yes, no-defun-allowed.
<phoe> you can have that, but you won't really make use of that function type
<no-defun-allowed> (defstruct asdf\'s-structure (function-goes-here (error "please provide a function") :type function))
<LdBeth> Since it is a function object, the defstruct would only allocate a reference to the function
tumdum has joined #lisp
<asdf_asdf_asdf> No, I want type function like (get-type/signature-func 'func2).
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emys has quit [Ping timeout: 265 seconds]
<no-defun-allowed> So you want to get the type of a value?
<no-defun-allowed> clhs type-of
<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]
anewuser has joined #lisp
gioyik has quit [Ping timeout: 268 seconds]
cosimone has quit [Ping timeout: 245 seconds]
edgar-rft has quit [Ping timeout: 258 seconds]
edgar-rft has joined #lisp
madage has quit [Ping timeout: 240 seconds]
davr0s_ has joined #lisp
davr0s has joined #lisp