From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zajcev Evgeny Newsgroups: gmane.emacs.devel Subject: Re: FFI Date: Mon, 19 Apr 2010 10:39:37 +0400 Message-ID: <868w8kosie.fsf@gmail.com> References: <87sk6tonv8.fsf@mid.deneb.enyo.de> <20100418053925.GA7294@tomas> <878w8lb2s0.fsf_-_@mail.jurta.org> <8739yt9nks.fsf@mid.deneb.enyo.de> <878w8k8q57.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271660184 24563 80.91.229.12 (19 Apr 2010 06:56:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 06:56:24 +0000 (UTC) Cc: Juri Linkov , joakim@verona.se, emacs-devel@gnu.org To: Florian Weimer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 19 08:56:23 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O3ku6-0002Zu-2V for ged-emacs-devel@m.gmane.org; Mon, 19 Apr 2010 08:56:22 +0200 Original-Received: from localhost ([127.0.0.1]:58627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3ku5-0008QW-EZ for ged-emacs-devel@m.gmane.org; Mon, 19 Apr 2010 02:56:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3kdo-0003n1-Ab for emacs-devel@gnu.org; Mon, 19 Apr 2010 02:39:32 -0400 Original-Received: from [140.186.70.92] (port=44448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3kdm-0003md-VW for emacs-devel@gnu.org; Mon, 19 Apr 2010 02:39:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3kdl-0006EK-6e for emacs-devel@gnu.org; Mon, 19 Apr 2010 02:39:30 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.155]:4148) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3kdk-0006E2-Nc for emacs-devel@gnu.org; Mon, 19 Apr 2010 02:39:29 -0400 Original-Received: by fg-out-1718.google.com with SMTP id e21so1719504fga.12 for ; Sun, 18 Apr 2010 23:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:to:cc:subject :references:from:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=l6Dtbpgu7mU9dCra+UyxOG+osfqp0w/sTHl5s962aDw=; b=i93lZRAMUoDTUzDGhljwKoaKxLZWgFT21YNb52SwAx7gt9Wd4z+6WzZ8jz66VmKeHn YIacSDIKdAsIf91Wla6CchomL2cPCDkLdtdL8T6HfwuhpSJPhlySc1BuqqgMRuR7ofps 30LcIAXwXIaVRTNaPMUGBT+odWKdH6sHWyY54= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:from:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=cdu3DAYoNk06CEcPKKND8vCiswS03w/L2qvGfdUhlid0SxjTU3HB/pg7XaVdqgkDrm 43W3P3Tz2mlU/mu1OwN5zFe+sQ2v3GAUR6o8/kBFkT9yVC/zfV4Iidi7kaQCuf3cAynn JdcofO/8kgUFEVk87QA2/piWD3y4swZoe6bQ8= Original-Received: by 10.87.1.2 with SMTP id d2mr3676364fgi.34.1271659167289; Sun, 18 Apr 2010 23:39:27 -0700 (PDT) Original-Received: from lg ([213.232.195.233]) by mx.google.com with ESMTPS id d8sm8441834fga.11.2010.04.18.23.39.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Apr 2010 23:39:25 -0700 (PDT) Original-Received: by lg (sSMTP sendmail emulation); Mon, 19 Apr 2010 10:39:37 +0400 In-Reply-To: <878w8k8q57.fsf@mid.deneb.enyo.de> (Florian Weimer's message of "Sun, 18 Apr 2010 22:25:08 +0200") User-Agent: Gnus/5.1008 (Gnus v5.10.8) SXEmacs/22.1.12 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 19 Apr 2010 02:56:16 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123866 Archived-At: Florian Weimer writes: > * Zajcev Evgeny: > >> As you can see there are only strings, and numbers (boolean type is >> done via dinamic type/value translators implemented in ffi) > > Numbers are problematic because SQLite can return 64 bit signed > integers. AFAICS, those are readily represented on SXEmacs, but not > on Emacs. that won't be a problem to get it working after all, you can represent ffi data on lisp level as you want it to, using types translators. Types translator is lisp level thingie.. my interest is to have compatible FFI in GNU Emacs and (S)XEmacs (at least on high level, read lisp level), so two communities could reuse bindings. SXEmacs already have working and pretty tested interfaces to: - Xlib - curl - sqlite - Wand - libgcrypt and few others. Wand bindings enabled us to implement pretty astonishing image viewer/editor inside SXEmacs, it can even do red-eye reduction on production level and mordern liquid rescale :) - to get more about, it click on: http://sxemacs-en.blogspot.com/2009/12/wand-mode-image-viewer.html and http://sxemacs-en.blogspot.com/2009/12/wand-mode-new-features_27.html bindings implementations mostly does not use any SXEmacs specials, the code is very common and I'm pretty sure it can be used in GNU Emacs without much problems. We are also working on some complex, but interesting bindings to libtelepathy in order to create tool for multiprotocol IM and collaborative editing in SXEmacs. This is pretty time consuming task and we surely need a help, if GNU Emacs community will have same FFI API then we could unite our efforts to enhance Emacsen.. As I noticed before, I can port and maintain FFI implementation for GNU Emacs, but i need some kind of guaranties that community will accept it, so my work won't be a waste of time.. thanks -- lg