Re: Guile 1.4.1.111 available

2007-09-28 Thread William Xu
Thien-Thi Nguyen <[EMAIL PROTECTED]> writes: >What's the reason for continuing 1.4 >while 1.8.* is already released? > > one reason is that i can experiment w/o too much fear > of bothering users (-: since there seem to be so few). It's a pity that people are splitting when the guile user

Re: Is guile-xlib still available anywhere?

2007-07-17 Thread William Xu
"Marco Maggi" <[EMAIL PROTECTED]> writes: > -> download area -> foreign > > Thanks ! -- William 《青溪》 作者:王维 言入黄花川,每逐青溪水。 随山将万转,趣途无百里。 声喧乱石中,色静深松里。 漾漾泛菱荇,澄澄映葭苇。 我心素已闲,清川澹如此。 请留盘石上,垂钓将已矣。 _

Re: Is guile-xlib still available anywhere?

2007-07-16 Thread William Xu
"Marco Maggi" <[EMAIL PROTECTED]> writes: > Some time ago I asked Neil Jerram to make it available to > me so that I could attempt to include it in GEE. He did > and I tried it: it does not compile with Guile 1.8; > it requires to be updated and to do it one has to > understand how it works and, I

Is guile-xlib still available anywhere?

2007-07-14 Thread William Xu
And there was no plan of adding guile-xlib support in guile-core ? -- William 《酬张少府》 作者:王维 晚年惟好静,万事不关心。 自顾无长策,空知返旧林。 松风吹解带,山月照弹琴。 君问穷通理,渔歌入浦深。 ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: compile error: "LC_CTYPE_MASK" redefined

2007-07-13 Thread William Xu
[EMAIL PROTECTED] (Ludovic Courtès) writes: > Make sure you also run `autoheader && autoreconf -i'. Hmm, i did a fresh co again. Then ./autogen.sh, configure. Now it doesn't complain anymore. Do i still have to rerun ./autogen.sh, configure again after some `cvs update' ? I thought i only need

compile error: "LC_CTYPE_MASK" redefined

2007-07-12 Thread William Xu
After a `cvs update' on guile-core, make fails at: , | ./guile-snarf -o i18n.x i18n.c -DHAVE_CONFIG_H -I.. -I.. -g -O2 -Wall -Wmissing-prototypes -Werror | i18n.c:129:1: error: "LC_CTYPE_MASK" redefined | In file included from i18n.c:51: | /usr/include/locale.h:161:1: error: this is the loc

Re: about `smob' generated by swig

2007-03-31 Thread William Xu
"Marco Maggi" <[EMAIL PROTECTED]> writes: > AFAICT you have to write a C constructor: And as well as a C desctructor? Ooh, i thought SWIG can take care of all details for me. Apparently it doesn't. Thanks for your help. -- William We are MicroSoft. You will be assimilated. Resistance is f

Re: about `smob' generated by swig

2007-03-28 Thread William Xu
"Marco Maggi" <[EMAIL PROTECTED]> writes: > "William Xu" wrote: >> Swig could generate pointer types in C to smob. But users >> still have to define smob related operations(like mark, >> free, etc) by hand? > > Mh, no. I have n

about `smob' generated by swig

2007-03-26 Thread William Xu
Hi, Swig could generate pointer types in C to smob. But users still have to define smob related operations(like mark, free, etc) by hand? -- William It was a JOKE!! Get it?? I was receiving messages from DAVID LETTERMAN!! YOW!! ___ Guile-user mai

Re: about usage of `sigaction'

2007-01-18 Thread William Xu
Kevin Ryde <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: >> >> So all other things are blocked during accept()? > > Signals for the thread in question at least :(. > >> Maybe this is a problem of scheme accept? > > It'

Re: about usage of `sigaction'

