|gigamonkey||Mmmm, SBCLers, what does this mean: "The value 1 is not of type SB-SYS:SYSTEM-AREA-POINTER." I'm trying to pass an integer value via CFFI to be stored in void* slot of a C struct.|
Worked on Allegro but maybe that was just dumb luck.
|nyef||gigamonkey: It means that an (* t) slot type is expected to be a pointer, not an integer.|
|jonathon||Modius: hunchentoot server, clsql db backend, xml-emitter|
|nyef||Umm.... Quick workaround might be to (sb-sys:int-sap 1) instead of just 1.|
Compiler -should- inline that.
And just use an unboxed SAP.
(Compiler is a bit obnoxious with SAPs and d-x, but that's not on the table here.)
|nyef||System Area Pointer.|
|jonathon||slyrus: so openmcl doesn't run on early macbooks?|
|nyef||Easier to convert the integer than to figure out how to break the slot properly.|
|_3b||make-pointer should be able to convert an int to void* in cffi|
|gigamonkey||What do you mean by "break the slot"?|
|nyef||I mean make it take an integer.|
Or that make-pointer thing.
|action||nyef has absolutely no clue when it comes to cffi, but sb-alien is beginning to feel like home.|
|nyef||has absolutely no clue when it comes to cffi, but sb-alien is beginning to feel like home.|
|jonathon||nyef: I only messed with sb-alien a bit, but it's working well for you?|
|nyef||Actually, I'm starting to wonder again about working over genesis to spit out Win32 executables directly. I'd lose the runtime and most of the language implementation, but...|
jonathon: I have some partial Win32 bindings written in it.
The obvious disadvantage to using sb-alien is that it isn't portable to other lisp implementations. The advantages include being the thinnest layer supported by SBCL, not involving another dependency, and being something I can hack when I need extra functionality (stdcall callbacks, for example).
|jonathon||When do you do callbacks w/o GUIs? I/O?|
|nyef||You can arrange that on windows if neccessary, yes, but I was actually trying to set things up for writing window procedures.|
Ah, if I only remembered then what I remember now.
It's not quite a waste of some inspired hacking, but it wasn't necessary for window procedures after all, since MS hacked up a solution for all the people who made their window procedures cdecl...
|jonathon||I wonder how Vista changes all that... if it does.|
|nyef||AFAICT, not appreciably.|
Hell, I may even get a Vista box one of these years.
(Had to add FLS when they fixed the rest of the Fiber semantics did they? Assholes.)
|rkrush||What's a good HTML generation library? Preferably one that's documented :)|
|gigamonkey||I'm partial to FOO.|
|nyef||rkrush: What level of "generation"?|
|jonathon||nyef: That made me laugh. I'm out for the night....|
|nyef||jonathon: Sleep well.|
|gigamonkey||You can read all about it here ...|
|rkrush||nyef: I'm converting my LaTeX resume to HTML for ease of editing, but the syntax bugs me ;)|