From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: Dynamic FFI vs Static FFI (was Re: About Guile crypto support) Date: Fri, 15 Feb 2013 21:34:21 +0800 Organization: HFG Message-ID: <1360935261.2535.11.camel@Renee-desktop.suse> References: <1359896146.2754.19.camel@Renee-desktop.suse> <871ucvof60.fsf@gnu.org> <1360032192.2754.61.camel@Renee-desktop.suse> <87mwvisqwj.fsf@gnu.org> <878v6yojxg.fsf@gnu.org> <87sj55bjxz.fsf@gnu.org> <1360576299.5068.20.camel@Renee-desktop.suse> <87pq06x9ms.fsf_-_@tines.lan> <87fw11wsef.fsf@gnu.org> <87halhxuey.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360935283 18990 80.91.229.3 (15 Feb 2013 13:34:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 13:34:43 +0000 (UTC) Cc: guile-devel@gnu.org To: William ML Leslie Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Feb 15 14:35:05 2013 Return-path: Envelope-to: guile-devel@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 1U6LRQ-0005LP-Ju for guile-devel@m.gmane.org; Fri, 15 Feb 2013 14:35:04 +0100 Original-Received: from localhost ([::1]:58883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6LR6-0007aT-DT for guile-devel@m.gmane.org; Fri, 15 Feb 2013 08:34:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6LQy-0007aH-Mw for guile-devel@gnu.org; Fri, 15 Feb 2013 08:34:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6LQu-0006p2-CL for guile-devel@gnu.org; Fri, 15 Feb 2013 08:34:36 -0500 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:43238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6LQu-0006ou-5g for guile-devel@gnu.org; Fri, 15 Feb 2013 08:34:32 -0500 Original-Received: by mail-pb0-f41.google.com with SMTP id um15so614983pbc.14 for ; Fri, 15 Feb 2013 05:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:in-reply-to :references:organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=eey/V6p2arvTakoiTwT1dTYH3SGuZ5J7PWLSv70Q214=; b=nJmQ7kc0GiIVUayo9vqOvm2BK/EAOqGcVSZ7j7jVrGHxULxuEzkJFl9qTUG2qOnkss 6GeIq1CD0fsl46mUVQejfbp6O+zqr0oD0wNN0ppxpnyXcotS14iov+LStD7bTmfKp8ua iO7wmbsTUWJklRDqFCm7Eb/OU/0XGa9rqInUh8txNf50tIoxa2tAhVZhzvsp99/fl3aV 2i+YbeTWwVVzTPwd/61H28ICMknoZz3QtGxjH1D7TMZywKDD4UQbAuAdnd1coQ3rIVI1 0kF+8uZX5x6IfCA6h8Ivse749euvSN+cwx0wKnz7IscSx1lCKtehfzov8vUin3Id5vYn IniQ== X-Received: by 10.68.197.4 with SMTP id iq4mr5922883pbc.96.1360935271181; Fri, 15 Feb 2013 05:34:31 -0800 (PST) Original-Received: from [192.168.100.104] ([59.40.125.103]) by mx.google.com with ESMTPS id j7sm433573pay.10.2013.02.15.05.34.26 (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 15 Feb 2013 05:34:29 -0800 (PST) In-Reply-To: X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.41 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15747 Archived-At: On Thu, 2013-02-14 at 18:21 +1100, William ML Leslie wrote: > On 13 February 2013 05:24, Mark H Weaver wrote: > > Okay, but here I'm using "Static FFI" to mean something very different > > than the C API: I'm talking about a pure scheme-based API that would be > > quite similar to the API our current dynamic FFI, except that a lot of > > the work would be done at compilation time (probably during macro > > expansion). > > Maybe even something like LuaJIT FFI or python's CFFI - that can parse > C code at compile time to produce the data structures for the dynamic > FFI? > I think that would be better. The reason why I don't use FFI is that we lack of convenient C struct parsing mechanism. Though it's not so hard to implement, designing proper APIs maybe take sometime. Anyway, I'd like to see a prototype, or maybe I could provide a naive one. ;-)