2007-01-17 Thread William Xu
Kevin Ryde <[EMAIL PROTECTED]> writes: > I expect you've checked with "ps" that the child has actually exited. Yes, i think so. ,[ ps -ef|grep serv ] | william 12353 10420 0 12:54 pts/200:00:00 /home/william/bin/guile \ ./server.scm | william 12364 12353 0 12:54 pts/200:00:00 [s

about usage of `sigaction'

2007-01-16 Thread William Xu
Hi all, i wrote a simple echo server/client. To catch SIGCHLD signal, i install a signal handler before first `connect'. The problem is that when the client exits, the handler seems not called. Instead, upon a new client connected to the server, the handler will be called(due to last client's exi

Re: GDS does not support Emacs 23?

2006-09-24 Thread William Xu
Neil Jerram <[EMAIL PROTECTED]> writes: > That's interesting. How can one call bind() so that it steals the > address and port number from a previous listen socket? Change socket from AF_INET to AF_UNIX does the trick. The following patch seems to work fine. Now i can call gds-server from either

Re: GDS does not support Emacs 23?

2006-09-23 Thread William Xu
Neil Jerram <[EMAIL PROTECTED]> writes: > Yes, that is a problem that isn't well handled at the moment. I've > been thinking about this and have two possible solutions in mind. > > 1. (Easier) Change the GDS elisp code so that the gds-server process >is only started when needed. This would p

Re: GDS does not support Emacs 23?

