From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marco Parrone Newsgroups: gmane.emacs.help Subject: Re: SDL (Simple Directmedia Layer) for Emacs? Date: Tue, 09 Mar 2004 21:09:39 GMT Organization: none Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87znapbut3.fsf@marc0.dyndns.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0617992048==" X-Trace: sea.gmane.org 1079036308 485 80.91.224.253 (11 Mar 2004 20:18:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 20:18:28 +0000 (UTC) Keywords: Emacs, Guile, SDL Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 11 21:18:20 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1WdI-00040j-00 for ; Thu, 11 Mar 2004 21:18:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1Vzy-0002NY-10 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 14:37:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Language: en X-Accept-Language: it, en X-Country: Italy X-Attribution: marc0 X-Face: ]KIe+0@lNbQo2y\ey;]!*LKsR-0$V737yt[BnA*)c,)gu>IH>S}:"PPNWkV<}[ usLa_gJyB!BRUEC!~5OY;:`k1Tcv2g2<0|,'RI}ZhnPpaXC.,L^y?}R&FfrRiLE*b+AE, JY/a! `/ZN{E`NgLO_QV#s`!,#M%ppv@mcIb`K^/1``d^=o"AvteN1nNFyzU List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Mime-version: 1.0 Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17539 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17539 --===============0617992048== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Bijan Soleymani on Fri, 05 Mar 2004 11:13:38 -0500 writes: > "Joe Casadonte" writes: > >> but I have no idea how to integrate that into Emacs. Which leads to >> the second question: how do you hook in external libraries (.so for >> Unix/Linux, .dll for Windows) via elisp? > > You don't :) > > AFAIK you have to recompile emacs, to add that sort of code to the > C base of emacs. GNU Guile is good at this sort of things (you can put the SDL wrapper into a module, and use it from Guile Scheme). For example if you use Guile you don't have to maintain your SDL-enabled fork of Guile syncronized with the upstream Guile, you just maintain your SDL wrapper module. I think that a good way to interface to SDL from Emacs is to write two separate programs: the non-elisp program will access to the SDL library and provide all the convenient specialized maybe high-level functions for the elisp program, and the elisp program will interface to the specialized functions of the non-elisp program using an inferior process (for example see `C-h f run-scheme') or a TCP stream (for example the `smtpmail-via-smtp' function uses `open-network-stream' function). Guile Scheme seems to be a good choiche for the non-elisp program. However I've not experience in doing this stuff, these are just ideas. -- Marco Parrone (marc0) [0x45070AD6] --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQBATjBPi2MRZ0UHCtYRAuJaAJ41D5FUG/2W24pdwupvJWXdCu1LXQCgiOXU 22fElGXSS+cD8f/9hH6nW+w= =UpI8 -----END PGP SIGNATURE----- --=-=-=-- --===============0617992048== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs --===============0617992048==--