Re: Undocumented procedures

2012-01-03 Thread rixed
> I came across a couple I've used that aren't documented. > (...) > > scm_display > scm_puts These two are "documented" in the sense that they are used in the manual, more precisely in chapter about smob for the print_image() sample function. So they are mean to be public I guess.

[PATCH] Implement local-eval, local-compile, and the-environment

2012-01-03 Thread Mark H Weaver
Hello all, I have now produced two very different implementations of `the-environment' and `local-eval' that support compilation. Included below is a simple patch that I believe is ready for commit to the stable-2.0 branch, and I very much hope it can be included in 2.0.4. However, before I tell

Re: [PATCH] Implement local-eval, local-compile, and the-environment

2012-01-03 Thread David Kastrup
Mark H Weaver writes: > Hello all, > > I have now produced two very different implementations of > `the-environment' and `local-eval' that support compilation. > > Included below is a simple patch that I believe is ready for commit to > the stable-2.0 branch, and I very much hope it can be includ

Re: What's wrong with this?

2012-01-03 Thread Mike Gran
> From: Bruce Korb > My "(get ...)" function always returns a string. > This result was assigned to "tmp-text" and the > "(string-upcase ...)" is complaining that the input is > read only.  Well, it isn't, so the real complaint > is being hidden by the "string is read-only" message. > > It work

Re: Guile: What's wrong with this?

2012-01-03 Thread Bruce Korb
Hi Mike, Thank you for the explanation. However: On 01/03/12 07:03, Mike Gran wrote: It worked until I "upgraded" to openSuSE 12.1. $ guile --version guile (GNU Guile) 2.0.2 . (set! tmp-text (get "act-text")) (set! TMP-text (string-upcase tmp-text)) >>> ERROR: In pr

Re: [PATCH] Guildhall: fix download path and keep connection alive

2012-01-03 Thread Andy Wingo
Hi! Sorry for the terrible delay here. On Sun 04 Sep 2011 07:33, Ian Price writes: > Nala Ginrut writes: > >> hi guys! >> I realized there're two problems in our shinning Guildhall.  >> >> 1. When "http-download" calls "relative-uri", the first arg should be a >> string, say "srfi", but ("srf

Re: Guile: What's wrong with this?

2012-01-03 Thread Mike Gran
> From: Bruce Korb > 2.  it is completely, utterly wrong to mutilate the >     Guile library into such a contortion that it >     interprets this: >         (define y "hello") >     to be a request to create an immutable string anyway. >     It very, very plainly says, "make 'y' and fill it with

Re: guild hall update

