#lisp - Wed 14 Mar 2007 between 02:29 and 02:49

NY Lost Funds



gigamonkeyMmmm, 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.
nyefgigamonkey: It means that an (* t) slot type is expected to be a pointer, not an integer.
jonathonModius: hunchentoot server, clsql db backend, xml-emitter
nyefUmm.... 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.)
gigamonkeySorry, SAP?
nyefSystem Area Pointer.
gigamonkeyDuh.
jonathonslyrus: so openmcl doesn't run on early macbooks?
nyefEasier to convert the integer than to figure out how to break the slot properly.
_3bmake-pointer should be able to convert an int to void* in cffi
gigamonkeyWhat do you mean by "break the slot"?
_3b: indeed.
nyefI mean make it take an integer.
Or that make-pointer thing.
actionnyef has absolutely no clue when it comes to cffi, but sb-alien is beginning to feel like home.
nyefhas absolutely no clue when it comes to cffi, but sb-alien is beginning to feel like home.
jonathonnyef: I only messed with sb-alien a bit, but it's working well for you?
nyefActually, 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).
jonathonWhen do you do callbacks w/o GUIs? I/O?
nyefYou 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...
jonathonI wonder how Vista changes all that... if it does.
nyefAFAICT, 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.)
rkrushWhat's a good HTML generation library? Preferably one that's documented :)
gigamonkeyI'm partial to FOO.
nyefrkrush: What level of "generation"?
jonathonnyef: That made me laugh. I'm out for the night....
nyefjonathon: Sleep well.
jonathonlater, all
gigamonkeyYou can read all about it here ...
rkrushnyef: I'm converting my LaTeX resume to HTML for ease of editing, but the syntax bugs me ;)
gigamonkeyhttp://www.gigamonkeys.com/book/practical-an-html-generation-library-the-interpreter.html

Page: 5 12 19 26 33 40 

IrcArchive

NY Lost Funds