Filename encoding

2014-01-15 Thread Chris Vine
Hi, A number of guile's scheme procedures look-up or reference files on a file system (open-file, load and so forth). How does guile translate filenames from its internal string representation (ISO-8859-1/UTF-32) to narrow string filename encoding when looking up the file? Does it assume filenam

Re: [PATCH v2 02/13] script language API for GDB: extension.[ch]

2014-01-15 Thread Ludovic Courtès
Tom Tromey skribis: >> "Ludovic" == Ludovic Courtès writes: > > Ludovic> I guess this is another limitation of Guile’s current signal handling > Ludovic> strategy, and something we should fix. > > FWIW I think it would be sufficient for gdb if scm_system_async_mark, or > something like it, c

Re: Converting a part of byte vector to UTF-8 string

2014-01-15 Thread Panicz Maciej Godek
hello :) [...] But I have a give a warning again, when you try to avoid allocation > overhead, you have to face the risk of the side-effect. To me, I'd > prefer pure-functional. ;-P > > Your solution seems reasonable, but I have found another way, which lead me to some new problems. I realised th

Re: Filename encoding

2014-01-15 Thread Mark H Weaver
Chris Vine writes: > A number of guile's scheme procedures look-up or reference files on a > file system (open-file, load and so forth). > > How does guile translate filenames from its internal string > representation (ISO-8859-1/UTF-32) to narrow string filename encoding > when looking up the fi

negating a number

2014-01-15 Thread Richard Shann
Is there something neater than (- 0 amount) to negate a number? Can't spot anything in the manual ... Richard Shann

Re: Converting a part of byte vector to UTF-8 string

2014-01-15 Thread Mark H Weaver
Panicz Maciej Godek writes: > Your solution seems reasonable, but I have found another way, which > lead me to some new problems. > I realised that since sockets are ports in guile, I could process them > with the plain "read" (which is what I have been using them for > anyway). > > However, this

Re: negating a number

2014-01-15 Thread Thompson, David
On Wed, Jan 15, 2014 at 1:24 PM, Richard Shann wrote: > Is there something neater than > > (- 0 amount) > > to negate a number? Can't spot anything in the manual ... > > Richard Shann It reads better if you leave out the 0. (- amount) :) - Dave Thompson

Re: negating a number

2014-01-15 Thread Mark H Weaver
Richard Shann writes: > Is there something neater than > > (- 0 amount) > > to negate a number? Can't spot anything in the manual ... Yes: (- amount) Mark

Re: negating a number

2014-01-15 Thread Richard Shann
Hmm, yes of course, I looked up minus and negate and so on in the index, forgetting that non-words are also indexed... thank you! Richard On Wed, 2014-01-15 at 13:30 -0500, Mark H Weaver wrote: > Richard Shann writes: > > > Is there something neater than > > > > (- 0 amount) > > > > to negate a n

[ANN] gzochi project development release 0.5

2014-01-15 Thread Julian Graham
Hi everyone, I'm pleased to announce the fifth development release of the gzochi game development framework. The project description, from Savannah: gzochi (/zoʊ-tʃiː/) is a framework for developing massively multiplayer online games. A server container provides services to deployed games, which

Re: [ANN] gzochi project development release 0.5

2014-01-15 Thread Thompson, David
On Wed, Jan 15, 2014 at 1:40 PM, Julian Graham wrote: > Hi everyone, Hello, Julian. > > I'm pleased to announce the fifth development release of the gzochi > game development framework. > > The project description, from Savannah: gzochi (/zoʊ-tʃiː/) is a > framework for developing massively mult

Re: Filename encoding

2014-01-15 Thread Eli Zaretskii
> From: Mark H Weaver > Date: Wed, 15 Jan 2014 13:14:39 -0500 > Cc: guile-user@gnu.org > > My hope is that this will become less of an issue over time, as systems > increasingly standardize on UTF-8. I see no other good solution. > > Thoughts? MS-Windows filesystems will not standardize on UTF

Re: [ANN] gzochi project development release 0.5

2014-01-15 Thread Julian Graham
Hi Dave, On Wed, Jan 15, 2014 at 1:59 PM, Thompson, David wrote: > I am working on a 2D game development library > (https://gitorious.org/guile-2d/guile-2d/) that is still in its early > stages. I'm curious about how much our efforts overlap and if they > could be used together easily. My library

Re: [ANN] gzochi project development release 0.5

2014-01-15 Thread Thompson, David
On Wed, Jan 15, 2014 at 2:09 PM, Julian Graham wrote: > Hi Dave, > > The gzochid manual has a kind of rationale section which describes the > problem space that gzochi addresses: > http://www.nongnu.org/gzochi/gzochid.html#Conceptual-overview. There's > also a trivial application you can look at t

Re: [ANN] gzochi project development release 0.5

2014-01-15 Thread Julian Graham
> I perused the examples directory. Wasn't expecting so much C. ;) Yeah, that'd be the clients – the server side of these applications is all Scheme. This is going to sound crazy, but it hadn't occurred to me to provide a reference client in Scheme. I'll be sure to add one in the next release!

Re: [ANN] gzochi project development release 0.5

2014-01-15 Thread Thompson, David
On Wed, Jan 15, 2014 at 2:22 PM, Julian Graham wrote: > This is going to sound crazy, but it hadn't occurred to me > to provide a reference client in Scheme. I'll be sure to add one in > the next release! That would be great! Happy hacking and whatnot. :)

Re: Filename encoding

