Confusing Error Message

2012-03-13 Thread Noah Lavine
Hello, I just got a confusing error while making a Guile module. I was writing a module, and wanted to use the compile function - the one that exists by default in the REPL environment. However, when I used the compile function in a module and tried to load that module, I got an unbound variable

Re: Register-based VM GSOC project

2012-03-15 Thread Noah Lavine
Hello, I'm not as familiar with the compiler code as some other people here, but I think that would be great! Guile can always use more speed, and that seems like a project that you could complete in a summer. I've thought a bit about how to do it. One step might be to write a register VM in

Re: Gnutritition GSoC idea - seems to be unclear

2012-03-19 Thread Noah Lavine
I'm afraid you've written to the wrong list. Please try again with the GNUtrition mailing list. Good luck, Noah On Sat, Mar 17, 2012 at 5:42 PM, Adam 'foo-script' Rakowski foo-scr...@o2.pl wrote: Hello!:) I'm Adam, CS student passionate developer from UE. I find your ideas for GSoC 2012

Re: guile-unify - guile-log

2012-03-21 Thread Noah Lavine
This is very cool. Thank you for telling us about it! On Wed, Mar 21, 2012 at 5:58 PM, Stefan Israelsson Tampe stefan.ita...@gmail.com wrote: Hi, If you wondered about the results of my endavour with logic programming for guile I finally made a repo that is self containd and does not mode

Re: Hello World

2012-04-03 Thread Noah Lavine
Hello, Thanks for emailing! Yes, you can definitely get involved. We always like having new people appear and help. Here is how it works, more or less: you'll work on some part of Guile - you get to pick this. When you have an improvement, you'll email it to the list as a series of patches. The

Re: [Code for fun] Announce my generic server Ragnarok

2012-04-03 Thread Noah Lavine
That looks excellent! Thanks for posting it. On Mon, Apr 2, 2012 at 12:23 PM, Nala Ginrut nalagin...@gmail.com wrote: hi falks! Many guys believe Guile-2.0 is powerful, me too. But we need more and more guile projects to prove that. Here's a toy of my coding game. A generic server named

Re: [Code for fun] Announce my generic server Ragnarok

2012-04-03 Thread Noah Lavine
Oh, a quick followup - could we post a link to this on the Guile web page? I don't know who is maintaining that now, but it claims to have a list of projects using Guile, and I think a multi-protocol server is certainly interesting enough to go there. Noah On Tue, Apr 3, 2012 at 10:41 PM, Noah

Re: [Code for fun] Announce my generic server Ragnarok

2012-04-05 Thread Noah Lavine
I think this is a fair description: DTBA HREF=http://gitorious.org/glow/ragnarok/;Ragnarok/A/B DDTABLE TRTDIdescription/I/TD TDA multi-protocol server./TD /TD/TR TRTDIlicense/I/TD TDGPL 3/TD/TR/TABLEP On Wed, Apr 4, 2012 at 5:42 PM, Ludovic Courtès l...@gnu.org wrote: Hi, Noah Lavine

Lexical Variable Allocation

2012-04-05 Thread Noah Lavine
Hello everyone, There was some discussion a while back about getting Guile a register virtual machine. I was thinking about how I could help with this, and I thought that register allocation would be a good place to start. The great thing about it is that we already do allocation - of lexical

Re: [Code for fun] Announce my generic server Ragnarok

2012-04-06 Thread Noah Lavine
...@gnu.org wrote: Hi, Noah Lavine noah.b.lav...@gmail.com skribis: I think this is a fair description: Thanks! DTBA HREF=http://gitorious.org/glow/ragnarok/;Ragnarok/A/B DDTABLE TRTDIdescription/I/TD TDA multi-protocol server./TD /TD/TR TRTDIlicense/I/TD TDGPL 3/TD/TR/TABLEP Can

Re: thoughts on ports

2012-04-09 Thread Noah Lavine
Hello, On Mon, Apr 9, 2012 at 3:15 PM, Mike Gran spk...@yahoo.com wrote: Anyway, here's an idea.  Let's call the C code for ports 'base ports'. 1. Refactor the C reader so that it took on the responsibility of storing the putbacked (ungotton?) characters. 2. This would let you simplify the 

Re: Functional record “setters”

2012-04-09 Thread Noah Lavine
Hello, The goal was to have an interface close to what one would do in imperative programming, that is:  person.address.city = foo; I think it’s quite successful at it. Now, I’m open for suggestions.  I don’t have any idea for a better interface that meets this goal.  For instance,

