Re: make check error

2012-01-09 Thread Andy Wingo
On Sun 10 Jul 2011 07:14, Germán Arias writes: > With guile 2.0.2, GCC 4.6 and gc 7.1, make check give me the error: > > make[5]: `test-pthread-create' is up to date. > CC test_pthread_create_secondary-test-pthread-create-secondary.o > In file included from test-pthread-create-secondary.c:3

Re: The return value of `load'

2012-01-09 Thread Andy Wingo
On Mon 01 Aug 2011 15:02, Panicz Maciej Godek writes: > (define x (load "2plus3.scm")) ; (i wish x was 5) I have fixed this to return the result(s) of evaluating the last expression in the file, or the unspecified value if the file has no forms. Previously there was differing behavior: primitiv

Re: sample guile-2.0 extension in manual

2012-01-09 Thread Andy Wingo
Hi Johan, On Fri 05 Aug 2011 17:16, Johan Hidding writes: > Hi, In manual chapter 5.3.1 there is a small example program. Using > GCC 4.6, this only compiles with -fpermissive, unless an explicit > reinterpret_cast (which is an alias for (void *)) is > used. Should this be considered a (minor) b

Re: Compatibility V1.8 and 2.0 - deprecated (debug-enable 'debug)

2012-01-09 Thread Andy Wingo
On Mon 22 Aug 2011 22:59, l...@gnu.org (Ludovic Courtès) writes: > (cond-expand (guile-2 'alright) > (guile (debug-enable 'debug))) Or: (cond-expand ((not guile-2) (debug-enable 'debug))) Regards, Andy -- http://wingolog.org/

Re: Mixp 0.5 available

2012-01-09 Thread Andy Wingo
On Wed 10 Aug 2011 11:30, Thien-Thi Nguyen writes: > Mixp is a Guile interface to expat, James Clark's XML Parser, > originally written by Thierry Bézecourt. This release of Mixp is > available under the terms of the GNU GPL v3 (or later); see COPYING. > It has been tested with Guile 1.4

Re: Guile-GDBM 1.0.2 available

2012-01-09 Thread Andy Wingo
On Mon 15 Aug 2011 12:00, Thien-Thi Nguyen writes: > Guile-GDBM is a Guile module that provides Scheme bindings to the > GNU dbm library. It was originally written by Martin Grabmüller > and is now released under the GNU General Public License (GPL) > version 3. Nice! I get the same co

Re: Reader syntax for accessing arrays

2012-01-09 Thread Andy Wingo
On Tue 23 Aug 2011 01:17, Panicz Maciej Godek writes: > (array-set! a (* (array-ref a i j) 2) i j)) > seems to be unnecessarily prolix, for in C, language designed > specifically to access arrays, > the same operation could be written as > a[i][j] *= 2; With the appropriate macrology, it could l

Re: Threads deadlock in select

2012-01-09 Thread Andy Wingo
Hi Andrew, Sorry for the late reply. On Fri 02 Sep 2011 16:29, Andrew Gaylard writes: > (gdb) bt > #0 0xfd7ffe89c257 in __lwp_park () from /lib/64/libc.so.1 > #1 0xfd7ffe8941f6 in mutex_lock_queue () from /lib/64/libc.so.1 > #2 0xfd7ffe894ca8 in mutex_lock_impl () from /lib/64/li

Re: A mess with GOOPS

2012-01-09 Thread Andy Wingo
Hi Panicz, On Mon 05 Sep 2011 23:35, Panicz Maciej Godek writes: > The thing is that is implemented as a smob, > and that there is no easy way to add a superclass > to a class created from smob. Ew. Why don't we instead allocate a typecode for arrays. I just pushed a patch to do that, and fo

Re: gh_repl

2012-01-09 Thread Andy Wingo
On Sun 25 Sep 2011 05:54, Mike Gran writes: > What is the replacement for gh_repl? I don't know! When I started with Guile in 2003 I think the GH API was already deprecated :) > Which is to say, if I'm using Guile as an extension language, what > command should I execute in C to drop me into t

Re: 404 in the manual

2012-01-09 Thread Andy Wingo
On Mon 26 Sep 2011 13:50, ri...@happyleptic.org writes: > Just to report that from this page: > > http://www.gnu.org/software/guile/manual/html_node/Locales.html#Locales > > Then the "Locales and Internatioanlization" link leads to a 404 error > (looking for: > http://www.gnu.org/software/guile/ma

Re: gh_repl

2012-01-09 Thread Mike Gran
> From: Andy Wingo > To: Mike Gran > Cc: Guile User > Sent: Monday, January 9, 2012 9:35 AM > Subject: Re: gh_repl > > On Sun 25 Sep 2011 05:54, Mike Gran writes: > >> What is the replacement for gh_repl? > > I don't know!  When I started with Guile in 2003 I think the GH API was > already

Re: gh_repl

2012-01-09 Thread Andy Wingo
On Mon 09 Jan 2012 19:11, Mike Gran writes: >> scm_call_1 (scm_public_ref ("ice-9 top-repl", "top-repl")) ? >> >> Do we need a better answer here? :) > > For guile-2.0, I eventually settled on >   > scm_call_1 (scm_c_public_ref ("system repl repl", "start-repl"), >    scm_from_locale_symbol ("s

Re: Accessing multiple values from C

2012-01-09 Thread Andy Wingo
Hi, On Tue 01 Nov 2011 16:34, Julian Graham writes: > I was playing around with some C code that uses the new R6RS > bytevector ports, and I noticed that there doesn't seem to be an easy > way (a la `let-values' or `receive') to access multiple return values > from C. I've resorted to doing: >

Re: Any advice about improving the docs?

2012-01-09 Thread Andy Wingo
On Thu 03 Nov 2011 14:37, 42t...@gmail.com writes: > I seek advice on making the Guile manual and docstrings clearer and more > consistent, two qualities that I think novices especially appreciate. We are still very much interested in your contributions, especially now that the assignment forms a

Re: gh_repl

2012-01-09 Thread Mike Gran
> From: Andy Wingo  >> For guile-2.0, I eventually settled on >>   >> scm_call_1 (scm_c_public_ref ("system repl repl", > "start-repl"), >>    scm_from_locale_symbol ("scheme")); > > This won't catch SIGINT, and it won't add on the session, regex, and > threads bindings to your guile-user. 

Re: HTTP Request/Response questions

2012-01-09 Thread Andy Wingo
On Sun 06 Nov 2011 12:18, Ian Price writes: > I have a patch to deal with this, but I have not received any > feedback on my proposed functions, so I haven't posted it > yet. Basically, I wanted to add 4 functions, including a > read-chunked-response-body, and to have the (web client) handle > ch

Re: Accessing multiple values from C

2012-01-09 Thread Julian Graham
Hey Andy, > Not yet.  You interested in adding scm_c_value_ref (SCM, size_t) to the > API, and documentation to api-control.texi?  If you do it soon, it > will make it into 2.0.4. Sure. Gimme a day or so and I'll have something for review. Regards, Julian

Re: gh_repl

2012-01-09 Thread Mark H Weaver
Mike Gran writes: >    scm_from_locale_symbol ("scheme")); Note that it's good practice to always use `scm_from_utf8_symbol' or `scm_from_latin1_symbol' when the argument is a C string literal. The choice of which (`utf8' or `latin1') depends on the encoding of your C source file. Similarly, fo

Re: gh_repl

2012-01-09 Thread Andy Wingo
On Mon 09 Jan 2012 20:16, Mike Gran writes: >> From: Andy Wingo >  >> For guile-2.0, I eventually settled on >>>   >>> scm_call_1 (scm_c_public_ref ("system repl repl", >> "start-repl"), >>>    scm_from_locale_symbol ("scheme")); >> >> This won't catch SIGINT, and it won't add on the sess

Re: gh_repl

2012-01-09 Thread Mike Gran
> From: Mark H Weaver >>    scm_from_locale_symbol ("scheme")); > > Note that it's good practice to always use `scm_from_utf8_symbol' or > `scm_from_latin1_symbol' when the argument is a C string literal.    [... ] > More importantly, since many people tend to copy code snippets from what > the

Re: command line argument locale for a guile script

2012-01-09 Thread Andy Wingo
On Mon 07 Nov 2011 01:19, cong gu writes: > When guile 2.0 is used to write scripts, one have to manually do a > setlocale at the beginning of the script to enable non-asciiI > character support (why not by default?). For the record, this will be fixed in the upcoming 2.0.4. Thanks for the repo

Re: Why 3 different evaluators?

2012-01-09 Thread Andy Wingo
On Thu 17 Nov 2011 06:29, ri...@happyleptic.org writes: > -[ Wed, Nov 16, 2011 at 11:43:52AM -0800, Mike Gran ] >> I believe that you can still run the whole test suite on the C evaluator >> by erasing all the .go files from the modules lib, setting auto compile off, >> then running the check-

Re: gtk-main and guile repl together

2012-01-09 Thread Andy Wingo
Hi, On Thu 17 Nov 2011 20:43, anoglad writes: > Is there a convenient way to run the gtk-main loop and the guile repl at > the same time? I'd like to be able to create widgets interactively. There are three options. * Run a special console REPL that integrates with the main loop. See gl

Re: bug#10147: HTTP "Expires" header should handle non-date values

2012-01-09 Thread Andy Wingo
Hi Daniel, Thanks very much for the thorough analysis! On Tue 27 Dec 2011 16:49, Daniel Hartwig writes: > Given those points, I have attached a patch implementing the suggested > handling for "Expires" and will take a look at perhaps relaxing > parse-date (and others). Anyone have ideas on tha

Re: propagating a coding setting across source files

2012-01-09 Thread Andy Wingo
Hi Sven, On Fri 02 Dec 2011 09:06, Sven Hartrumpf writes: > After a long period of working with other Schemes, > I am returning to guile for some tests to see what > Guile has achieved in recent years. Cool! Let us know if you find something that smells bad. > My test program is made up of ar

Re: Tortoise tutorial

2012-01-09 Thread Andy Wingo
On Tue 20 Dec 2011 06:29, zx spectrumgomas writes: > The problem was my value of the LC_NUMERIC locale. If locale is > spanish , decimal separator is ","  and all doubles are displayed with > a comma instead of a dot. I fixed it with : > $export LC_NUMERIC="C" Very interesting bug report, thanks