From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent Bernat Newsgroups: gmane.lisp.guile.user Subject: Re: guile and coroutines controlled from C Date: Thu, 02 Aug 2012 19:28:35 +0200 Message-ID: References: <877gtlvoc4.fsf@Kagami.home> <873946vjp5.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343928535 15166 80.91.229.3 (2 Aug 2012 17:28:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2012 17:28:55 +0000 (UTC) Cc: guile-user@gnu.org To: Ian Price Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Aug 02 19:28:54 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwzCb-00084U-Ed for guile-user@m.gmane.org; Thu, 02 Aug 2012 19:28:49 +0200 Original-Received: from localhost ([::1]:45064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwzCa-0004u1-NI for guile-user@m.gmane.org; Thu, 02 Aug 2012 13:28:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwzCW-0004qj-La for guile-user@gnu.org; Thu, 02 Aug 2012 13:28:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwzCV-00051s-LC for guile-user@gnu.org; Thu, 02 Aug 2012 13:28:44 -0400 Original-Received: from bart.luffy.cx ([78.47.78.131]:60265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwzCV-00051Z-AM for guile-user@gnu.org; Thu, 02 Aug 2012 13:28:43 -0400 Original-Received: from bart.luffy.cx (localhost [127.0.0.1]) by bart.luffy.cx (Postfix) with ESMTP id 1570814217; Thu, 2 Aug 2012 19:28:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=postfix; bh=184Ujanuw Vucc3HEnREpZaeQzEc=; b=PD02N2hTgpDZutCaAvHiDin7VYGHi4xQsHrRSHJ01 KLDyX+/wMJyenxqlyKhxKZS1wBRMQZbn00EQPHgEKOsB5ZnodYbOZcnAO9xlyG6F 5VzcO6ZRCXGxMTSUbuPhWsBpe0Kor7iXqn3+oTFOBEU14BMF0uBRO+ChASgHK6+D SQ= DomainKey-Signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=postfix; b=tV0 qjdfNz9bkm2/wehk45Fmup9JObnWFWvRrFzt/ZudHrlGimJRabEZTPHKjZd6QgF1 q05bb3bWTZsz4ZhXyo8dwncb6nfIYLFYM47Jw59i+aX2UXt5gligts90qT4QYzMD V6z5W27AJYcW9v803qEfkagYbfoq172io/jPYBhI= Original-Received: from neo.luffy.cx (freebox.luffy.cx [88.176.20.113]) by bart.luffy.cx (Postfix) with ESMTPS id B784814127; Thu, 2 Aug 2012 19:28:38 +0200 (CEST) Original-Received: by neo.luffy.cx (Postfix, from userid 500) id ACF521B6; Thu, 2 Aug 2012 19:28:35 +0200 (CEST) In-Reply-To: <873946vjp5.fsf@Kagami.home> (Ian Price's message of "Wed, 01 Aug 2012 14:13:42 +0100") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 78.47.78.131 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9543 Archived-At: =E2=9D=A6 1 ao=C3=BBt 2012 15:13 CEST, Ian Price =C2=A0: >> Your example is great! It fits exactly what I need. Since I am still >> pretty new, I need some time to understand each line but this seems a >> very good start for what I want to do. I just need to translate some >> parts in C since the event loop is here. From what I understand, only >> the `run` function needs to be moved in C. The remaining of the code can >> be hidden in functions or macros (but it would help if the `yield` part >> could be translated in C). > Well, it all depends on the exact API you want to provide/code to. So, [...] Ian, Thanks for your replies! Now, I just need some time to process all that. I'll come back here once I am done (with some code I hope)! --=20 panic("Attempted to kill the idle task!"); 2.2.16 /usr/src/linux/kernel/exit.c