Hi,
Kevin Ryde [EMAIL PROTECTED] writes:
I think 1: is a gas-ism, it might not work on aix and macos. But
dunno if guile actually runs at all on those systems at the moment.
Well, the GAS documentation doesn't mention any syntax incompatibilities
in the `PPC-Dependent' node, so I don't know
Marius Vollmer [EMAIL PROTECTED] writes:
Also (and don't try this at home kids):
(define 'x (* x x))
'2
= 4
Obviously, I did try this at home. :-) Actually, you meant something
like:
guile (define x 2)
guile (define 'x 3)
guile x
2
guile 'x
3
Right? The example you
Marius Vollmer [EMAIL PROTECTED] writes:
Hmm, no, I meant (define 'x (* x x)). I think '2 = 4 is pretty
funny, no? :-)
Sure it is, but I can't reproduce it with either 1.6.7 or 1.7.2, hence
my sadness. ;-)
Ludovic.
___
Guile-user mailing list
Hi,
Kevin Ryde [EMAIL PROTECTED] writes:
I expanded the words about the standard ports a bit, for a start:
Maybe there should be pointers to `setvbuf' as well?
Still, I don't think this makes the changes I proposed earlier in this
thread irrelevant. :-)
Thanks,
Ludovic.
Hi,
Marius Vollmer [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Obviously, the best solution would be to expose the relevant functions
to the user. :-)
Yes, we should do that, following the scm_to and scm_from naming scheme.
Following this discussion, I propose
Ken Raeburn [EMAIL PROTECTED] writes:
... except for the little detail that ISO C says a string literal has
type char [N], not const char [N]. So, probably no warning in
this case.
Indeed! One never stops learning C... ;-)
Still removing `const' makes sense in the general case, don't
Hello,
It seems that the email below ([EMAIL PROTECTED]) got lost. Can
someone comment on this?
Thanks,
Ludovic.
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Hi,
Marius Vollmer [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Obviously, the best solution would
Hi Marius,
Marius Vollmer [EMAIL PROTECTED] writes:
Hmm, I think your patch mixes the two ways we have to express a socket
address: one way is an argument convention used by connect, bind, and
sendto; the other way is a vector with the relevant data inside, as
returned by accept,
Hi,
I have been working on a simple framework for building readers for
Guile. It is called `guile-reader' and version 0.1 is available at:
http://www.laas.fr/~lcourtes/software/guile/guile-reader-0.1.tar.gz
SHA1: d0a6740b4d7390e914199b0cb673355a02dd74d9
Documentation (incomplete) can be
Hi,
It looks like the Autoconf `GUILE_CHECK' macro (or perhaps Guile itself)
is broken. In both Guile 1.6 and 1.7, it is defined as follows:
# GUILE_CHECK -- evaluate Guile Scheme code and capture the return value
#
# Usage: GUILE_CHECK_RETVAL(var,check)
#
# @var{var} is a shell
Hi,
Thien-Thi Nguyen [EMAIL PROTECTED] writes:
check out how the other macros in guile.m4 use GUILE_CHECK. in each
case, the last form in the group of forms to be tested uses (exit ...).
the reason we leave it as a convention instead of codifying it into
GUILE_CHECK is to allow for multiple
Hi,
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Right. I followed your suggestion (with slight modifications, namely
have an ADDRESS_SIZE output parameter for functions that return a
pointer to `struct sockaddr') and updated my patch. However, the only
thing I tested is `scm_from_sockaddr
when too many arguments for the given family are passed?
Thanks,
Ludovic.
Two more ChangeLog entries are necessary.
For `ice-9':
2005-09-22 Ludovic Courtès [EMAIL PROTECTED]
* networking.scm (sockaddr:flowinfo): New procedure.
(sockaddr:scopeid): New procedure.
For `test
Hi,
Kevin Ryde [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Regarding `sendto', I tested it informally as follows:
An AF_UNIX socket can probably exercise that.
The attached patch does this (note that this patch only updated the test
itself; for the code, you still
Hi,
Vorfeed Canal [EMAIL PROTECTED] writes:
2. No way to use standard (for modern languages like C++, PHP or Java)
scheme with throw/catch and EXCEPTIONS HIERARCHY.
[...]
About second problem. GNU Kawa (if we are talking about GNU GUILE it
makes sense to borrow from GNU Kawa, right?) has
Hi,
Vorfeed Canal [EMAIL PROTECTED] writes:
But what about GUILE extensions written in C ? Lack of sane
place to put C glue libraries bothers me.
Extension libraries written in C can also be thought of as actual
libraries (for example, they may export C functions that wrap/unwrap
Scheme
Hello,
Vorfeed Canal [EMAIL PROTECTED] writes:
1. Not really:
A. They are usually useless for programs not linked to guile - and
such programs will know where to find them anyway since libguile will
know this.
Libguile knows where _any_ third party library (the shared object) gets
Hi,
Vorfeed Canal [EMAIL PROTECTED] writes:
Of course it must - how else can it load them ? With my patch it knows
about few default places and can be instructed about other places in
nice shemely way.
Yes, your patch seems to be one possible solution. However, why not use
`pkglibdir'
Hi Vorfeed,
Vorfeed Canal [EMAIL PROTECTED] writes:
4. Actual contents of default directory list is not important. Only
two requirements:
A. It must not be empty - this way there are place to put default
libraries like readline.
B. It must be modifyable at runtime - this way complex
Hi,
Kevin Ryde [EMAIL PROTECTED] writes:
Remember if you want to call a C code module directly from a C
mainline then you need something the ordinary loader can cope with
too.
(If setting up something clean and portable for this stuff was easy it
would have already been done.)
You're
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
I think this meets everyone's desires ... please let me know what you
think!
Neil, I also fully support your proposal.
((load-path
local
^
I'd make this `local-1.6' by default, assuming that modules that may
flawlessly run on any Guile
Hi,
Greg Troxel [EMAIL PROTECTED] writes:
before deciding about tags and descriptions, I think we need to be
clearer on the semantics of these directories and why they'd be used.
Let me take a stab at it, and I'm sure I'll leave out other's use
cases.
I don't think we should reason about
Kevin Ryde [EMAIL PROTECTED] writes:
Then you're just waiting for the nod from Marius. :)
Oh, but it looks like he's been away for a couple of months or so.
Anyway, we'll see.
Thanks,
Ludovic.
___
Guile-user mailing list
Guile-user@gnu.org
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
In principle yes, the current mechanism we're discussing for load-path
could be extended to `guilelibdir' and `guileobjectdir'. But
personally I don't want to go anywhere near there just yet - it's hard
enough trying to tie down all the details for
Hi Marius,
Marius Vollmer [EMAIL PROTECTED] writes:
Yeah, I had accidentally disconnected myself from the guile-devel
mailing list and way too busy with other things to really
notice... sorry for that. I will take a look at the patch
immediately...
Did you have a chance to look at that
Hi,
Kevin Ryde [EMAIL PROTECTED] writes:
Ok, we got there eventually. I checked it in, and I updated the docs
(have a read to see it they look right).
Great, thanks!
The doc looks good to me. I'd just suggest the following patch. It
documents the wrapping/unwrapping C functions (since
Neil Jerram [EMAIL PROTECTED] writes:
How so? Given that you're about to do a (use-modules (whatnot)), I
can't see that also doing (initialize-packages whatnot) will make a
significant difference.
Because people haven't been doing so for years. Some of us certainly
don't want to iterate
Hi Neil,
Neil Jerram [EMAIL PROTECTED] writes:
You can
look at it in my GNU Arch archive if that is of interest to you:
$ tla register-archive http://www.laas.fr/~lcourtes/software/arch-2004/
Hmm. I'll have to make another attempt to understand Arch, then; I'm
afraid it completely
David Pirotte [EMAIL PROTECTED] writes:
$ tla get [EMAIL PROTECTED]/guile-vm--revival--0.6 guile-vm
^^^
|||
name of the archive name
Hi Neil,
Neil Jerram [EMAIL PROTECTED] writes:
make[2]: Entering directory `/home/neil/arch/guile-vm/src'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/local/include -pthread -Wall -g -pg -g -O2 -MT envs.lo -MD -MP -MF
.deps/envs.Tpo \
-c -o envs.lo `test
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
The basic idea behind all of the previous proposals was to create some
kind of config when a package was installed, such that other Guile
code would be able to find that package automatically. But what if we
do things the other way round? When a
Hi,
Kevin Ryde [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
(i) a config file holding the default value of `%load-path',
If you really want to add something, just load an /etc/guilerc at
startup.
Sorry, I don't really understand how what you says differs from
William Xu [EMAIL PROTECTED] writes:
Not in debian yet.. Guile 1.6.7 here.
Yeah, I know, unfortunately...
guile (define a (make-uniform-array #\nul 10))
guile (uniform-array-read! a (open-input-string (string #\001 #\002
#\003)))
3
guile a
#s8(1 2 3 32 51 10 -102 96 48 10)
Hi,
Ken Raeburn [EMAIL PROTECTED] writes:
DWARF is the name of the new debug info format used in ELF object
files. This suggests a bug in either gcc or gdb (or, possibly,
binutils), and should be reported if you can figure out which one has
the problem. Unfortunately I don't know enough
Hi,
Zeeshan Ali [EMAIL PROTECTED] writes:
I think you would like to use g-wrap to create the bindings for
you. Unfortunately i haven't found a lot of docs on g-wrap myself and
so i can't recommend any. Having said that, you can look into the
guile-gnome sources to learn to use it.
Hi,
Dan McMahill [EMAIL PROTECTED] writes:
I can do something like
SCM scm_myfn(SCM flags)
{
myfn (scm_num2int (flags, SCM_ARG1, myfn));
return SCM_BOOLEAN_T;
}
but I'm not sure of the best way to define the flags in scheme. Or
maybe this is not the scheme way.
What you
Hi,
Mikael Djurfeldt [EMAIL PROTECTED] writes:
I wouldn't call this a bug and wouldn't call it undocumented. The
garbage collector only guarantees that it doesn't free things which
you can reference. It doesn't guarantee whether to or when to free
things which lack a reference.
Well, I
Hi,
I posted the following thing on `comp.lang.scheme' but got no answer.
SRFI-9 apparently does not specify the behavior of `equal?' with record
instances. Consider the following example:
(define-record-type chbouib
(make-chbouib obj)
chbouib?
(obj chbouib:obj chbouib:set-obj!))
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
To me, it looks like having `equal?' behave as one may expect (i.e.,
as in the Chicken case) would be very valuable and look more consistent
wrt. R5RS --- although, admittedly, relying on it would be Bad
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
All looks fine to me, except one thing. I don't think we gain anything by
exporting the struct-equal?/scm_struct_equalp API, so I'd prefer to
have this as an internal (scm_i_) function and not exported to
Scheme. (Cf. the fact that there isn't any
Hi,
Aaron VanDevender [EMAIL PROTECTED] writes:
Is there a better way to do autoconf tests for guile versions that hacks
like this:
GUILE_VERSION = `$GUILE --version | head -1 | cut -d ' ' -f 2`
Yes, you'd rather use the M4 macros shipped in `guile.m4' and that were
documented in the 1.6
Hi,
Mildred [EMAIL PROTECTED] writes:
I do not know how to do that in scheme. Apparetly the function
null-environment can return an environment and eval can evaluate some
code in an environment. But the question is how to define a variable in
an environment and also how to undefine a
Hi,
Mildred [EMAIL PROTECTED] writes:
Actually when I look all symbols defined by guile when a program
starts, I found there is too much functions defined.
$ guile
guile
Display all 1900 possibilities? (y or n)
Isn't that too much ?
Yes it is (IMO). Arguably, this may have a negative
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Code confinement is indeed an interesting feature. Fortunately, Guile
offers various ways to do it (AFAIK, there's no standard way to do this
in R5RS Scheme). :-) [...]
That's a very nice explanation
Hi,
Thanks for your comments and the nice links!
Alan Grover [EMAIL PROTECTED] writes:
One approach is to write your own security-manager/white-list. You scan
the s-expr, check the symbols in the head of any (sub-)list, and fail if
they aren't approved.
I don't really like this approach, it
Hi,
Does any old-time Guile user have a copy of GUSH (GNU User's Shell)? I
contacted its author, Michael FIG (aka. Gordon Matzigkeit), but he
couldn't find the source.
For those of you interested in it, bits of information are available in
the list archives and the former official web page is
Hi,
Jonathan Wilson [EMAIL PROTECTED] writes:
Is it possible to call scm_shell with different stdin and stdout? The
primary purpose of this that I can see would be to run a guile shell
inside a text area of a gui or something like that.
I guess you can simply rebind the input/output ports:
Hi,
Keith Wright [EMAIL PROTECTED] writes:
Hi, I have been subscribed to this list, with some techical
lapses, since about the middle of 1998, that probably makes
me old-time, but I never use Guile, and I have no copy of GUSH.
I was about to advise you to port SCSH to Guile and say it
is
Hi,
Marco Maggi [EMAIL PROTECTED] writes:
can someone point me to a clean and simple Guile extension
using GNU automake, that I can take as example to learn
how to write automake using extensions?
You can look at `guile-readline', for instance, which is part of core
Guile.
Thanks,
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
and that the args content
is not explicitly documented (that is, I was not
able to find it) even if its content is well defined
in 'scm_error_scm()':
scm_ithrow (key,
scm_list_4 (subr, message, args, data), 1);
Yes, here I completely
Hi,
John Steele Scott [EMAIL PROTECTED] writes:
How do I tell g-wrap to put #include string.h\n in the output? There
are some places in the output source where it looks like it is doing
something similar, but I couldn't figure it out.
Like this:
(define-method (global-declarations-cg (ws
Hi,
Kevin Ryde [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
(let ((errno (car (cadddr args ;; !!!
system-error-errno helps there. I made a few similar extracting funcs
at one time ... then found it better not to try to be too smart about
analysing
Hi,
(Assuming we're talking about MacOS X on Intel-based macs. Maybe
`i386-apple-darwin*' is the correct GNU triple?)
Pat Lasswell [EMAIL PROTECTED] writes:
make check produces 6 failures. I haven't tried 1.4, but 1.8 doesn't even
build.
FAIL: goops.test: defining generics:
Hi,
[EMAIL PROTECTED] (Ludovic Courtès) writes:
guile (define c (make-a-class 'some-name))
guile (define obj (make c))
guile obj
#my-class some-name deadbeef
This should rather be: #some-name 0123abcd.
This is quite unexpected since I would expect, at least, the
`initialize
Hi,
I'm trying to dynamically create classes which I would then like to
instantiate. The behavior I would like to achieve is that:
guile (define c (make-a-class 'some-name))
guile (define obj (make c))
guile obj
#my-class some-name deadbeef
To that purpose, I have a metaclass named
Hi,
Pat Lasswell [EMAIL PROTECTED] writes:
On 9/26/06, Ludovic Courtès [EMAIL PROTECTED] wrote:
(define-method (make-instance (c my-class))
(format (current-error-port) make-instance (~a)~% c)
(next-method))
Try adding a '. initargs' after '(c my-class)'.
I shouldn't be needed
Hi,
Nobody won the prize, because nobody gave the correct answer. For those
of you who played, I'm giving the correct answer below. ;-)
[EMAIL PROTECTED] (Ludovic Courtès) writes:
(use-modules (oop goops))
(read-set! keywords 'prefix)
(define-class my-class (class)
(the-slot
Hi,
Neil Jerram [EMAIL PROTECTED] writes:
Indeed. If you have a guile-1.8 tarball, just cd to doc/ref and do
make dvi, followed by dvips or whatever works on your system to
print from dvi.
(Or, if you really don't want to do this yourself, let me know
privately and I'll send you a .dvi or
Hi,
Looks like nobody answered you, so here we go.
Volkan YAZICI [EMAIL PROTECTED] writes:
I need such a feature:
/*
* If there's an already running guile process in the background,
* return it, otherwise create a new one and return new process.
*/
interp =
Hi,
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Maybe we could make all those formats available from
http://www.gnu.org/manual/ in the same way most other projects do (e.g.,
http://www.gnu.org/software/gnutls/manual/)?
The manual for Guile 1.8.1 (the latest stable release) is now available
Hi,
Daniel Ridge [EMAIL PROTECTED] writes:
I use mmap in guile via a very simple C module and I have a piece of
complicated Guile hackery that I would like to simplify. I'm hoping
someone will embarrass me with 3 rational lines to solve my problem.
My problem is that I don't know how to
Hi,
Daniel Ridge [EMAIL PROTECTED] writes:
In
1.8, you would use SRFI-4 octet vectors to that end (passing the
address
returned by `mmap ()' to `scm_take_u8vector ()' and making the
returned
vector uncollectable so that `free ()' isn't eventually invoked on the
`mmap' address).
A
Hi,
Volkan YAZICI [EMAIL PROTECTED] writes:
Within scm_eval(), I need to use a very simple module:
(define-module ultra-complex-thingy #:pure)
(Yeah, that's the complete source code of my module.) The problem is,
how can I create and use that module within my C code, in scm_eval()?
Any
Hi,
Volkan YAZICI [EMAIL PROTECTED] writes:
Hi,
On Nov 17 12:34, Ludovic Courtès wrote:
You could write a piece of Scheme to create the relevant module.
Namely, you could start with something like this:
(let ((m (make-module)))
(module-use-interfaces! m
Hi,
Stan Pinte [EMAIL PROTECTED] writes:
I am trying to make string encoding correction in guile...would anyone
have developed a binding for libiconv or librecode? Or any other
clever suggestion?
I just noticed that Marco Maggi's GEE contains bindings for libiconv:
Hi,
Jon Wilson [EMAIL PROTECTED] writes:
Thanks for the pointer. Do you know of any documentation on module
binder procs? I've looked in the manual and, (as usual) it doesn't
really say much of anything about them.
First, I think the as usual is a bit unfair. ;-)
Second, if you use
Hi,
Marco Maggi [EMAIL PROTECTED] writes:
to plot math function's graphs for my Guile interface to the
GNU Scientific Library (GSL) I use a Guile interface to the
Tool Command Language (TCL), Tk and a TCL extension called
BLT. Tk handles the X Window GUI.
Sorry for not answering the
Hi,
Marco Maggi [EMAIL PROTECTED] writes:
When writing a Guile-GSL script I code forms like this:
(let* ((x ...)
(y ...)
(plot (blt-plot x y ...)))
(sleep-or-ask-the-user-when-its-ok-to-go-on))
the GOOPS proxies are stored in the LET* environment, and
this
Hello,
Version 0.3 of Guile-Reader for Guile 1.8.x is now available:
The SHA1 sums for these two files are:
5770945a8e560b1d670115c1377de8a05fd2baaf guile-reader-0.3.tar.gz
9cd3aca8e1f102324f7c8c2c2e4b0f3fc9d3a62c guile-reader-0.3.tar.gz.sig
Documentation is available at:
Ooops, I forgot the URLs... ;-)
Version 0.3 of Guile-Reader for Guile 1.8.x is now available:
http://download.savannah.nongnu.org/releases/guile-reader/guile-reader-0.3.tar.gz
http://download.savannah.nongnu.org/releases/guile-reader/guile-reader-0.3.tar.gz.sig
The SHA1 sums for these
Hi,
Mario Storti [EMAIL PROTECTED] writes:
I'm interested in the package for use of SRFI-30 block comments. I
tried some variations of
(receive (l1 l2)
(alternate-guile-reader-token-readers '(srfi30-block-comments))
(fluid-set! current-reader (make-reader l1)))
without success.
Hello,
I am pleased to announce version 0.0 of `guile-r6rs-libs' for Guile 1.8:
http://www.laas.fr/~lcourtes/software/guile/guile-r6rs-libs-0.0.tar.gz
The SHA-1 sum of this file is:
a31fc8a11acf8f63335ea165768e8bda3f564b32 guile-r6rs-libs-0.0.tar.gz
The goal of this package is to provide
Hi again,
I am pleased to announce version 0.0 of Guile-RPC:
http://www.laas.fr/~lcourtes/software/guile/guile-rpc-0.0.tar.gz
The SHA-1 sum for this file is:
e35448f4f4cb9a581295335af137b4fde21c8624 guile-rpc-0.0.tar.gz
Documentation is visible at:
Hi,
Klaus Schilling [EMAIL PROTECTED] writes:
Once again we see the miracles of undocumented modules :)
`(ice-9 streams)' _is_ documented, at least in 1.8:
http://www.gnu.org/software/guile/manual/html_node/Streams.html#Streams
Thanks,
Ludovic.
Hi Neil,
Neil Jerram [EMAIL PROTECTED] writes:
Is there any technical reason for why (ice-9 popen) only provides one
way pipes? In other words, you can either write to the subprocess, or
read from it, but not both. Are there extra technical difficulties
involved with a two way pipe?
Hello!
Neil Jerram [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Ludovic Courtès) writes:
Doesn't `OPEN_BOTH' do what you want?
Yes, indeed. Believe it or not, I was looking at a 1.6 distribution
and didn't think to check 1.8 or CVS. (Newbie alert! :-))
Oh, gosh, I thought you were
Hi,
Marco Maggi [EMAIL PROTECTED] writes:
I would appreciate if someone can find 5 mins to read:
http://community.schemewiki.org/?guile-compensation
and signal to me if there are obvious errors in the
implementation.
I haven't read the paper you mention there but that looks very similar
Hi,
David Fang [EMAIL PROTECTED] writes:
Is there a way to force guile to exit upon first error (uncaught
dynwind), analogous to sh -e? Though this isn't something one would
want interactively, it might be useful for non-interactive scripts to bail
out as soon as something goes wrong,
[EMAIL PROTECTED] (Ludovic Courtès) writes:
David Fang [EMAIL PROTECTED] writes:
Is there a way to force guile to exit upon first error (uncaught
dynwind), analogous to sh -e? Though this isn't something one would
want interactively, it might be useful for non-interactive scripts
Hi,
I am pleased to announce the release of Guile-GnuTLS 0.1. It may be the
last stand-alone release since it will eventually be integrated in
GnuTLS itself. It is available from here:
http://www.laas.fr/~lcourtes/software/guile/guile-gnutls-0.1.tar.gz
Documentation is accessible at:
Hi,
Andreas Røsdal [EMAIL PROTECTED] writes:
I'm trying to compile guile 1.8.1 for the mingw32 platform on Windows.
When running configure, I get this error message:
checking for lt_dlinit in -lltdl... no
configure: error: libltdl not found. See README.
However, I have compiled and
Hi,
Greg Troxel [EMAIL PROTECTED] writes:
I think guile should have a .pc file for pkg-config and guile-config
should be deprecated eventually. That's really orthogonal.
Yeah, that's probably the way to go. It's also more
cross-compilation-friendly I think.
Thanks,
Ludovic.
Hi,
I am pleased to announce the availability of the first release of
Guile-Avahi, labeled 0.0. It is available from here:
http://www.laas.fr/~lcourtes/software/guile/guile-avahi-0.0.tar.gz
Documentation is visible at:
http://www.laas.fr/~lcourtes/software/guile/guile-avahi.html
The
Hi,
Alan Pae [EMAIL PROTECTED] writes:
Got a little further down the road. Now I've got:
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I.. -I/opt/local/include -D_REENTRANT -pthreads
-Wall -MT libguile_la-numbers.lo -MD -MP -MF
Hi,
Marco Maggi [EMAIL PROTECTED] writes:
IMHO guile-tut should be updated, but not with the
addition of much material. It is better to remove the
unfinished sections and the C interface related
sections, so that it becomes a fast-read introduction
to Guile. It would be easier to maintain
Hi,
Mike Gran [EMAIL PROTECTED] writes:
For example, how can I write a function that prints its own name?
In Scheme, functions are first-class objects that are not necessarily
bound to a top-level name. For instance, a `lambda' is nameless:
(lambda args
...)
Thus, there is no generic,
Hi Andy,
Andy Wingo [EMAIL PROTECTED] writes:
On Sun, 2007-07-08 at 17:18 +0200, Ludovic Courtès wrote:
As for the file name and line number, you can in theory get them
(provided Guile runs in debug mode) using `procedure-source' and
`source-properties', although the details escape me now
Hi,
Jon Wilson [EMAIL PROTECTED] writes:
guile (date-string (current-date))
Wed Jun 27 16:39:42-0400 2007
guile (date-string (julian-day-date (date-julian-day (current-date
Wed Jun 27 12:39:43-0400 2007
Offset by four hours from one another. Of course, the four hours
comes from the
Hi,
Jon Wilson [EMAIL PROTECTED] writes:
I was poking around the source (guile-core/libguile/modules.c), and
noticed that the current toplevel module is stored in a fluid named
(in C, anyway) the_module. Is this fluid accessible from scheme?
Yes, using `(current-module)'.
Thanks,
Ludovic.
Hi Jon,
Jon Wilson [EMAIL PROTECTED] writes:
Thanks for the swift reply. However, I meant to ask whether or not
the fluid the_module is accessible from scheme as a fluid.
Ah sorry. Then the answer is no.
Then indeed, you have to go through `dynamic-wind'. Arguably, this is
not very
Hi,
Jon Wilson [EMAIL PROTECTED] writes:
In the interest of getting things started, I took care of one of the
easy ones. I checked out the latest from CVS HEAD, and added both
1+ and 1- to the manual there.
I committed something similar, thanks!
Note that most of the other undocumented
Hi,
Jon Wilson [EMAIL PROTECTED] writes:
Ludovic Courtès wrote:
And no, it's not documented (patch welcome! ;-)).
Here we are: (attached)
Thanks! I applied it.
Ludovic.
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org
William Xu [EMAIL PROTECTED] writes:
After a `cvs update' on guile-core, make fails at:
Make sure you also run `autoheader autoreconf -i'.
Besides, what platform are you compiling on?
Thanks,
Ludovic.
___
Guile-user mailing list
Hi,
[EMAIL PROTECTED] writes:
I'm a little confused. The Wikipedia entry on guile has a vague statement
about
how guile can't do tail call optimization in functions that use C
code.
First, we have to differentiate between tail call and _recursive tail
call---one usually cares more about
to [EMAIL PROTECTED]'.
Ludovic Courtès, on behalf of the Guile team.
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
Hi,
Jon Wilson [EMAIL PROTECTED] writes:
I've written a bit of code that lets you call any function from a
dynamically loaded shared lib with any args. Well, actually, since it
is just a proof of concept, it only lets you call functions that take
zero or one args. The arg (if there is one)
Hi,
I am pleased to announce the availability of Guile-Avahi 0.2, a bug-fix
release that is API-compatible with 0.1:
http://download.savannah.nongnu.org/releases/guile-avahi/guile-avahi-0.2.tar.gz
http://download.savannah.nongnu.org/releases/guile-avahi/guile-avahi-0.2.tar.gz.sig
The
Hi!
Zeeshan Ali [EMAIL PROTECTED] writes:
Great work! Since you are interested in wrapping avahi like
creatures for Guile, so i thought you might also be interested to wrap
GUPnP (http://www.gupnp.org) for Guile as well. Just a thought. :)
Well, thanks for the suggestion but I think I'm
Hi,
(No need to post to both lists.)
schemer [EMAIL PROTECTED] writes:
;; --
;; file a.scm
(define-module (a)
#:use-module (oop goops)
#:duplicates merge-generics)
(define-class a ()
(a
#:init-value 0
#:getter /val))
(export a /val)
;;
Hi,
Tom Szilagyi [EMAIL PROTECTED] writes:
On 8/6/07, Jon Wilson [EMAIL PROTECTED] wrote:
Hi Tom,
Make sure that gcc gets the flag -O2. This looks like the error I got
when I lacked that flag.
Thanks! That did the trick. (-:
The thing is, without `-O2', the evaluator eats up too much
1 - 100 of 909 matches
Mail list logo