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
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 #.
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 "
>>(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
> 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)?
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.
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
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
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
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
10 matches
Mail list logo