Subject: Re: Lisp & C
From: Erik Naggum <>
Date: 2000/10/24
Newsgroups: comp.lang.lisp
Message-ID: <>

* Matias GUIJARRO <>
| I would like to know how to merge Lisp & C in a same program, I mean
| for example writting the interface in C and AI things in Lisp.

  If you seperate the functionality that well, you might benefit from
  not marrying (merging) the two together, but rather to use a looser
  coupling through an intermediate layer.  Several options exists for
  this, including CORBA, RPC, and rolling your own protocol, using
  socket communication.  You may find this easier on your design than
  to do extensive amounts of work in C-land while running a Lisp
  system, mostly because calls to C are usually assumed to be short
  special service calls.  If you are dealing with a more server-like
  approach to the AI stuff while the C subsystem is doing the (user)
  interface, you will probably benefit from a very loose coupling.

  Unfortunately, protocol design and implementation in C is much
  harder than in Lisp, so C programmers do not naturally gravitate
  towards those kinds of designs, but prefer expensive solutions as
  long as they are in some sort of library.

  I agree with everything you say, but I would
  attack to death your right to say it.
				-- Tom Stoppard