Re: Hello World

2012-04-09 Thread Noah Lavine
part? And is there any part that need to be improved or patched? If there is I am more than happy to do some, hopefully. Thanks again for all the help. Cameron 在 2012年4月3日 下午9:15,Noah Lavine noah.b.lav...@gmail.com写道: Hello, Thanks for emailing! Yes, you can definitely get involved. We

Re: Functional record “setters”

2012-04-10 Thread Noah Lavine
However, generating the most optimal code may prove to be complicated. For instance, you’d want:   (set-fields p (person-address address-city) Düsseldorf                 (person-address address-street) Bar) to expand to:   (set-person-address p                       (let ((a

Re: GNU Guile branch, wip-peval-predicates, created. v2.0.5-100-g59c5570

2012-04-13 Thread Noah Lavine
At first I thought you were right. But then I realized there's an even deeper problem here. Imagine implementing a record mutator like this: (define (set-foo-a! foo new-value) (if (is-foo? foo) (%unsafe-set-foo-a! foo new-value) (error))) That code is incorrect, by the same logic you

Re: GNU Guile branch, wip-peval-predicates, created. v2.0.5-100-g59c5570

2012-04-13 Thread Noah Lavine
On Fri, Apr 13, 2012 at 3:59 PM, Ludovic Courtès l...@gnu.org wrote: Noah Lavine noah.b.lav...@gmail.com skribis: I'm somewhat afraid, however, that the real solution is changing how we deal with parallelism, and that is a much bigger problem. And this is where functional setters come

Broken Backtraces, and Part of a Solution

2012-04-18 Thread Noah Lavine
Hello all, I recently realized that backtraces weren't working for me in the most recent build of Guile master. Specifically, I could get to a debug prompt fine, but when I tried to get a backtrace, it always came up empty. The problem happens in this code in

Re: Broken Backtraces, and Part of a Solution

2012-04-18 Thread Noah Lavine
for prompt tag '(start-stack). (make-stack #t (outer frames 3)) would trim the outermost 3 frames from the stack. The make-stack interface isn't used very much, according to grep, so it wouldn't be hard to change all of its uses over to the new one. Noah On Wed, Apr 18, 2012 at 8:02 PM, Noah Lavine

Re: Broken Backtraces, and Part of a Solution

2012-04-18 Thread Noah Lavine
On Wed, Apr 18, 2012 at 8:56 PM, Andy Wingo wi...@pobox.com wrote: On Wed 18 Apr 2012 17:02, Noah Lavine noah.b.lav...@gmail.com writes: The problem is that narrow-stack-vector returns #(). It does this because the stack is narrowed to nothing. The narrowing really happens in the functions

Re: bug#11262: help text fro sorted? predicate is wrong/misleading.

2012-04-18 Thread Noah Lavine
It looks like you're right, and strangely enough there's a comment in sort.c right above the definition of sorted? that has the correct documentation. I hope other people will correct me if I'm wrong, but I believe the ideal thing for you to do now is submit a patch created with git format-patch.

Re: Broken Backtraces, and Part of a Solution

2012-04-18 Thread Noah Lavine
Here's a patch that fixes the bug for me. I'd also like to add a test suite for the stack functions, to make sure this doesn't happen again, but I'll look at that later. Noah On Wed, Apr 18, 2012 at 9:36 PM, Andy Wingo wi...@pobox.com wrote: On Wed 18 Apr 2012 18:08, Noah Lavine noah.b.lav

Re: Broken Backtraces, and Part of a Solution

2012-04-19 Thread Noah Lavine
After looking at it more, there aren't really enough stack functions to warrant a test suite. Any objections if I push this to master? Noah On Wed, Apr 18, 2012 at 10:13 PM, Noah Lavine noah.b.lav...@gmail.com wrote: Here's a patch that fixes the bug for me. I'd also like to add a test suite

Re: Broken Backtraces, and Part of a Solution

2012-04-23 Thread Noah Lavine
Hello, After looking at it more, there aren't really enough stack functions to warrant a test suite. Sounds like a fallacious argument to me.  ;-) Would it be possible for you to add test cases?  There are a few tests under “stacks” in eval.test; perhaps something along these lines would

Let's Talk About Backtraces and Stacks

2012-04-25 Thread Noah Lavine
Hello all, There has been some talk on this list about letting Guile show useful backtraces for tail-recursive functions. I was thinking about how to optimize local variable allocation, and realized that this question is related to that, and to other things too. So I'd like to ask people now how

Re: [PATCH] Fix Ecmascript's tree-il compiling

2012-04-30 Thread Noah Lavine
I checked that this is correct and committed it to stable-2.0. You can make small bugfixes now, but if you want to make larger contributions to Guile, you'll need to sign a copyright assignment form. This is because in U.S. copyright law, the author of a copyrighted work (like software) has the

Do we have a guile-1.8 branch?

2012-05-01 Thread Noah Lavine
Hello, I was just trying to build guile 1.8 (as part of a project to track down missing documentation, which I will email about), and I found a bug. As it happens, Andy Wingo fixed that bug in this email from 2010: http://lists.gnu.org/archive/html/guile-devel/2010-03/msg00082.html However, I

Do you recognize these modules?

2012-05-01 Thread Noah Lavine
Hello all, I was inspired by a recent post about (ice-9 occam-channel) to take a look and see what modules don't have documentation. I've only looked at the (ice-9 ...) modules so far, but there are a lot of them. (I checked for documentation by going to the top-level info node for Guile

Re: Do we have a guile-1.8 branch?

2012-05-01 Thread Noah Lavine
t...@gnuvola.org wrote: () Noah Lavine noah.b.lav...@gmail.com () Tue, 1 May 2012 17:15:28 -0400    And if not, would we like one? It would be great to have one. Yeah, there is one:   http://git.savannah.gnu.org/gitweb/?p=guile.git;a=shortlog;h=refs/heads/branch_release-1-8 I suspect

Re: Do you recognize these modules?

2012-05-02 Thread Noah Lavine
? Are there things that you want to accomplish that Guile 2.0 can't do? Or maybe you want complete compatibility with Guile 1.4 - even so, why fork? Thanks, Noah On Tue, May 1, 2012 at 7:22 PM, Thien-Thi Nguyen t...@gnuvola.org wrote: () Noah Lavine noah.b.lav...@gmail.com () Tue, 1 May 2012 18:26:28 -0400

Re: Do we have a guile-1.8 branch?

2012-05-02 Thread Noah Lavine
Yes, please remove the ‘release-1.8’ branch. Something like ‘git push origin :release-1.8’ should work (search for “delete” in git-push(1).) Thanks, Ludo’. Oh, I never knew how to do that. It's done now. Thanks, Noah

Re: Performance tracking

2012-05-05 Thread Noah Lavine
It appears to me (anecdotally) that most of the build time is spent compiling Scheme code, rather than C code. One idea I had been toying with is whether Guile could compile faster if it had another copy of Guile already around, so it could skip the portion of compile-time where the interpreter

Re: Performance tracking

2012-05-05 Thread Noah Lavine
Oh, I was unclear. I meant that the existing copy of Guile would run the compiler from the new copy of Guile. In the worst case you'd have to bootstrap, but that's what we do now, every time. Noah On Sat, May 5, 2012 at 12:42 PM, David Kastrup d...@gnu.org wrote: Noah Lavine noah.b.lav

Re: Psyntax security hole prevents secure sandboxing in Guile

2012-05-07 Thread Noah Lavine
That is an interesting problem. It would be nice to have sandboxing. I'm writing to point out that there has been an attempt to make out-of-the-box sandboxing work. The modules (ice-9 safe) and (ice-9 safe-r5rs) should be sandboxed environments, I think. (I encountered them while looking for

Re: [PATCH] Turn on more documentation

2012-05-07 Thread Noah Lavine
Hello, The problem is that the auto-generated “Standard Library” section looks very poor in comparison to the rest of the manual.  So we should really try hard to write good doc by hands for these, and come up with a handy structure (instead of one node per module, all under “Standard

Re: Psyntax security hole prevents secure sandboxing in Guile

2012-05-07 Thread Noah Lavine
Can you think of anything else that would need to be fixed, besides this problem with forgeable syntax-objects? It depends how much of a sandbox you're thinking of, but I'd like to make sure that the untrusted code didn't go into an infinite loop, which means either putting it in a separate

Re: Patches for module/ice-9/occam-channel.scm

2012-05-09 Thread Noah Lavine
On Fri, May 4, 2012 at 10:58 AM, Noah Lavine noah.b.lav...@gmail.com wrote: Hello, Thanks a lot for submitting them! Micro-commits are exactly what we want. These patches raise an interesting issue. I do not use occam-channel, and in fact I have no idea what it does since it has

Re: SRFI-64 module and SRFI-78 module -- archive file attached

2012-05-12 Thread Noah Lavine
Hello, I'd felt afraid of guile-devel@gnu.org because I'm just a newbie and a poor enghlish reader/writer; especially of language problem. That's fine. I am sure that you will get used to it if you contribute a lot. My goal? Hum... Like other people, I'd googled when I'd needed a test

Re: [PATCH] Turn on more documentation

2012-05-12 Thread Noah Lavine
Hello, The problem is that the auto-generated “Standard Library” section looks very poor in comparison to the rest of the manual.  So we should really try hard to write good doc by hands for these, and come up with a handy structure (instead of one node per module, all under “Standard

Re: Do you recognize these modules?

2012-05-14 Thread Noah Lavine
Hello, The short answer is that the fork (from 2001 or so) was a reaction to losing repo write privs.  Now that i have regained them, i am interested in merging back the relevant bits, w/ copyright notice modified to the proper FSF standards.  Details up to you... That sounds great to me!

Re: Do you recognize these modules?

2012-05-14 Thread Noah Lavine
Luckily, I haven't actually started the rewrite, because I also have limited time to work on this. So I'm very glad to hear that you're interested in transfering them. If you are the only author of the pieces, then I think the transfer is simple - you put the FSF copyright notice at the top,

Re: [PATCH] Turn on more documentation

2012-05-14 Thread Noah Lavine
Hello, From “Organisation of this Manual”:  *Chapter 6: Guile API Reference*       This part of the manual documents the Guile API in       functionality-based groups with the Scheme and C interfaces       presented side by side.  *Chapter 7: Guile Modules*       Describes some important

Re: [PATCH] Turn on more documentation

2012-05-14 Thread Noah Lavine
Hello, Unless there is going to be some other distinction between core and extensions, it would seem more natural to me to document everything by functionality, in the same part of the manual. Some sections would correspond to modules, because modules are also supposed to group things by

Re: Do you recognize these modules?

2012-05-14 Thread Noah Lavine
Hello,   If Noah is OK to help with the actual transfer of the doc bits,   then I guess we’re almost all set.  :-) 1.4 snarfs comments from .scm files for interpolation in template files to create the final texinfo, but i'm almost certain you don't need/want that flow, but would rather have

Re: Register VM WIP

2012-05-15 Thread Noah Lavine
Hello, The register based VMs I've seen ignore this issue by allowing for an infinite set of registers. :) Indeed, that's the plan :)  The first shot at an allocator will look a lot like the one in (language tree-il analyze). That was a bit surprising to me. Do you mean that the register

Re: Register VM WIP

2012-05-16 Thread Noah Lavine
Hi Mark, You are thinking along very similar lines to how I used to think. But I have a different way to think about it that might make it seem better. In our current VM, we have two stacks: the local-variable stack, which has frames for different function calls and is generally what you'd think

Re: Register VM WIP

2012-05-16 Thread Noah Lavine
Perhaps it needs a different name than register virtual machine. How about RTL VM, since it's a virtual machine that interprets RTL? Or maybe frame-addressed VM, because the operations address objects in the current stack frame? Noah

Error in wip-rtl

2012-05-22 Thread Noah Lavine
Hello, I tried to build the latest wip-rtl today, and hit an error that I don't know how to debug. First, when the build gets to GEN guile-procedures.texi, I get a segmentation fault. I tried to debug it by doing meta/gdb-uninstalled-guile. When I did that, Guile made it to a command prompt, but

Re: Error in wip-rtl

2012-05-27 Thread Noah Lavine
On Wed, May 23, 2012 at 3:10 AM, Andy Wingo wi...@pobox.com wrote: On Wed 23 May 2012 04:04, Noah Lavine noah.b.lav...@gmail.com writes: I tried to build the latest wip-rtl today, and hit an error that I don't know how to debug. First, when the build gets to GEN guile-procedures.texi, I get

Re: assembler in scheme

2012-05-30 Thread Noah Lavine
On Sat, May 26, 2012 at 10:58 PM, Nala Ginrut nalagin...@gmail.com wrote: Well, speaking this. I have a question that, is there any convenient way to add multi-backend in Guile? It depends on what you mean by that. You can add as many low-level languages as you like, including a GCC interface,

Question About the Variable Allocator

2012-06-03 Thread Noah Lavine
Hello, I've always been puzzled about part of the variable allocator. In module/language/tree-il/analyze.scm, we deal with allocations, which are hash tables that say where in the stack each local variable goes. The maps are two level, symbol - {lambda - location}. The reason given is that

RTL Question

2012-06-03 Thread Noah Lavine
Hello, I've been playing around with the wip-rtl branch, and I have an error I don't understand. Why does this give me a bad instruction error: (use-modules (system vm rtl)) (define prog (assemble-rtl-program 2 '((assert-nargs-ee/locals 1 1) (mov 0 1 (prog 3) ? On a related note, I've been

Re: Separate textual/binary ports vs. mixed ports

2012-06-05 Thread Noah Lavine
I agree that separate binary and textual ports are cleaner, but what about using a port to deal with a mixed binary/textual protocol, like HTTP? I think the cleanest way to deal with that would be to have a port where you first read characters and then read binary data. That doesn't directly

Re: Growable arrays?

2012-06-11 Thread Noah Lavine
Hello, vlist is a data type introduced around guile 2.0.  You will find it documented in the Guile Reference under Compound Data Types. They are growable and provide vector-like access performances and memory locality. Ah, too bad.  This needs to run under 1.8 as well. If you need to

features.h in wip-rtl

2012-06-12 Thread Noah Lavine
Hello, I've hit a problem building a recent wip-rtl. It now includes the file libguile/elf.h, which does #include features.h. I'm building Guile on Mac OS X, and I think that doesn't have features.h, so the build breaks. However, I don't see any uses of feature.h in elf.h - in particular, there

RTL Question

2012-06-18 Thread Noah Lavine
Hello, Time for my next RTL question - how do I use the toplevel-ref instruction? It looks like I need to make a variable object in the instruction stream, or at a known offset from it. I think I should use either make-non-immediate or the linker to do that, but I don't quite know how. Thanks,

Re: Bug in documentation for eq? ?

2012-06-20 Thread Noah Lavine
Hello, I think you're talking past each other a little bit. Andy is saying that the Scheme standard doesn't specify eq? on numbers. David is saying that an object should always be eq? to itself, no matter what object. I believe David's claim is that Guile should guarantee that a variable is eq?

Re: wip-rtl, solstice edition

2012-06-23 Thread Noah Lavine
Hello, The new VM looks great. But after those things are done, we still need to bridge the gap between Tree-IL and RTL assembly.  We will probably have to scrap GLIL, though I can't tell yet. As I said, I've been working on a compiler from Tree-IL directly to RTL. So far, I have not found

Re: wip-rtl, solstice edition

2012-06-25 Thread Noah Lavine
Hello, Seriously though, that seems like a good plan.  I wonder what Noah’s attempts at JITing the 2.0 bytecode would have achieved, though, if we think of both JIT and the new VM as an “interim solution” before AOT native compilation. I can't remember the last email I sent about that, but I

Re: Preparing for 2.0.6

2012-06-28 Thread Noah Lavine
I think bug 10623 is fixed in stable-2.0, but I don't know how to close it in the tracker. Thanks, Noah On Thu, Jun 28, 2012 at 4:05 PM, Ludovic Courtès l...@gnu.org wrote: Hello! Still hesitant between writing a native code back-end for IA64 and making Guile multiboot-compliant?  Hesitate

Re: Preparing for 2.0.6

2012-06-28 Thread Noah Lavine
On Thu, Jun 28, 2012 at 10:38 PM, Nala Ginrut nalagin...@gmail.com wrote: @Noah: Could you apply the patch to fix ecmascript? http://lists.gnu.org/archive/html/guile-devel/2012-05/msg1.html I think that's already done! Do you not see it in your tree? Noah

Re: Do you recognize these modules?

2012-07-11 Thread Noah Lavine
, Andy Wingo wi...@pobox.com wrote: On Wed 11 Jul 2012 05:02, Noah Lavine noah.b.lav...@gmail.com writes: I'm sorry to miss 2.0.6 by only a few days, but I have turned this documentation into some patches. Here they are; I think they are ready to apply to stable-2.0. Cool. I applied the first one

How do I call functions in RTL?

2012-07-15 Thread Noah Lavine
Hello, I'm trying to understand the call instruction in RTL, and having some trouble. I'm trying to write the simplest function I can that calls another function. I decided to do the equivalent of (lambda (x) (x)), so I don't have to worry about top-level variable references. So I tried the

Re: wip-rtl return location

2012-08-02 Thread Noah Lavine
That sounds interesting, but I have a question - why not make the MVRA return address immediately after the call, instead of immediately before it? In the common case when returning to the regular return address, that would eliminate the extra branch (although it's a very small branch anyway). I

Re: wip-rtl native closure creation

2012-08-06 Thread Noah Lavine
I haven't looked at the RTL program structure, but adding a new field is basically what I did with the non-RTL program structure when I worked on JIT there. However, in that case we could still keep everything under 4 words. I don't know if that will work here. Noah On Mon, Aug 6, 2012 at 5:39

Re: Do you recognize these modules?

2012-08-25 Thread Noah Lavine
Any objections if I apply these patches soon? I'd like to get them off of my to do list. Thanks, Noah On Wed, Jul 11, 2012 at 1:59 PM, Noah Lavine noah.b.lav...@gmail.com wrote: And here is a patch to remove all of the @twerp* comments. But did you mean that I should remove them in the same

Re: guildhall packages

2012-08-26 Thread Noah Lavine
Hello, On Sun, Aug 26, 2012 at 5:29 PM, Ludovic Courtès l...@gnu.org wrote: Ian Price ianpric...@googlemail.com skribis: If you think was a useful email, I can post a periodic update on new packages and/or provide an atom feed for them. If not, I'll shut up :) I like the updates, keep up the

Re: Adding to guile curly-infix (SRFI 105), neoteric- sweet-expressions

2012-08-27 Thread Noah Lavine
Hello, On Mon, Aug 27, 2012 at 12:30 AM, Alan Manuel Gloria almkg...@gmail.com wrote: However, it leads to an edge case in Guile 2.0 where disabling autocompilation leads to the module-loading C code path going through a direct C call to the C implementation of primitive-load, a path that

Two build problems

2012-09-15 Thread Noah Lavine
Hello, I hit two errors while building recent Guile, one of which I have diagnosed. First problem: At first, I couldn't build lib/striconveh.c. Here's what I think was wrong: Make doesn't know that lib/striconveh.c depends on lib/unitypes.h. This is a problem because lib/unitypes.h is generated

Re: Two build problems

2012-09-19 Thread Noah Lavine
is the correct solution? Thanks a lot, Noah On Sat, Sep 15, 2012 at 2:40 PM, Noah Lavine noah.b.lav...@gmail.com wrote: Hello, I hit two errors while building recent Guile, one of which I have diagnosed. First problem: At first, I couldn't build lib/striconveh.c. Here's what I think was wrong: Make

More RTL Tests

2012-10-14 Thread Noah Lavine
Hello, I have been working on understanding RTL, and I wrote the following tests. They're mostly to illustrate for myself how calling works in RTL, but they also serve to test it. Any objections if I commit them as part of rtl.test? (with-test-prefix call (assert-equal 42 (let

Re: Needed: per-port reader options

2012-10-16 Thread Noah Lavine
Hello, On Tue, Oct 16, 2012 at 5:39 PM, Ludovic Courtès l...@gnu.org wrote: I think ‘current-reader’ should remove the need to have a port-to-reader mapping, no? Thanks for looking into this! Ludo’. I might not understand this correctly, but aren't the reader flags only supposed to affect

Appending Queues

2012-10-28 Thread Noah Lavine
Hello, I was just working on a project that used (ice-9 q), and I found that I needed to append two queues. I wrote the following functions to do it. What do you think of including them in (ice-9 q)? It's pretty simple, but it seems like a natural part of the queue interface. I've included

Re: Appending Queues

2012-11-02 Thread Noah Lavine
Hello, On Fri, Nov 2, 2012 at 1:20 PM, Ian Price ianpric...@googlemail.com wrote: I'm loath to add anything to (ice-9 q) since I find the names, and the lack of a distinct type, less than satisfactory. Fair enough. I'd be just as happy to implement a new queue container. I think we need to

Re: [PATCH] Add .guile.sls and .sls to the default %load-extensions

2012-11-04 Thread Noah Lavine
If it's semi-standard, we should probably support it too. However, a Google search reveals the following other uses of .sls: - A list of images for a slideshow (sls stands for slideshow script) - The backup files for some program callled Litespeed - ScriptLab Scripts (seems to be an image

Re: thoughts on native code

2012-11-10 Thread Noah Lavine
Hello, I assume compressed native is the idea you wrote about in your last email, where we generate native code which is a sequence of function calls to VM operations. I really like that idea. As you said, it uses the instruction cache better. But it also fixes something I was worried about,

Re: [PATCH]

2012-11-10 Thread Noah Lavine
SRFI-9 seems to be part of R7RS anyway (assuming there are no sudden last-minute changes), so I'd say we'll definitely want to do something like that soon. Noah On Sat, Nov 10, 2012 at 10:30 PM, Ian Price ianpric...@googlemail.comwrote: The patch looks fine to me (it had better be, since it

Re: Adding to the end of the load path

2012-11-15 Thread Noah Lavine
Hello, This is coming late in the discussion, but I'd like to suggest a somewhat different approach. I hope this is helpful. It seems to me that in the end, the module-lookup system may need to be more complex than having regular and suffix lookup paths. For instance, one of the big concerns

Re: Adding to the end of the load path

2012-11-16 Thread Noah Lavine
variables. Of course, I would be very happy to be proven wrong, Noah On Thu, Nov 15, 2012 at 7:10 PM, Noah Lavine noah.b.lav...@gmail.comwrote: Hello, This is coming late in the discussion, but I'd like to suggest a somewhat different approach. I hope this is helpful. It seems to me

Re: Program received signal SIGSEGV, Segmentation fault.

2012-11-16 Thread Noah Lavine
Hello, On Fri, Nov 16, 2012 at 6:32 PM, Bruce Korb bk...@gnu.org wrote: On 11/16/12 13:23, Mark H Weaver wrote: Actually, it was scm_from_utf8_string, since GUILE_VERSION was 25 Okay, that's the problem. You told Guile that the C string was encoded in UTF-8, but actually it was

CPS and RTL

2012-11-17 Thread Noah Lavine
Hello, I've had several conversations on this list about using continuation-passing style in Guile. I recently decided to take the hint and implement it. I've pushed a new branch called wip-rtl-cps that I'd appreciate comments on (but I do not necessarily think that this is the branch that will

Re: Making libunistring optional

2012-11-19 Thread Noah Lavine
Hi Mark, I think you and Ludo may actually be thinking along similar lines. It seems like you're saying that you'd like one tarball that contains only Guile-specific code, and another one with Guile plus some dependencies plus maybe a nice build script. I don't have an opinion on whether to

Re: non-scheme scripts: proposed solutions and their pros/cons

2012-11-20 Thread Noah Lavine
As you say, the only real solution is to do more than one of these things. For instance, I think it's really important to be able to load modules written in other languages. However, this may be language-dependent to a certain extent, because some languages (Python) already have ways to define

Re: Is there any thing to convert string encording?

2012-11-23 Thread Noah Lavine
In that case I believe you want to put the bits you're interested in in a bytevector, and use utf8-string, utf16-string, or utf32-string. Noah On Fri, Nov 23, 2012 at 2:48 AM, nalaginrut nalagin...@gmail.com wrote: In ruby, we can use force_encoding to convert the encoding of a string:

Re: Fix reader options for R6RS `get-datum'

2012-12-17 Thread Noah Lavine
Hello, On Mon, Dec 17, 2012 at 2:05 PM, Andreas Rottmann a.rottm...@gmx.at wrote: I think this is my assumption that you seem to disagree on: by using the binding of `read' from `(rnrs io simple)', instead of the one provided by Guile's core, the writer of the code using that binding has

Re: A proper tail version of with-fluids

2013-01-03 Thread Noah Lavine
I think with-fluids could at least be semi-tail-recursive. If you imagine a normal non-tail-recursive implementation, you might get to a point where your continuation is going to set a fluid back to a value, and then the *next* continuation is going to set that fluid back to *another* value. Since

Re: How to debug the scheme/guile interpreter?

2013-01-09 Thread Noah Lavine
There's a script in the 'meta' directory of the Guile sources called 'gdb-uninstalled-guile'. I believe it sets up whatever environment variables need setting and then calls gdb for you. I've used it to debug Guile in the past. Thanks a lot for tracking down this bug Noah Lavine On Wed, Jan 9

Re: [PATCH] Colorized REPL

2013-01-11 Thread Noah Lavine
Hello, On Fri, Jan 11, 2013 at 9:33 AM, Ludovic Courtès l...@gnu.org wrote: Nala Ginrut nalagin...@gmail.com skribis: record-type in r6rs is more convenient I think. That’s not the question. ;-) It doesn’t justify pulling in all of R6RS. This is just a small part of a much larger

Re: Guile Lua

2013-01-12 Thread Noah Lavine
I sent an email about that, but it was only an idea. I thought it would be nice if we could work with the Clisp people. However, I can see some barriers to actually doing that, and I don't intend to work on it any time soon. Noah On Sat, Jan 12, 2013 at 3:43 AM, Nala Ginrut nalagin...@gmail.com

Re: [PATCH] Colorized REPL

2013-01-12 Thread Noah Lavine
Hello, On Fri, Jan 11, 2013 at 6:26 PM, Ludovic Courtès l...@gnu.org wrote: Hello, I know that supporting other peoples' r6rs programs is also a reason, but I think that Guile should be able to use the libraries it itself bundles. I agree in general, yes. But when the run-time

Re: Loading a module before and after adding a load path

2013-01-18 Thread Noah Lavine
Hello, I see what you are trying to do, and I agree that it should be possible. I have set up the same situation as you: trying to load a module, failing, adding it to my path, trying again, and failing again. Here's what I've figured out: - resolve-module fails on the module, when I think it

Re: CPS and RTL

2013-01-24 Thread Noah Lavine
Hello Andy and Mark, Thanks for the review! There has actually been more progress since I pushed that branch. I hit a point in the CPS-RTL stuff where I had trouble because I didn't know how to do things (like mutable variables) in RTL. So I've actually ported the compiler to GLIL in a branch on

Re: CPS and RTL

2013-01-24 Thread Noah Lavine
Hello, On Thu, Jan 24, 2013 at 10:12 AM, Andy Wingo wi...@pobox.com wrote: Hi! On Thu 24 Jan 2013 14:50, Noah Lavine noah.b.lav...@gmail.com writes: Thanks for the review! There has actually been more progress since I pushed that branch. I hit a point in the CPS-RTL stuff where I had

Re: rebased wip-rtl-cps

2013-01-24 Thread Noah Lavine
Thanks! Best, Noah On Wed, Jan 23, 2013 at 11:28 AM, Andy Wingo wi...@pobox.com wrote: Hi Noah, A brief note to let you know that I rebased wip-rtl-cps, as wip-rtl itself was rebased. Cheers, Andy -- http://wingolog.org/

Re: CPS and RTL

2013-01-24 Thread Noah Lavine
The push is complete. If I'm not mistaken, you should now see a wip-rtl-cps branch with a Tree-IL-CPS compiler. The compiler is used in cps.test. Please let me know if I did anything wrong. Noah On Thu, Jan 24, 2013 at 11:03 AM, Noah Lavine noah.b.lav...@gmail.comwrote: Hello, On Thu, Jan

Re: Guile API for foreign languages: proposing SCM scm_list_0(void)

2013-01-31 Thread Noah Lavine
I don't know much about language interfaces, but why not have these be constants exported by libguile.so? Is there any reason for other languages to have to make their own lists? Thanks, Noah On Thu, Jan 31, 2013 at 6:45 AM, Andy Wingo wi...@pobox.com wrote: On Thu 31 Jan 2013 12:27, Andy

Re: [PATCH] Do not scan for coding declarations in open-file

2013-01-31 Thread Noah Lavine
Hello, On Thu, Jan 31, 2013 at 5:00 PM, Ludovic Courtès l...@gnu.org wrote: There are several issues IMO. First, some are subrs, so handling keyword arguments is going to be painful. Second, keyword arguments are inelegant IMO compared to: (set-port-encoding! port (file-encoding port))

Re: About Guile crypto support

2013-02-04 Thread Noah Lavine
Hello, I was just thinking about this, and I was wondering, can you hash an arbitrary Guile object? And if so, what do you hash? (I mean, algorithms like SHA-1 are defined on sequences of bits, as I understand it. So what collection of bits do you hash?) And is the hash recursive? (I.e. is it an

RTL Cache Cells

2013-02-06 Thread Noah Lavine
Hello, The RTL branch now has infrastructure for toplevel and module refs, which is very exciting. Unfortunately, I can't figure out how to use it. :-( In particular, I've been looking at module/system/vm/rtl.scm, and there are two things I don't understand about cache cells. 1. How do I

Re: [ANN] guile-csv 0.0.1 released!

2013-02-08 Thread Noah Lavine
This has been said before, but I think the most important thing is for people who are new to Guile to be able to see a list of mature, well-maintained libraries (whatever that means), and tell the difference between those and poorly-maintained or bitrotted libraries. It would also be nice to have

Re: About Guile crypto support

2013-02-09 Thread Noah Lavine
Mark, I agree with everything you said about dependencies. I think the real solution is something like what you said - sharing code, but bundling. One way to push that farther would be to distribute tarballs that include the complete source of some libraries, and somehow making a combined build

<    1   2   3   4   >