freenode/#lisp - IRC Chatlog
Search
21:18:22
asdf_asdf_asdf
(describe (function SB-WIN32::SHUTDOWN-SOCKET)) ; not works, because isn't a function
21:20:18
jfe
thanks. does sbcl provide a safe wrapper around these functions or is it possible to pass a pointer to a buffer (e.g. for a read operation)?
21:20:54
asdf_asdf_asdf
Remember about types in SBCL, because typed-lambda-list is ((a int) (b int) (c c-string))...
21:21:39
Bike
jfe: I think it's pretty thin. The manual says to use FFI which would suggest actual pointers
21:25:22
jfe
oh, one other question re. threads. are mutexes required for all shared access between threads, or can i approximate the "volatile" keyword in C/C++/Java to implement flags that my worker threads need to check?
21:27:37
pjb
There's a #sbcl channel for people who insist on not writing conforming common lisp code !!!
21:28:48
Bike
https://stackoverflow.com/questions/2484980/why-is-volatile-not-considered-useful-in-multithreaded-c-or-c-programming well okay
21:29:23
jfe
Bike: yeah i started to correct myself earlier -- volatile is only relevant to threads in java
21:31:27
jfe
my current design has my worker threads checking a flag that would be set by another thread. protecting that flag with a mutex could be costly.
3:49:48
drmeister
I posted an issue and I wanted to pick your brain. https://github.com/slime/slime/issues/530
3:50:49
drmeister
When using C-c C-c to compile a form slime has the line number of the start of the code - but for some reason doesn't pass it to swank-compile-string.
5:59:26
drmeister
Hi - yeah - I dropped a note in there. I haven't seen any responses yet. But it's only been about 12 hours. No worries.
6:01:23
drmeister
It's a small change that we are looking for that may be a big change if adding another keyword argument to swank-compile-string requires every implementation to handle that.
6:21:44
pjb
drmeister: you can also use C-c C-k to compile the whole file and have the source location information kept.
6:22:56
drmeister
Yes - that's what I do - but every now and then I C-c C-c and it all gets confused.