all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Parrone <marc0@autistici.org>
Subject: Re: SDL (Simple Directmedia Layer) for Emacs?
Date: Tue, 09 Mar 2004 21:09:39 GMT	[thread overview]
Message-ID: <87znapbut3.fsf@marc0.dyndns.org> (raw)
In-Reply-To: mailman.1290.1078854549.340.help-gnu-emacs@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1394 bytes --]

Bijan Soleymani on Fri, 05 Mar 2004 11:13:38 -0500 writes:

> "Joe Casadonte" <jcasadonte@northbound-train.com> 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) <marc0@autistici.org> [0x45070AD6]

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

      parent reply	other threads:[~2004-03-09 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-29 14:10 SDL (Simple Directmedia Layer) for Emacs? Joe Casadonte
2004-03-05 16:13 ` Bijan Soleymani
     [not found] ` <mailman.1290.1078854549.340.help-gnu-emacs@gnu.org>
2004-03-09 21:09   ` Marco Parrone [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87znapbut3.fsf@marc0.dyndns.org \
    --to=marc0@autistici.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.