freenode/#lisp - IRC Chatlog
Search
18:40:28
sjl_
Would it be conforming for an implementation to make (typep (with-open-file (f "~/.stumpwmrc" :element-type 'base-char) (read-line f)) 'simple-base-string) ; => T?
18:40:52
sjl_
which is > a specialized vector that is of type string, and whose elements are of type character or a subtype of type character.
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.