2012-01-03 Thread Andy Wingo
On Mon 22 Aug 2011 16:49, Thien-Thi Nguyen writes: > I kind of dislike the "marked as a member of some group" meme, whether > expressed as "guild" or "sigil". Traditionally, guilds were irascibly > exclusive, subverting competition, introducing proprietary "extensions" > and "trade marks", and (

Re: guild hall update

2012-01-03 Thread Thien-Thi Nguyen
() Andy Wingo () Tue, 03 Jan 2012 11:35:07 -0500 I thought about this for a while, and considered other folks' input, and in the end went back to the Guildhall name. "Sigil" in modern days has too many connotations with crystals and "magic". I don't want to promote a "join and on

Re: [PATCH] Implement local-eval, local-compile, and the-environment

2012-01-03 Thread Mark H Weaver
David Kastrup writes: > How will either fare with: > > (let ((env > (let ((x 1)) > (the-environment > (local-eval '(set! x 4) env)) This example (or more complex ones based on the same idea) present no difficulties for either patch. scheme@(guile-user)> (use-modules (ice-9 local-e

Re: Minimal Guile

2012-01-03 Thread Ludovic Courtès
Hi Mike! Mike Gran skribis: > It'll be fun to try to minimize it down to just > the guile executable, libguile-*, and a scheme archive file.  And it > might help with distribution of prebuilt versions. Are you saying that, say, Lilypond’s tarball would contain libguile.so and the .go files? (I

Re: Undocumented procedures

2012-01-03 Thread Ludovic Courtès
Hi! And happy new year! :-) Mike Gran skribis: > scm_display A matter of adding it as a @deffnx below ‘display’ under “Scheme Write”. > scm_puts This and scm_putc should be documented, yes. > scm_new_port_table_entry Actually the whole port subsystem is undocumented. :-( So yes, would b

Re: Guile: What's wrong with this?

2012-01-03 Thread Ludovic Courtès
Hi Bruce, And happy new year! Bruce Korb skribis: > Thank you for the explanation. However: > > On 01/03/12 07:03, Mike Gran wrote: >>> It worked until I "upgraded" to openSuSE 12.1. >>> $ guile --version guile (GNU Guile) 2.0.2 . > (set! tmp-text (get "act-text

Re: Undocumented procedures

2012-01-03 Thread Mike Gran
> From: Ludovic Courtès  >> scm_display > > A matter of adding it as a @deffnx below ‘display’ under “Scheme Write”. > >> scm_puts > > This and scm_putc should be documented, yes. > >> scm_new_port_table_entry > > Actually the whole port subsystem is undocumented.  :-(  So yes, would > be

Re: Minimal Guile

2012-01-03 Thread Mike Gran
> From: Ludovic Courtès  > Hi Mike! > > Mike Gran skribis: > >> It'll be fun to try to minimize it down to just >> the guile executable, libguile-*, and a scheme archive file.  And it >> might help with distribution of prebuilt versions. > > Are you saying that, say, Lilypond’s tarball woul

Re: Syntax Parameters documentation for guile

2012-01-03 Thread Ian Price
Eli Barzilay writes: >> Syntax parameters[fn:1] are a mechanism for rebinding a macro >> definition within the dynamic extent of a macro expansion. It >> provides a convenient solution to one of the most common types of >> unhygienic macro: those that introduce a special binding each time > > I'd

Re: Guile: What's wrong with this?

2012-01-03 Thread Bruce Korb
On 01/03/12 14:24, Ludovic Courtès wrote: 2. it is completely, utterly wrong to mutilate the Guile library into such a contortion that it interprets this: (define y "hello") to be a request to create an immutable string anyway. It very, very plainly says, "make 'y' a

Re: Minimal Guile

2012-01-03 Thread Ludovic Courtès
Hi Mike! Mike Gran skribis: >> From: Ludovic Courtès >  > Hi Mike! >> >> Mike Gran skribis: >> >>> It'll be fun to try to minimize it down to just >>> the guile executable, libguile-*, and a scheme archive file.  And it >>> might help with distribution of prebuilt versions. >> >> Are you

Re: Guile: What's wrong with this?

2012-01-03 Thread Ludovic Courtès
Bruce, Bruce Korb skribis: > On 01/03/12 14:24, Ludovic Courtès wrote: >>> 2. it is completely, utterly wrong to mutilate the >>> Guile library into such a contortion that it >>> interprets this: >>> (define y "hello") >>> to be a request to create an immutable string an

Re: Minimal Guile

2012-01-03 Thread Mike Gran
> From: Ludovic Courtès  > OK, but back to the example above, you wouldn’t want Lilypond’s tarball > to contain these binaries, would you?   For Lilypond on Win32, where the culture is to download compiled binaries, I'd want to be able to provide a download location for a pre-compiled Win7 x86 lib

Re: [PATCH] Implement local-eval, local-compile, and the-environment

2012-01-03 Thread Mark H Weaver
Here's an improved version of the patch. Most notably, I removed the `#:to' parameter to `local-compile', since I realized it couldn't be implemented properly anyway. I also updated the copyright notices to 2012 in all changed files, and made some other simplifications and cleanups. Best,

Re: Syntax Parameters documentation for guile

2012-01-03 Thread Eli Barzilay
An hour and a half ago, Ian Price wrote: > Eli Barzilay writes: > > >> the macro is used. Examples include an 'if' form that binds the > >> result of the test to an 'it' binding, or class macros that > >> introduce a special 'self' binding. > > > > The `abort' example is also popular, probably ev

Re: Guile: What's wrong with this?

2012-01-03 Thread Bruce Korb
On 01/03/12 15:33, Ludovic Courtès wrote: Could you point me to the affected code? What would you think of using string-copy as I suggested? The disadvantage is that you need to modify your code, but hopefully that can be automated with a sed script or so; the advantage is that it would work wi

Re: Minimal Guile

2012-01-03 Thread Mark H Weaver
Mike Gran writes: > The libguile would be modified so that the .iso or .tar file would > never be unpacked.  Guile would look inside the .tar or .iso for the > compiled .go files. What is the advantage of including our own little read-only filesystem, when every OS already provides this functio

Re: Minimal Guile

2012-01-03 Thread Mike Gran
> From: Mark H Weaver > What is the advantage of including our own little read-only filesystem, > when every OS already provides this functionality?  Is it really > significantly easier to install 3 files than to install 300? > > Admittedly, I can see how it might make a psychological difference

Re: Guile: What's wrong with this?

2012-01-03 Thread Mike Gran
>   In many systems it is desirable for constants (i.e. the values of literal >   expressions) to reside in read-only-memory.  To express this, it is >   convenient to imagine that every object that denotes locations is >   associated with a flag telling whether that object is mutable or immutable.

Re: Guile: What's wrong with this?

2012-01-03 Thread Noah Lavine
Hello, > Then it turned out that the string functions would now clear the > high order bit on strings, so they are no longer byte arrays and > there is no replacement but to roll my own.  I stopped supporting > byte arrays.  A noticable nuisance. This is just a side note to the main discussion, b

Re: Minimal Guile

2012-01-03 Thread Mark H Weaver
Mike Gran writes: >> From: Mark H Weaver > >> What is the advantage of including our own little read-only filesystem, >> when every OS already provides this functionality?  Is it really >> significantly easier to install 3 files than to install 300? >> >> Admittedly, I can see how it might make