freenode/#ecl - IRC Chatlog
Search
4:26:47
stylewarning
if I have a CL SIMPLE-ARRAY, can I get the underlying storage vector, and even better, get a pointer to its data?
4:33:27
stylewarning
Unrelated: Quickloading anything in SLIME with ECL causes it to abort: Process inferior-lisp<1> illegal instruction: 4
7:15:28
jackdaniel
stylewarning: try rm -rf ~/.slime to get rid of potentially bogus cached fasls. other explanation is thread unsafety and race for the compiler. I need to review swank backend for ecl
7:15:39
jackdaniel
regarding accessing pointers: (defun get-raw-vector (object) (ffi:c-inline (object) (:object) :pointer-void "#0->vector.self.t" :one-liner t))
7:17:52
jackdaniel
alternate version for specialized vectors: (defun get-raw-vector (object) (ffi:c-inline (object) (:object) :pointer-void "#0->vector.self.b8" :one-liner t))
7:18:09
jackdaniel
note, that you need to compile this function with 'compile in order to have c-inline working
7:19:12
jackdaniel
c-inline can give you any C code, for data structure definitions you may check on src/h/object.h, for array and vector handling see src/c/array.d