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/>
scymtym has quit [*.net *.split]
buffet has quit [*.net *.split]
igemnace has quit [*.net *.split]
madnificent has quit [*.net *.split]
johnjaye has quit [*.net *.split]
White_Flame has quit [*.net *.split]
xantoz has quit [*.net *.split]
gooba has quit [*.net *.split]
pranav has quit [*.net *.split]
MetaYan has quit [*.net *.split]
teesquare_ has quit [*.net *.split]
slyrus has quit [*.net *.split]
sailorCat has quit [*.net *.split]
bleb has quit [*.net *.split]
akovalenko has quit [*.net *.split]
mange has quit [*.net *.split]
patrix has quit [*.net *.split]
chomwitt1 has quit [*.net *.split]
grawlinson has quit [*.net *.split]
Alfr has quit [*.net *.split]
dtman34 has quit [*.net *.split]
jrm has quit [*.net *.split]
dustinm` has quit [*.net *.split]
zlqrvx has quit [*.net *.split]
randm has quit [*.net *.split]
ski has quit [*.net *.split]
foretspa1sibles has quit [*.net *.split]
Opus has quit [*.net *.split]
tasty has quit [*.net *.split]
jfloren has quit [*.net *.split]
dim has quit [*.net *.split]
fnat has quit [*.net *.split]
Artea has quit [*.net *.split]
cenobite has quit [*.net *.split]
fristed has quit [*.net *.split]
phadthai has quit [*.net *.split]
akoana has quit [*.net *.split]
Noisytoot has quit [*.net *.split]
shka has quit [*.net *.split]
prokhor-zhakarov has quit [*.net *.split]
random-nick has quit [*.net *.split]
Posterdati has quit [*.net *.split]
jon_atack has quit [*.net *.split]
pabs3 has quit [*.net *.split]
semz has quit [*.net *.split]
Irvise has quit [*.net *.split]
Demosthenex has quit [*.net *.split]
fe[nl]ix has quit [*.net *.split]
divya has quit [*.net *.split]
kurfen has quit [*.net *.split]
MyNetAz has quit [*.net *.split]
awlygj has quit [*.net *.split]
SummerEmacs has quit [*.net *.split]
TMA has quit [*.net *.split]
rodrigo-morales has quit [*.net *.split]
nil78 has quit [*.net *.split]
st_aldini has quit [*.net *.split]
msv has quit [*.net *.split]
NotThatRPG has quit [*.net *.split]
kaskal has quit [*.net *.split]
psilord has quit [*.net *.split]
mathrick has quit [*.net *.split]
gpiero has quit [*.net *.split]
bigbookofbug has quit [*.net *.split]
alanz has quit [*.net *.split]
yacin has quit [*.net *.split]
pl has quit [*.net *.split]
copec has quit [*.net *.split]
dcb has quit [*.net *.split]
jsatk___ has quit [*.net *.split]
waleee has quit [*.net *.split]
stirl has quit [*.net *.split]
remexre has quit [*.net *.split]
ixelp has quit [*.net *.split]
emacsomancerer has quit [*.net *.split]
csos95 has quit [*.net *.split]
ejohnson has quit [*.net *.split]
hineios230 has quit [*.net *.split]
rahmanlar has quit [*.net *.split]
ezakimak has quit [*.net *.split]
doyougnu has quit [*.net *.split]
mzan has quit [*.net *.split]
triffid has quit [*.net *.split]
anticomputer has quit [*.net *.split]
chiselfuse has quit [*.net *.split]
Guest23 has quit [*.net *.split]
edgar-rft_ has quit [*.net *.split]
surabax has quit [*.net *.split]
cqst has quit [*.net *.split]
Oladon1 has quit [*.net *.split]
jasom has quit [*.net *.split]
srhm has quit [*.net *.split]
bheesham has quit [*.net *.split]
\f has quit [*.net *.split]
whereiseveryone has quit [*.net *.split]
simendsjo has quit [*.net *.split]
stag-enterprises has quit [*.net *.split]
payphone has quit [*.net *.split]
greenfork has quit [*.net *.split]
jtbx has quit [*.net *.split]
ggb has quit [*.net *.split]
shunter has quit [*.net *.split]
okflo has quit [*.net *.split]
paulapatience has quit [*.net *.split]
mhcat has quit [*.net *.split]
youthpastor has quit [*.net *.split]
kanuba has quit [*.net *.split]
khrbtxyz has quit [*.net *.split]
sellax has quit [*.net *.split]
ol0ck has quit [*.net *.split]
Shinmera has quit [*.net *.split]
bike has quit [*.net *.split]
rootnode- has quit [*.net *.split]
Colleen has quit [*.net *.split]
fengshaun has quit [*.net *.split]
sukaeto has quit [*.net *.split]
synchromesh has quit [*.net *.split]
dra has quit [*.net *.split]
josrr has quit [*.net *.split]
capvs has quit [*.net *.split]
wizard has quit [*.net *.split]
beach has quit [*.net *.split]
wobbol has quit [*.net *.split]
cracauer has quit [*.net *.split]
mulk has quit [*.net *.split]
SAL9000 has quit [*.net *.split]
rootnode has quit [*.net *.split]
mmk2410_ has quit [*.net *.split]
flip214 has quit [*.net *.split]
hernan604 has quit [*.net *.split]
krjst has quit [*.net *.split]
samebchase has quit [*.net *.split]
alip has quit [*.net *.split]
cornett has quit [*.net *.split]
cross has quit [*.net *.split]
mason has quit [*.net *.split]
elderK has quit [*.net *.split]
yazz has quit [*.net *.split]
qsaiyan has quit [*.net *.split]
manwithluck has quit [*.net *.split]
reb has quit [*.net *.split]
zephyr has quit [*.net *.split]
thonkpod has quit [*.net *.split]
jistr has quit [*.net *.split]
calx- has quit [*.net *.split]
DrachenMaus has quit [*.net *.split]
Guest7021 has quit [*.net *.split]
splittist has quit [*.net *.split]
drmeister has quit [*.net *.split]
sjl has quit [*.net *.split]
fuzy has quit [*.net *.split]
aeth has quit [*.net *.split]
zwr has quit [*.net *.split]
pkal has quit [*.net *.split]
Fade has quit [*.net *.split]
Grauwolf has quit [*.net *.split]
deadmarshal_ has quit [*.net *.split]
kvik has quit [*.net *.split]
gjn has quit [*.net *.split]
theothornhill has quit [*.net *.split]
nytpu has quit [*.net *.split]
mcoll has quit [*.net *.split]
x4d6165 has quit [*.net *.split]
gosha_ has quit [*.net *.split]
jmbr has quit [*.net *.split]
timmy has quit [*.net *.split]
larme has quit [*.net *.split]
bmp has quit [*.net *.split]
sherbert has quit [*.net *.split]
HerlockSholmes has quit [*.net *.split]
arpunk has quit [*.net *.split]
entro has quit [*.net *.split]
Mandus has quit [*.net *.split]
luna-is-here has quit [*.net *.split]
kdlv has quit [*.net *.split]
griffinmb___ has quit [*.net *.split]
adrianbrink has quit [*.net *.split]
disruptek has quit [*.net *.split]
tux0r has quit [*.net *.split]
smlckz has quit [*.net *.split]
lieven has quit [*.net *.split]
younder has quit [*.net *.split]
yaneko has quit [*.net *.split]
cmack` has quit [*.net *.split]
Lord_of_Life has quit [*.net *.split]
terrorjack has quit [*.net *.split]
jA_cOp has quit [*.net *.split]
yottabyte has quit [*.net *.split]
cow_2001 has quit [*.net *.split]
BierLiebHaber has quit [*.net *.split]
Patternmaster has quit [*.net *.split]
sirufer has quit [*.net *.split]
kniffy has quit [*.net *.split]
antoszka has quit [*.net *.split]
fourier has quit [*.net *.split]
jdz has quit [*.net *.split]
mister_m has quit [*.net *.split]
fermat has quit [*.net *.split]
energizer has quit [*.net *.split]
dmho has quit [*.net *.split]
tychoish has quit [*.net *.split]
Pixel_Outlaw has quit [*.net *.split]
euandreh has quit [*.net *.split]
Catie has quit [*.net *.split]
dmgk has quit [*.net *.split]
kopiyka has quit [*.net *.split]
Thermoriax has quit [*.net *.split]
theruran has quit [*.net *.split]
Ruby has quit [*.net *.split]
iquites has quit [*.net *.split]
chrcav has quit [*.net *.split]
viaken has quit [*.net *.split]
runxiyu has quit [*.net *.split]
squishy_bloob has quit [*.net *.split]
GreaseMonkey has quit [*.net *.split]
zups has quit [*.net *.split]
gaze__ has quit [*.net *.split]
stylewarning has quit [*.net *.split]
delyan_ has quit [*.net *.split]
susam has quit [*.net *.split]
drakonis has quit [*.net *.split]
|3b| has quit [*.net *.split]
luis has quit [*.net *.split]
m5zs7k has quit [*.net *.split]
deriamis has quit [*.net *.split]
ElKowar has quit [*.net *.split]
thelounge82 has quit [*.net *.split]
c-clop25 has quit [*.net *.split]
yewscion__ has quit [*.net *.split]
dino_tutter has quit [*.net *.split]
kyoji has quit [*.net *.split]
hirez has quit [*.net *.split]
famicom_guy has quit [*.net *.split]
saturn2 has quit [*.net *.split]
mesaoptimizer has quit [*.net *.split]
ryanbw has quit [*.net *.split]
skyl4rk has quit [*.net *.split]
etimmons has quit [*.net *.split]
froggey has quit [*.net *.split]
nxtr has quit [*.net *.split]
mrvdb has quit [*.net *.split]
ChanServ has quit [*.net *.split]
les has quit [*.net *.split]
Lord_Nightmare has quit [Excess Flood]
slondr has quit [Ping timeout: 240 seconds]
cpli has quit [Ping timeout: 240 seconds]
rselim has quit [Ping timeout: 240 seconds]
cpli has joined #commonlisp
slondr has joined #commonlisp
sirufer has joined #commonlisp
dra has joined #commonlisp
synchromesh has joined #commonlisp
josrr has joined #commonlisp
capvs has joined #commonlisp
wizard has joined #commonlisp
beach has joined #commonlisp
wobbol has joined #commonlisp
cracauer has joined #commonlisp
mulk has joined #commonlisp
flip214 has joined #commonlisp
hernan604 has joined #commonlisp
krjst has joined #commonlisp
SAL9000 has joined #commonlisp
samebchase has joined #commonlisp
alip has joined #commonlisp
cornett has joined #commonlisp
cross has joined #commonlisp
rootnode has joined #commonlisp
mason has joined #commonlisp
mmk2410_ has joined #commonlisp
tsujp has quit [Ping timeout: 276 seconds]
phadthai has joined #commonlisp
cenobite has joined #commonlisp
rodrigo-morales has joined #commonlisp
chomwitt1 has joined #commonlisp
Artea has joined #commonlisp
TMA has joined #commonlisp
fnat has joined #commonlisp
dim has joined #commonlisp
bigbookofbug has joined #commonlisp
jfloren has joined #commonlisp
awlygj has joined #commonlisp
SummerEmacs has joined #commonlisp
ezakimak has joined #commonlisp
rahmanlar has joined #commonlisp
akoana has joined #commonlisp
tasty has joined #commonlisp
triffid has joined #commonlisp
waleee has joined #commonlisp
anticomputer has joined #commonlisp
prokhor-zhakarov has joined #commonlisp
grawlinson has joined #commonlisp
shka has joined #commonlisp
random-nick has joined #commonlisp
Alfr has joined #commonlisp
jon_atack has joined #commonlisp
Posterdati has joined #commonlisp
Guest23 has joined #commonlisp
msv has joined #commonlisp
pabs3 has joined #commonlisp
dtman34 has joined #commonlisp
st_aldini has joined #commonlisp
Noisytoot has joined #commonlisp
pranav has joined #commonlisp
NotThatRPG has joined #commonlisp
jrm has joined #commonlisp
remexre has joined #commonlisp
stirl has joined #commonlisp
semz has joined #commonlisp
dustinm` has joined #commonlisp
Irvise has joined #commonlisp
zlqrvx has joined #commonlisp
Demosthenex has joined #commonlisp
randm has joined #commonlisp
chiselfuse has joined #commonlisp
ski has joined #commonlisp
kaskal has joined #commonlisp
foretspa1sibles has joined #commonlisp
ixelp has joined #commonlisp
kurfen has joined #commonlisp
divya has joined #commonlisp
emacsomancerer has joined #commonlisp
psilord has joined #commonlisp
csos95 has joined #commonlisp
MyNetAz has joined #commonlisp
Opus has joined #commonlisp
ejohnson has joined #commonlisp
mathrick has joined #commonlisp
hineios230 has joined #commonlisp
gpiero has joined #commonlisp
fristed has joined #commonlisp
mzan has joined #commonlisp
yacin has joined #commonlisp
pl has joined #commonlisp
copec has joined #commonlisp
dcb has joined #commonlisp
jsatk___ has joined #commonlisp
doyougnu has joined #commonlisp
alanz has joined #commonlisp
ggb_ has joined #commonlisp
mange has joined #commonlisp
patrix has joined #commonlisp
fe[nl]ix has joined #commonlisp
rselim has joined #commonlisp
ggb_ is now known as ggb
tsujp_ has joined #commonlisp
chomwitt1 has quit [Max SendQ exceeded]
bheesham has joined #commonlisp
buffet has joined #commonlisp
madnificent has joined #commonlisp
gooba has joined #commonlisp
scymtym has joined #commonlisp
igemnace has joined #commonlisp
sailorCat has joined #commonlisp
White_Flame has joined #commonlisp
johnjaye has joined #commonlisp
bleb has joined #commonlisp
akovalenko has joined #commonlisp
teesquare_ has joined #commonlisp
MetaYan has joined #commonlisp
xantoz has joined #commonlisp
slyrus has joined #commonlisp
tsujp_ has quit [Max SendQ exceeded]
whereiseveryone has joined #commonlisp
MyNetAz has quit [Write error: Connection reset by peer]
srhm has joined #commonlisp
sjl has joined #commonlisp
fuzy has joined #commonlisp
elderK has joined #commonlisp
yazz has joined #commonlisp
qsaiyan has joined #commonlisp
manwithluck has joined #commonlisp
reb has joined #commonlisp
zephyr has joined #commonlisp
thonkpod has joined #commonlisp
jistr has joined #commonlisp
calx- has joined #commonlisp
Guest7021 has joined #commonlisp
DrachenMaus has joined #commonlisp
splittist has joined #commonlisp
drmeister has joined #commonlisp
surabax has joined #commonlisp
jtbx has joined #commonlisp
mhcat has joined #commonlisp
edgar-rft_ has joined #commonlisp
okflo has joined #commonlisp
\f has joined #commonlisp
Oladon1 has joined #commonlisp
payphone has joined #commonlisp
jasom has joined #commonlisp
greenfork has joined #commonlisp
stag-enterprises has joined #commonlisp
simendsjo has joined #commonlisp
paulapatience has joined #commonlisp
shunter has joined #commonlisp
youthpastor has joined #commonlisp
kanuba has joined #commonlisp
khrbtxyz has joined #commonlisp
ol0ck has joined #commonlisp
Shinmera has joined #commonlisp
rootnode- has joined #commonlisp
sellax has joined #commonlisp
fengshaun has joined #commonlisp
Colleen has joined #commonlisp
sukaeto has joined #commonlisp
cqst has joined #commonlisp
bike has joined #commonlisp
yaneko has joined #commonlisp
BierLiebHaber has joined #commonlisp
younder has joined #commonlisp
cmack` has joined #commonlisp
Lord_of_Life has joined #commonlisp
terrorjack has joined #commonlisp
jA_cOp has joined #commonlisp
yottabyte has joined #commonlisp
kniffy has joined #commonlisp
Patternmaster has joined #commonlisp
cow_2001 has joined #commonlisp
antoszka has joined #commonlisp
mister_m has joined #commonlisp
fourier has joined #commonlisp
jdz has joined #commonlisp
energizer has joined #commonlisp
dmho has joined #commonlisp
tychoish has joined #commonlisp
fermat has joined #commonlisp
sm2n has quit [Max SendQ exceeded]
luis has joined #commonlisp
ElKowar has joined #commonlisp
famicom_guy has joined #commonlisp
thelounge82 has joined #commonlisp
deriamis has joined #commonlisp
c-clop25 has joined #commonlisp
yewscion__ has joined #commonlisp
kyoji has joined #commonlisp
hirez has joined #commonlisp
dino_tutter has joined #commonlisp
m5zs7k has joined #commonlisp
ryanbw has joined #commonlisp
skyl4rk has joined #commonlisp
saturn2 has joined #commonlisp
nxtr has joined #commonlisp
froggey has joined #commonlisp
mrvdb has joined #commonlisp
etimmons has joined #commonlisp
les has joined #commonlisp
mesaoptimizer has joined #commonlisp
sm2n has joined #commonlisp
MyNetAz has joined #commonlisp
Catie has joined #commonlisp
euandreh has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
kopiyka has joined #commonlisp
dmgk has joined #commonlisp
Thermoriax has joined #commonlisp
delyan_ has joined #commonlisp
iquites has joined #commonlisp
chrcav has joined #commonlisp
viaken has joined #commonlisp
runxiyu has joined #commonlisp
squishy_bloob has joined #commonlisp
GreaseMonkey has joined #commonlisp
gaze__ has joined #commonlisp
zups has joined #commonlisp
stylewarning has joined #commonlisp
|3b| has joined #commonlisp
Ruby has joined #commonlisp
susam has joined #commonlisp
drakonis has joined #commonlisp
theruran has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 260 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
Pixel_Outlaw has joined #commonlisp
aeth has joined #commonlisp
pkal has joined #commonlisp
zwr has joined #commonlisp
theothornhill has joined #commonlisp
nytpu has joined #commonlisp
deadmarshal_ has joined #commonlisp
Fade has joined #commonlisp
gjn has joined #commonlisp
gosha_ has joined #commonlisp
kvik has joined #commonlisp
x4d6165 has joined #commonlisp
mcoll has joined #commonlisp
Grauwolf has joined #commonlisp
disruptek has joined #commonlisp
bmp has joined #commonlisp
timmy has joined #commonlisp
larme has joined #commonlisp
HerlockSholmes has joined #commonlisp
jmbr has joined #commonlisp
arpunk has joined #commonlisp
kdlv has joined #commonlisp
adrianbrink has joined #commonlisp
tux0r has joined #commonlisp
smlckz has joined #commonlisp
lieven has joined #commonlisp
griffinmb___ has joined #commonlisp
sherbert has joined #commonlisp
entro has joined #commonlisp
Mandus has joined #commonlisp
luna-is-here has joined #commonlisp
MyNetAz has quit [Write error: Broken pipe]
ChanServ has joined #commonlisp
larme has quit [Max SendQ exceeded]
larme has joined #commonlisp
MyNetAz has joined #commonlisp
tsujp has joined #commonlisp
alfiee has joined #commonlisp
brokkoli_origin has joined #commonlisp
alfiee has quit [Ping timeout: 252 seconds]
geminium has joined #commonlisp
dra has quit [Ping timeout: 245 seconds]
geminium has quit [Ping timeout: 244 seconds]
akoana has quit [Quit: leaving]
rakka has quit [Remote host closed the connection]
rakka has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
josrr has quit [Ping timeout: 245 seconds]
synchromesh has quit [Read error: Connection reset by peer]
synchromesh has joined #commonlisp
awlygj has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
awlygj has joined #commonlisp
elderK has quit [Quit: WeeChat 4.5.1]
RavenJoad has joined #commonlisp
synchromesh has quit [Quit: WeeChat 4.1.1]
<RavenJoad> Can a defclass's slot's :initform take a make-instance form? (defclass example ((foo :reader foo :initarg foo :initform '()))) works, but :initform (make-instance 'thing) does not.
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 248 seconds]
k_hachig_ has joined #commonlisp
random-nick has quit [Ping timeout: 252 seconds]
kurfen has quit [Ping timeout: 252 seconds]
kurfen has joined #commonlisp
surabax has quit [Quit: Leaving]
<beach> RavenJoad: :initform can be any form.
waleee has quit [Ping timeout: 265 seconds]
<beach> ,(defclass foo () ()) ,(defclass bar () ((baz :initform (make-instance 'foo)))))
<ixelp> (defclass foo () ()) => #<STANDARD-CLASS FOO>, while (defclass bar () ((baz :initform (make-instance 'foo)))) => #<STANDARD-CLASS BAR>
alfiee has joined #commonlisp
<RavenJoad> beach: That's what I figured from the documentation I read, but if I do :initform (make-instance 'example :example-arg (quick-xform "fun")), where SBCL says "Control stack exhausted while pseudo-atomic".
<beach> That would depend on what happens when the class EXAMPLE is instantiated.
<beach> Clearly, if that INITFORM is for the class EXAMPLE, you have an infinite recursion.
<beach> ... or if QUICK-XFORM does an infinite recursion.
alfiee has quit [Ping timeout: 245 seconds]
<beach> So you can put any form there, but if the form does something wrong, obviously it won't work.
<RavenJoad> Agreed. But these are two separate classes. (defclass user ((slot-example :initform (make-instance 'example :example-arg (quick-xform "fun"))))). quick-xform is just a cl-ppcre call to replace some characters.
<beach> RavenJoad: I can't tell from that information what is wrong, but I can assure you that you can put any form in the :INITFORM. You need to study the backtrace to figure out why the computation in infinite.
<RavenJoad> That's the thing. There is no backtrace (beyond the file that fails to compile). I just get "CORRUPTION WARNING", "Memory fault at 0xff...6", unhandled memory fault.
<beach> Step one might be to evaluate that form separately an not as an INITFORM.
<RavenJoad> I can evaluate that form just fine in Sly/Emacs. It produces a valid (and different) class instance each time
<beach> An unhandled memory fault means either that your Common Lisp implementation has a defect, or that you (or one of the libraries you use) use foreign code that is buggy.
<RavenJoad> This is meant to be a well-known default value that I can use if the user does not provide one at initialization-time.
<RavenJoad> I mean, SBCL could definitely have a bug too, but that would be surprising.
<beach> It has bugs, but you are right, that's not the first thing to look for.
<mange> The initform gets evaluated for each instance of your class, so if you're wanting a single example instance as the default value for all instances of your class then I don't think you can use (make-instance 'example) as the :initform
<RavenJoad> I don't need all initialized classes having the same default value (by address/object) for this slot, just that it has a well-known :example-arg value.
<RavenJoad> Removing the quick-xform call shows that (make-instance 'example ...) is infinitely recursing for some reason (900+ calls to (make-instance 'example ...)).
<beach> RavenJoad: Does that happen in a fresh image too? You may have defined the EXAMPLE class incorrectly.
<RavenJoad> Yes. Each run is happening from a "make check" invocation I have that starts a new SBCL instance.
<RavenJoad> Unless a cache is reused for some reason.
<beach> The cache is used if the file containing the class definition has not changed.
<beach> But more likely, you have some method on INITIALIZE-INSTANCE or something similar that causes an infinite recursion.
<beach> ... or indeed an :INITFORM that does that.
<beach> RavenJoad: Wait... you said you evaluated the form as a form outside :INITFORM and there was no problem. But now there is?
<RavenJoad> Correct. If I evaluate (make-instance 'example :example-arg "example") in Sly (my REPL interface), then it is fine. I get a new object each time. I only get this error when it is in the slot's :initform.
<beach> My guess, then, would be that the creation of an instance of EXAMPLE creates an instance of the class that contains the creation of EXAMPLE as an initform.
<mange> Seeing some code would really help to debug this. :)
<RavenJoad> There is one thing I have not mentioned here, the :example-arg I create is a subclass of the top-level class.
<RavenJoad> mange: I can push some in a minute. The branch is super messy though. I'm changing the whole backend of the compiler right now.
<beach> That sounds like exactly what I said.
<beach> RavenJoad: We have no idea what your top-level class is, because you haven't told us.
<mange> So, wait, your (make-instance 'example) will implicitly use the initform (through the parent class)?
<beach> RavenJoad: the INITFORM is evaluated when a subclass is created as well, unless it is overridden.
<ixelp> chil/source/backends/verilog.lisp at 957dc4bb012c4530f2f8c8bd5622548845414075 · Chil-HW/chil
<RavenJoad> In this case, verilog-module is the top-level class. It uses a verilog-net as its body. But for codegen-inheritance reasons (which may be poorly chosen coming from other OOP paradigms), verilog-net subclasses verilog-module.
<beach> Then that's precisely what I guessed.
<RavenJoad> So an infinite mutual recursion on instantiation? I'll have to figure out how (if) I can break that.
<mange> The child class can override the initform, I believe.
<beach> In the :INITFORM you create a subclass of the class that contains the :INITFORM.
<beach> mange: That is what I said.
<RavenJoad> My verilog-net class does not have a "body" slot (nor should it (at least for now)), which it would get by inheriting from the verilog-module class. So can I remove it?
<beach> You can't remove a slot in a subclass.
<RavenJoad> Yeah, that's what I figured. I probably need to rework the inheritance here a bit.
<beach> That would be contrary to the Liskov Substitution Principle.
<beach> But, as was pointed out three times, you can override the :INITFORM in a subclass.
bigbookofbug has quit [Remote host closed the connection]
<RavenJoad> beach: Could you point me to a tiny example of that? I understand what you're saying but not quit ehow to implement it.
<beach> ,(defclass foo ((bar :initform (lsjflskdj)))) ,(defclass baz (foo) ((bar :initform 234))) ,(make-instance 'baz)
<ixelp> (defclass foo ((bar :ini[...]) ERROR: (FOO ((BAR :INITFORM (LSJFLSKDJ)))) can't be destructured against the lambda list (CLASS-NAME CCL::SUPERCLASSES CCL::SLOTS &REST CCL::CLASS-OPTIONS), because it does not contain at least 3 elements. and (defclass baz (foo) (([...]) => #<STANDARD-CLASS BAZ> finally (make-insta[...]) ERROR: Class #<STANDARD-CLASS BAZ> can't be finalized because superclass FOO is not defined yet
<beach> I don't know what that means. But the example shows how to override the slot.
<mange> Your first defclass is missing a () after the class name, and those are the errors. Doesn't obscure the example, though.
<beach> ,(defclass foo () ((bar :initform (lsjflskdj)))) ,(defclass baz (foo) ((bar :initform 234))) ,(make-instance 'baz)
<ixelp> (defclass foo () ((bar :initform (lsjflskdj)))) ;Compiler warnings : ↩ ; In an anonymous lambda form: Undefined function LSJFLSKDJ ↩ => #<STANDARD-CLASS FOO> and (defclass baz (foo) ((bar :initform 234))) => #<STANDARD-CLASS BAZ> finally (make-instance 'baz) => #<BAZ #x144C012E>
<beach> mange: Yes, thank you!
<RavenJoad> Ahh. Ok. So just inside the subclass, set the recursive slot to some value to break the recursion is what it looks like.
<beach> RavenJoad: As you can see, (lsjflskdj) was never evaluated.
<RavenJoad> Right. So I modified my stuff accordingly (https://github.com/Chil-HW/chil/blob/edbf4f9d2f1411bf09c107971472cf7de2e2d62b/source/backends/verilog.lisp#L61-L64) and it goes through compilation and unit testing without that recursion error.
<ixelp> chil/source/backends/verilog.lisp at edbf4f9d2f1411bf09c107971472cf7de2e2d62b · Chil-HW/chil
alfiee has joined #commonlisp
<beach> RavenJoad: Top-level comments take three (or four) semicolons.
<beach> RavenJoad: And you are wasting precious vertical space by having more than one blank line between top-level forms.
<RavenJoad> Yeah, I know. The extra blank lines are an accident. I'm not even following the style guide I say I should use. But this branch is a fixable one right now. I've completely rewritten the backend I used to have, so I am still in a tinkering phase before polishing.
<beach> So are you satisfied with the answer(s) to your issue?
<RavenJoad> Yes. That answer was exactly what I needed to solve this issue. I may rework the class hierarchy again, but that is a later issue.
alfiee has quit [Ping timeout: 248 seconds]
anticomputer has quit [Remote host closed the connection]
<beach> mange: Thanks for you help.
anticomputer has joined #commonlisp
<RavenJoad> beach: mange: Thank you both for your help. I'm going to call it a night on this project.
<beach> Good luck!
RavenJoad has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
geminium has joined #commonlisp
iquites has quit [Ping timeout: 272 seconds]
alanz has quit [Ping timeout: 260 seconds]
iquites has joined #commonlisp
alanz has joined #commonlisp
geminium has quit [Ping timeout: 244 seconds]
decweb has quit [Quit: Konversation terminated!]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
Catie has quit [Quit: ZNC 1.9.1 - https://znc.in]
Catie has joined #commonlisp
Catie has quit [Client Quit]
Catie has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
istewart has quit [Quit: Konversation terminated!]
contrapunctus has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 246 seconds]
mishoo has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 252 seconds]
King_julian has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 268 seconds]
geminium has joined #commonlisp
geminium has quit [Ping timeout: 252 seconds]
jon_atack has joined #commonlisp
pve has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
Ruby has quit [Quit: ZNC - https://znc.in]
Ruby has joined #commonlisp
k_hachig__ has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 244 seconds]
k_hachig_ has quit [Ping timeout: 248 seconds]
Lord_of_Life_ is now known as Lord_of_Life
tjbw has joined #commonlisp
k_hachig__ has quit [Ping timeout: 272 seconds]
k_hachig_ has joined #commonlisp
geminium has joined #commonlisp
alfiee has joined #commonlisp
Th30n has joined #commonlisp
geminium has quit [Ping timeout: 245 seconds]
alfiee has quit [Ping timeout: 252 seconds]
k_hachig_ has quit [Quit: WeeChat 4.5.1]
Th30n has quit [Remote host closed the connection]
Th30n has joined #commonlisp
Pixel_Outlaw has quit [Remote host closed the connection]
geminium has joined #commonlisp
alfiee has joined #commonlisp
varjag has joined #commonlisp
alfiee has quit [Ping timeout: 245 seconds]
attila_lendvai_ has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
jrx has joined #commonlisp
bpanthi977 has quit [Ping timeout: 276 seconds]
attila_lendvai_ has quit [Ping timeout: 265 seconds]
chomwitt1 has joined #commonlisp
jrx has quit [Remote host closed the connection]
jrx has joined #commonlisp
Guest47 has joined #commonlisp
geminium has quit [Ping timeout: 252 seconds]
alfiee has joined #commonlisp
jrx` has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
jrx has quit [Ping timeout: 272 seconds]
jrx`` has joined #commonlisp
jrx` has quit [Ping timeout: 244 seconds]
dino_tutter has quit [Quit: Leaving]
jrx``` has joined #commonlisp
jrx`` has quit [Ping timeout: 246 seconds]
dino_tutter has joined #commonlisp
wbooze has joined #commonlisp
pkal has quit [Read error: Connection reset by peer]
pkal has joined #commonlisp
alfiee has joined #commonlisp
chsasank has quit [Read error: Connection reset by peer]
chomwitt1 has quit [Ping timeout: 260 seconds]
chsasank has joined #commonlisp
ciuhh has joined #commonlisp
alfiee has quit [Ping timeout: 276 seconds]
geminium has joined #commonlisp
jrx``` has quit [Ping timeout: 246 seconds]
Guest47 has quit [Ping timeout: 260 seconds]
geminium_ has joined #commonlisp
geminium has quit [Ping timeout: 260 seconds]
ingeniot has joined #commonlisp
Guest47 has joined #commonlisp
ebrasca has joined #commonlisp
tjbw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbw has joined #commonlisp
jon_atack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 268 seconds]
geminium_ has quit [Ping timeout: 260 seconds]
mwnaylor has quit [Ping timeout: 276 seconds]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 246 seconds]
random-nick has joined #commonlisp
geminium has joined #commonlisp
geminium has quit [Ping timeout: 248 seconds]
add has joined #commonlisp
jonatack has quit [Ping timeout: 268 seconds]
jonatack has joined #commonlisp
decweb has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 252 seconds]
random-nick has quit [Ping timeout: 244 seconds]
apac has joined #commonlisp
random-nick has joined #commonlisp
mange has quit [Quit: Zzz...]
ingeniot has quit [Ping timeout: 240 seconds]
josrr has joined #commonlisp
mulk has quit [Read error: Connection reset by peer]
alfiee has joined #commonlisp
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
apac has quit [Ping timeout: 268 seconds]
alfiee has quit [Ping timeout: 252 seconds]
geminium has joined #commonlisp
mulk has joined #commonlisp
geminium has quit [Ping timeout: 265 seconds]
add has quit [Quit: add]
Guest47 has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
wobbol has quit [Quit: WeeChat 4.5.2]
Guest47 has quit [Client Quit]
shka has joined #commonlisp
Guest47 has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
Guest23 has quit [Quit: Client closed]
Equill has joined #commonlisp
surabax has joined #commonlisp
surabax has quit [Changing host]
surabax has joined #commonlisp
alfiee has joined #commonlisp
King_julian has quit [Ping timeout: 268 seconds]
King_julian has joined #commonlisp
alfiee has quit [Ping timeout: 260 seconds]
ingeniot has joined #commonlisp
uhuh has joined #commonlisp
geminium has joined #commonlisp
geminium has quit [Ping timeout: 260 seconds]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 246 seconds]
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
wbooze has quit [Read error: Connection reset by peer]
jonatack has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
wbooze has joined #commonlisp
edgar-rft` has joined #commonlisp
edgar-rft_ has quit [Ping timeout: 252 seconds]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
Guest47 has quit [Remote host closed the connection]
Guest47 has joined #commonlisp
d4ryus has quit [Quit: WeeChat 4.2.2]
markb1 has joined #commonlisp
d4ryus has joined #commonlisp
olnw has quit [Quit: ZNC - https://znc.in]
geminium has joined #commonlisp
NotThatRPG has quit [Ping timeout: 260 seconds]
ingeniot has quit [Ping timeout: 240 seconds]
josrr has quit [Remote host closed the connection]
skin has joined #commonlisp
alfiee has joined #commonlisp
josrr has joined #commonlisp
fuloido has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
bigbookofbug has joined #commonlisp
fuloido has quit [Quit: fuloido]
uhuh has quit [Remote host closed the connection]
zxcvz has joined #commonlisp
pfdietz has joined #commonlisp
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Guest47 has joined #commonlisp
soweli_iki has joined #commonlisp
Guest47 has quit [Client Quit]
Guest47_ has joined #commonlisp
alfiee has joined #commonlisp
bpanthi977 has joined #commonlisp
alfiee has quit [Ping timeout: 252 seconds]
wbooze has quit [Ping timeout: 260 seconds]
NotThatRPG has joined #commonlisp
bpanthi977 has quit [Ping timeout: 245 seconds]
pfdietz has quit [Ping timeout: 240 seconds]
pfdietz has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
fuloido has joined #commonlisp
bpanthi977 has joined #commonlisp
fuloido has quit [Quit: fuloido]
bpanthi977 has quit [Ping timeout: 260 seconds]
attila_lendvai_ has joined #commonlisp
pfdietz has quit [Quit: Client closed]
alfiee has joined #commonlisp
cage has joined #commonlisp
cage has quit [Excess Flood]
alfiee has quit [Ping timeout: 268 seconds]
Guest47_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cage has joined #commonlisp
jon_atack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 248 seconds]
cmack` has quit [Remote host closed the connection]
veqq has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 248 seconds]
Pixel_Outlaw has joined #commonlisp
LainExperiments has joined #commonlisp
tjbw has quit [Ping timeout: 244 seconds]
varjag has joined #commonlisp
bpanthi977 has joined #commonlisp
elderK has joined #commonlisp
bpanthi977 has quit [Remote host closed the connection]
bpanthi977 has joined #commonlisp
LainExperiments6 has joined #commonlisp
LainExperiments7 has joined #commonlisp
mesaoptimizer has quit [Quit: WeeChat 4.0.4]
mesaoptimizer has joined #commonlisp
LainExperiments has quit [Ping timeout: 240 seconds]
attila_lendvai_ has quit [Remote host closed the connection]
LainExperiments6 has quit [Ping timeout: 240 seconds]
attila_lendvai_ has joined #commonlisp
dstein64 has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
dstein64 has joined #commonlisp
rendar_ has quit [Ping timeout: 260 seconds]
jonatack has joined #commonlisp
jon_atack has quit [Read error: Connection reset by peer]
toadlicker has joined #commonlisp
alfiee has joined #commonlisp
ebrasca has quit [Read error: Connection reset by peer]
alfiee has quit [Ping timeout: 244 seconds]
LainExperiments has joined #commonlisp
LainExperiments7 has quit [Ping timeout: 240 seconds]
pfdietz has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 260 seconds]
elderK has quit [Quit: WeeChat 4.5.1]
zxcvz has quit [Quit: zxcvz]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
bpanthi977 has quit [Ping timeout: 268 seconds]
bpanthi977 has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
pfdietz has quit [Ping timeout: 240 seconds]
apac has joined #commonlisp
mishoo has quit [Ping timeout: 244 seconds]
alfiee has joined #commonlisp
brokkoli_origin has quit [Remote host closed the connection]
alfiee has quit [Ping timeout: 260 seconds]
brokkoli_origin has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 244 seconds]
cage has quit [Quit: rcirc on GNU Emacs 30.1]
mwnaylor has joined #commonlisp
pfdietz has joined #commonlisp
yazz has quit [Ping timeout: 248 seconds]
yazz has joined #commonlisp
chomwitt1 has joined #commonlisp
josrr has quit [Ping timeout: 248 seconds]
waleee has joined #commonlisp
pve has quit [Quit: leaving]
alfiee has joined #commonlisp
pfdietz has quit [Ping timeout: 240 seconds]
Equill has quit [Ping timeout: 252 seconds]
alfiee has quit [Ping timeout: 260 seconds]
King_julian has quit [Read error: Connection reset by peer]
geminium has quit [Ping timeout: 252 seconds]
chomwitt1 has quit [Ping timeout: 272 seconds]
RDMengineer has joined #commonlisp
chomwitt1 has joined #commonlisp
NotThatRPG has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psilord has quit [Ping timeout: 260 seconds]
akoana has joined #commonlisp
bjorkintosh has quit [Quit: "Every day, computers are making people easier to use." David Temkin]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
zephyr has quit [Read error: Connection reset by peer]
zephyr has joined #commonlisp
pfdietz has joined #commonlisp
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
veqq has quit [Read error: Connection reset by peer]
NotThatRPG has joined #commonlisp
jon_atack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
LainExperiments has quit [Ping timeout: 240 seconds]
elderK has joined #commonlisp
varjag has quit [Ping timeout: 244 seconds]
ciuhh has quit [Remote host closed the connection]
thonkpod has quit [Ping timeout: 248 seconds]
thonkpod has joined #commonlisp
alfiee has joined #commonlisp
soweli_iki has quit [Remote host closed the connection]
LainExperiments has joined #commonlisp
alfiee has quit [Ping timeout: 272 seconds]
pillton has joined #commonlisp
akoana has quit [Quit: leaving]
zwr has quit [Read error: Connection reset by peer]