Re: Code review for thread safeness

2005-03-09 Thread Andreas Rottmann
-- Andreas Rottmann | [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 It's *GNU*/Linux dammit

RFD: [PATCH] Fixing symbol printing

2005-06-08 Thread Andreas Rottmann
in Guile (being incompatible with R5RS). Regards, Rotty -- Andreas Rottmann | [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62

SLIB support

2007-09-11 Thread Andreas Rottmann
) Regards, Rotty -- Andreas Rottmann | [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://rotty.uttx.net| GnuPG Key: http://rotty.uttx.net/gpg.asc Fingerprint | C38A 39C5 16D7 B69F 33A3 6993 22C8 27F7 35A9 92E7 v2sw7MYChw5pr5OFma7u7Lw2m5g

Re: SLIB support

2007-09-12 Thread Andreas Rottmann
Andreas Rottmann [EMAIL PROTECTED] writes: Hi! Currently on my System (Debian sid), Guile 1.8 does not support SLIB. I have done a preliminary patch (attached) that makes the module (ice-9 slib) load the guile.init file from SLIB, which seems to work fine AFAICS. Currently, the patch hard

Re: SLIB support

2007-09-12 Thread Andreas Rottmann
Andreas Rottmann [EMAIL PROTECTED] writes: Hi! Currently on my System (Debian sid), Guile 1.8 does not support SLIB. I have done a preliminary patch (attached) that makes the module (ice-9 slib) load the guile.init file from SLIB, which seems to work fine AFAICS. Currently, the patch hard

Re: SLIB support

2007-09-13 Thread Andreas Rottmann
could be reversed; I don't really care. Cheers, Rotty -- Andreas Rottmann | [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://rotty.uttx.net| GnuPG Key: http://rotty.uttx.net/gpg.asc Fingerprint | C38A 39C5 16D7 B69F 33A3 6993 22C8 27F7 35A9 92E7

Re: SLIB support

2007-09-13 Thread Andreas Rottmann
diff is cleaner/preferable. Regards, Rotty -- Andreas Rottmann | [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://rotty.uttx.net| GnuPG Key: http://rotty.uttx.net/gpg.asc Fingerprint | C38A 39C5 16D7 B69F 33A3 6993 22C8 27F7 35A9 92E7

Re: incompatibility between using 1.8.1 and 1.8.2

2007-10-06 Thread Andreas Rottmann
thread support changes the ABI; to verify this is indeed the problem, try texmacs together with guile-1.8 1.8.2+1-1 - if I'm correct, that should fix the segfault. Then just rebuild with the latest guile-1.8 to fix the problem. HTH, Rotty -- Andreas Rottmann | [EMAIL PROTECTED] | [EMAIL

Re: incompatibility between using 1.8.1 and 1.8.2

2007-10-06 Thread Andreas Rottmann
Kamaraju S Kusumanchi [EMAIL PROTECTED] writes: Andreas Rottmann wrote: G-Wrap also has been bitten by that; from the guile-1.8 changelog.Debian: guile-1.8 (1.8.2+1-2) unstable; urgency=low * Re-enable threads. -- Rob Browning [EMAIL PROTECTED] Sat, 25 Aug 2007 17:59:12 -0700

Re: [patch] subordinate SMOBs with GOOPS superclasses

2007-12-09 Thread Andreas Rottmann
, Rotty -- Andreas Rottmann | [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://rotty.uttx.net| GnuPG Key: http://rotty.uttx.net/gpg.asc Fingerprint | C38A 39C5 16D7 B69F 33A3 6993 22C8 27F7 35A9 92E7 v2sw7MYChw5pr5OFma7u7Lw2m5g/l7Di6e6t5BSb7en6g3

Re: r6rs libraries

2009-02-16 Thread Andreas Rottmann
Julian Graham jool...@gmail.com writes: * At the moment, R6RS libraries can import Guile modules directly, but the reverse is not true, partly because I can't figure out a good way to map version information onto the filesystem in a way that Guile's module system can understand. My initial

Re: Thoughts on g-wrap, guile FFI and guile-gnome

2009-02-23 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: Hello! Your insights in reverse: On Sat 21 Feb 2009 03:52, Andreas Rottmann a.rottm...@gmx.at writes: it might make sense to provide a pure-Scheme FFI inside Guile core (perhaps just molding the current G-Wrap runtime library into shape). Once you have

Re: [VM] Tail recursion and multiple values

2009-03-02 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: I understand. I wish that we lived in a world in which (timewise) compilation + running == interpretation, so we could just do the former, but that is not yet our world. However both Chez and SBCL have the former model, so in a software engineering sense it

Re: Need help with catching reader error

2009-04-22 Thread Andreas Rottmann
Mike Gran spk...@yahoo.com writes: Hi- Here's a puzzle for you. I want to write a test for the test suite to catch a lexical syntax error, like the following non-existent named character. But I need to somehow introduce another layer of evaluation. In the following, Guile would tell me

Re: Brainfuck branch

2009-06-06 Thread Andreas Rottmann
Daniel Kraft d...@domob.eu writes: Hi all, I just re-pushed the brainfuck branch (but should contain not much new as compared to the last push) after the savannah break-down. I think it should have gotten right this time, too, but I again had to struggle a bit with git ;) BTW, it seems

Re: string_abstraction2 review

2009-06-11 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: commit a462ad13abac7f12fa370fb1724a6eb7d80edcb2 Author: Michael Gran spk...@yahoo.com Date: Mon May 18 07:50:21 2009 -0700 string abstraction on charsets and combine redundant string_ref_to_XXX I still thing scm_i_string_ref should

Re: ongoing NEWS

2009-06-18 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: Autocompiled files will be stored in the user's ~/.guile-ccache directory, which will be created if needed. This is analogous to ccache's behavior for C files. As long as nothing is set in stone, perhaps you want to consider following the XDG basedir

Quasisyntax broken?

2009-07-02 Thread Andreas Rottmann
Hi! Playing around with Guile's now-in-core syntax-case support (using Git HEAD as of today), I found that quasisyntax seems quite broken: (define-syntax test (lambda (stx) (syntax-case stx () ((_ id body ...) #`(let ((id #,(symbol-string (syntax-datum

Re: %nil once again

2009-07-17 Thread Andreas Rottmann
of %nil, I guess. The *symbol* '%nil has absolutely no special status in Scheme. It just happens that Guile provides (in the default environment) a value bound as %nil that has special properties. Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: Quasisyntax broken?

2009-07-23 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: On Fri 03 Jul 2009 02:04, Andreas Rottmann a.rottm...@gmx.at writes: Playing around with Guile's now-in-core syntax-case support (using Git HEAD as of today), I found that quasisyntax seems quite broken: We've spoken over IRC since then, but for those

Re: Quasisyntax broken?

2009-07-25 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: Hi, On Fri 24 Jul 2009 00:35, Andreas Rottmann a.rottm...@gmx.at writes: Andy Wingo wi...@pobox.com writes: On Fri 03 Jul 2009 02:04, Andreas Rottmann a.rottm...@gmx.at writes: Playing around with Guile's now-in-core syntax-case support (using Git HEAD

[PATCH] R6RS-style block comments

2009-07-25 Thread Andreas Rottmann
Attached is a patch that extends the read syntax to allow for #| ... |# block comments. From: Andreas Rottmann a.rottm...@gmx.at Subject: [PATCH] Add support for #| ... |# comments This syntax has been added by R6RS. --- NEWS|5 + libguile/read.c | 35

Re: BDW-GC branch updated

2009-08-18 Thread Andreas Rottmann
not have drawbacks? IIRC, the PLT people went in the opposite direction. A quick google turned up this: http://www.cs.brown.edu/pipermail/plt-scheme/2006-June/013840.html I wonder if the reasons for switching to a precise GC listed in there will also apply to Guile. Rotty -- Andreas Rottmann

Re: BDW-GC branch updated

2009-09-04 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Andreas Rottmann a.rottm...@gmx.at writes: Will going from a precise GC to BDW-GC not have drawbacks? IIRC, the PLT people went in the opposite direction. A quick google turned up this: http://www.cs.brown.edu/pipermail/plt-scheme/2006-June/013840.html

Re: BDW-GC branch updated

2009-09-15 Thread Andreas Rottmann
-- Andreas Rottmann -- http://rotty.yi.org/

Re: [PATCH] R6RS-style block comments

2009-10-05 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi, Andreas Rottmann a.rottm...@gmx.at writes: Attached is a patch that extends the read syntax to allow for #| ... |# block comments. Are there objections to this patch? If no, I’ll apply it. Note that it makes the reader understand this syntax

[PATCH] Quasisyntax support

2009-10-05 Thread Andreas Rottmann
Hi! As suggested by Ludovic, I've prepared a new version of the quasisyntax patch with Andre van Tonders MIT-Licensed code in its own file, including the complete license text. From: Andreas Rottmann a.rottm...@gmx.at Subject: [PATCH] Add support for `quasisyntax' --- module/ice-9/boot-9.scm

Feature request: psyntax tail patterns

2009-10-05 Thread Andreas Rottmann
/html/r6rs/r6rs-Z-H-14.html#node_sec_11.19 [1] http://ikarus-scheme.org/r6rs-libraries/ Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: [PATCH] R6RS-style block comments

2009-10-05 Thread Andreas Rottmann
Andreas Rottmann a.rottm...@gmx.at writes: l...@gnu.org (Ludovic Courtès) writes: Hi, Andreas Rottmann a.rottm...@gmx.at writes: Attached is a patch that extends the read syntax to allow for #| ... |# block comments. Are there objections to this patch? If no, I’ll apply it. Note

G-Wrap 1.9.13 released

2009-10-28 Thread Andreas Rottmann
migrated the G-Wrap bzr repository to git, see http://www.nongnu.org/g-wrap/development.html Enjoy! Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: G-Wrap 1.9.13 released

2009-10-28 Thread Andreas Rottmann
/marcomaggi/nausicaa/blob/master/scheme/src/libraries/foreign/ffi.sls [2] http://common-lisp.net/project/cffi/spec/cffi-sys-spec.html Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

[PATCH] Quasisyntax support, update #2

2009-10-29 Thread Andreas Rottmann
Hi! Here is another update for the quasisyntax patch. It adds two small testcases, and fixes the SRFI-10 test to revert its changes to the global reader table. From: Andreas Rottmann a.rottm...@gmx.at Subject: [PATCH] Add support for `quasisyntax' --- module/ice-9/boot-9.scm |2

[PATCH] psyntax tail patterns

2009-10-29 Thread Andreas Rottmann
! [ As a side remark, I don't really understand why one has to implement a macro expander in a way that requires bootstrapping ] From: Andreas Rottmann a.rottm...@gmx.at Subject: [PATCH] Add support for tail patterns to syntax-case and syntax-rules --- module/ice-9/psyntax.scm | 120

Re: r6rs libraries, round three

2009-11-17 Thread Andreas Rottmann
the documentation (anything else?). [0] http://article.gmane.org/gmane.lisp.guile.devel/9605/match=tail+pattern Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: r6rs libraries, round three

2009-11-17 Thread Andreas Rottmann
. ` This makes me wonder if versions can be used (or rather be relied on) sensibly in portable libraries at all... Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

[PATCH] `import' should accept multiple clauses

2010-06-06 Thread Andreas Rottmann
((iface (resolve-r6rs-interface 'library-reference))) + (call-with-deferred-observers + (lambda () + (module-use-interfaces! (current-module) (list iface) + ... (if #f #f))) Regards, Rotty -- Andreas Rottmann -- http

[PATCH] add rnrs unicode to the compound rnrs module

2010-06-19 Thread Andreas Rottmann
The compound module (rnrs) was missing (rnrs unicode). From: Andreas Rottmann a.rottm...@gmx.at Subject: add rnrs unicode to the compound rnrs module * module/rnrs.scm: import rnrs unicode and export all of its procedures. --- module/rnrs.scm | 16 ++-- 1 files changed, 14

[PATCH] Ignore the SRFI name component(s) in R6RS imports

2010-06-19 Thread Andreas Rottmann
From: Andreas Rottmann a.rottm...@gmx.at Subject: Ignore the SRFI name component(s) in R6RS imports * module/ice-9/r6rs-libraries.scm (resolve-r6rs-interface): To avoid having to create alias libraries for all the SRFIs, we simply ignore the name components, so (srfi :n foo bar) will resolve

Re: Why Ice-9?

2010-07-09 Thread Andreas Rottmann
both ice-9 and system. Just a thought, though... +1 for that idea from me. Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Random numbers broken on 64-bit platforms

2010-07-16 Thread Andreas Rottmann
distorted in their distribution, since scm_c_random() only returns 32 random bits, and that function is used by scm_c_random_bignum(), which expects it to return a `unsigned long' worth of random bits, AFAICT. I believe the attached patch fixes this issue. From: Andreas Rottmann a.rottm

Re: Random numbers broken on 64-bit platforms

2010-07-17 Thread Andreas Rottmann
Andreas Rottmann a.rottm...@gmx.at writes: Hi! While implementing SRFI-27, I noticed that Guile's RNG is quite broken on 64-bit platforms (where unsigned long is 64 bit). This has two consequences: - Crashes for some numbers between 2^32 and 2^63; for example try this: (random (expt 2

[PATCH] Allow exposing of random number generator state

2010-07-18 Thread Andreas Rottmann
appreciated! From: Andreas Rottmann a.rottm...@gmx.at Subject: Allow exposing of random number generator state Now the random number generator state can be obtained in external (i.e. `read'/`write'-able) form via the new procedure `random-state-external'. An externalized state can be reinstantiated

Re: [PATCH] Allow exposing of random number generator state

2010-07-23 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: On Sun 18 Jul 2010 18:01, Andreas Rottmann a.rottm...@gmx.at writes: Here is a first version of the patch to add an external representation for the RNG state (needed for implementing SRFI 27 Sources of random bits in terms of Guile's RNG). I'm not quite

Random numbers (again) broken on 64-bit platforms

2010-07-26 Thread Andreas Rottmann
doesn't take into account (in scm_random) that an INUM may well exceed 32 bits on 64-bit platforms. I'll try to come up with a patch for that, unless someone beats me to it. Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: Implementing R6RS `transcoded-port'

2010-07-31 Thread Andreas Rottmann
Thien-Thi Nguyen t...@gnuvola.org writes: () Andreas Rottmann a.rottm...@gmx.at () Sun, 25 Jul 2010 21:12:22 +0200 result_pt-file_name = pt-file_name; result_pt-line_number = pt-line_number; result_pt-column_number = pt-column_number; result_pt-read_buf = pt

[PATCH] Fix test-srfi-1 linkage

2010-08-13 Thread Andreas Rottmann
From: Andreas Rottmann a.rottm...@gmx.at Subject: Link test-srfi-1 to libguile as well With an installed copy of libguile in place, test-srfi-1 would be run using that instead of the in-tree libguile. * test-suite/standalone/Makefile.am (test_srfi_1_LDADD): Add libguile. --- test-suite

[PATCH] Some R6RS fixes

2010-08-14 Thread Andreas Rottmann
Some smallish fixes to the (rnrs ...) modules. From: Andreas Rottmann a.rottm...@gmx.at Subject: Several fixes to R6RS libraries * module/rnrs/arithmetic/fixnums.scm (fixnum-width): Make this return an an exact integer instead of an inexact number. * module/rnrs/base.scm (assertion-violation

[PATCH] Add implementation of SRFI 27

2010-09-20 Thread Andreas Rottmann
Hi! Here's an updated version of the patch, this time with documentation: From: Andreas Rottmann a.rottm...@gmx.at Subject: Add implementation of SRFI 27 * module/srfi/srfi-27.scm: New file; implementation of SRFI 27 in terms of the existing random number generator. * module/Makefile.am

Bug in documentation for `load'?

2010-09-25 Thread Andreas Rottmann
, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: [PATCH] Add implementation of SRFI 27

2010-09-30 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Andreas Rottmann a.rottm...@gmx.at writes: +...@c This subsection is based on the specification of SRFI-27, which has +...@c the following license: + +...@c Copyright (C) Sebastian Egner (2002). All Rights Reserved. Perhaps this should appear

[PATCH] Reference original specification in SRFI 27 documentation

2010-10-01 Thread Andreas Rottmann
From: Andreas Rottmann a.rottm...@gmx.at Subject: Reference original specification in SRFI 27 documentation * doc/ref/srfi-modules.texi (SRFI-27): Link to the original specification of SRFI-27. --- doc/ref/srfi-modules.texi |9 ++--- 1 files changed, 6 insertions(+), 3 deletions

[PATCH] Add implementation of SRFI 45

2010-10-03 Thread Andreas Rottmann
From: Andreas Rottmann a.rottm...@gmx.at Subject: Add implementation of SRFI 45 * module/srfi/srfi-45.scm: New file, containing the reference implementation of SRFI 45, slightly adapted to use SRFI-9. * module/Makefile.am (SRFI_SOURCES): Added srfi/srfi-45.scm. * test-suite/tests/srfi-45

Re: [PATCH] Add implementation of SRFI 27

2010-10-03 Thread Andreas Rottmann
*and* documentation. It should only take a couple hours or so, and it's really appreciated. OK, I'll see what I can do. Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

R6RS exception printing at the REPL

2010-10-24 Thread Andreas Rottmann
prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1] From: Andreas Rottmann a.rottm...@gmx.at Subject: Show R6RS exceptions in a reasonable way in the debugger * module/system/repl/error-handling/r6rs.scm: New module, containing a formatter for R6RS exception. * module

[PATCH] Allow specifying load extensions on the command line

2010-10-25 Thread Andreas Rottmann
From: Andreas Rottmann a.rottm...@gmx.at Subject: Allow specifying load extensions on the command line Add a new command-line switch `-x', which manipulates the %load-extensions list. * libguile/script.c (scm_compile_shell_switches): Process the new -x switch. (scm_shell_usage): Mention

[PATCH] Use a fluid for the list of the reader's hash procedures

2010-10-25 Thread Andreas Rottmann
This is a prerequisite for the patch implementing SRFI-38, which I'll post next. From: Andreas Rottmann a.rottm...@gmx.at Subject: Use a fluid for the list of the reader's hash procedures This allows customizing the reader behavior for a dynamic extent more easily. * libguile/read.c

[PATCH] Add implementation of SRFI 38

2010-10-25 Thread Andreas Rottmann
From: Andreas Rottmann a.rottm...@gmx.at Subject: Add implementation of SRFI 38 * module/srfi/srfi-38.scm: New file, partly based on the reference implementation and on Alex Shinn's public-domain implementation for Chicken. * module/Makefile.am (SRFI_SOURCES): Add srfi/srfi-38.scm. * test

[PATCH] Some tweaks to the R6RS support

2010-10-26 Thread Andreas Rottmann
c) 2) + (= (c-frobotz c) 3) -- tg: (fe15364..) t/rnrs-tweaks (depends on: master) Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: [PATCH] Use a fluid for the list of the reader's hash procedures

2010-10-28 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi! Thanks for the patch. Andreas Rottmann a.rottm...@gmx.at writes: This is a prerequisite for the patch implementing SRFI-38, which I'll post next. From: Andreas Rottmann a.rottm...@gmx.at Subject: Use a fluid for the list of the reader's hash

Some work on the R6RS I/O libraries

2010-11-15 Thread Andreas Rottmann
exception behavior. From: Andreas Rottmann a.rottm...@gmx.at Subject: Some work on the R6RS I/O libraries Fix missing port-table locking and bytevector output port segfault. * libguile/r6rs-ports.c (make_bip, make_cbip, make_bop, make_cbop): Lock the port table. * libguile/r6rs-ports.c (make_bop

[PATCH 2/4] Add implementation of transcoded ports

2010-11-20 Thread Andreas Rottmann
* libguile/r6rs-ports.c (make_tp, tp_write, tp_fill_input, tp_flush, tp_close, initialize_transcoded_ports, scm_transcoded_port): New functions. (scm_init_r6rs_ports): Call `initialize_transcoded_ports'. * module/rnrs/ports.scm (transcoded-port): Remove, this is now implemented in C. *

[PATCH 1/4] Fix missing port-table locking and bytevector output port segfault

2010-11-20 Thread Andreas Rottmann
* libguile/r6rs-ports.c (make_bip, make_cbip, make_bop, make_cbop): Lock the port table. * libguile/r6rs-ports.c (make_bop): Let the returned extraction procedure refer to the port's buffer instead of the port itself. This fixes a segfault if the port is closed before the extraction

Re: [PATCH] Some tweaks to the R6RS support

2010-11-20 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: Hi Andreas, On Wed 27 Oct 2010 00:53, Andreas Rottmann a.rottm...@gmx.at writes: * module/rnrs/base.scm (error, assert): Define -- they were missing. (assertion-violation): Properly treat a #f `who' argument. * module/rnrs/conditions.scm (condition

[PATCH] Allow user-defined meta-commands (take #2)

2010-11-20 Thread Andreas Rottmann
of such a command, ,in is added as a new meta-command. From: Andreas Rottmann a.rottm...@gmx.at Subject: Allow user-defined meta-commands Besides allowing user-defined meta-commands, this change also refactors the meta-command machinery to split reading a command's arguments from the procedure actually

Re: [PATCH 2/4] Add implementation of transcoded ports

2010-11-21 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi! Andreas Rottmann a.rottm...@gmx.at writes: * libguile/r6rs-ports.c (make_tp, tp_write, tp_fill_input, tp_flush, tp_close, initialize_transcoded_ports, scm_transcoded_port): New functions. (scm_init_r6rs_ports): Call

[PATCH 1/4] Turn `(rnrs io ports)' into an R6RS library

2010-11-21 Thread Andreas Rottmann
* module/rnrs/io/ports.scm: Change into an R6RS library from a regular Guile module, so the bookkeeping for #:re-export and #:replace is done automatically and we gain control over the imports from `(guile)'. --- module/rnrs/io/ports.scm | 58 +++-- 1

[PATCH 2/4] Reorganize the R6RS I/O condition types

2010-11-21 Thread Andreas Rottmann
Move the I/O condition types from `(rnrs conditions)', where they were not exported, to `(rnrs files)', where they are. * module/rnrs/conditions.scm: Remove definition of I/O condition types. * module/rnrs/files.scm: Replace references to I/O condition types inside `(rnrs conditions)' with the

[PATCH 4/4] Add implementation of transcoded ports

2010-11-21 Thread Andreas Rottmann
* libguile/r6rs-ports.c (make_tp, tp_write, tp_fill_input, tp_flush) (tp_close, initialize_transcoded_ports, scm_i_make_transcoded_port): New functions. (scm_init_r6rs_ports): Call `initialize_transcoded_ports'. * module/rnrs/ports.scm (transcoded-port): Actually implement, using

[PATCH 3/4] Work towards a more complete implementation of `(rnrs io ports)'

2010-11-21 Thread Andreas Rottmann
* module/rnrs/io/ports.scm: (file-options, buffer-mode, eol-style) (error-handling-mode, make-transcoder, native-transcoder) (latin-1-codec, utf-8-codec, utf-16-codec) (call-with-bytevector-output-port, open-file-input-port) (open-file-output-port, make-custom-textual-output-port)

Re: [PATCH 3/4] Work towards a more complete implementation of `(rnrs io ports)'

2010-11-23 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi Andreas, Looks good, but... Andreas Rottmann a.rottm...@gmx.at writes: (call-with-port): Don't use `dynamic-wind', as it is against its specification in R6RS 8.2.6. [...] (define (call-with-port port proc) Call @var{proc}, passing

Re: piper schemigan

2010-11-24 Thread Andreas Rottmann
Guile HEAD (from recent git) and Guile 1.8.7, `|' is a valid symbol, although it is not valid according to R5RS and R6RS. What difficulties are you experiencing exactly? Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

[PATCH] SRFI 26 without defmacro

2010-11-26 Thread Andreas Rottmann
* module/srfi/srfi-26.scm (cut, cute): Implement using `syntax-case'. The new implementation is mostly just a transcription of the old code; the reference implementation which relies only on `syntax-rules' may (or may not) be considered more elegant :-). From: Andreas Rottmann a.rottm

Re: R6RS exception printing at the REPL

2010-11-26 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: Heya Andreas, On Sat 20 Nov 2010 19:18, Andreas Rottmann a.rottm...@gmx.at writes: Andy Wingo wi...@pobox.com writes: set-exception-printer! : exception-printer - nothing Did you mean the following? set-exception-printer! : key exception-printer

Re: @ and @@ in r6rs libs [Was: R6RS exception printing at the REPL]

2010-11-29 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: On Sat 27 Nov 2010 01:08, Andreas Rottmann a.rottm...@gmx.at writes: [ It's off-topic in this thread, but I think the circular dependencies introduced by using `@' and `@@' in the R6RS modules should at one point be eliminated; they work almost all

Re: R6RS exception printing at the REPL

2010-11-29 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: On Sat 27 Nov 2010 01:08, Andreas Rottmann a.rottm...@gmx.at writes: to not lose current functionality, `print-exception' and exception printer procedures would need a `frame' argument as well, right? I guess. I never liked that, though; sounds like

Re: R6RS exception printing at the REPL

2010-12-02 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hello there! Andy Wingo wi...@pobox.com writes: On Sat 27 Nov 2010 01:08, Andreas Rottmann a.rottm...@gmx.at writes: to not lose current functionality, `print-exception' and exception printer procedures would need a `frame' argument as well, right

Re: trying to make fmt work under guile

2011-01-03 Thread Andreas Rottmann
; it does not allow a literal in the rest arg. Maybe there's another incompatibility which is causing `fmt' to break. I'd just use the `let-optionals*' implementation provided with `fmt', or go with the Wak R6RS adaption. Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Fix for the ,show REPL meta-command

2011-01-30 Thread Andreas Rottmann
Hi! As indicated by Mark Harig[0], the ,show REPL meta-command is broken (my fault, oversight in 8fdd85f83..). The attached patch should make it work again. From: Andreas Rottmann a.rottm...@gmx.at Subject: Fix `show' REPL meta-command * module/system/repl/command.scm (warranty, copying

R6RS exception printing -- take #2

2011-01-31 Thread Andreas Rottmann
: it looks like it /might/ make sense to contemplate deprecating passing the frame information to `display-error' and untangle displaying the exception object and displaying a backtrace completely. ] Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: R6RS exception printing -- take #2

2011-01-31 Thread Andreas Rottmann
Andreas Rottmann a.rottm...@gmx.at writes: Hi! I've started refreshing the patch[0] to improve exception presentation for R6RS exceptions, initially discussed in [1]. I'd like to solicit clarification on a few points. Sorry, forgot the link (it's both the same URL): [0] [1] http

[PATCH] R6RS exception printing -- take #2

2011-02-07 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: Heya Andreas, You proposed a choice between two options: [...] I forgot to attach the patch in my last mail, here it is: From: Andreas Rottmann a.rottm...@gmx.at Subject: Show R6RS exceptions in a reasonable way in the debugger * module/ice-9/boot-9.scm

Re: R6RS exception printing -- take #2

2011-02-07 Thread Andreas Rottmann
options: On Tue 01 Feb 2011 01:19, Andreas Rottmann a.rottm...@gmx.at writes: exception-printer := port key args exception-printer - nothing exception-printer := port args thunk The `key' argument is necessary, at least if you want one printer to handle multiple keys (as the default printer

Re: [PATCH] guile-snarf: allow multiple init actions on one line

2011-02-24 Thread Andreas Rottmann
=shformat=html Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

[PATCH] Fix linker error on Debian sid

2011-02-27 Thread Andreas Rottmann
Hi! Attached is a patch that fixes a linker error in the test suite when using the default toolchain on Debian sid. It should be applied to both master and stable-2.0, I think. From: Andreas Rottmann a.rottm...@gmx.at Subject: Fix linking for test suite wrt. --no-add-needed See http

Re: hygiene and macro-introduced toplevel bindings

2011-02-27 Thread Andreas Rottmann
wonder what you (and others) think about my idea as outlined above -- could such a thing possibly work? Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: One config issue solved, only to trip over another.

2011-02-28 Thread Andreas Rottmann
in the same package as the .so and .a files; apparently their package is incomplete. Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: FFI on OS X?

2011-03-02 Thread Andreas Rottmann
, it would work something like this: (dynamic-link libSDL-1.2 '(0)) ;; calls: lt_dlopen(libSDL-1.2.so.0) [0] http://docs.racket-lang.org/foreign/Loading_Foreign_Libraries.html?q=ffi-lib#(def._((lib._ffi/unsafe..rkt)._ffi-lib)) Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

[PATCH] Add `get-string-n' and `get-string-n!' for R6RS ports

2011-03-02 Thread Andreas Rottmann
These are missing currently; the attached patch adds them. From: Andreas Rottmann a.rottm...@gmx.at Subject: Add `get-string-n' and `get-string-n!' for R6RS ports * libguile/r6rs-ports.c (scm_get_string_n_x): Implement `get-string-n!' in C for efficiency. * libguile/r6rs-ports.h: Add

Handling of the actively-maintained branches (master, stable-2.0)

2011-03-02 Thread Andreas Rottmann
, as git seems to handle duplicate changes quite well (just tried, except for a conflict in GUILE-VERSION, stable-2.0 merged cleanly into master, even with the duplicate changeset). Thoughts? Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: FFI on OS X?

2011-03-03 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi Andreas, Andreas Rottmann a.rottm...@gmx.at writes: Another related issue that has come up in IRC is versioning: If I understand correctly, it is currently impossible to specify the version of the shared object to be used (as one cannot even pass

Re: [PATCH] Don't mix definitions and expressions in SRFI-9

2011-03-06 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi Andreas, Andreas Rottmann a.rottm...@gmx.at writes: The expansion of `define-inlinable' contained an expression, which made SRFI-9's `define-record-type' fail in non-toplevel contexts (definition used in expression context). SRFI-9 says “Record

Re: [PATCH] Don't mix definitions and expressions in SRFI-9

2011-03-07 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi, Andy Wingo wi...@pobox.com writes: On Sun 06 Mar 2011 23:26, l...@gnu.org (Ludovic Courtès) writes: Andreas Rottmann a.rottm...@gmx.at writes: The expansion of `define-inlinable' contained an expression, which made SRFI-9's `define-record-type

Re: [PATCH] Several tweaks for R6RS ports

2011-03-07 Thread Andreas Rottmann
Andreas Rottmann a.rottm...@gmx.at writes: Hi! Here's a few patches related to R6RS port support, in short: - Add missing `get-string-n!' and `get-string-n' - Fix a few missing exports - A bit of work on transcoder-related stuff Attached is an updated version of the rnrs-transcoders patch

Re: Fmt Module

2011-03-13 Thread Andreas Rottmann
_at_ \\2 str #t)) - +#; (define mangle-email (make-string-fmt-transformer string-mangle-email)) Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Take some lowhanging fruit to speed up R6RS fixnum operations

2011-03-22 Thread Andreas Rottmann
In porting dorodango[0], I have noticed that Guile's R6RS fixnum operations are quite slow; here's a patch to remedy that a bit. The patch contains a benchmark for `fxxor', which experiences a performance improvement of 2 with the patch. [0] http://home.gna.org/dorodango/ I also used real code

[PATCH] Take some lowhanging fruit to speed up R6RS fixnum operations

2011-03-22 Thread Andreas Rottmann
* module/rnrs/arithmetic/fixnums.scm (assert-fixnum): Is now a macro. (assert-fixnums): New procedure checking a the elements of a list for fixnum-ness. All callers applying `assert-fixnum' to a list now changed to use this procedure. * module/rnrs/arithmetic/fixnums.scm (define-fxop*):

[PATCH] Add `fixnum?' VM primitive

2011-03-22 Thread Andreas Rottmann
This primitive can be used to significantly speed up the operations in `(rnrs arithmetic fixnums)'. * libguile/numbers.c (scm_fixnum_p): New predicate. * libguile/numbers.h: Add prototype. * libguile/vm-i-scheme.c (fixnump): New VM primitive; renumbered subsequent operations. *

fixnum? VM primitive, increasing fixnum operation speed

2011-03-22 Thread Andreas Rottmann
This is another piece of my attempt at getting more speed out of the `(rnrs arithmetic fixnums)' library. The idea is that this patch would be applied to master. I think, at least in the current form, it is not eligible for 2.0.x, as it messes up the VM opcode numbers, which breaks all .go files,

Re: [PATCH] Several tweaks for R6RS ports

2011-03-23 Thread Andreas Rottmann
along, so don't hold your breath ;-). Regards, Rotty -- Andreas Rottmann -- http://rotty.yi.org/

Re: [PATCH] Take some lowhanging fruit to speed up R6RS fixnum operations

2011-03-24 Thread Andreas Rottmann
l...@gnu.org (Ludovic Courtès) writes: Hi Andreas, I’m all for your suggestion. Andreas Rottmann a.rottm...@gmx.at writes: + (define-syntax define-fxop* +(syntax-rules () + ((_ name op) + (define name + (case-lambda + ((x y) +(assert-fixnum x y

  1   2   >