Search found 96 matches

by dmitry_vk
Mon Oct 19, 2009 10:35 pm
Forum: Common Lisp
Topic: clsql, sqlite3 and prepared statements
Replies: 2
Views: 2477

Re: clsql, sqlite3 and prepared statements

Apparently there is no prepared statement support for SQLite3 in the clsql library. Has anybody managed to hack this in somehow ? Or is there some other library that lets you use prepared statements with SQLite3 ? You can use http://common-lisp.net/project/cl-sqlite/ . I consider clsql to be a "toy...
by dmitry_vk
Tue Sep 15, 2009 8:15 am
Forum: Common Lisp
Topic: EXCEPTION_ACCESS_VIOLATION???
Replies: 3
Views: 2734

Re: EXCEPTION_ACCESS_VIOLATION???

Your defcstruct's are wrong. :string declares a structure field that is a pointer, but in your case it should inline array. Also, inline structures are not pointers. And because of this, 'devices' slot is taken from the wrong offset. Correct definition is like this: (defcstruct usb-bus (next :pointe...
by dmitry_vk
Sun Sep 13, 2009 5:20 am
Forum: Common Lisp
Topic: Low-Level Byte-Ops with Common Lisp
Replies: 3
Views: 2236

Re: Low-Level Byte-Ops with Common Lisp

If the data that you want to process lies in foreign memory (e.g., comes from a C library or you can mmap the file with the data) then you can use CFFI to access the memory in C-like way: you define structures (with all semantics of C: data types, member alignments, etc) and then access the memory w...
by dmitry_vk
Fri Sep 04, 2009 10:41 am
Forum: Common Lisp
Topic: [ann] LibCL.com
Replies: 6
Views: 4337

Re: [ann] LibCL.com

I've used LibCL under SBCL on Win32 and I must say this was very useful to me. I didn't have to manually download all the libraries, which is very tiresome, especially on Windows.
by dmitry_vk
Tue Aug 25, 2009 6:27 am
Forum: Common Lisp
Topic: Better then loop/iterate?
Replies: 41
Views: 39402

Re: Better then loop/iterate?

I have been a little annoyed by this: Having flets, lets, macrolets and symbol-macrolets separate all the time has disadvantages. 1) More nested then need be, implying more parenthesis, more depth of indentation. 2) Sometimes need lets or flets in some specific order, causing more nesting. So it mi...
by dmitry_vk
Sun Aug 23, 2009 9:04 pm
Forum: Common Lisp
Topic: Maxima as a library
Replies: 8
Views: 8156

Re: Maxima as a library

beren wrote:

Code: Select all

:lisp (ext:saveinitmem "session.mem") 
which saves the definitions. Then you can do

Code: Select all

sbcl --core sesion.mem
ext:saveinitmem is a clisp function. You can not load clisp images with sbcl.
by dmitry_vk
Sun Aug 23, 2009 9:03 pm
Forum: Common Lisp
Topic: Maxima as a library
Replies: 8
Views: 8156

Re: Maxima as a library

Maxima is written in lisp so you should just be able to load its code into a lisp image (load its code from source files). Of course, you should remove parts of code that deal with user input and program starting.
by dmitry_vk
Wed Aug 05, 2009 6:38 am
Forum: Common Lisp
Topic: need help with lispworks
Replies: 17
Views: 19544

Re: need help with lispworks

You're other options are creating clisp/sbcl executables. However, these executables are packed with the whole clisp.sbcl system. Thus, a small program will eb around 25 mb. It doesn't scale up, the clisp.sbcl system (around 25 mb) is only included once, but still... SBCL executables compress reall...
by dmitry_vk
Tue Aug 04, 2009 10:47 pm
Forum: Common Lisp
Topic: Library regression tests
Replies: 6
Views: 5232

Re: Library regression tests

I didn't actually know about asdf:test-op. I think that automated testing of libraries makes perfect sense (ideally, it should not be limited to ECL but should be done with other implementations also). It would also make sense to have a way to notify developers that the tests have failed for their l...
by dmitry_vk
Tue Jul 28, 2009 2:17 pm
Forum: Common Lisp
Topic: cffi-clutter
Replies: 19
Views: 13581

Re: cffi-clutter

Ramarren , if you are interested, I've made documentation for my GObject binding (http://common-lisp.net/project/cl-gtk2/doc/gobject/index.html). It may make task of creating clutter binding a little easier (but I don't insist on it). You can see my attempt at http://paste.lisp.org/display/84338. T...