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/>
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
jmd_ has quit [Ping timeout: 246 seconds]
notzmv has quit [Ping timeout: 240 seconds]
jmd_ has joined #commonlisp
tyson2 has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
habamax has joined #commonlisp
triffid has joined #commonlisp
lucasta has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
notzmv has joined #commonlisp
danieli7 has joined #commonlisp
NotThatRPG has joined #commonlisp
semarie has quit [Ping timeout: 260 seconds]
danieli has quit [Ping timeout: 240 seconds]
danieli7 is now known as danieli
semarie has joined #commonlisp
<doulos05> I've got a scoping problem using the beast library with McClim and I'm trying to figure out how to solve it.
<doulos05> I'd like to use a system from BEAST to draw the units on the screen, so that's DEFINE-SYSTEM. But the drawing functions for McCLIM require me to pass in a stream variable.
<doulos05> And I'm not sure how to pass that into the system for BEAST, since it seems its features only accept entities as arguments.
<doulos05> Here's the API reference for beast: https://docs.stevelosh.com/beast/reference/#define-system-macro
<ixelp> API Reference / beast
<doulos05> ixelp: Sorry, fingers are too slow, lol.
dcb has quit [Quit: MSN Messenger 4.0.1]
<doulos05> My gut is that I need to use some sort of closure over the call to run the draw-units system which passes the stream as a "local global variable", but I don't know if I have an XY problem or not.
<doulos05> Something like: (let ((stream stream)) (run-draw-units)). But that just feels... wrong, somehow.
<doulos05> It also doesn't work
<bike> it may be appropriate to make the stream a special variable
<bike> (but i'm not familiar with beast)
<doulos05> Yeah, I'm using it because it was the ECS system that "clicked" in my head the best. Let me ask around on the #lispgames channel and see if they use it.
<doulos05> It obviously hasn't clicked very much
<bike> a closure doesn't make sense in my opinion, since you may want to render the same entities to various displays depending on context, and you won't have the display set up yet at load time
<doulos05> In the case of McCLIM, (for the DRAW-* functions), stream refers to the sheet in the application where you'll be drawing.
<doulos05> bike: good point
cmack has joined #commonlisp
dom2 has quit [Quit: leaving]
bilegeek has joined #commonlisp
<doulos05> Ok, I figured something out. There's a functioned in McCLIM called FIND-PANE-NAMED. I'm using that inside the system to grab the appropriate pane.
<doulos05> Now for a dumber, and therefore probably easier question. What is the difference between 'symbol-name and :symbol-name?
<AkashaPeppermin4> they're two different symbols with the same name but located in different packages
<bike> symbol-name without the colon is read as a symbol in the current package. :symbol-name is read as a symbol in the keyword package.
habamax has quit [Ping timeout: 260 seconds]
<doulos05> Ok, so I have the following code segment: (deftype mv-type '(member 'walk 'jump))
<doulos05> And I run (typep 'walk 'mv-type) and it returns nil
<doulos05> Am I missing something?
<bike> well your deftype is wrong. does that actually compile? it's a syntax error
<doulos05> When I do it with :walk in both places, it works. Which is what confuses me
<bike> you probably mean (deftype mv-type () '(member walk jump))
<doulos05> Aha, so no ' in the deftype, but yes ' in the typep call?
<bike> yes, the typep is fine
<bike> in '(member walk jump) you don't need to quote walk or jump given that they're already in a quoted list
<doulos05> And the extra () as well. Ok, I'm tracking now. Oh, duh. the ' at the beginning
<bike> the () is because deftype can be used to define compound type specifiers (i.e. that have parameters). yours doesn't have any parameters
habamax has joined #commonlisp
<doulos05> And generally I probably should be using ' instead of : for this because then it's my game's package instead of the keyword package.
oneeyedalien has quit [Quit: Leaving]
bilegeek has quit [Remote host closed the connection]
bilegeek has joined #commonlisp
<beach> doulos05: You are expressing that issue in a strange kind of way. The ' and the : servce entirely different purposes. ' prevents evaluation whereas : is a package marker. It just so happens that keyword symbols evaluate to themselves.
<beach> doulos05: Keyword symbols are mainly used in situations like keys in argument lists, and property lists, and as unique values with a name. Other symbols are used to name most entities like variables, functions, types.
habamax has quit [Ping timeout: 260 seconds]
bilegeek has quit [Remote host closed the connection]
dtman34 has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
tyson2 has quit [Remote host closed the connection]
cjrf has quit [Remote host closed the connection]
flip214_ is now known as flip214
flip214 has quit [Changing host]
flip214 has joined #commonlisp
habamax has joined #commonlisp
pony has joined #commonlisp
dtman34 has joined #commonlisp
rainthree has joined #commonlisp
waleee has quit [Ping timeout: 240 seconds]
rainthree has quit [Read error: Connection reset by peer]
rgherdt has joined #commonlisp
_whitelogger has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
jello_pudding has joined #commonlisp
lucasta has quit [Remote host closed the connection]
msavoritias has joined #commonlisp
<pjb> doulos05: deftype is like defmacro. You could write (deftype my-type () (let ((w 'walk)) (list 'member w 'jump))) and typep is a function. (let ((type 'my-type)) (typep 'walk type))
<pjb> (let ((type (if (expect-string-p) 'string 'integer))) (typep (read) type))
Jach has quit [Ping timeout: 264 seconds]
Jach has joined #commonlisp
Krystof has quit [Ping timeout: 264 seconds]
rainthree has quit [Ping timeout: 240 seconds]
igemnace has joined #commonlisp
thollief has joined #commonlisp
Krystof has joined #commonlisp
speskk has quit [Quit: Ping timeout (120 seconds)]
speskk has joined #commonlisp
vxe420 has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
vxe420 has joined #commonlisp
bendersteed has joined #commonlisp
rainthree has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
shka has joined #commonlisp
contrapunctus has joined #commonlisp
dino_tutter has joined #commonlisp
igemnace has quit [Remote host closed the connection]
LW has joined #commonlisp
igemnace has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
LW has quit [Client Quit]
habamax has joined #commonlisp
scymtym has quit [Remote host closed the connection]
Brucio-61 has quit [Remote host closed the connection]
Brucio-61 has joined #commonlisp
Brucio-61 has quit [Read error: Connection reset by peer]
Brucio-61 has joined #commonlisp
Brucio-61 has quit [Ping timeout: 245 seconds]
Brucio-61 has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
waleee has joined #commonlisp
karlosz has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
karlosz has quit [Client Quit]
pve has joined #commonlisp
ronald has quit [Quit: leaving]
edgar-rft has quit [Ping timeout: 246 seconds]
edgar-rft has joined #commonlisp
tevo has quit [Ping timeout: 240 seconds]
Gleefre has joined #commonlisp
OlCe has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 240 seconds]
dtman34 has quit [Ping timeout: 240 seconds]
dtman34 has joined #commonlisp
karlosz has joined #commonlisp
attila_lendvai has joined #commonlisp
milesrout is now known as mrr
mrr is now known as milesr
euandreh has joined #commonlisp
milesr is now known as rselim
euandreh has quit [Remote host closed the connection]
euandreh has joined #commonlisp
karlosz has quit [Quit: karlosz]
Gleefre has quit [Remote host closed the connection]
attila_lendvai_ has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
seanw has quit [Remote host closed the connection]
seanw has joined #commonlisp
waleee has joined #commonlisp
gxt__ has quit [Remote host closed the connection]
gxt__ has joined #commonlisp
karlosz has joined #commonlisp
random-nick has joined #commonlisp
jmdaemon- has quit [Ping timeout: 240 seconds]
jello_pudding has quit [Ping timeout: 260 seconds]
jello_pudding has joined #commonlisp
<|3b|> cmack: i added a branch https://github.com/3b/cl-egl/tree/get-proc-address that tries to handle extension functions more correctly, if you want to try that
<ixelp> GitHub - 3b/cl-egl at get-proc-address
woudshoo has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
Brucio-61 has quit [Ping timeout: 246 seconds]
Brucio-61 has joined #commonlisp
pranavats has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 264 seconds]
tyson2 has joined #commonlisp
<doulos05> pjb: Yeah, I think I cleared up the confusion, but it's useful to know that deftype works more like defmacro than defun.
<doulos05> New confusion: How, using format, do I right-pad a string with 8 spaces? I thought that "~,8a" would do it but it isn't
<hayley> I vaguely remember it being ,(format nil "~8A" "blah") without a comma?
<ixelp> (format nil "~8A" "blah") => "blah "
<doulos05> ixelp: Ok, yeah that was it. I had the numeric and string format directives confused.
<hayley> ,(format nil "~8@A" "blah") with an at?
<ixelp> (format nil "~8@A" "blah") => " blah"
<hayley> I misread - right pad, not right align. The first should work.
<doulos05> hayley: no worries, that one is actually useful elsewhere in this. Despite my best efforts, FORMAT control strings are practically a write-only language for me.
<hayley> You learn how to make them pprint-only with time.
zxcvz has joined #commonlisp
markb1 has quit [Ping timeout: 246 seconds]
Cymew has joined #commonlisp
jrx has joined #commonlisp
markb1 has joined #commonlisp
johnjaye has quit [Ping timeout: 245 seconds]
triffid has quit [Ping timeout: 240 seconds]
johnjaye has joined #commonlisp
notzmv has quit [Ping timeout: 240 seconds]
mgl has joined #commonlisp
triffid has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
euandreh has quit [Ping timeout: 245 seconds]
dmgk has left #commonlisp [#commonlisp]
<beach> Shinmera: Why does the DEFINE-TEST form fail in https://plaster.tymoon.eu/view/3895#c895 even though the first form of the IS succeeds as is? Does Parachute mess with the backquote macro?
<beach> It fails to compile, complaining about the use of ,SLOT-NAME in the WITH-SLOTS form.
<Shinmera> Uuuuh, no idea at this point.
Brucio-61 has quit [Ping timeout: 245 seconds]
<beach> Fair enough.
Brucio-61 has joined #commonlisp
<beach> I think it must have something to do with Parachute, because the form compiles fine in other contexts.
<Shinmera> It's possible
<Shinmera> If you expand define-test, does it mangle things somehow?
euandreh has joined #commonlisp
<beach> Let me check...
<beach> Doesn't seem to.
<Shinmera> what about the IS form?
qhong has quit [Read error: Connection reset by peer]
<beach> Well, I tried the same with TRUE around both forms, but let me check IS...
qhong has joined #commonlisp
<Shinmera> they all work in pretty much the same way
<beach> I can't see anything suspect.
<beach> Anyway don't worry about it.
<beach> I'll do something else.
<beach> I asked you in case there was something obvious. Since there is not, I don't want to waste your time with this.
<Shinmera> It's not a waste of time, I just don't have time to look into it right now
<Shinmera> I see no reason why it should fail, so it does seem like a bug
<beach> Take as long as you like.
<beach> Should I file an issue?
<Shinmera> yes please
<beach> Will do. Take care and get on with your life. :)
<Shinmera> I'm trying! :)
<beach> I know.
<yitzi> beach: versus doing eval, have you tried :compile-at :execute?
<beach> I have not. Thanks for the suggestion.
<beach> Do you think that might work?
<Shinmera> It probably won't fix it, but it would prevent you from needing to do the eval thing yourself.
<beach> I see. I'll read up. Thank you both.
notzmv has joined #commonlisp
<Shinmera> I should probably also a compiles-to shorthand, since there's already a fail-compile shorthand.
<Shinmera> *add a
<beach> OK.
scymtym has joined #commonlisp
lucasta has joined #commonlisp
attila_lendvai has joined #commonlisp
<scymtym> beach: i haven't looked thoroughly, but could a failure to compile be caused by a missing QUOTE of #1# in line 11 of https://plaster.tymoon.eu/view/3895 ?
lucasta has quit [Remote host closed the connection]
lucasta has joined #commonlisp
<Shinmera> oh, yeah
bendersteed has quit [Quit: βυε]
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
<beach> Hmm. Then why does the form compile and execute by itself?
<Shinmera> the problem is the expand-expression part
<beach> But yeah, that's probably it.
<Shinmera> which isn't in the standalone snippet
<beach> Yes, I see. Thank you so much!
<beach> I would not have spotted that.
attila_lendvai has quit [Read error: Connection reset by peer]
msavoritias has quit [Ping timeout: 250 seconds]
cage has joined #commonlisp
scymtym_ has joined #commonlisp
Brucio-61 has quit [Ping timeout: 250 seconds]
scymtym has quit [Ping timeout: 246 seconds]
Brucio-61 has joined #commonlisp
<beach> So I won't file an issue. :)
<Shinmera> might still want to file one for better support of macroexpansion checks.
<beach> I suspect I should then perhaps file an SBCL issue.
notzmv has quit [Ping timeout: 240 seconds]
<Shinmera> No, I meant, a feature request for an EXPANDS-TO macro in Parachute, so that you don't have to do that manually.
<beach> Yes, I see. I'll give it some thought. But, like you, I am also busy.
Brucio-61 has quit [Ping timeout: 250 seconds]
Brucio-61 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
Brucio-61 has quit [Ping timeout: 250 seconds]
dino_tutter has quit [Ping timeout: 246 seconds]
ldb has joined #commonlisp
Brucio-61 has joined #commonlisp
jrx has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
euandreh has quit [Ping timeout: 264 seconds]
euandreh has joined #commonlisp
tyson2 has joined #commonlisp
msavoritias has joined #commonlisp
triffid has quit [Quit: triffid]
scymtym_ is now known as scymtym
mgl has quit [Quit: Client closed]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Brucio-61 has quit [Ping timeout: 245 seconds]
Brucio-61 has joined #commonlisp
mgl has joined #commonlisp
eddof13 has joined #commonlisp
Brucio-61 has quit [Ping timeout: 245 seconds]
woudshoo has quit [Ping timeout: 246 seconds]
Brucio-61 has joined #commonlisp
ldb has quit [Remote host closed the connection]
euandreh has quit [Ping timeout: 260 seconds]
Brucio-61 has quit [Ping timeout: 245 seconds]
Brucio-61 has joined #commonlisp
lucasta has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
attila_lendvai has joined #commonlisp
Cymew has quit [Ping timeout: 264 seconds]
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
mgl has quit [Quit: Client closed]
attila_lendvai has quit [Ping timeout: 245 seconds]
dino_tutter has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
Gleefre has joined #commonlisp
Oladon has joined #commonlisp
dcb has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rainthree has quit [Ping timeout: 252 seconds]
tevo has joined #commonlisp
eddof13 has joined #commonlisp
tyson2 has joined #commonlisp
Brucio-61 has quit [Ping timeout: 246 seconds]
scymtym has quit [Ping timeout: 240 seconds]
tevo has quit [Quit: Leaving.]
tevo has joined #commonlisp
Brucio-61 has joined #commonlisp
NotThatRPG has joined #commonlisp
kevingal has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
Krystof has quit [Ping timeout: 246 seconds]
czy has joined #commonlisp
azimut_ has quit [Ping timeout: 240 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dino_tutter has quit [Ping timeout: 240 seconds]
cage has quit [Remote host closed the connection]
jello_pudding has quit [Ping timeout: 240 seconds]
Inline has joined #commonlisp
tyson2 has joined #commonlisp
jello_pudding has joined #commonlisp
Krystof has joined #commonlisp
tyson2` has joined #commonlisp
tyson2` has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
eddof13 has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
ronald has joined #commonlisp
tyson2 has joined #commonlisp
Brucio-61 has quit [Remote host closed the connection]
Brucio-61 has joined #commonlisp
dino_tutter has joined #commonlisp
Posterdati has quit [Ping timeout: 245 seconds]
coderdan has joined #commonlisp
<coderdan> Hi, I'm attempting to program a game in CL. I want to include static assets (game graphics). Is there a standard or popular/common method for including binary files in a system?
thollief has quit [Quit: Leaving]
Posterdati has joined #commonlisp
akoana has joined #commonlisp
remexre has quit [Ping timeout: 250 seconds]
morganw has joined #commonlisp
scymtym has joined #commonlisp
msavoritias has quit [Remote host closed the connection]
green_ has joined #commonlisp
attila_lendvai has joined #commonlisp
kevingal has quit [Ping timeout: 246 seconds]
woudshoo has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
woudshoo has quit [Ping timeout: 252 seconds]
shka has quit [Ping timeout: 245 seconds]
Lycurgus has joined #commonlisp
remexre has joined #commonlisp
Lycurgus has quit [Quit: Exeunt: personae.ai-integration.biz]
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
Inline has quit [Ping timeout: 245 seconds]
tyson2 has joined #commonlisp
mgl has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
Gleefre has joined #commonlisp
mgl has quit [Quit: Client closed]
jmdaemon has joined #commonlisp
rbcarleton has quit [Remote host closed the connection]
igemnace has quit [Remote host closed the connection]
skyl4rk has quit [Quit: ZNC 1.8.2 - https://znc.in]
habamax has joined #commonlisp
<random-nick> that depends on your implementation, since different implementations have different ways of creating executables (and some don't have any)
morganw has quit [Remote host closed the connection]
dino_tutter has quit [Ping timeout: 260 seconds]
Gleefre has quit [Ping timeout: 246 seconds]
attila_lendvai has quit [Ping timeout: 250 seconds]
coderdan has quit [Ping timeout: 246 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yewscion has joined #commonlisp
zephyr1 has joined #commonlisp
pve has quit [Quit: leaving]
dbotton_ has joined #commonlisp
HerlockSholmes2 has joined #commonlisp
doulos05_ has joined #commonlisp
hexology- has joined #commonlisp
leo_song_ has joined #commonlisp
sveit_ has joined #commonlisp
krjt has joined #commonlisp
triv has joined #commonlisp
eddof13 has joined #commonlisp
tasty_ has joined #commonlisp
tasty_ has joined #commonlisp
tasty_ has quit [Changing host]
kmroz_ has joined #commonlisp
etimmons_ has joined #commonlisp
Mandus_ has joined #commonlisp
eddof13 has quit [Client Quit]
sgithens__ has joined #commonlisp
Mandus has quit [*.net *.split]
HerlockSholmes has quit [*.net *.split]
doulos05 has quit [*.net *.split]
csos95 has quit [*.net *.split]
dbotton has quit [*.net *.split]
sgithens_ has quit [*.net *.split]
travis has quit [*.net *.split]
krjst has quit [*.net *.split]
hexology has quit [*.net *.split]
kmroz has quit [*.net *.split]
sveit has quit [*.net *.split]
etimmons has quit [*.net *.split]
les has quit [*.net *.split]
zephyr has quit [*.net *.split]
migap_ has quit [*.net *.split]
leo_song has quit [*.net *.split]
HerlockSholmes2 is now known as HerlockSholmes
zephyr1 is now known as zephyr
dbotton_ is now known as dbotton
tasty has quit [*.net *.split]
sgithens__ is now known as sgithens_
etimmons_ is now known as etimmons
csos95 has joined #commonlisp
akoana has quit [Quit: leaving]
NotThatRPG has quit [Remote host closed the connection]