2014-01-15 Thread Chris Vine
On Wed, 15 Jan 2014 13:14:39 -0500 Mark H Weaver wrote: > Chris Vine writes: > > > A number of guile's scheme procedures look-up or reference files on > > a file system (open-file, load and so forth). > > > > How does guile translate filenames from its internal string > > representation (ISO-885

Re: [ANN] gzochi project development release 0.5

2014-01-15 Thread Panicz Maciej Godek
Hi guys! Since I'm also an author of a(nother) multimedia framework in guile+sdl/opengl called SLAYER, I thought that I might join the conversation :) Perhaps it would make sense to collaborate more and to somehow integrate our efforts. It might seem difficult at first, because I guess that everyo

string-match error

2014-01-15 Thread Ariel Rios
Hello y'all, I am having problems using string-match. I have created a small script that calls string-match and I get: /home/ariel/console/mce/tests/./panda.scm:4:9: In procedure module-lookup: Unbound variable: string-match If I start guile and then use string-match there is no problem: scheme@

Re: [ANN] gzochi project development release 0.5

2014-01-15 Thread Thompson, David
On Wed, Jan 15, 2014 at 2:56 PM, Panicz Maciej Godek wrote: > Hi guys! > Since I'm also an author of a(nother) multimedia framework > in guile+sdl/opengl called SLAYER, I thought that I might join > the conversation :) > > Perhaps it would make sense to collaborate more and to somehow > integrate

Re: Filename encoding

2014-01-15 Thread Eli Zaretskii
> Date: Wed, 15 Jan 2014 19:50:51 + > From: Chris Vine > Cc: guile-user@gnu.org > > POSIX system calls are encoding agnostic. The filename is just a series > of bytes terminating with a NUL character. All guile needs to know is > what encoding the person creating the filesystem has adopted

Re: string-match error

2014-01-15 Thread Mark H Weaver
Ariel Rios writes: > Hello y'all, > > I am having problems using string-match. I have created a small script > that calls string-match and I get: > > /home/ariel/console/mce/tests/./panda.scm:4:9: In procedure > module-lookup: Unbound variable: string-match As it says in the "Regular Expressions

Re: Filename encoding

2014-01-15 Thread Mark H Weaver
Eli Zaretskii writes: >> From: Mark H Weaver >> Date: Wed, 15 Jan 2014 13:14:39 -0500 >> Cc: guile-user@gnu.org >> >> My hope is that this will become less of an issue over time, as systems >> increasingly standardize on UTF-8. I see no other good solution. >> >> Thoughts? > > MS-Windows file

Re: Filename encoding

2014-01-15 Thread Chris Vine
On Wed, 15 Jan 2014 23:00:18 +0200 Eli Zaretskii wrote: > > Date: Wed, 15 Jan 2014 19:50:51 + > > From: Chris Vine > > Cc: guile-user@gnu.org > > > > POSIX system calls are encoding agnostic. The filename is just a > > series of bytes terminating with a NUL character. All guile needs > > t

Re: Filename encoding

2014-01-15 Thread Mark H Weaver
Chris Vine writes: > POSIX system calls are encoding agnostic. The filename is just a series > of bytes terminating with a NUL character. Yes, I know, but conceptually these things are strings. Unless you're going to treat these filenames as black boxes to be copied from one place to another bu

Re: Filename encoding

2014-01-15 Thread Chris Vine
On Wed, 15 Jan 2014 16:47:45 -0500 Mark H Weaver wrote: [snip] > > So far as filenames are concerned, this seems to me to be something > > for which a fluid would be just the thing - it could default to the > > locale encoding but a user could set it to something else. > > We could do that, but I

Re: Filename encoding

2014-01-15 Thread Ludovic Courtès
Chris Vine skribis: > So far as filenames are concerned, > this seems to me to be something for which a fluid would be just the > thing - it could default to the locale encoding but a user could set it > to something else. I suppose command lines and environmental variables > are less problemati

Re: Filename encoding

2014-01-15 Thread Eli Zaretskii
> From: Mark H Weaver > Cc: ch...@cvine.freeserve.co.uk, guile-user@gnu.org > Date: Wed, 15 Jan 2014 16:34:26 -0500 > > Well, I understand that MS has standardized on UTF-16 (right?) Right. > but what matters from Guile's perspective is the encoding used by > the POSIX-style interfaces that Gu

Re: Filename encoding

2014-01-15 Thread Eli Zaretskii
> Date: Wed, 15 Jan 2014 21:42:57 + > From: Chris Vine > Cc: m...@netris.org, guile-user@gnu.org > > I am not sure what you mean, as I am not talking about internal use. Then I probably didn't understand why you mentioned the external encoding. How is that relevant to the issue at hand? I'

Re: Filename encoding

2014-01-15 Thread Eli Zaretskii
> From: Mark H Weaver > Date: Wed, 15 Jan 2014 16:47:45 -0500 > Cc: guile-user@gnu.org > > > All guile needs to know is what encoding the person creating the > > filesystem has adopted in naming files and which it needs to map to. > > Right, but how does it know that? The closest thing we have

Re: Filename encoding

2014-01-15 Thread Eli Zaretskii
> From: l...@gnu.org (Ludovic Courtès) > Date: Thu, 16 Jan 2014 00:29:06 +0100 > > Does anyone know of systems where the file name encoding is commonly > different from locale encoding? Is it the case on Windows? Windows stores file names on disk encoded in UTF-16, but converts them to the curre