libera/#commonlisp - IRC Chatlog
Search
20:56:42
Nilby
random-nick: A number of things exist, but they are all partial or incomplete, as far as I know. If you want to share what system calls you're interested in, perhaps there's a smaller library that does what you're looking for?
21:38:27
random-nick
I was asking about it in general, but I guess the most interesting one is probably epoll
21:43:45
random-nick
also, getting access to futex and related APIs might be useful, but I don't know how the different implementations handle getting blocked in foreign code
23:09:46
pl
random-nick: on linux (and windows), the really nice stuff would be to implement io_uring
2:02:12
shunter
Quick question on WITH-XYZ macros that bind VAR -- is it recommended to declare that VAR has dynamic extent? VAR shouldn't be used outside the body anyways, so I think it fits with what dynamic extent is supposed to be, right?
2:03:07
shunter
It shouldn't, because the meaningful resource is closed by the time execution leaves the body
2:04:47
shunter
Very much like a with-open-stream: `(let ((,var (wl-display-connect ,@args)) (unwind-protect (progn ,@body) (wl-display-close ,var)))
2:05:55
Bike
if the value is actually inaccessible than using dx is fine. unless wl-display-connect inlines to something special, i doubt the declaration will really do anything, though.
2:52:00
Bike
it'll make your code very confusing, as it will mean calling a function alters the global definition of some other function.
3:03:47
dbotton
First in clog lingo - When you instantiate an instance of a clog panel there is an on-setup handler, so in that handler I want to sometimes define a function. - so in CL lingo - this is a function say create-panel generated by the builder that includes code by the user to run each time create-panel is used. So wanted to understand potential pitfalls if they add a defun
3:05:15
dbotton
As I can say have a canvas, draw a circle when created, then reuses the same code in say the on-click
3:05:48
Bike
well having code that messes with the global environment is messy for the same reason messing with the global environment usually is.
3:10:38
Bike
rationale what, in the standard? defun is just a normal form, so there's no reason to disallow it anywhere, and no specific rationale for allowing it anywhere
3:33:42
emacs-dwim
nij-: Of course, CL has: *evalhook* *applyhook* *macroexpandhook* #'evalhook #'applyhook.
3:40:37
dbotton
Bike, this seems interesting as a result - (defmethod draw ((obj (eql panel)) circle-color) nil) if I want a more JavaScript style of OO to place the defmethods in the create function.
6:03:06
hayley
I heard *eval-hook* was removed as it did nothing in compiled code, making it rather awkward.