From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: Guile continuations Date: Fri, 21 Aug 2009 18:53:29 -0500 Message-ID: <3ae3aa420908211653k78e79c9bsb321acfbabbae663@mail.gmail.com> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250898827 11530 80.91.229.12 (21 Aug 2009 23:53:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 23:53:47 +0000 (UTC) To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Aug 22 01:53:40 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MedvP-0000AY-7T for guile-user@m.gmane.org; Sat, 22 Aug 2009 01:53:39 +0200 Original-Received: from localhost ([127.0.0.1]:47954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MedvO-0008E6-Q7 for guile-user@m.gmane.org; Fri, 21 Aug 2009 19:53:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MedvL-0008Dp-9F for guile-user@gnu.org; Fri, 21 Aug 2009 19:53:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MedvG-0008CL-PJ for guile-user@gnu.org; Fri, 21 Aug 2009 19:53:34 -0400 Original-Received: from [199.232.76.173] (port=51422 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MedvG-0008CI-MJ for guile-user@gnu.org; Fri, 21 Aug 2009 19:53:30 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.247]:25638) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MedvG-0007j5-An for guile-user@gnu.org; Fri, 21 Aug 2009 19:53:30 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so424459ana.21 for ; Fri, 21 Aug 2009 16:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=kauMwq6P4Z6wOp2uau2TqnyoaOTwSuvQN4kLquO8jnw=; b=LYyAM/Q19jMU40cE6XQmMSoSTvoDxYOyRJtVpS8erdFWDr3e9hop+8WS84WyiwYI59 O2dzxSqaI8rUm9JKon2055pdIrfjcUYD5QSXPEh30xZktAPXRioPU2pLDh7pk78P6EMI xPMO9tco8asbqYq6V6MZ5EpYEqln7BM+Z1/tI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=QGqDGC10n9TOJg4HjitePBT4E2y7Zmv3Ack/e/GC7g+ihCg4UspXC926gQ04akvABK 7fEK5hj/kdLZz3oL7OUUiSUAGBOu3IBUbe1E7jyRUiVlcyEpP+8lDQUS+A0Lbl4MfkLW 8tSjSTwS1BqjdWyBXfqScrU7Dods0afB16WZY= Original-Received: by 10.100.51.4 with SMTP id y4mr1829468any.191.1250898809088; Fri, 21 Aug 2009 16:53:29 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7415 Archived-At: Hi, I'm trying to find an elegant way of multi-threading between C and scheme code, without actually using threads... Basically, I want to do some scheme stuff for a while, break off, run some C code for a while, then resume the scheme execution where I left off. I can acheive this by running in two C posix threads, and calling scm_eval in one of the threads. Is there a different (elegant, non-hacky) way of doing this, without threads? --linas