--
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
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
)
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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/
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
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
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
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
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
--
Andreas Rottmann -- http://rotty.yi.org/
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
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
/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/
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
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/
/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/
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
!
[ 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
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/
.
`
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/
((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
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
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
both ice-9 and system. Just a thought,
though...
+1 for that idea from me.
Rotty
--
Andreas Rottmann -- http://rotty.yi.org/
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
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
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
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
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/
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
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
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
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
, Rotty
--
Andreas Rottmann -- http://rotty.yi.org/
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
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
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
*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/
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
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
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
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
c) 2)
+ (= (c-frobotz c) 3)
--
tg: (fe15364..) t/rnrs-tweaks (depends on: master)
Regards, Rotty
--
Andreas Rottmann -- http://rotty.yi.org/
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
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
* 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.
*
* 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
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
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
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
* 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
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
* 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
* 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)
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
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/
* 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
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
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
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
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
; 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/
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
: 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/
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
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
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
=shformat=html
Regards, Rotty
--
Andreas Rottmann -- http://rotty.yi.org/
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
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/
in the same package as the .so and .a files; apparently their
package is incomplete.
Regards, Rotty
--
Andreas Rottmann -- http://rotty.yi.org/
, 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/
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
, 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/
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
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
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
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
_at_ \\2
str
#t))
-
+#;
(define mangle-email
(make-string-fmt-transformer string-mangle-email))
Regards, Rotty
--
Andreas Rottmann -- http://rotty.yi.org/
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
* 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*):
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.
*
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,
along, so don't hold your breath ;-).
Regards, Rotty
--
Andreas Rottmann -- http://rotty.yi.org/
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 - 100 of 175 matches
Mail list logo