From MAILER-DAEMON Sun Aug 01 12:29:21 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OfbPd-0002lA-8c
	for mharc-bug-plotutils@gnu.org; Sun, 01 Aug 2010 12:29:21 -0400
Received: from [140.186.70.92] (port=49578 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OfbPU-000254-8t
	for bug-plotutils@gnu.org; Sun, 01 Aug 2010 12:29:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <spk121@yahoo.com>) id 1OfZsy-00037e-Lr
	for bug-plotutils@gnu.org; Sun, 01 Aug 2010 10:51:33 -0400
Received: from web37905.mail.mud.yahoo.com ([209.191.91.167]:46530)
	by eggs.gnu.org with smtp (Exim 4.69)
	(envelope-from <spk121@yahoo.com>) id 1OfZsy-00037V-AJ
	for bug-plotutils@gnu.org; Sun, 01 Aug 2010 10:51:32 -0400
Received: (qmail 15091 invoked by uid 60001); 1 Aug 2010 14:51:31 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1280674291; bh=rwGWY5PhN4XzvHDkzN+iZ3t+H550q1XLvtUoNMtDqsQ=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=3EyC17rBQAswJOctMK69EIN4aiLotcNYMF/6686WG7P80V+hpC6qXPWvkL8DLAgysrNTKKa/Ul5xb/mJqtLROvIpqtohxrW+FRpZANyROnoiPg691ZeAMijKNa6XT9DaEUp3L4fi2PpQGdyH1OBG1b43ErCkchS8aIBrirSk/co=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=NCJP5M/4niM7daQCLxMRrvGtlVB3XWos1It59ZnzUybD+nscsm7ciLMWY5LaNf7CR851y95YKryBE5CfU/i88z/nE74oppU1NHkd5+pqZt7hOcGwCN+z58dGuq2dYrVp4pllymUAzQ4/zdIXGurV1Wq3wvX8cONtJlbLlyEqyys=;
Message-ID: <106667.13352.qm@web37905.mail.mud.yahoo.com>
X-YMail-OSG: 103si0QVM1nTiFgQGRVQUXqW0ARTDoI678MuON2jSy4lp5o
	JToMoGk3oa256GrYIg6tk0jV7zTT0lsMLw2PdEQgIFxBcP4lXC6yenIo5QHe
	LwTUKGkVfYYzJPYrrAfzLqU1dNBI7E7nm9_bhHgIt9jBlw4RmrwfUglZA4lB
	gjEOPdhh0wrNbreZ9G8gYizpRCgDwVGFuGrXcOTh28Bnf8szGCAkKiYsAK3D
	JKnyG2JJAN_49K98_nLbHBrkgi13GYrHQ09zawWOh.dwlK0XIrXmDY_KO_i7
	pHIam6k.P_FXOXqlkpToJ9elHRPO4_K.346rjCT.jEtNLRbpUmTJYSRM2jzF
	2xLm2DXTH_D5MZz0-
Received: from [71.140.103.183] by web37905.mail.mud.yahoo.com via HTTP;
	Sun, 01 Aug 2010 07:51:30 PDT
X-Mailer: YahooMailRC/420.4 YahooMailWebService/0.8.105.279950
References: <48472.71.196.139.39.1280628822.squirrel@squirrelmail.math.arizona.edu>
Date: Sun, 1 Aug 2010 07:51:30 -0700 (PDT)
From: Mike Gran <spk121@yahoo.com>
To: rsm@math.arizona.edu, bug-plotutils@gnu.org
In-Reply-To: <48472.71.196.139.39.1280628822.squirrel@squirrelmail.math.arizona.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1)
Cc: 
Subject: [Bug-plotutils] Re: Guile bindings for Plotutils
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 16:29:19 -0000

> From: "rsm@math.arizona.edu" rsm@math.arizona.edu=0A=0A[...]=0A=0A> I ass=
ume that by plotutils bindings, you mean mostly libplot=0A> bindings?=A0 It=
's interesting to consider what a well-designed=0A> interface to libplot fr=
om Scheme or any other Lisp-like=0A> language would look like.=0A=0AI've go=
t very rough implementations of both libplot bindings and=0Agraph 'bindings=
'.=A0 For graph, I converted the main() into=0Aa Guile function, replaced t=
he getopt parsing with function=0Ainput parameters, and made the read_point=
 function in the reader=0Aread a value from a Scheme list instead of a file=
.=0A=0A> The last interface to a large graphics library from Lisp that=0A> =
I personally looked over was the interface to X11 from Franz=0A> Lisp, many=
 years ago.=A0 As I recall it wasn't very Lisp-like.=0A=0A[...]=0A=0A> Is t=
