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/>
<Pixel_Outlaw> Do the &key forms generate an implicit let/let* inside the function's body? "Asking for a friend" :)
<bike> you can use previous parameters in default forms, if that's what you mean.
<Pixel_Outlaw> Well I was thinking about implementing it in another dialect of Lisp "for funsies" and wondering how to best capture the idea.
<Pixel_Outlaw> I very *very* much like Common Lisp's notion of keys with default values.
<Pixel_Outlaw> We use Clojure at work and I was considering writing a macro to add it.
<hayley> The full form looks like &key (foo default foo-supplied-p); if you write a parser which can compute FOO and FOO-SUPPLIED-P, you can then desugar all DEFAULTs into a LET* form.
<Pixel_Outlaw> Excellent.
<bike> the problem with doing it literally as a let is mostly declaration scope stuff, which makes it nontrivial
<Pixel_Outlaw> I had a hunch it was like that. Just wanted to make sure there wasn't some secret "pocket" that technically they're stored in.
jello_pudding has quit [Ping timeout: 260 seconds]
<Pixel_Outlaw> &aux sure is a funny thing too.
<Pixel_Outlaw> But that is probably a remnant from the parent Lisps.
<bike> &aux is pretty straightforwardly let*, though there's still the declarations thing
<bike> i think jcowan mentioned working on some kind of &key type extension dealie for scheme, so maybe he can help?
<jcowan> hmm?
<jcowan> what can I do you for?
<bike> i could be wrong
<Pixel_Outlaw> I might have to ask about the notion of "declaration scope"
jello_pudding has joined #commonlisp
<Pixel_Outlaw> jcowan, ^ I was toying with the idea of adding &key support to Clojure further up. bike mentioned you were working in Scheme to similar effect.
nij- has joined #commonlisp
<bike> declaration scope like, if you have (lambda (x &key y) (declare (cons x) (integer y)) ...), you have to separate out the declarations for an inner let*
<jcowan> https://github.com/ashinn/chibi-scheme/blob/master/lib/chibi/optional.scm provides portable support for let-optionals and let-keywords macros
<jcowan> all the macros are define-syntax (i.e. template macros)
<Pixel_Outlaw> Ah that's right. Thanks bike
<Pixel_Outlaw> jcowan, looking
akoana has joined #commonlisp
<Pixel_Outlaw> Cool, thanks!
nij- has quit [Ping timeout: 260 seconds]
nij- has joined #commonlisp
bilegeek has joined #commonlisp
akoana has quit [Quit: leaving]
sloanr has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xmachina has joined #commonlisp
fosskers has joined #commonlisp
dcb has quit [Quit: MSN Messenger 4.0.4]
pfdietz has joined #commonlisp
habamax has joined #commonlisp
NicknameJohn has joined #commonlisp
Inline has quit [Ping timeout: 246 seconds]
wonko-the-sane has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
dcb has joined #commonlisp
pfdietz has quit [Quit: Client closed]
nij- has quit [Ping timeout: 248 seconds]
avocadoist has quit [Ping timeout: 240 seconds]
notzmv has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
alXsei has joined #commonlisp
alXsei has quit [Max SendQ exceeded]
alXsei has joined #commonlisp
alXsei has quit [Max SendQ exceeded]
alXsei has joined #commonlisp
alXsei has quit [Max SendQ exceeded]
alXsei has joined #commonlisp
igloo_ has joined #commonlisp
alXsei has quit [Max SendQ exceeded]
igloo_ has quit [Client Quit]
alXsei has joined #commonlisp
alXsei has left #commonlisp [#commonlisp]
jeosol has joined #commonlisp
bitmapper has quit [Quit: Connection closed for inactivity]
bilegeek has quit [Quit: Leaving]
ym has quit [Ping timeout: 245 seconds]
tetsuo-cpp has joined #commonlisp
tetsuo-cpp has quit [Ping timeout: 244 seconds]
tetsuo-cpp has joined #commonlisp
dcb has quit [Quit: MSN Messenger 4.0.4]
Pixel_Outlaw has quit [Remote host closed the connection]
akonai_ has quit [Quit: Quit.]
akonai has joined #commonlisp
son0p has quit [Ping timeout: 255 seconds]
son0p has joined #commonlisp
pve has joined #commonlisp
tetsuo-cpp has left #commonlisp [ERC 5.4 (IRC client for GNU Emacs 28.2)]
tasty has quit [Quit: bye bye!]
tasty has joined #commonlisp
tasty has quit [Changing host]
tasty has joined #commonlisp
jeosol has quit [Quit: Client closed]
MajorBiscuit has joined #commonlisp
rtypo has quit [Ping timeout: 246 seconds]
MajorBiscuit has quit [Client Quit]
rgherdt has joined #commonlisp
gxt has quit [Ping timeout: 246 seconds]
gxt has joined #commonlisp
wonko-the-sane has quit [Quit: leaving]
shka has joined #commonlisp
nij- has joined #commonlisp
igemnace has joined #commonlisp
LW has joined #commonlisp
LW has quit [Client Quit]
Cymew has joined #commonlisp
rgherdt_ has joined #commonlisp
speskk7 has joined #commonlisp
speskk has quit [Ping timeout: 246 seconds]
speskk7 is now known as speskk
rgherdt has quit [Ping timeout: 245 seconds]
Inline has joined #commonlisp
attila_lendvai has joined #commonlisp
varjag has joined #commonlisp
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
fitzsim has quit [Read error: Connection reset by peer]
nij- has quit [Ping timeout: 240 seconds]
dino_tutter has joined #commonlisp
MajorBiscuit has joined #commonlisp
msavoritias has joined #commonlisp
remexre has quit [Ping timeout: 248 seconds]
dnhester26 has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
fitzsim has joined #commonlisp
_cymew_ has joined #commonlisp
kagevf_ has quit [Ping timeout: 255 seconds]
msavoritias has quit [Remote host closed the connection]
kagevf has joined #commonlisp
remexre has joined #commonlisp
habamax has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
dnhester_ has joined #commonlisp
dnhester26 has quit [Read error: Connection reset by peer]
<scymtym> keyword parameter specifiers can express one more bit of information in addition to the ones hayley mentioned: the keyword name and the variable can be different as in ((:keyword variable)) or ((:keyword variable) default supplied-p)
avocadoist has joined #commonlisp
dnhester_ has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Read error: Connection reset by peer]
iska has quit [Ping timeout: 250 seconds]
yitzi has joined #commonlisp
azimut has quit [Ping timeout: 246 seconds]
azimut has joined #commonlisp
random-nick has joined #commonlisp
igemnace has quit [Read error: Connection reset by peer]
igemnace has joined #commonlisp
msavoritias has joined #commonlisp
bjorkint0sh has joined #commonlisp
bjorkintosh has quit [Ping timeout: 248 seconds]
pieguy128 has quit [Ping timeout: 245 seconds]
lottaquestions_ has joined #commonlisp
lottaquestions has quit [Ping timeout: 244 seconds]
karlosz has joined #commonlisp
msavoritias has quit [Remote host closed the connection]
lottaquestions_ has quit [Read error: Connection reset by peer]
lottaquestions_ has joined #commonlisp
pieguy128 has joined #commonlisp
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
varjag has joined #commonlisp
msavoritias has joined #commonlisp
nature has joined #commonlisp
dnhester26 has joined #commonlisp
<nature> Hello, I am not getting any completions in the slime REPL and I am not sure why this is the case
yitzi has quit [Ping timeout: 246 seconds]
attila_lendvai has quit [Ping timeout: 246 seconds]
yitzi has joined #commonlisp
zxcvz has joined #commonlisp
<edgar-rft> nature: what's the value of the Elisp `slime-complete-symbol-function' variable?
<nature> it's nil
<nature> it's also telling me "Obsolete. Use ‘slime-completion-at-point-functions’ instead."
<edgar-rft> then my slime configuration is outdated :-)
<nature> and for the latter the value is "(slime-c-p-c-completion-at-point slime-filename-completion slime-simple-completion-at-point)"
shka has quit [Quit: Konversation terminated!]
zxcvz has quit [Client Quit]
jmdaemon has quit [Ping timeout: 245 seconds]
<edgar-rft> even worse: I don't even have a `slime-completion-at-point-functions' variable
molson has quit [Remote host closed the connection]
<nature> I am using emacs 29, maybe that's why?
nij- has joined #commonlisp
<nature> The thing is that I am sure it was working before, but I can't remember at which point it started to not work anymore...
<edgar-rft> emacs 27 with a probably outdated slime here
shka has joined #commonlisp
xmachina has quit [Quit: WeeChat 4.0.4]
xmachina has joined #commonlisp
pfdietz has joined #commonlisp
<nature> Maybe there is a bug in slime?
<nature> I really have no idea, currently exploring slime.el but things seems fine there
<pkal> nature: But you do have completion in a regular cl buffer?
<nature> let me test that
<nature> nope, no completeion in a regular cl buffer either
nij- has quit [Ping timeout: 244 seconds]
iska has joined #commonlisp
<edgar-rft> what happens if you do M-: (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol)
<edgar-rft> that's what I'm doing in my slime config
sjl has joined #commonlisp
<nature> I'll give it a shot, I just tried sly, and there I have completions without issues
<nature> let me just reset my emacs to remove sly
nature has quit [Quit: brb]
nature has joined #commonlisp
<nature> ok I just tried setting the slime-complete-symbol-function
<nature> and it doesn't work
<edgar-rft> that's bad :-(
<edgar-rft> While you were away I've noticed that I have a `slime-completion-at-point-functions' variable, too, with the same value as in your emacs
<nature> if I can't figure this out, I might just consider switching to sly
<nature> but it's a bit frustrating that it doesn't work as expected :/
<nature> thank you for helping out
<nature> if you have any other idea I'll take it
<edgar-rft> I'm just trying to find out which function gets called when I press the TAB key at the Slime REPL but all I get is `indent-for-tab-command' from the Emacs global map :-(
<nature> if you do C-h k and then press TAB in the slime repl, that's what you get?
<edgar-rft> yes
<edgar-rft> no matter if directly at the prompt or e.g. (set<TAB>, in both cases I only get `indent-for-tab-command' :-(
<nature> does C-M-i works for completion in your repl?
<edgar-rft> but funnily the completion *works* here
<nature> weird :/
<edgar-rft> C-M-i gets swallowed by the window manager, it doesn't even reach emacs
<nature> What about C-c TAB?
wonko-the-sane has joined #commonlisp
<edgar-rft> CL-USER> (setC-c TAB shows me the buffer with possible completions
dino_tutter has quit [Ping timeout: 240 seconds]
<edgar-rft> ah, C-h k C-c TAB -> "runs the command `completion-at-point ' found in slime-editing-map :-)
dino_tutter has joined #commonlisp
fosskers has quit [Ping timeout: 245 seconds]
dnhester has joined #commonlisp
tyson2 has joined #commonlisp
thuna` has joined #commonlisp
thuna` has quit [Remote host closed the connection]
thuna` has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1.50)]
yitzi has quit [Read error: Connection reset by peer]
waleee has joined #commonlisp
pfdietz has quit [Quit: Client closed]
yitzi has joined #commonlisp
jonatack3 has quit [Read error: Connection reset by peer]
jonatack3 has joined #commonlisp
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
yitzi has quit [Remote host closed the connection]
zxcvz has joined #commonlisp
msavoritias has quit [Ping timeout: 246 seconds]
zxcvz has quit [Quit: zxcvz]
MajorBiscuit has quit [Ping timeout: 255 seconds]
MajorBiscuit has joined #commonlisp
cognemo has joined #commonlisp
<semz> edgar-rft: C-M-i can also be signalled via ESC C-i fwiw
<beach> And with C-[ C-i which I think is the fastest for a single invocation.
<beach> At least on a US keyboard.
loke has quit [Ping timeout: 245 seconds]
yitzi has joined #commonlisp
notzmv has quit [Ping timeout: 248 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester has quit [Ping timeout: 246 seconds]
tyson2 has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
NicknameJohn has quit [Ping timeout: 255 seconds]
cage has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
msavoritias has joined #commonlisp
loke has joined #commonlisp
dstein64- has joined #commonlisp
dstein64 has quit [Ping timeout: 245 seconds]
dstein64- is now known as dstein64
rgherdt__ has joined #commonlisp
rgherdt_ has quit [Ping timeout: 260 seconds]
rtypo has joined #commonlisp
deadmarshal_ has quit [Quit: IRCNow and Forever!]
dirtcastle has quit [Quit: IRCNow and Forever!]
yitzi has quit [Read error: Connection reset by peer]
yvm has joined #commonlisp
MajorBiscuit has quit [Ping timeout: 245 seconds]
sloanr has joined #commonlisp
msavoritias has quit [Ping timeout: 255 seconds]
deadmarshal_ has joined #commonlisp
dirtcastle has joined #commonlisp
dino_tutter has quit [Ping timeout: 260 seconds]
ebrasca has joined #commonlisp
Oladon has joined #commonlisp
<ebrasca> Shinmera: Hi!
dcb has joined #commonlisp
<Shinmera> ... ?
<ebrasca> Shinmera: Can I ask you something?
dinomug has joined #commonlisp
<ixelp> Don't ask to ask, just ask
nature has quit [Remote host closed the connection]
<ebrasca> Shinmera: I start making a game for now I have good part of the rollback netcode done. Is it hard to integrate steam support in common lisp?
<ixelp> GitHub - Shinmera/cl-steamworks: A bindings library for the Valve SteamWorks API.
waleee has quit [Ping timeout: 246 seconds]
<ebrasca> What do you think about priori collision detection?
<Shinmera> ?
<Shinmera> I don't know what that means
msavoritias has joined #commonlisp
<ebrasca> You calculate when the collision is going to happen instead of testing if a collision did happen after moving the objects!
<Shinmera> oh, you mean swept collision checks.
<Shinmera> my thoughts are "they're cool"
<ebrasca> Thanks, does your engine have any syncronization / multiplayer fuctionality?
<Shinmera> no
<ebrasca> I am not sure how your code is structured but if I have the time I will add rollback netcode to it!
azimut has quit [Ping timeout: 246 seconds]
dinomug has quit [Remote host closed the connection]
rgherdt__ has quit [Ping timeout: 240 seconds]
<Shinmera> cool!
<ebrasca> Shinmera: What is your opinion about cepl?
<Shinmera> My opinion is, I wish baggers had the energy to work on it.
<Shinmera> but also it's unlikely I'll ever use it.
<ebrasca> Is cepl abandoned?
<Shinmera> pretty much
<ebrasca> I was making a game with it...
<ebrasca> Do you recommend Trial for making 2D games?
<Shinmera> :shrug: that's what I've done with it.
karlosz has quit [Read error: Connection reset by peer]
<ebrasca> Shinmera: Is it hard to learn?
<Shinmera> How should I know
karlosz has joined #commonlisp
<Pixel_Outlaw> That steamworks stuff looks like it was a major chore to wrap. Kudos Shinmera.
<Shinmera> It was yes. And it's not fully tested, so there's probably still plenty of breakage in the stuff I haven't actually used.
<Pixel_Outlaw> That's a major service to the guys who want to follow and publish Steam games. Thank you.
<Shinmera> We'll see if there's ever gonna be anyone but me.
<ebrasca> Shinmera: What do you think about vulkan?
<Shinmera> what is the purpose of these questions
markb1 has quit [Ping timeout: 245 seconds]
<Shinmera> what's it matter what I think about these things?
<Shinmera> I'm not some oracle on computer graphics
<ebrasca> I was thinking in respect to your engine
<ebrasca> Thank you for your time Shinmera !
Oladon has quit [Quit: Leaving.]
<Shinmera> I'm not gonna switch to vulkan if that's what you're asking.
wonko-the-sane has quit [Ping timeout: 246 seconds]
semz has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
semz has joined #commonlisp
<Pixel_Outlaw> Building log cabins out of sawdust and glue IMHO. It's cool but kind of a PITA.
markb1 has joined #commonlisp
yvm has quit [Ping timeout: 260 seconds]
wonko-the-sane has joined #commonlisp
Guest56 has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
ns12 has quit [Quit: bye]
ns12 has joined #commonlisp
dino_tutter has joined #commonlisp
Guest56 has quit [Quit: Client closed]
chrcav has quit [Quit: leaving]
abrantesasf has joined #commonlisp
Cymew has quit [Ping timeout: 255 seconds]
tyson2 has joined #commonlisp
Guest22 has joined #commonlisp
waleee has joined #commonlisp
wonko-the-sane has quit [Ping timeout: 246 seconds]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
msavoritias has quit [Remote host closed the connection]
Lycurgus has joined #commonlisp
pranavats has joined #commonlisp
Guest22 has quit [Quit: Client closed]
Guest26 has joined #commonlisp
Guest26 has quit [Client Quit]
tyson2 has quit [Remote host closed the connection]
Lycurgus has quit [Quit: Tschüss]
rgherdt has joined #commonlisp
mgl has joined #commonlisp
lagash has quit [Remote host closed the connection]
lagash has joined #commonlisp
_cymew_ has quit [Ping timeout: 246 seconds]
eddof13 has joined #commonlisp
<aeth> cl-vulkan is afaik not active, and idk if there's another effort
wonko-the-sane has joined #commonlisp
NotThatRPG has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aeth> So even if Vulkan were as easy as OpenGL (it's not), it would be more work to use in CL at the moment
mgl has quit [Quit: Client closed]
<aeth> cl-opengl works
eddof13 has joined #commonlisp
<ebrasca> aeth: The last I used is VK https://github.com/JolifantoBambla/vk
<ixelp> GitHub - JolifantoBambla/vk: Common Lisp/CFFI bindings for the Vulkan API.
<aeth> ooh, vk
<aeth> I actually just thought that maybe I should have searched for "vk" in addition to "vulkan"
<aeth> it does look like there is a vk package in QL
<aeth> seems like it might be too high level, making it annoying to use, in the style of cl-sdl2 (here's a magical incompletely documented somewhat high level SDL2 wrapper... good luck)
<aeth> while with cl-opengl you can basically use OpenGL documentation nearly verbatim with the low-level %GL package and often even the main GL package
<mfiano> Like cl-opengl, cl-sdl2 also has low level bindings, and additionally, an intermediary medium-level that doesn't mess with threads
<aeth> no, cl-sdl2 does not have complete low level bindings
<aeth> I had to reverse engineer the layout of the SDL2 structs as (automatically!!!) wrapped by cl-sdl2 in order to use the low level bindings in cl-sdl2
<mfiano> shrug. I maintain it and use them just fine following the SDL documentation.
<aeth> so they might as well not exist unless that has been refactored considerably
<mfiano> If you don't like something, submit an issue or PR and I'll see about it
<mfiano> It has worked for many, just folowing the SDL documentation because the high level bindings are admittedly too much
<mfiano> (I am not alone here)
cage has quit [Remote host closed the connection]
<ebrasca> VK seems fine to me!
cage has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aeth> I was going to find some specific examples, but I got sidetracked.
eddof13 has joined #commonlisp
<aeth> GitLab.com predictably took the opportunity of its post-IPO life to become really, really bad. Plenty of bugs still unfixed, such as bad CL language detection, bad CL syntax highlighting, an infinite loop (at least in Firefox) when showing last commit / last update in my main zombie-raptor repo, etc... And I bet "snippets" (their equivalent of "gists") are still broken by having a "smart" editor that
<aeth> isn't CL indentation aware and no regular editor, making it unusable for CL as it poorly attempts to reindent any code you paste into it.
<aeth> But they did manage to turn large parts of the page into ads to try to upsell for premium, which piles on a lot of irrelevant-for-99%-of-repos features to try to appeal to the enterprise.
<aeth> I guess I'm going to have to move git hosts.
<aeth> I've also been told on IRC when I've linked to it in recent years that it's unusable without JS, which is a position I have sympathy with even though it's a battle that was lost nearly a decade ago.
<aeth> I'm not sure I should provide a link that (1) infinite looped me with that infinite loop bug (I could hear my CPU fan) while I typed this and (2) has annoyingly broken CL syntax highlighting (erroneously marking large parts of the file as part of a string, which is perhaps the most common syntax highlighting bug with poorly supported syntax highlighting)
eddof13 has quit [Client Quit]
dom2 has joined #commonlisp
dinomug has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
skin1 has joined #commonlisp
Inline has quit [Remote host closed the connection]
Inline has joined #commonlisp
ebrasca has quit [Remote host closed the connection]
NotThatRPG has quit [Ping timeout: 250 seconds]
jonatack3 has quit [Read error: Connection reset by peer]
NotThatRPG has joined #commonlisp
jonatack has joined #commonlisp
tyson2 has joined #commonlisp
abrantesasf has quit [Remote host closed the connection]
NotThatRPG has quit [Ping timeout: 250 seconds]
dcb has quit [Ping timeout: 248 seconds]
dcb has joined #commonlisp
skin1 has quit [Quit: Leaving.]
thuna` has quit [Read error: Connection reset by peer]
rgherdt has quit [Quit: Leaving]
dom2 has quit [Ping timeout: 245 seconds]
NotThatRPG has joined #commonlisp
shka has quit [Ping timeout: 246 seconds]
NotThatRPG has quit [Ping timeout: 244 seconds]
pve has quit [Ping timeout: 250 seconds]
igemnace has quit [Quit: WeeChat 4.0.4]
b3lm0nt has joined #commonlisp
dino_tutter has quit [Ping timeout: 246 seconds]
random-nick has quit [Ping timeout: 245 seconds]
jmdaemon has joined #commonlisp
wonko-th1-sane has joined #commonlisp
wonko-the-sane has quit [Ping timeout: 246 seconds]
lagash has quit [Ping timeout: 246 seconds]
dmgk has left #commonlisp [#commonlisp]
azimut has joined #commonlisp
attila_lendvai has quit [Ping timeout: 240 seconds]
eddof13 has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]