From afc@aber.ac.uk Tue May 6 12:19:53 2003 From: afc@aber.ac.uk (Amanda Clare) Date: Tue, 06 May 2003 12:19:53 +0100 Subject: [C2hs] swig Message-ID: <3EB79A59.8080105@aber.ac.uk> Are there any future plans to go with the SWIG group http://www.swig.org/ for interfacing with C code? They claim to support Perl, Python, Tcl/Tk, Ruby, Guile, MzScheme, Java, OCAML, CHICKEN, and C#, and as I've understood, you just run something like "swig -python" on your header file to create everything you need to interface C to Python. At the moment, I'd like to generate Haskell access to all the functions and enums defined in the Oracle database C library libsqlora8 http://www.poitschke.de/libsqlora8/. Something like SWIG sounds ideal for that. C2hs looks good. But somehow, if I do it in c2hs I have to read and understand all about the ffi, stable pointers and foreign pointers etc. Is the problem just too complicated in Haskell to automate completely? Amanda From v163@163.com Tue May 6 20:37:06 2003 From: v163@163.com (v163@163.com) Date: Wed, 7 May 2003 03:37:06 +0800 Subject: [C2hs] (no subject) Message-ID: <20030506193622.97B1A421EEB@www.haskell.org>
From jens@juhp.dyndns.org Wed May 7 01:33:10 2003 From: jens@juhp.dyndns.org (Jens Petersen) Date: 07 May 2003 09:33:10 +0900 Subject: [C2hs] swig In-Reply-To: <3EB79A59.8080105@aber.ac.uk> References: <3EB79A59.8080105@aber.ac.uk> Message-ID: <1052267590.1146.37.camel@smile.house> 2003年05月06日(火)の20時19分に Amanda Clare 曰く: > At the moment, I'd like to generate Haskell access to all the functions > and enums defined in the Oracle database C library libsqlora8 > http://www.poitschke.de/libsqlora8/. > Something like SWIG sounds ideal for that. C2hs looks good. But somehow, > if I do it in c2hs I have to read and understand all about the ffi, > stable pointers and foreign pointers etc. Is the problem just too > complicated in Haskell to automate completely? Interesting question, since for a while I've been dreaming about c2hs being able to do bindings automatically. Jens From chak@cse.unsw.edu.au Thu May 8 08:52:33 2003 From: chak@cse.unsw.edu.au (Manuel M T Chakravarty) Date: Thu, 08 May 2003 17:52:33 +1000 (EST) Subject: [C2hs] swig In-Reply-To: <3EB79A59.8080105@aber.ac.uk> References: <3EB79A59.8080105@aber.ac.uk> Message-ID: <20030508.175233.185252243.chak@cse.unsw.edu.au> Amanda Clare
籾Ϣɲ㣬½⣡ɾһ£ллҵ֧֣ ƽֹ V7.6 ֵ֧//Զ
ƽֹרҵֿãԽ
ҵλԲֿճʵּܻӦ ܴƷ
ɹۡװжһֿͳƱܣIJֿ硣ȨܣΪͬûòͬȨޡƼ۲ƶȨ
˾߿ҵǵͨҪӦϵͳĻϽжοݹȡֿáҪֱӽͨ绰ʼǣ֤ҪǽŻݵļ۸ΪõIJƷ ӭѯע⣮벻Ҫʱʼյţ 绰ѯ ƽ ϵˣ 绰0536-2909116 QQ:5056114 |
YQohӫ~TЦhttp://tw.a-maker.com
AȫHc @AȱMuG(02)27735168 |