From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesse Marlin Newsgroups: gmane.lisp.guile.devel Subject: Questions about embedding Guile Date: Tue, 13 Aug 2002 16:38:52 -0400 Sender: guile-devel-admin@gnu.org Message-ID: <15705.28252.705492.490078@bass.compgen.com> Reply-To: jlm@compgen.com NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1029271094 9757 127.0.0.1 (13 Aug 2002 20:38:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2002 20:38:14 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17eiQe-0002X9-00 for ; Tue, 13 Aug 2002 22:38:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eiRW-00007Q-00; Tue, 13 Aug 2002 16:39:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17eiRL-00006o-00 for guile-devel@gnu.org; Tue, 13 Aug 2002 16:38:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17eiRK-00006c-00 for guile-devel@gnu.org; Tue, 13 Aug 2002 16:38:55 -0400 Original-Received: from [158.155.2.6] (helo=mx.compgen.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eiRK-00006T-00 for guile-devel@gnu.org; Tue, 13 Aug 2002 16:38:54 -0400 Original-Received: from bass.compgen.com.compgen.com (IDENT:jlm@bass.compgen.com [158.155.4.59]) by mx.compgen.com (8.11.6/8.11.6) with ESMTP id g7DKcqw19340 for ; Tue, 13 Aug 2002 16:38:53 -0400 Original-To: Guile Devel X-Mailer: VM 6.89 under 21.1 (patch 8) "Bryce Canyon" XEmacs Lucid X-Face: FbxF/xY!V>vZ.$FXyN9:*'ZV?cib-\o'fWz2=}_Pb!#.JveZp_T18ZKC5T0RXNN=~_HPOF List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1072 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1072 I am not sure if this is the right list for this kind of question. I am considering embedding guile in an application, and have some questions about doing this. The application will be using GTK. I see three possible ways of doing this one of which may not be a way at all: 1. Using GTK's event loop for control and processing guile events either one at a time or a glob. 2. Using Guile's event loop (or whatever it is referred to) and processing GTK events either one at a time or a glob. 3. Run Guile in a seperate thread. I am pretty sure 2 is possible and 1 is not. I do not see a way in Guile to control the flow of the interpreter. GTK does provide such a mechanism so 2 should be possible. 3 seems possible but may increase the complexity of the design. The application will have certain drawing primitives which I wish to be user extendable using Guile, and possibly also extending the UI as well. What would be ideal is to have my own event loop something like: while (1) { /* Process GTK events */ gtk_main_iteration (); /* Process guile events */ gh_process_events (); } Is this possible or does anybody have any suggestions for doing this? Thanks for any help. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel