Re: [PATCH] Implement ‘hash’ for structs

2012-10-10 Thread Ludovic Courtès
Hello! Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: As incredible as it may seem, ‘hash’ until now always returned 263 % n for structs, leading to interesting experiences when using structs as hash table keys. Yes, do you remember us talking about this long

Re: [PATCH] Preserve keyword in 'syntax-rules' and 'define-syntax-rule'

2012-10-10 Thread Ludovic Courtès
Hi, Mark H Weaver m...@netris.org skribis: Unfortunately, preserving the macro keyword breaks one of Oleg Kiselyov's macros, namely 'ppat' in system/base/pmatch.scm: [...] Oleg's macro uses '_' in the keyword position of the pattern, even though '_' is in the literals list. Therefore, it

Re: [PATCH] In string-split, add support for character sets and predicates.

2012-10-10 Thread Ludovic Courtès
Hi! Mark H Weaver m...@netris.org skribis: I vaguely recall hearing somewhere that this autogeneration of docs was considered a failed experiment, but we'd have to ask Andy or Ludovic about that. Well, look at this section of the manual (especially on hard copy), and compare it to

Re: [PATCH] In string-split, add support for character sets and predicates.

2012-10-10 Thread Ludovic Courtès
Hi, FWIW, I think tabs are OK in C files, but not in Scheme files, because in the latter case, we want to be able to copy/paste without triggering tab completion. Our .dir-locals.el follows that. Thanks, Ludo’.

Re: [PATCH] Preserve keyword in 'syntax-rules' and 'define-syntax-rule'

2012-10-09 Thread Ludovic Courtès
Hi Mark! Makes sense to me, you can apply it. Thanks, Ludo’.

Re: Guile 2.0.6 - some tests fail

2012-10-09 Thread Ludovic Courtès
Hi, Mark H Weaver m...@netris.org skribis: FAIL: ftw.test: file-system-fold: test-suite (never enter) FAIL: ftw.test: file-system-fold: test-suite/lib.scm (flat file) FAIL: ftw.test: scandir: no select FAIL: ports.test: %file-port-name-canonicalization: absolute canonicalization from ice-9

Re: Guile 2.0.6 - some tests fail

2012-10-09 Thread Ludovic Courtès
Hi, And now with the patch. Mark H Weaver m...@netris.org skribis: FAIL: ftw.test: file-system-fold: test-suite (never enter) FAIL: ftw.test: file-system-fold: test-suite/lib.scm (flat file) FAIL: ftw.test: scandir: no select FAIL: ports.test: %file-port-name-canonicalization: absolute

[PATCH] Implement ‘hash’ for structs

2012-10-09 Thread Ludovic Courtès
Hello! As incredible as it may seem, ‘hash’ until now always returned 263 % n for structs, leading to interesting experiences when using structs as hash table keys. The attached patch provides a simple hasher for structs. I’ll commit it within a few days if there are no objections. Ludo’.

Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.6-31-g2446f8e

2012-10-08 Thread Ludovic Courtès
Hi Mark, Please ignore my previous message, I’ve been reading them in the wrong order. ;-) Mark H Weaver m...@netris.org skribis: (not v) is not the same as (equal? #f v) when v is #nil. [...] (null? v) is not the same as (equal? '() v) when v is #nil. Ah right, I had thought about #nil,

Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment)

2012-10-07 Thread Ludovic Courtès
Hi, Mark H Weaver m...@netris.org skribis: I wrote: I've read the message referenced above several times, but I've failed to understand why we cannot use 'lt_dladdsearchdir' to augment the path, as shown in the first code excerpt of that message: env = getenv

Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment)

2012-10-06 Thread Ludovic Courtès
Hi, Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: Following Bruce's suggestion, it causes 'sysdep_dynl_link' to manually search additional directories if 'lt_dlopenext' fails to find the library in the default paths

Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment)

2012-10-04 Thread Ludovic Courtès
Hi Mark! Thanks for being quicker and more active than me! ;-) Overall, the approach of mimicking what the lookup procedure of ‘lt_dlopenext’ sounds good to me. Mark H Weaver m...@netris.org skribis: Following Bruce's suggestion, it causes 'sysdep_dynl_link' to manually search additional

Re: regexp-split for Guile

2012-10-04 Thread Ludovic Courtès
Hi Chris, Chris K. Jester-Young cky...@gmail.com skribis: I'm currently implementing regexp-split for Guile, which provides a Perl-style split function (including correctly implementing the limit parameter), minus the special awk-style whitespace handling (that is used with a pattern of ,

Re: [PATCH] In fold-matches, set regexp/notbol unless matching string start.

2012-09-26 Thread Ludovic Courtès
Chris K. Jester-Young cky...@gmail.com skribis: * module/ice-9/regex.scm (fold-matches): Set regexp/notbol if the starting position is nonzero. * test-suite/tests/regexp.test (fold-matches): Check that when matching /^foo/ against foofoofoofoo, only one match results. ---

Re: 1.8 ‘send’ bug + re-engagement

2012-09-24 Thread Ludovic Courtès
Hi! Thanks for the update! Thien-Thi Nguyen t...@gnuvola.org skribis: i'd like to apply the fix myself (in the savannah repo), onto ‘branch_release-1-8’. Yes, please do! Can you apply it to stable-2.0 as well? Sorry, no; i lack sufficient bandwidth. OK, I’ll do it if nobody

Re: Why is Guile now setting LD_LIBRARY_PATH?

2012-09-11 Thread Ludovic Courtès
Hi Bruce, Bruce Korb bk...@gnu.org skribis: in main() LD_LIBRARY_PATH='EMPTY' in inner_main() LD_LIBRARY_PATH='/usr/lib64:/usr/lib64/guile/2.0/extensions' The reason provided in ‘sysdep_dynl_init’ is: /* Add SCM_LIB_DIR and SCM_EXTENSIONS_DIR to the loader's search path.

Re: init.scm

2012-09-05 Thread Ludovic Courtès
Hi, Ian Price ianpric...@googlemail.com skribis: Attempting to resolve a guildhall bug with tupi[0], he mentioned init.scm. I was not aware that guile read such a file, and it is not in the manual, but it is in NEWS. So, first off, that situation should change. Agreed. What I would like

Re: things are eq? but not generated at the same time

2012-09-05 Thread Ludovic Courtès
Ian Price ianpric...@googlemail.com skribis: Ian Price ianpric...@googlemail.com writes: anyway. Anyway if vectors are immutable, as I believe they are, it I, of course, meant vector literals, but a quick test shows this is not the case. It could be the case, though. Literal strings are

Re: SRFI-105 (curly-infix-expressions) marker #!srfi-105 ... could guile live with that?

2012-09-05 Thread Ludovic Courtès
Hi David, David A. Wheeler dwhee...@dwheeler.com skribis: Guile support for curly-infix-expressions is very important to me. Yet obviously guile has different semantics for #!, namely, #!...!#. Clearly #!srfi-105 could be handled by a special case, but could people live with that? I even

Re: things are eq? but not generated at the same time

2012-09-05 Thread Ludovic Courtès
Hi, Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: If I put, (define a #(1)) (define b #(1)) , load the file. Then (eq? a b) #t The R5RS reads (info (r5rs) Equivalence predicates): Since it is an error to modify constant objects (those returned by literal

Re: Will guile support R7RS terminating equal? in the presence of cycle?

2012-09-03 Thread Ludovic Courtès
Hi, Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: (define (c-equal-1 x y) (match x (((and xx (_ . _)) . _) [...] ((xx . _) [...] (_ (equal? x y Doesn’t this mean that ‘cycle-equal?’ falls back to ‘equal?’ for non-pairs? Ludo’.

Re: Will guile support R7RS terminating equal? in the presence of cycle?

2012-09-02 Thread Ludovic Courtès
Hi, Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: The cycle detection for a tree would probably look something like, Tortoise-and-hare would have to be applied to arbitrary data structures, AIUI. Ludo’.

Re: Ang.: Will guile support R7RS terminating equal? in the presence of cycle?

2012-09-01 Thread Ludovic Courtès
Hi Stefan! stefan.ita...@gmail.com stefan.ita...@gmail.com skribis: 1 I don't think the current equal? Will need to change, but Another one that under rnr7 will be coded and used with the Symbol equal? In that module. Hence no problems. Yes, of course. 2 The guile hackers are able enough

Re: Ang.: Will guile support R7RS terminating equal? in the presence of cycle?

2012-09-01 Thread Ludovic Courtès
Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: https://gitorious.org/typed-guile It's a type system implemented using guile-log! Woow, this is crazy. I wish we could converge eventually... Ludo’.

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

2012-08-28 Thread Ludovic Courtès
Hi David, Thanks for the note. I must confess I’m slightly skeptical about the chances of success of this approach. However, I’m happy you’re trying, and the fact that you take a principled approach, with the various syntactic extensions defined separately seems great to me. Please let us know

Re: Do you recognize these modules?

2012-08-26 Thread Ludovic Courtès
Hi Noah! Noah Lavine noah.b.lav...@gmail.com skribis: Any objections if I apply these patches soon? I'd like to get them off of my to do list. Presumably, yes. Could you post the latest version of the patch here (the previous broke the manual, IIUC)? Thanks! Ludo’.

Re: 1.8 ‘send’ bug + re-engagement

2012-08-26 Thread Ludovic Courtès
Hi, Mike Gran spk...@yahoo.com skribis: The big issues with moving to 2.0 that I've seen expressed are non-portability, I don’t think 2.0 is less portable than 1.8; there’s room for improvement (MinGW, pthread support), but it’s not a disaster either. number of dependencies, There’s are

Re: guildhall packages

2012-08-26 Thread Ludovic Courtès
Hi Ian! Ian Price ianpric...@googlemail.com skribis: This is just a quick update on the progress of that, and a small enticement to try to convince you to test it out[1]. Remember linus's law, given enough eyeballs all bugs are shallow :P Currently packaged is: Woow, excellent work! FWIW,

Re: 1.8 ‘send’ bug + re-engagement

2012-08-25 Thread Ludovic Courtès
Hi Thien-Thi! Thien-Thi Nguyen t...@gnuvola.org skribis: Looking to move WIKID[0] out of the Guile 1.4.x ghetto (which is pretty cozy, i must say), (Speaking of which, do let me know when rpx has left the ghetto, too. :-)) i ran into a Guile 1.8 problem. Apparently, ‘send’ gratuitously

Re: guile.m4 for autogen

2012-08-24 Thread Ludovic Courtès
Hi Bruce, Bruce Korb bruce.k...@gmail.com skribis: Hi Harlan, On 08/18/12 14:41, Harlan Stenn wrote: Have you tried using pkg-config in autogen's configure to find the guile CFLAGS and loader stuff? I'd prefer to use guile.m4, even though it uses guile-config. It insists. Unfortunately,

Optimizing vlists

2012-08-13 Thread Ludovic Courtès
Hello, Mark H Weaver m...@netris.org skribis: Here's one specific data structure idea: we have a vlist data structure, currently written in Scheme, but in my opinion it would be useful to rewrite it in C for better efficiency. FWIW, I’m not convinced that this is a fruitful approach. First,

Re: interesting thread on libffi

2012-08-10 Thread Ludovic Courtès
Hi! Andy Wingo wi...@pobox.com skribis: https://bugzilla.redhat.com/show_bug.cgi?id=736489#c35 We’ve had bugs with integer returns, like http://debbugs.gnu.org/10203 and http://thread.gmane.org/gmane.comp.lib.ffi.general/406. Ludo’.

Re: Extensible vm ops?

2012-08-10 Thread Ludovic Courtès
Hi! Tristan Colgate tcolg...@gmail.com skribis: Is it possible, or practical, to support addition of VM ops to the VM dynamically? This would probably slow down byte code interpretation, I think. Providing a bunch of hard coded SIMD based vector ops might well be good enough, but I

Re: Guile build failure

2012-08-09 Thread Ludovic Courtès
Hi David, and sorry for the delay, David Pirotte da...@altosw.be skribis: ;;; (remaining /mnt/galia/linux/64/local/src/guile/guile-2.0.6/load-test.dir (. .. .nfs121e01b20019 .nfs121e01b3001a)) Aaah, those hidden files are the culprit. I’ll guess we’ll have to live

Re: Guile build failure

2012-07-21 Thread Ludovic Courtès
Hi! Sorry, I’m still pretty clueless. Can you try the attached patch, and run “./check-guile load.test” with this NFS setup? For me, it displays this: ;;; (remaining /home/ludo/src/guile/load-test.dir/dir3 (. ..)) ;;; (remaining /home/ludo/src/guile/load-test.dir/dir1/subdir1 (. ..))

Re: Guile build failure

2012-07-11 Thread Ludovic Courtès
Hi, David Pirotte da...@altosw.be skribis: This was using stable. No I didn't try the tarball, but since you asked i just did and did in 2 different locations: /opt [no nfs] and /usr/local/src [uses nfs] and make check passes on /opt but fails on /usr/local/src So the problem seems to

Re: Enhancement to the syntax system?

2012-07-10 Thread Ludovic Courtès
Hi! Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: | It’s true that it’s annoying that the wrong binding is silently used. | Do you think it’s common enough to justify new syntax? Yes this highlights a comon problem when implementing racket match with #`. Sure, but it’s not

Re: Enhancement to the syntax system?

2012-07-10 Thread Ludovic Courtès
Hi, Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: racket: (define-for-syntax (f x) #`(let ((x 1)) #,x)) (define-syntax (g x) (syntax-case x ()((_ y) #`(let ((x y)) #,(f #'x ) (g 4) 4 In guile, scheme@(guile-user) (define (f x) #`(let ((x 1)) #,x)) scheme@(guile-user)

Re: [racket-dev] Enhancement to the syntax system?

2012-07-10 Thread Ludovic Courtès
Hi, Matthew Flatt mfl...@cs.utah.edu skribis: It's natural --- but not correct --- to think that #` is responsible for hygiene, in which case `(f #'x)' should keep the given `x' separate from the `let'-bound `x' in the result. [...] If you change the example to #lang racket

GNU Guile 2.0.6 released

2012-07-07 Thread Ludovic Courtès
We are pleased to announce GNU Guile release 2.0.6, the next maintenance release for the 2.0.x stable series. The Guile web page is located at http://gnu.org/software/guile/ . Guile is an implementation of the Scheme programming language, with support for many SRFIs, packaged for use in a wide

Re: scm_to_pointer vs scm-pointer

2012-07-05 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: On Tue 03 Jul 2012 23:47, l...@gnu.org (Ludovic Courtès) writes: This should be fixed. Otherwise it's impossible to document in any sane fashion. Suggestion: change scm_to_pointer to SCM_POINTER_VALUE. WDYT? I’m happy with this change. Mark

Re: bug#11198: prefab structs in guile

2012-07-05 Thread Ludovic Courtès
Hello, Andy Wingo wi...@pobox.com skribis: Then you would modify the reader to call out to (ice-9 prefab) with the list after #s, e.g. the (foo ...) in #s(foo ...). (ice-9 prefab) would return the record, creating the RTD if needed. The problem with this is that one could precisely forge

Re: bug#11198: prefab structs in guile

2012-07-05 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: Since the expression reader can generate prefab instances, they are useful when convenient serialization is more important than abstraction. Opaque and transparent structures also can be serialized, however, if they are defined with

Re: bug#11198: prefab structs in guile

2012-07-05 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: On Thu 05 Jul 2012 23:55, l...@gnu.org (Ludovic Courtès) writes: So I’d be in the ‘define-serializable-struct’ camp, so to speak. That's a valid position to have in general. I can also imagine cases in which you would choose other things. It's

Re: Enhancement to the syntax system?

2012-07-03 Thread Ludovic Courtès
Hey! Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: Maybe this help to see what I'm after, #'(let ((x v)) #.(f #'x)) = (let-syntax ((g (lambda (stx) (syntax-case stx ((_ x) (f #'x) #'(let ((x v)) (g x))

Re: scm_to_pointer vs scm-pointer

2012-07-03 Thread Ludovic Courtès
Heya! Andy Wingo wi...@pobox.com skribis: scm-pointer takes a Scheme value and returns a Scheme value which is a foreign pointer to the Scheme value. It has been in Guile since 2.0 I think. v2.0.0-105-g148c331, apparently. scm_to_pointer takes a Scheme value which is a foreign pointer,

Re: Preparing for 2.0.6

2012-07-02 Thread Ludovic Courtès
Hello! Nala Ginrut nalagin...@gmail.com skribis: Hmm...I still get that error message in stable-2.0 branch for ecmascript. Which message? Ludo’.

Re: Enhancement to the syntax system?

2012-07-02 Thread Ludovic Courtès
Hi Stefan, Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: Hygiene is harder to maintain. e.g. I kept on hitting this kind of code snippets #'(let ((x v)) #,(f rest #'x)) The problem with this code is hygiene, I need to make a gensym and use with-syntax to bound x to that

Re: bug#10974: guile-u...@gnu.org

2012-07-02 Thread Ludovic Courtès
Hi, Alexei Matveev alexei.matv...@gmail.com skribis: I assume there was a reason to introduce scm_to/from_int macros and that it gets defined to either -32 or -64 versions depending on the build/platform (not sure what else, but Guile packagers know it). Using a specific one invites for

Re: Enhancement to the syntax system?

2012-07-02 Thread Ludovic Courtès
Hey! Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: Maybe this help to see what I'm after, #'(let ((x v)) #.(f #'x)) = (let-syntax ((g (lambda (stx) (syntax-case stx ((_ x) (f #'x) #'(let ((x v)) (g x)) Sorry, I fail to understand the problem you’re trying to solve.

Re: Preparing for 2.0.6

2012-06-29 Thread Ludovic Courtès
Hi! Nala Ginrut nalagin...@gmail.com skribis: For stable-2.0? We’re talking about 2.0, yes. Ludo’.

Re: wip-rtl, solstice edition

2012-06-29 Thread Ludovic Courtès
Hello! Andy Wingo wi...@pobox.com skribis: Yes I see what you are saying. It was only recently that things came together enough to be testable at all (to have the circle between assembler, linker, and loader). However, the instructions themselves are fairly well documented; do see

Re: wip-rtl, solstice edition

2012-06-29 Thread Ludovic Courtès
Hello, Noah Lavine noah.b.lav...@gmail.com skribis: I sent another email recently about different ways to make the JITter understand all of the bytecode, but at the time, I thought I would have to parse the C definition of the VM and generate the JITter from that in order for it to be merged

Preparing for 2.0.6

2012-06-28 Thread Ludovic Courtès
Hello! Still hesitant between writing a native code back-end for IA64 and making Guile multiboot-compliant? Hesitate no more! Time has come for 2.0.6, so let’s squash bugs! One thing I’d like to get in by then is the SRFI-9 “functional record setters”. Mark: what’s your take on this?

Re: wip-rtl, solstice edition

2012-06-25 Thread Ludovic Courtès
Hello, and happy Solstice! :-) Andy Wingo wi...@pobox.com skribis: First of all, I have changed the on-disk format for .go files to be ELF, even for the old Guile 2.0-style bytecode. This increases the file size somewhat, though the memory footprint is the same. What it gives us, though,

Re: patching gcc to allow other calling conventions

2012-06-21 Thread Ludovic Courtès
Hi, Daniel Krueger keen...@googlemail.com skribis: On Thu, Jun 21, 2012 at 2:32 PM, Stefan Israelsson Tampe stefan.ita...@gmail.com wrote: Why not specify the logic in scheme and output it either to C or Assembler :-) That sounds very cool, and would be very cool, I thought first, but

Re: bug#10410: guile: uri module confused by domain names starting with numbers, ipv6 addresses

2012-06-20 Thread Ludovic Courtès
Hi Daniel, Daniel Hartwig mand...@gmail.com skribis: I have noticed that the (web uri) module does not handle domain names that start with numbers: scheme@(guile-user) (string-uri http://123.com;) $1 = #f This one was fixed around commit 1868309a9e34a04a5b3020e147d0ce029038b290. Thanks,

Re: patching gcc to allow other calling conventions

2012-06-18 Thread Ludovic Courtès
Hi, Noah Lavine noah.b.lav...@gmail.com skribis: (Note: you could also generate vm-engine.c and your JIT from some third source, but I think we rejected that for being too complicated. It would certainly make the build process more difficult.) Right, but I would still consider it better

Re: patching gcc to allow other calling conventions

2012-06-17 Thread Ludovic Courtès
Hi Stefan, Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: The reason I wanted to fork sbcl is that it has assemblers for x86,x86-64,alpha,hppa,sparc,ppc,mips e.g a few targets. It would be nice to know what targets to focus on or if we need to add anyone else to the list! Did you

Re: progress with native code generation in guile

2012-06-17 Thread Ludovic Courtès
Hi Stefan! This sounds fun! Similarly, there’s the old Guile-Lightning, which could achieve something similar, albeit in an abstract ISA and not entirely in Scheme. Might be worth a look. Thanks, Ludo’.

Re: ballpark rtl speeds

2012-06-17 Thread Ludovic Courtès
Hi! Andy Wingo wi...@pobox.com skribis: Some ballpark measurements of the overhead of the old VM, the new VM, and C (compiled with gcc -g -O0). Woow, that looks promising. Thanks for the news. Ludo’.

Re: scandir patch

2012-06-11 Thread Ludovic Courtès
Hi! Andy Wingo wi...@pobox.com skribis: * module/ice-9/ftw.scm (scandir): Run the select? procedure on all items, including subdirs and the `.' and `..' entries. Since the goal was to mimic scandir(3), I double-checked: #include stdlib.h #include unistd.h #include dirent.h int main () {

Re: subbytevectors

2012-06-11 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: On Sat 09 Jun 2012 17:16, Thien-Thi Nguyen t...@gnuvola.org writes: If you want to make a case for such a facility, why not show some code, both without (status quo) and with (proposed)? It should be clear what expressiveness is gained, and how. For

Re: Growable arrays?

2012-06-11 Thread Ludovic Courtès
Hi David, David Kastrup d...@gnu.org skribis: Scheme/Guile vectors are fixed size. Now I have a situation where I have a basic type lattice with records stored in vectors, and this type lattice may be extended dynamically (which typically happens at the start of a whole file, for

Re: subbytevectors

2012-06-11 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: On Mon 11 Jun 2012 13:55, l...@gnu.org (Ludovic Courtès) writes: What about using copying (or rather, copy-on-write) sub-bytevectors to start with? That would avoid the aliasing issue; OTOH COW would make the implementation more complex. Not a bad

Re: Separate textual/binary ports vs. mixed ports

2012-06-05 Thread Ludovic Courtès
Hi, Daniel Krueger keen...@googlemail.com skribis: If you have it mixed you can do some, say hacking, where you see it works but you can't see anywhere what you're exactly doing, most of it is hidden in the guile implementation, which interprets %default-port-conversion-strategy and gives

Re: Separate textual/binary ports vs. mixed ports

2012-06-05 Thread Ludovic Courtès
Hi! Noah Lavine noah.b.lav...@gmail.com skribis: 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

Re: wip-rtl status

2012-06-04 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: However something like '(1 . (2 . ())) has two pairs: the tail which has two immediates, and the head that has an immediate in the car but a pointer in the cdr. In that case you need to patch up the cdr to point to the tail, after you load the .go (or

Separate textual/binary ports vs. mixed ports

2012-06-03 Thread Ludovic Courtès
Hi, Daniel Krueger keen...@googlemail.com skribis: In the first place I agree that ports should be seperated and not mixed textual/binary Why? (I understand how this would work in terms of APIs co., I’m just unsure what the rationale is.) Thanks, Ludo’.

Re: %default-port-conversion-strategy and string ports

2012-06-02 Thread Ludovic Courtès
Hi Mark, Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Ports in Guile can be used to write characters, or bytes, or both. In particular, every port (including string ports, void ports, etc.) has an “encoding”, which is actually only used for textual I/O

Re: %default-port-conversion-strategy and string ports

2012-06-01 Thread Ludovic Courtès
Hi! Mark H Weaver m...@netris.org skribis: SRFI-6 (string ports) says nothing about port encodings, and yet portable code written for SRFI-6 will fail on Guile 2.0 unless the string is constrained to whatever the default port encoding happens to be. This is not just a theoretical issue; it

Re: %default-port-conversion-strategy and string ports

2012-06-01 Thread Ludovic Courtès
Hi David, Ports in Guile can be used to write characters, or bytes, or both. In particular, every port (including string ports, void ports, etc.) has an “encoding”, which is actually only used for textual I/O. Conversely, an R6RS port is either textual or binary, but not both. IMO, one

Re: %default-port-conversion-strategy and string ports

2012-05-31 Thread Ludovic Courtès
Hi, David Kastrup d...@gnu.org skribis: Shouldn't strings be in internal encoding anyway? The whole point of a string is to be an array of characters. Not an array of arbitrarily encoded bytes. Yes, but I was referring to “string ports”, which may actually be fed arbitrary binary data, not

Re: Build failures - compiling TeXmacs under guile 2.0.5

2012-05-30 Thread Ludovic Courtès
Hi, Jan Synacek jsyna...@redhat.com skribis: Texmacs complains when started: snip Backtrace: In unknown file: ?: 7 [boot-closure #t #catch-closure 420e600 ...] ?: 6 [catch-closure] ?: 5 [boot-closure #t #catch-closure 4b59180 #catch-closure 4b59160] ?: 4 [catch-closure]

%default-port-conversion-strategy and string ports

2012-05-30 Thread Ludovic Courtès
Hello! Commit b22e94db7c91d7661204e33f3bc2bfead002c9b7 adds ‘%default-port-conversion-strategy’, a natural friend of ‘%default-port-encoding’. First, I’m wondering whether ‘port’ should be part of the name, given that it’s also referred to by ‘scm_stringn’ co. It’s good to have it in the name,

Re: Build failures - compiling TeXmacs under guile 2.0.5

2012-05-29 Thread Ludovic Courtès
Hi Jan, Jan Synacek jsyna...@redhat.com skribis: Unfortunately, it doesn't run well. Its window is blank after start. I captured a log [1]. Can you please take a look at it? What does ERROR: no such language objcode mean? The scheme files are there. [1] http://www.fpaste.org/okRT/ It

Re: Build failures - compiling TeXmacs under guile 2.0.5

2012-05-29 Thread Ludovic Courtès
Hi! Jan Synacek jsyna...@redhat.com skribis: Hm, this is weird. So TeXmacs seems to bundle the same eval.scm as guile has (among others)? You mean TeXmacs ships a file called ice-9/eval.scm? If that is the case, we’re in trouble. I tried to copy all the .go files from installation to

Re: Build failures - compiling TeXmacs under guile 2.0.5

2012-05-28 Thread Ludovic Courtès
Hi, Jan Synacek jsyna...@redhat.com skribis: It's a macro: #define scm_scm2str gh_scm2newstr I added additional #define gh_scm2newstr(a, b) scm_str2string((a)) This one is incorrect. You’d want ‘scm_to_locale_string’ instead, which takes an ‘SCM’ and returns a ‘char *’ (which the caller

Re: Using labels-as-values on MacOS X

2012-05-26 Thread Ludovic Courtès
Hi, Hans Aberg haber...@telia.com skribis: On 25 May 2012, at 17:31, Ludovic Courtès wrote: Ken Raeburn raeb...@raeburn.org skribis: * Don't use addresses of code labels with LLVM, even if the compiler supports them. At least with the version of LLVM GCC on my Mac (gcc version 4.2.1

Removing ‘GC_PTR’

2012-05-25 Thread Ludovic Courtès
Hi, Ken Raeburn raeb...@raeburn.org skribis: Is GC_PTR defined as void* in 6.8? If so, the patch to remove GC_PTR would still work. Though a configure test could probably be written to test whether the libgc header defines GC_PTR. I agree we can remove it: in stable-2.0 it’s no longer used

Using labels-as-values on MacOS X

2012-05-25 Thread Ludovic Courtès
Hi, Ken Raeburn raeb...@raeburn.org skribis: * Don't use addresses of code labels with LLVM, even if the compiler supports them. At least with the version of LLVM GCC on my Mac (gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)), Damn, what compiler is this? It’s

Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-158-g15bb587

2012-05-23 Thread Ludovic Courtès
Hi! Andy Wingo wi...@pobox.com skribis: fix arity check for applicable structs * module/language/tree-il/analyze.scm (validate-arity): Fix for applicable structs. Applicable structs are procedures, but not every struct has a first slot, and not every struct with a

Re: syntax parse link

2012-05-22 Thread Ludovic Courtès
Hi! Thanks! There are a few typos: guile - Guile racket - Racket an hygienic - a hygienic recomending - recommending Also, could you move it above, to keep the list alphabetically sorted? Thanks, Ludo’.

Re: Register VM WIP

2012-05-16 Thread Ludovic Courtès
Hi, Noah Lavine noah.b.lav...@gmail.com skribis: I think what Andy is proposing to do is to get rid of the temporary-variable stack and operate directly on the local-variable stack. We shouldn't think of these registers as being like machine registers, and in fact maybe registers is not a

Re: our benchmark-suite

2012-05-16 Thread Ludovic Courtès
Hi! Andy Wingo wi...@pobox.com skribis: On Wed 25 Apr 2012 22:39, l...@gnu.org (Ludovic Courtès) writes: So, those are the problems: benchmarks running for inappropriate, inconsistent durations; I don’t really see such a problem. It doesn’t matter to me if ‘arithmetic.bm’ takes 2mn while

Re: syntax parse link

2012-05-16 Thread Ludovic Courtès
Hi Stefan, Stefan Israelsson Tampe stefan.ita...@gmail.com skribis: I have a few things I would like to do first but maybe after this weekend I will make the linkage! Please add it to gnu-guile-projects.html (under template/ first, as Andy mentioned), and using the same format as other

Re: Making every goops object applicable

2012-05-15 Thread Ludovic Courtès
Hi, Krister Svanlund krister.svanl...@gmail.com skribis: Apparently this works by some flag being set by applicable-strukt in libguile for the object and that flag is checked during application, calling the 'procedure slot if it's set with some optimization assuming that 'procedure is the

Re: Empty entries in $GUILE_LOAD_PATH

2012-05-15 Thread Ludovic Courtès
Hi Mark, Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Try something like: $ GUILE_LOAD_PATH=/foo/bar: make check … and see the LALR tests fail with: ERROR: In procedure primitive-load-path: Unable to find file home/ludo/src/guile/test-suite/lalr

Re: Functional record setters, a different approach

2012-05-15 Thread Ludovic Courtès
Hi Mark, Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: I’ll let you see whether/how you can borrow from this in your code, if that’s fine with you. Okay, will do. Any progress

Re: [PATCH] Turn on more documentation

2012-05-15 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com skribis: What if we merge Guile Modules and Standard Library into one Standard Library node, and keep API Reference as it is? Sounds good to me. Perhaps “Standard Library” could have sub-sections, like “Data Structures”, “Web”, “XML”, “Texinfo”, etc. Ludo’.

Re: Do you recognize these modules?

2012-05-14 Thread Ludovic Courtès
Hi Thien-Thi, It would be great if you could help with documenting these modules. What do you think about copying the doc for these modules from 1.4 to 1.8/2.0? Would you be willing to transfer copyright to the FSF for that? If Noah is OK to help with the actual transfer of the doc bits, then

Re: [PATCH] Turn on more documentation

2012-05-14 Thread Ludovic Courtès
Hi Noah! Noah Lavine noah.b.lav...@gmail.com skribis: Okay, I can write documentation this way too. I have a question about this: what is the distinction between the sections API Reference and Guile Modules? I need to figure out where documentation for different modules goes. From

Re: [PATCH] Turn on more documentation

2012-05-14 Thread Ludovic Courtès
Hi! Noah Lavine noah.b.lav...@gmail.com skribis: 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

Re: Register VM WIP

2012-05-14 Thread Ludovic Courtès
Hi Andy! This all looks pretty exciting! Being able to get rid of all repeated ‘local-{ref,set}’ instructions sounds compelling. And it does seem to bring us one step closer to native code. Presumably the tricky part will be the register allocator, right? Looking at the ‘countdown’ example, I

Empty entries in $GUILE_LOAD_PATH

2012-05-08 Thread Ludovic Courtès
Hello! Try something like: $ GUILE_LOAD_PATH=/foo/bar: make check … and see the LALR tests fail with: ERROR: In procedure primitive-load-path: Unable to find file home/ludo/src/guile/test-suite/lalr/common-test.scm in load path (These tests use ‘load’.) Is that expected? What’s the

Re: Psyntax security hole prevents secure sandboxing in Guile

2012-05-08 Thread Ludovic Courtès
Hi Mark, Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: Every once in a while someone asks about secure sandboxing with Guile, and generally the response is that it should be fairly easy, by creating a module

Re: [PATCH] Turn on more documentation

2012-05-07 Thread Ludovic Courtès
Hi! Noah Lavine noah.b.lav...@gmail.com skribis: 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

Re: our benchmark-suite

2012-05-07 Thread Ludovic Courtès
Hi Neil! Neil Jerram n...@ossau.homelinux.net skribis: Still, I wanted to do something new, so I've added further graphs showing just the last 50 measurements for each benchmark (whereas the existing graphs showed all measurements since my data collection began). The generation of those is

Re: Who moderates the scheme-reports list?

2012-05-07 Thread Ludovic Courtès
Hi Alex, My understanding is that these mailing lists require a Google account, which I’m personally not interested in. In the past, I subscribed these lists to Gmane [0], but unfortunately, that doesn’t allow for posting. Would it be possible to allow for non-subscriber posts? Thanks, Ludo’.

Re: Psyntax security hole prevents secure sandboxing in Guile

2012-05-07 Thread Ludovic Courtès
Hi Mark! Mark H Weaver m...@netris.org skribis: Every once in a while someone asks about secure sandboxing with Guile, and generally the response is that it should be fairly easy, by creating a module with carefully selected bindings, but there's nothing ready out of the box. I just

<    3   4   5   6   7   8   9   10   11   12   >