00:41:52 alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 01:37:39 adamvh: what's your question? 01:38:40 rme: I have the source code to an objective-C class (i.e. .h / .m) that I would like to be able to access in Lisp. 01:39:11 rme: I'm guessin that some sort of ffigen4 based procedure will be necessary 01:39:34 rme: but I'm not entirely clear on whether I need to do something extra to handle Objective-C headers as opposed to C headers 01:40:22 rme: So, do you have any pointers to some instructions for how to use existing (but not Apple-included) objective C sources through Lisp? 01:41:46 I'm currently building ffigen4 and I suppose I'll need to build the .h/.m file as a .dylib 01:43:12 and then use h-to-ffi (maybe? if it's the same as it is for C) to dump the proper symbols into a .cdb, and then load the dylib in ccl 01:43:13 At the very least, you'll need to create a shared library, right. 01:44:00 What I would probably do is to package up the code as a framework, i.e., with shared library, headers, etc. 01:44:40 Could I then just call open-framework? 01:45:08 Or is all the ffigen4 stuff still necessary? 01:45:25 Then, I'd create in ccl:darwin-x86-headers64;my-framework;C;populate.sh by following the example of, say, darwin-x86-headers64;quartzcore;. 01:45:57 Build and install ffigen per http://trac.clozure.com/ccl/wiki/BuildFFIGEN, and then run the populate.sh script. 01:46:59 OK, and in doing this I leave all of the already-generated cdb's alone, right? 01:47:33 because I'd hate to clobber them 01:47:41 right, you're only concerned with creating the ones for your own framework 01:47:57 OK, that sounds unpleasant but manageable 01:48:09 good 01:48:52 This Objective-C bridge is really pretty awesome, I gotta say. 01:49:06 When you've run populate.sh, you'll have a bunch of .ffi files. You turn these into .cdb files via (require 'parse-ffi) (parse-standard-ffi-files :my-framework). 01:49:25 see http://ccl.clozure.com/ccl-documentation.html#The-Interface-Translator 01:50:51 Yeah, it's sort of a pain to get set up to generate the .cdb files, but it sometimes beats writing dozens of "defforeign" or whatever forms. 01:53:52 Anyway, once all that's done, you should be able to call objc:load-framework load it up. It looks for frameworks in the standard places, including ~/Library/Frameworks. 01:54:21 The main thing I needed to confirm is that the process is the same for Objective-C as it is for C. 01:54:52 It might be a good idea to mention some of these things on the "The Interface Translator" 01:54:57 portion of the manual 01:55:06 or maybe in the section on the Objective C bridge 01:55:18 I would be willing to contribute some relevant prose 01:55:23 the translator mentioned in the BuildFFIGEN topic understands objc. 01:56:12 I would certainly appreciate any improvements to the manual you might want to contribute. 01:56:40 You could even throw something up on the wiki and then I could move it into the manual. 01:57:04 So at the trac.clozure.com/ccl/wiki/ 01:57:08 address 01:57:11 ? 01:57:12 yes 01:57:46 OK, thanks for the help, and I'll do my best to get this stuff up on the wiki in a way that ensures you don't have to answer this question again. 01:58:17 (pending my success in this endeavor, naturally) 01:58:29 Good luck. Please send mail to the list if you get stuck and nobody is around here. 03:35:39 Intensity [6ndHX9dVt7@unaffiliated/intensity] has joined #ccl 04:20:02 adamvh: the interface translator recognizes ObjC; it's a hacked-up version of the GCC ObjC frontend. 04:22:06 gbyers: thanks, yeah, I've gotten up to generating all of the .ffi files, and building my framework 04:22:25 gbyers: I am now stymied by SLIME all of a sudden having broken 04:22:34 I am currently updating my SLIME 04:23:28 I was always taught "If you can't say anything nice about a superior lisp interaction mode, don't say anything at all." 04:34:43 -!- adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has quit [Remote host closed the connection] 04:35:03 adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has joined #ccl 04:57:38 adamvh_ [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has joined #ccl 05:01:02 -!- adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has quit [Ping timeout: 240 seconds] 05:01:02 -!- adamvh_ is now known as adamvh 05:08:13 Huh, SLIME no longer works for me with CCL 05:09:16 I'm on CCL 1.6, whatever is the latest SLIME up on the Aquamacs emacs website, and OS X 10.5.8 05:09:25 It is failing to load, saying that 05:09:57 Error: SWANK-BACKEND:ADD-FD-HANDLER not implemented 05:19:49 -!- adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has quit [Quit: adamvh] 05:47:52 -!- roffe [~roffe@ti0165a340-dhcp0368.bb.online.no] has quit [Quit: roffe] 07:22:38 jdz [~jdz@193.206.22.97] has joined #ccl 08:12:37 e-user [~akahl@nat/nokia/x-suesrchpcmvvlroo] has joined #ccl 08:20:46 -!- jdz [~jdz@193.206.22.97] has quit [Quit: Leaving] 08:23:04 jdz [~jdz@193.206.22.97] has joined #ccl 09:07:31 -!- rme [rme@clozure-1F3CDCA9.chi01.dsl-w.verizon.net] has quit [Quit: rme] 09:07:31 -!- rme [~rme@pool-70-106-129-201.chi01.dsl-w.verizon.net] has quit [Quit: rme] 09:16:11 roffe [~roffe@38-255-15.connect.netcom.no] has joined #ccl 09:37:38 -!- roffe [~roffe@38-255-15.connect.netcom.no] has quit [Read error: Connection reset by peer] 10:32:46 roffe [~roffe@77.84-48-112.nextgentel.com] has joined #ccl 11:00:46 -!- roffe [~roffe@77.84-48-112.nextgentel.com] has quit [Quit: roffe] 11:07:57 leo2007 [~leo@222.77.38.236] has joined #ccl 11:55:49 -!- alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Quit: alms_] 12:03:42 alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 12:05:05 roffe [~roffe@77.84-48-112.nextgentel.com] has joined #ccl 13:12:23 rme [~rme@pool-70-106-129-201.chi01.dsl-w.verizon.net] has joined #ccl 13:16:52 adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has joined #ccl 13:17:21 -!- roffe [~roffe@77.84-48-112.nextgentel.com] has quit [Remote host closed the connection] 13:18:01 roffe [~roffe@77.84-48-112.nextgentel.com] has joined #ccl 13:29:35 -!- sellout [~greg@gw3.tacwap.org] has quit [Quit: sellout] 13:56:07 -!- roffe [~roffe@77.84-48-112.nextgentel.com] has quit [Quit: roffe] 14:20:32 -!- leo2007 [~leo@222.77.38.236] has quit [Ping timeout: 240 seconds] 14:22:18 adamvh, I vaguely remember seeing that. Fixed it by removing the swank binaries in ~/.slime 14:22:59 So should add-fd-handler be implemented? 14:23:08 Yes, but it's in the swank pacakge 14:23:43 As opposed to swank-backend, you mean? 14:23:50 right 14:23:56 Don't know why the fasls get it wrong 14:25:12 Nope, just blew away the fasls and still no dice 14:25:21 bummer. Then I don't know what to do 14:25:35 Where does swank keep its config? 14:25:52 LIke if I just want to change swank:*communication-style* 14:25:59 I must have found it once before 14:26:04 Don't know off the top of my head 14:26:40 Somebody on #lisp might know slime better than I do 14:27:43 I played with it for a long time on the day it happened, but never figured it out. When removing the fasls fixed it, I stopped looking 14:28:27 Of course, you have kill the lisp process so that it recompiles 14:28:45 The *inferior-lisp* emacs buffer 14:29:17 Are you also on OS X, btw? 14:29:23 Debian 14:33:49 -!- TeMPOraL [u463@gateway/web/irccloud.com/x-ayblohhjqocqlngs] has quit [Max SendQ exceeded] 14:33:56 Moving away from this screen. Mention my nick to get my attention 14:39:09 TeMPOraL [u463@gateway/web/irccloud.com/x-gsjehoovakfdanjs] has joined #ccl 14:41:53 sellout [~greg@64.134.66.214] has joined #ccl 14:45:44 adamvh: communication style fd-handler works only on cmucl & derivatives 14:46:07 -!- sellout [~greg@64.134.66.214] has quit [Ping timeout: 240 seconds] 14:47:55 ...I think. In any case, it won't work for ccl. 14:53:02 sellout [~greg@gw3.tacwap.org] has joined #ccl 15:17:47 -!- adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has quit [Quit: adamvh] 15:25:33 leo2007 [~leo@222.79.156.19] has joined #ccl 15:30:53 milanj [~milanj_@109-92-211-157.dynamic.isp.telekom.rs] has joined #ccl 15:37:02 -!- sellout [~greg@gw3.tacwap.org] has quit [Ping timeout: 240 seconds] 15:40:59 -!- leo2007 [~leo@222.79.156.19] has quit [Read error: Connection reset by peer] 16:00:55 -!- milanj [~milanj_@109-92-211-157.dynamic.isp.telekom.rs] has quit [Ping timeout: 276 seconds] 16:04:20 sellout [~greg@64.134.66.214] has joined #ccl 16:05:05 milanj [~milanj_@178-223-151-190.dynamic.isp.telekom.rs] has joined #ccl 16:16:45 leo2007 [~leo@59.57.98.29] has joined #ccl 16:33:03 roffe [~roffe@ti0165a340-dhcp0944.bb.online.no] has joined #ccl 16:36:06 -!- sellout [~greg@64.134.66.214] has quit [Ping timeout: 240 seconds] 16:36:37 -!- jdz [~jdz@193.206.22.97] has quit [Ping timeout: 272 seconds] 16:41:33 sellout [~greg@gw3.tacwap.org] has joined #ccl 16:59:50 -!- sellout [~greg@gw3.tacwap.org] has quit [Ping timeout: 240 seconds] 17:18:06 -!- e-user [~akahl@nat/nokia/x-suesrchpcmvvlroo] has quit [Quit: Leaving.] 17:24:12 jdz [~jdz@host28-17-dynamic.8-87-r.retail.telecomitalia.it] has joined #ccl 17:43:55 sellout [~greg@gw3.tacwap.org] has joined #ccl 17:45:40 sellout- [~greg@c-24-61-13-161.hsd1.ma.comcast.net] has joined #ccl 17:48:14 -!- sellout [~greg@gw3.tacwap.org] has quit [Ping timeout: 240 seconds] 17:48:14 -!- sellout- is now known as sellout 18:29:32 adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has joined #ccl 18:32:02 anRch [~markmilli@pool-68-163-207-98.bos.east.verizon.net] has joined #ccl 18:41:50 -!- anRch [~markmilli@pool-68-163-207-98.bos.east.verizon.net] has quit [Ping timeout: 240 seconds] 18:48:37 anRch [~markmilli@pool-68-163-176-8.bos.east.verizon.net] has joined #ccl 18:53:08 -!- anRch [~markmilli@pool-68-163-176-8.bos.east.verizon.net] has quit [Client Quit] 19:03:50 anRch [~markmilli@64.134.70.102] has joined #ccl 19:44:54 Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has joined #ccl 19:45:11 Modius_ [~Modius@cpe-70-123-158-125.austin.res.rr.com] has joined #ccl 19:45:41 -!- Modius_ [~Modius@cpe-70-123-158-125.austin.res.rr.com] has quit [Read error: Connection reset by peer] 20:22:53 -!- leo2007 [~leo@59.57.98.29] has quit [Ping timeout: 250 seconds] 20:39:46 -!- anRch [~markmilli@64.134.70.102] has quit [Quit: anRch] 20:55:46 -!- adamvh [~adamvh@pool-173-69-160-222.bltmmd.fios.verizon.net] has quit [Quit: adamvh] 23:08:47 -!- alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Quit: alms_] 23:09:34 alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 23:17:47 -!- alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Quit: alms_] 23:18:07 alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 23:28:20 -!- alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Quit: alms_] 23:37:52 alms_ [~alms_@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 23:48:58 -!- jdz [~jdz@host28-17-dynamic.8-87-r.retail.telecomitalia.it] has quit [Ping timeout: 240 seconds]