2006-09-22 Thread William Xu
Neil Jerram <[EMAIL PROTECTED]> writes: > netawater <[EMAIL PROTECTED]> writes: > >> I use it very well in Emacs 21, but there is >> a error when (require 'gds) is executed in >> Emacs 23: >> error in process filter: Wrong type argument: >> listp, Backtrace: > > Emacs 23, gosh :-) > > Anyway, plea

Re: debian package for guile-debugging-0.12

2006-08-25 Thread William Xu
Neil Jerram <[EMAIL PROTECTED]> writes: > Do you know the procedure for doing that? Apply to be a DD(debian developer) first, here's a reference page, http://people.debian.org/~mpalmer/debian-mentors_FAQ.html -- William A programming language is low level when its programs require attention

Re: debian package for guile-debugging-0.12

2006-08-24 Thread William Xu
John Steele Scott <[EMAIL PROTECTED]> writes: > Hi, > > I have made a deb package of Neil Jerram's very useful > guile-debugging-0.12. > > The package is available from: > > > > Deb source is available i

Re: Guile-WWW 2.15 available

2006-04-28 Thread William Xu
Thien-Thi Nguyen <[EMAIL PROTECTED]> writes: >Maybe this is a bug? > > if the files are unusable, e.g., doing "(use-modules (www http))" fails > to load the (www http) module, then that would be a bug, either in the > packing method, or in guile's loading method (or possibly elsewhere). > othe

Re: Guile-WWW 2.15 available

2006-04-28 Thread William Xu
William Xu <[EMAIL PROTECTED]> writes: > Thien-Thi Nguyen <[EMAIL PROTECTED]> writes: > >> tarball, anoncvs instructions, prettified code, etc, in dir: >> >> http://www.glug.org/people/ttn/software/guile-www/ > > This is different from guile/guile-www

Re: Guile-WWW 2.15 available

2006-04-28 Thread William Xu
Thien-Thi Nguyen <[EMAIL PROTECTED]> writes: > tarball, anoncvs instructions, prettified code, etc, in dir: > > http://www.glug.org/people/ttn/software/guile-www/ This is different from guile/guile-www module at gnu.savannah.org, which hasn't been updated for long, right? -- William ___

Re: accessing a printf-like function from scheme

2006-04-25 Thread William Xu
Dan McMahill <[EMAIL PROTECTED]> writes: > I'm trying to provide scheme access to a C function which has the same > interface a printf(). What I'd like to do in scheme is something like But, doesn't SLIB already have this? (info "(slib) Standard Formatted Output") -- William ___

Re: about readline

2006-03-12 Thread William Xu
Neil Jerram <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: > >> While this is a function? It seems the very variable is >> *readline-completion-function*, but which is not exported from the >> module? > > Yes. I guess the point is

Re: about readline

2006-03-11 Thread William Xu
Neil Jerram <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: > >> Hi, >> >> I'd like to control the completing candicates when doing readline >> completion. For instance, suppose there's a variable >> readline-completin

about readline

2006-03-11 Thread William Xu
Hi, I'd like to control the completing candicates when doing readline completion. For instance, suppose there's a variable readline-completing-string with value "foo bar", then completions will be based on either "foo" or "bar". Is there such a variable in readline? -- William ___

Re: recv! and thread

2006-03-10 Thread William Xu
Kevin Ryde <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: >> >> the original guile> prompt is gone > > I think it's just been printed over on the tty. Try typing something, > it should be still there :-). Does it work there?

Re: recv! and thread

2006-03-10 Thread William Xu
Kevin Ryde <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: >> >> i have already tried that.. > > Oh, I see, in 1.6 it's a bare recv() call, it doesn't cooperate with > the multi-threading. Hmm. Not sure if it's easy to fix

recv! and thread

2006-03-01 Thread William Xu
Hi people, I want to create a receiver thread for receiving incoming packets. While when the thread is created, seems it becomes the main thread? the original guile> prompt is gone. Here is what i did, (define receiver (lambda () (let ((sock (socket PF_INET SOCK_DGRAM 0)) (buf (

Re: slib and scm_shell() conflicts

2006-02-25 Thread William Xu
Seems it's some config problem or what, i'm not sure. But here's how i made it at least work. To load SLIB, use something like, (use-modules (ice-9 slib)) (require 'printf) But don't load this directly: ;; (load-from-path "/usr/share/slib/init/guile.init") Instead, when it says something not

Re: slib and scm_shell() conflicts

2006-02-21 Thread William Xu
William Xu <[EMAIL PROTECTED]> writes: > Hi, > > I checked out a recent guile repo days ago. It seems there're some > conflictions between slib and scm_shell() function. > > Basically, when i try to load slib(i.e., guile.init), and invoke > scm_shell() thereaf

slib and scm_shell() conflicts

2006-02-20 Thread William Xu
Hi, I checked out a recent guile repo days ago. It seems there're some conflictions between slib and scm_shell() function. Basically, when i try to load slib(i.e., guile.init), and invoke scm_shell() thereafter, then the program will block there. `top' shows the program is consuming lots of cpu

Re: namespace of goops module

2006-02-15 Thread William Xu
Andy Wingo <[EMAIL PROTECTED]> writes: > Nope. Syntaxen are hard to document. There's some stuff in guile-lib for > pulling docstrings out of defmacros (the ones made by define-macro), > though. I prefer defmacros to syncase, fwiw. While defmacros would cause the renamer problem, as described in

Re: namespace of goops module

2006-02-14 Thread William Xu
Clinton Ebadi <[EMAIL PROTECTED]> writes: [...] > The GOOPS macros (e.g. define-method) are not hygenic, and are not > evaluated in the defining module, but rather the current one. Ah, it sounds as a good enhancement of hygenic macros over CL-sytle macros. As guile provides both of them, someti

namespace of goops module

2006-02-14 Thread William Xu
Hi people there, I try to learn GOOP today. As i don't want to mess with name conficts, i decided to add a prefix while using any modules. Thus to load GOOPS, guile> (use-modules ((oop goops) :renamer (symbol-prefix-proc 'oop/goops:))) This seems okay. While, when i try the first example in GO

Re: charset conversion

2006-02-10 Thread William Xu
Christian Mauduit <[EMAIL PROTECTED]> writes: > BTW (not extactly your question, but it's related) in my program ( > http://www.gnu.org/software/liquidwar6/ ) I use a wrapper over gettext ( > see src/funcs.c for code snippets). The idea is to handle charset > conversions through gettext. I also us

Re: charset conversion

2006-02-09 Thread William Xu
Kevin Ryde <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: >> >> Does guile support charset conversion? e.g., Display a string using >> my-charset coding system, > > The short answer is no. Strings are just byte sequences, which is ok

charset conversion

2006-02-09 Thread William Xu
Hi, Does guile support charset conversion? e.g., Display a string using my-charset coding system, guile > (display "a string" 'my-charset) -- William ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: stack overflow problem

2006-02-05 Thread William Xu
Stephen Compall <[EMAIL PROTECTED]> writes: > On Sat, 2006-02-04 at 18:54 +0800, William Xu wrote: >> (define (enumerate-interval low high) >> "Return a sequence list by walking from LOW to HIGH. >> e.g., >> (enumerate-interval 1 10) >>

stack overflow problem

2006-02-04 Thread William Xu
[i wish i'm not resending this mail..] Hi, I define the following function, (define (enumerate-interval low high) "Return a sequence list by walking from LOW to HIGH. e.g., (enumerate-interval 1 10) => (1 2 3 4 5 6 7 8 9 10)" (if (> low high) '(

stack overflow problem

2006-02-04 Thread William Xu
Hi, I define the following function, (define (enumerate-interval low high) "Return a sequence list by walking from LOW to HIGH. e.g., (enumerate-interval 1 10) => (1 2 3 4 5 6 7 8 9 10)" (if (> low high) '() (cons low (enumerate-interval

Re: uniform-array-read!

2006-02-04 Thread William Xu
Alan Bram <[EMAIL PROTECTED]> writes: > Gee, that's strange. When I try it, even with a larger size, it still > works fine for me. Hmm... well, it's 1.6.7 on Debian(unstable) ppc here. -- William ___ Guile-user mailing list Guile-user@gnu.org http:

Re: uniform-array-read!

2006-02-02 Thread William Xu
William Xu <[EMAIL PROTECTED]> writes: > Alan Bram <[EMAIL PROTECTED]> writes: > > [...] > >> | >> | (define read-network-byte >> | (lambda (port) >> | (let ((v (make-uniform-array #\nul 1))) > ^^

Re: uniform-array-read!

2006-02-02 Thread William Xu
Alan Bram <[EMAIL PROTECTED]> writes: [...] > | > | (define read-network-byte > | (lambda (port) > | (let ((v (make-uniform-array #\nul 1))) ^^^ when array size is 1, it works. But if i set it to 3, for instance. Then it'll still block.. > |

Re: uniform-array-read!

2006-01-31 Thread William Xu
[EMAIL PROTECTED] (Ludovic Courtès) writes: [...] >>guile> (uniform-array-read! a (open-input-string (string #\001 #\002 >> #\003))) >> >> The second argument for uniform-array-read! is a string. In my codes, i >> tried to read binary data, precisely, a network packet. Does this >> matter? >

Re: uniform-array-read!

2006-01-31 Thread William Xu
[EMAIL PROTECTED] (Ludovic Courtès) writes: > William Xu <[EMAIL PROTECTED]> writes: > >> Is the following the correct way of using `uniform-array-read!'? Seems >> it simply hangs there.. >> >> (let ((ar (make-uniform-array #\nul length))) >>

uniform-array-read!

2006-01-31 Thread William Xu
Hi there, Is the following the correct way of using `uniform-array-read!'? Seems it simply hangs there.. (let ((ar (make-uniform-array #\nul length))) (uniform-array-read! ar sockfd)) Any ideas? -- William ___ Guile-user mailing list Guile-

Re: emacs+guile

2006-01-03 Thread William Xu
Ken Raeburn <[EMAIL PROTECTED]> writes: > Some of you may remember the guile-emacs project I started on years > ago. I let it slide a bit when other things got in the way, but the > last year or so I've been putting some work into it again. [...] Great ! i'd really love to have a scheme-emacs.