Re: Guile, Emacs, and smartphones

2011-06-18 Thread Joel James Adamson
Mike Gran writes: > Hi- > > So, it is time for me to buy a new phone. >   > Has anyone run Emacs or Guile on their phone? >   > (Somehow I doubt there is a phone keyboard that'll let me type > +). I have not tried any; but the question I ask is "which Emacs features do you want?" One of my main

Re: a straight way to testing the own scheme capabilities?

2011-01-21 Thread Joel James Adamson
maledetto writes: > On Fri, 21 Jan 2011 09:07:49 -0500 > Joel James Adamson wrote: > >> Thien-Thi Nguyen writes: >> >> > () maledetto >> > () Thu, 20 Jan 2011 23:12:25 +0100 >> > >> >aren't there some tests out there? >>

Re: a straight way to testing the own scheme capabilities?

2011-01-21 Thread Joel James Adamson
Thien-Thi Nguyen writes: > () maledetto > () Thu, 20 Jan 2011 23:12:25 +0100 > >aren't there some tests out there? > > What would such a test look like? To the OP: Can you be more specific about what you want? I suggest reading The Little Schemer[1] if you want to really understand the con

Re: List functions

2010-12-01 Thread Joel James Adamson
Hans Aberg writes: > It seems natural to translate (f, g) x into ((f g) x), and () x into > (() x), but I'm not sure if the lists (f g) and () can be made acting > as functions this way. (f g) would evaluate as a composition as long as f takes a procedure as an argument and returns a function th

Re: Unbound variable: quote

2010-09-24 Thread Joel James Adamson
Andy Wingo writes: > On Thu 23 Sep 2010 18:19, Joel James Adamson writes: > >> Why would `quote' be redefined? What's going on here and how can I fix it? > > Perhaps the module that you are calling use-modules in has no binding > for `quote'. Is there an

Unbound variable: quote

2010-09-23 Thread Joel James Adamson
Hello, I'm trying to load a file at the REPL that loads some modules from a subdirectory then defines a function. At reading my use-modules statements, I get the following error: guile> %load-path ("/home/joel/Public/src/age_dep/sim/trunk" "/usr/share/guile/site" "/usr/share/guile/1.8" "/usr/sh

Re: Give up Guile

2010-09-06 Thread Joel James Adamson
Marek Kubica writes: > On Thu, 02 Sep 2010 14:14:24 -0400 > Joel James Adamson wrote: > >> > After several day's investigating Guile, I decide to give up and >> > return to PLT-scheme/MIT-scheme. The experience is so frustrating. >> >> And why ar

Re: Give up Guile

2010-09-02 Thread Joel James Adamson
Shenli Zhu writes: > Hi Guile hackers, > > After several day's investigating Guile, I decide to give up and return to > PLT-scheme/MIT-scheme. The experience is so frustrating. And why are you telling us??? Joel -- Joel J. Adamson Servedio Lab University of North Carolina at Chapel Hill FSF M

Re: searching book tips

2010-08-30 Thread Joel James Adamson
anog...@gmx.at writes: > Thank you so much for these nice links. > >> We learn C# at school... and I'd like to write beautiful free software. > > I should have written: "We learn C# at school... but I'd like to write > beautiful free software." Right, well C# may or may not be a good language to

Re: Plotting in Guile

2010-08-18 Thread Joel James Adamson
Andy Wingo writes: > Hi Joel, > > On Wed 28 Jul 2010 08:21, Joel James Adamson writes: > >> I am using Guile to iterate equations and produce trajectories from >> those iterations. My current strategy is to redirect the stdout to a >> file and then use GNUPL

Re: Plotting in Guile

2010-08-04 Thread Joel James Adamson
Mike Gran writes: >> From: Joel James Adamson >>> Mike Gran writes: >> > >> > >> > It is at http://github.com/spk121/guile-plotutils > >> >> Can we set up something on github?  As soon as it's ready for Savannah >> we can

Re: Plotting in Guile

2010-08-04 Thread Joel James Adamson
Mike Gran writes: >>>I'll throw up the code somewhere temporary but hackable, like github, > >>>tomorrow. >> >> Can't wait... >> > > It is at http://github.com/spk121/guile-plotutils > > We're probably boring the guile-users lists at this point, so you could > mail me directly, if you s

Re: Plotting in Guile

2010-07-29 Thread Joel James Adamson
Thien-Thi Nguyen writes: > () Joel James Adamson > () Thu, 29 Jul 2010 10:59:33 -0400 > >A small C program could act as a daemon that feeds instructions to >GNUPLOT through a pipe, but the daemon could be accessed through a >socket. > > This sounds like a go

Re: Plotting in Guile

2010-07-29 Thread Joel James Adamson
Thien-Thi Nguyen writes: > () Joel James Adamson > () Thu, 29 Jul 2010 10:52:25 -0400 > >I would definitely work on that (if you're inviting me). > > If All Goes Well (i.e., Mike Gran makes a repo public under nice > license and you finangle a savannah account i

Re: Plotting in Guile

2010-07-29 Thread Joel James Adamson
Thien-Thi Nguyen writes: > () Joel James Adamson > () Wed, 28 Jul 2010 14:43:49 -0400 > >I just have to figure out how to use pipes... > > Have you looked at the friendly manual? Not YET. I was just reiterating that I'm a newbie to anything involving IPC and t

Re: Plotting in Guile

2010-07-29 Thread Joel James Adamson
Thien-Thi Nguyen writes: > () Mike Gran > () Wed, 28 Jul 2010 09:16:21 -0700 (PDT) > >Guile binding of GNU Plotutils >[...] >planned that someday I'd clean it up and making it available > > I recently (last few months) got some practice adding Guile-foo projects > to Savannah. Altho

Re: Plotting in Guile

2010-07-28 Thread Joel James Adamson
Hans Aberg writes: > Guile has both scm_pipe() to use in a C program, and pipe to use in > Scheme code. So you might try calling it directly. If you turn GNUPLOT > into a library, you can link it directly to Guile. There was such a library a few years back, but it is now out of synch with the ma

Re: Plotting in Guile

2010-07-28 Thread Joel James Adamson
Linas Vepstas writes: > On 28 July 2010 12:54, Joel James Adamson wrote: >> Hans Aberg writes: >>> >>> GNUPLOT seems to require pipes, if not using a file. >> >> The question from the IPC newbie (myself): is there something wrong with >> pipes?  I

Re: Plotting in Guile

2010-07-28 Thread Joel James Adamson
Mike Gran writes: >> > For my own personal use, I have a Guile binding of GNU Plotutils.  I had >> > planned that someday I'd clean it up and making it available.  It has most >> > of the functionality of the GNU Plotutils 'graph' program.  >> >> My questions: >> 1.  What is the status of Plotu

Re: Plotting in Guile

2010-07-28 Thread Joel James Adamson
Hans Aberg writes: > On 28 Jul 2010, at 17:21, Joel James Adamson wrote: > >> I am using Guile to iterate equations and produce trajectories from >> those iterations. My current strategy is to redirect the stdout to a >> file and then use GNUPLOT to plot the trajectorie

Re: Plotting in Guile

2010-07-28 Thread Joel James Adamson
Mike Gran writes: >> Hello, >> >> 1. Is there is a plotting extension for guile, or a library that I could >> use in such a way?  The advantage of GNUPLOT is that it can produce many >> different kinds of output, including SVG and Pstricks code.  If a >> plotting module exists, I haven't found i

Plotting in Guile

2010-07-28 Thread Joel James Adamson
Hello, I am using Guile to iterate equations and produce trajectories from those iterations. My current strategy is to redirect the stdout to a file and then use GNUPLOT to plot the trajectories as parametric plots. However, I would like to contain everything within one program, to keep Makefile

Re: Loading a module from the current-working-directory

2010-07-22 Thread Joel James Adamson
Thien-Thi Nguyen writes: > () Joel James Adamson > () Wed, 21 Jul 2010 16:27:54 -0400 > >(define-module (popgen popgen)) > >[...] > >guile> (set! %load-path (cons (getcwd) %load-path)) >guile> (use-modules (popgen popgen)) > >[...] &

Loading a module from the current-working-directory

2010-07-21 Thread Joel James Adamson
Hello, I've written a simple module: (define-module (popgen popgen)) (export popgen) (use-modules (ice-9 format)) (define *numprec* "~10,8,,,0f ") (define *numformat* (string-append "~{" *numprec* "~}~%")) (define (popgen popfun data) ;; POPFUN is a function that evaluates the vector DATA t