he projected guile interface likewise expected to be=0A> guile-like?=0A=0AO=
ur current hack isn't very Scheme-like.=A0 Something like this...=0A=0A(def=
ine gr (newpl "X" (current-output-port) (current-error-port))=0A(erase! gr)=
=0A(pencolorname! gr "red")=0A(ellipse! gr 1 2 3 4 5)=0A=0Aand so on.=0A=0A=
It would be closer to functional style to avoid having to modify=0Aa variab=
le.=A0 Something like this...=0A=0A(ellipse 1 2 3 4 5 (pencolorname "red" (=
erase (newpl))))=0A=0ABehind the scenes, that means each function returns a=
=0Anewly allocated, slightly modified copy=A0of the previous plPlotter,=0Aw=
hile the previous plPlotter is eventually freed by the garbage=0Acollector.=
=A0 Libplot itself=A0might have to be modified to=0Asupport this kind of pr=
ogramming.=0A=0AThe graph binding is more Scheme-like. A simple plot might=
=0Abe created like this=0A=0A(graph xdatavector ydatavector=0A=A0=A0=A0=A0=
=A0=A0 #:output-format "X"=0A=A0=A0=A0=A0=A0=A0 #:title "Plot")=0A=0A> Woul=
d it be reasonable for a guile interface to be distributed=0A> with plotuti=
ls, i.e., so that it is installed into the guile=0A> area by the plotutils =
automake/autoconf setup, if guile is=0A> available at plotutils compilation=
 and installation time?=0A=0AThat would be great.=0A=0A> =0A> --Rob=0A> =0A=
=0A-Mike


From MAILER-DAEMON Sun Aug 08 13:19:54 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Oi9XN-0007ST-3N
	for mharc-bug-plotutils@gnu.org; Sun, 08 Aug 2010 13:19:53 -0400
Received: from [140.186.70.92] (port=47004 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9XG-00018e-Fc
	for bug-plotutils@gnu.org; Sun, 08 Aug 2010 13:19:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <spk121@yahoo.com>) id 1OhlGf-0005Gn-Gw
	for bug-plotutils@gnu.org; Sat, 07 Aug 2010 11:25:04 -0400
Received: from web37908.mail.mud.yahoo.com ([209.191.91.170]:49103)
	by eggs.gnu.org with smtp (Exim 4.69)
	(envelope-from <spk121@yahoo.com>) id 1OhlGf-000577-8G
	for bug-plotutils@gnu.org; Sat, 07 Aug 2010 11:25:01 -0400
Received: (qmail 52573 invoked by uid 60001); 7 Aug 2010 15:24:11 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1281194650; bh=25sFZUrMuiylefldNWSIeV1+NnsYeoF+YEYcpDsAKSs=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=ynESYotGTc1iCHE5+YMkJomUmJadjVeAkGOorVnyxwVV930rv5g5K+pbZnJYN0t6KZEzZp2VG22R0xfKmUBJTk8whWTIS0KYwEm5HL55zXa7i6uF6BZb6W6anb7ouMlQJbWRNIv/jsu89cTizauOOL4FX3SIK/lVjdKmmUnTg8A=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=2nYeCSqJhqqRnXCk7wXhCpcGKV3ANPMD/S40iopOpKzTHJoeoYTipLkjdC83ObI6GO357JA71iWDoAALQZZ8FR3mPyh5HGTvbaIc54TTU+pQS4XjeW4TbI/4uD/P96UNe5IFHq+6gwaZVJ1/6XuGNnTI2A277eL3jmpCa36W6HU=;
Message-ID: <945919.51165.qm@web37908.mail.mud.yahoo.com>
X-YMail-OSG: NMLT03MVM1n5XTYpPSXG45JieMKlxrg9UlLrDZvS4c968MM
	dljVoQFuBPkfpF42pgrX5oiSFHRej1bGcyRTpst8SoWiXvO3WE0ZWlxckjvn
	zpm_wsQIgQo5KpqSUP8jiQuH9Tf0nUAXYgzZMst2KawNlPQQe2fTggyd5WvD
	fOJDJi7OgioJnC1JadnqqMoe46oBRm.a_DEuk.bfchCk7mLcda50eVEEkSwx
	5aud9cQLXVkrWwXLUsgBOI2zVl7HANRVlgyW8NWA0ht6AB4L9_ntmyOnvvTr
	xo_Oe6J2Riaxj7Rfu6EQbhp_pGB7V3pfrtVeq0WK5Y.7xS0k-
Received: from [71.140.101.186] by web37908.mail.mud.yahoo.com via HTTP;
	Sat, 07 Aug 2010 08:24:10 PDT
X-Mailer: YahooMailRC/459 YahooMailWebService/0.8.105.279950
References: <48472.71.196.139.39.1280628822.squirrel@squirrelmail.math.arizona.edu>
	<106667.13352.qm@web37905.mail.mud.yahoo.com>
Date: Sat, 7 Aug 2010 08:24:10 -0700 (PDT)
From: Mike Gran <spk121@yahoo.com>
To: bug-plotutils@gnu.org
In-Reply-To: <106667.13352.qm@web37905.mail.mud.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1)
Subject: [Bug-plotutils] Guile bindings for Plotutils
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Aug 2010 17:19:52 -0000

I'm prototyping code for Guile bindings of GNU Plotutils.  The curious can find 
them at http://github.com/spk121/guile-plotutils in the 'guile' directory.

There is a tiny bit of documentation in the wiki 
http://wiki.github.com/spk121/guile-plotutils/

At this point, the code builds and runs fine for me.

-Mike Gran



