From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: Updated Guile Tutorial Date: Sun, 20 Sep 2009 17:42:59 +0100 Message-ID: <87pr9lsh2k.fsf@ossau.uklinux.net> References: <4A7B223E.6050501@domob.eu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253465001 16474 80.91.229.12 (20 Sep 2009 16:43:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Sep 2009 16:43:21 +0000 (UTC) Cc: Daniel Kraft , guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Sep 20 18:43:14 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MpPVJ-0001ec-NR for guile-devel@m.gmane.org; Sun, 20 Sep 2009 18:43:13 +0200 Original-Received: from localhost ([127.0.0.1]:43009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpPVI-0007Er-PH for guile-devel@m.gmane.org; Sun, 20 Sep 2009 12:43:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpPVC-0007Ck-Fg for guile-devel@gnu.org; Sun, 20 Sep 2009 12:43:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MpPV8-00078B-1A for guile-devel@gnu.org; Sun, 20 Sep 2009 12:43:06 -0400 Original-Received: from [199.232.76.173] (port=34331 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpPV7-00077u-RR for guile-devel@gnu.org; Sun, 20 Sep 2009 12:43:01 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:38197) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MpPV7-0008Hv-EV for guile-devel@gnu.org; Sun, 20 Sep 2009 12:43:01 -0400 Original-Received: from arudy (host86-147-112-99.range86-147.btcentralplus.com [86.147.112.99]) by mail3.uklinux.net (Postfix) with ESMTP id 0FCB71F665C; Sun, 20 Sep 2009 17:43:01 +0100 (BST) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 32D3438023; Sun, 20 Sep 2009 17:43:00 +0100 (BST) In-Reply-To: (Andy Wingo's message of "Thu, 13 Aug 2009 00:27:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9360 Archived-At: Andy Wingo writes: > 4) If you're forking to run gnuplot, why not do so from Scheme? Coincidentally, I recently wrote this: (define (gnuplot file-name plot-command) (let ((pipe (open-output-pipe "gnuplot -"))) (format pipe "\ set terminal png set output '~a' ~a quit " file-name plot-command) (close-pipe pipe)) (system (string-append "display " file-name))) Example usage: (gnuplot "table1.png" "plot 'table1.txt' using 1:6 with lines, 4*x/log(2*x), 4*x/log(x)") Daniel, if you feel like including this in the tutorial as an alternative to the C code, please do so. > Anyway, IMO, FWIW, etc. If you don't reply, I'll probably just commit > your tutorial more-or-less as-is to the repo :) Although the tutorial is now on the web, I still haven't done anything as regards committing it to Git. That's not because I think we shouldn't; it just that I haven't pondered how best to do it yet. Neil