<aeth>
To be clear, if you have (foo-bar your-foo-struct) then the implementation knows that your-foo-struct is either a valid FOO or it is an error. And so it only has to check once, and you "magically" can get type inference on all typed slots without even needing one declaration (for the struct itself). This is only really going to make a difference for arrays-of-numbers and numbers.
<aeth>
(If the implementation bothers to use this information that it is given.)
<aeth>
And while you can do polymorphism on structs, that entire type inference advantage goes away if you do.
eddof13 has joined #commonlisp
<PuercoPop`>
imho unless performance is a concern, use defclass. Mostly because you can safely redefine them while developing
PuercoPop` has quit [Remote host closed the connection]
jeffrey has quit [Quit: jeffrey]
<aeth>
Yes, that's a good short answer.
wbooze has quit [Read error: Connection reset by peer]
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
waleee has quit [Remote host closed the connection]
critbase has quit [Remote host closed the connection]
eddof13 has quit [Quit: eddof13]
skeemer has quit [Ping timeout: 276 seconds]
random-nick has quit [Ping timeout: 276 seconds]
Pixel_Outlaw has joined #commonlisp
PuercoPop` has joined #commonlisp
rootnode has quit [Remote host closed the connection]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
chiselfuse has quit [Ping timeout: 264 seconds]
chiselfuse has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
jonatack has joined #commonlisp
eddof13 has joined #commonlisp
bg2 has joined #commonlisp
bg2 has quit [Client Quit]
bg2 has joined #commonlisp
bg2 has quit [Client Quit]
bg2 has joined #commonlisp
bg2 has quit [Client Quit]
bpanthi977 has quit [Ping timeout: 260 seconds]
decweb has quit [Quit: Konversation terminated!]
eddof13 has quit [Quit: eddof13]
brokkoli_origin has quit [Remote host closed the connection]
rtypo has joined #commonlisp
brokkoli_origin has joined #commonlisp
rgherdt has joined #commonlisp
King_julian has joined #commonlisp
edgar-rft` has joined #commonlisp
edgar-rft has quit [Ping timeout: 276 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
jeffrey has joined #commonlisp
PuercoPop` has quit [Remote host closed the connection]
PuercoPop` has joined #commonlisp
pve has joined #commonlisp
istewart has quit [Quit: Konversation terminated!]
fengshaun has joined #commonlisp
PuercoPop` has quit [Remote host closed the connection]
toadlicker has quit [Remote host closed the connection]
toadlicker has joined #commonlisp
<forestcreature>
Hello! How could I (in cl) r/w from/to parallel port registers, on linux, please? I would like to use the data lines as individual I/O for some simple automation
<JuanDaugherty>
sounds like a job for machine lang or c
jeffrey has quit [Quit: jeffrey]
JuanDaugherty is now known as ColinRobinson
<forestcreature>
JuanDaugherty: so could I use a CFFI to expose linux headers as if doing it in C?
<forestcreature>
bjorkintosh: thank you, I saw there is e.g. cl-libserialport, cl-libusb and wondered if there was something equivalently higher level for parport
<bjorkintosh>
forestcreature: may I ask, does it _have_ to be the parallel port?
kevingal has quit [Ping timeout: 265 seconds]
erru has joined #commonlisp
<forestcreature>
bjorkintosh: not necessarily, but I'd like to use the IO that's already on this old motherboard if possible
<bjorkintosh>
are the USBs taken up already?
<forestcreature>
bjorkintosh: nope
<bjorkintosh>
well. it might be a tad easier.
<bjorkintosh>
but that's not the point of playing around is it?