Arithmetic evaluator for Guile

2010-03-20 Thread No Itisnt
Here's a little expression evaluator for Guile 1.9 using the new bytecode compiler. It does arithmetic, exponentiation, modulos, and equality tests. See the tests at the bottom for example expressions. This is probably the most dense Scheme program I've written and I would really appreciate a criti

char-set-contains? and #

2010-05-27 Thread No Itisnt
It's getting pretty annoying that char-set-contains? rejects #. Is there a way around this without wrapping it myself? Is that behavior intended? Because to me, it seems like it'd be more reasonable to return #f when passed #.

Re: char-set-contains? and #

2010-05-28 Thread No Itisnt
R5RS specifies that character predicates should return #f, and Guile's character predicates are implemented in terms of char-set-contains? R6RS says the same for char-set-contains? The reason it bothers me is because it makes it cumbersome to deal with input from a port. Case in point: > $ grep "

Re: Question about how to get the value of function

2010-05-31 Thread No Itisnt
>>(define y '(1 2 3 4)) >>(define dt 1) >>(define foo >   (lambda (t) (do ((i 0 (+ i 1))) ((> i 3)) (if (and (>= t 0) (and (>= t > (* i dt)) (< t (* (+ i 1) dt (list-ref y i) #f DO does not return its body. It can be a little confusing. http://www.schemers.org/Documents/Standards/R5RS

Re: [r6rs] misc problems with the cache of precompiled files

2010-06-14 Thread No Itisnt
> There are some bugs still around regarding the compilation cache and > r6rs modules -- or specifically, with versioned modules, which r6rs > modules are. We're still working that one out and hpe to have something > in a couple days. Is that the issue I bumped into with (rnrs control)?

Re: [r6rs] misc problems with the cache of precompiled files

2010-06-15 Thread No Itisnt
On Mon, Jun 14, 2010 at 6:00 PM, Andy Wingo wrote: > On Mon 14 Jun 2010 23:56, No Itisnt writes: > >>> There are some bugs still around regarding the compilation cache and >>> r6rs modules -- or specifically, with versioned modules, which r6rs >>> modules are.

Re: [r6rs] misc problems with the cache of precompiled files

2010-06-15 Thread No Itisnt
On Tue, Jun 15, 2010 at 5:10 PM, Andy Wingo wrote: > On Tue 15 Jun 2010 23:41, No Itisnt writes: > >> On Mon, Jun 14, 2010 at 6:00 PM, Andy Wingo wrote: >>> On Mon 14 Jun 2010 23:56, No Itisnt writes: >>> >>>>> There are some bugs still around r

Re: Can guile scripts be compiled?

2010-06-16 Thread No Itisnt
On Wed, Jun 16, 2010 at 5:00 AM, Cecil Westerhof wrote: > I just found out about guile. I am thinking about using it for > scripting. Because of this I was wondering if guile scripts can be > compiled for faster executing? Guile was not compiled until recently. Most distributions only have up to

Re: Guile for Game Scripting

2010-07-23 Thread No Itisnt
Guile is gradually coming to support multiple languages, including a Lua 5.1 implementation which I am working on right now. So they are not necessarily mutually exclusive. On Fri, Jul 23, 2010 at 10:34 PM, Luiji Maryo wrote: > As a side project, I am developing a free software game engine and I

Re: Data Dictionary and Configuration Files with Guile Scheme

2010-08-05 Thread No Itisnt
I would use records instead of lists. I think you can also make the input much simpler, for instance it might look like this: (define-table projects (integer id primary-key) (string name non-null #:length 32)) On Thu, Aug 5, 2010 at 12:15 PM, Romel Sandoval wrote: > Hi, > > I'm trying to cr