Wette, Matthew R (3441) wrote:
Sorry to bug, I can't figure out why sval in the second evaluation
of sect is bound to the sval from the first evaluation of sect.
Anyone understand? This is guile 2.0.11. -- Matt
(define-syntax sect
(syntax-rules ()
((sect name expr ...)
(let ((sval
Ciao,
on my x86_64-unknown-linux-gnu I have installed the distribution
package guile-2.0.11.tar.gz, but, unless I am making a dumb mistake, I
get:
$ guile --version
guile (GNU Guile) 2.0.9
...
but this is not the problem. I am trying again to make the Infix
package[1]
Niels Möller wrote:
And somthing similar could be done even if the calling convention is the
natural one, that the caller conses the arguments onto a list as they
are evaluated, and passes that list to the implementation of the
procedure. The function prologue in the callee would then extract
Niels Möller wrote:
When specifying the use of rest arguments for procedures
(r7rs, sec 4.1.4), it seems to imply that the passed
argument list is mutable?
Yes, because it states the sequence of actual arguments is
converted into a newly allocated list, and the list is
stored in
://marcomaggi.github.com/docs/vicare.html/iklib-pointers.html
--
Marco Maggi
)
(newline)
succeeds with no problems. Is (system foreign) special?
--
Marco Maggi
simple and easy.
Thanks.
--
Marco Maggi
. The
following is a test file for Vicare, just place it in
fectors' source directory and do:
$ vicare -L $PWD test-vicare.sps
;;; test-vicare.sps --- Functional Vectors: tests with Vicare Scheme
;; Copyright (C) 2012 Marco Maggi marco.maggi-i...@poste.it
;; Author: Marco Maggi marco.maggi-i
))
(newline)))
but at present multiple ellipses are not supported at the
same level (that is in the same list or the same vector).
It is possible to do it, but a policy (greedy/non-greedy)
must be adopted to solve ambiguous cases and it gets
complicated.
HTH
--
Marco Maggi
to follow the master branch to get the
latest thought to be usable?
--
Marco Maggi
/psyntax.scm:896:30: In procedure dobody:
module/ice-9/psyntax.scm:896:30: Syntax error:
unknown location: definition in expression context in subform b of 1
but it is my understanding that WITH-SYNTAX has a body like
let.
--
Marco Maggi
Marco Maggi wrote:
Hans Aberg wrote:
I am writing on a parser that translates normal function
syntax in to Guile code.
I do not know which scenario you are working with, but it
is perfectly possible to convert the input syntax:
((sin , cos , tan) 1.2)
Sorry, I have been too quick: you
((sin , cos) 1.2
Once you have H you can write a DEFINE/H syntax which
works just like the standard DEFINE but accepts in its body
the modified syntax:
(define/h (doit x y)
(display (+ x ((sin , cos) y
The tool to do it is the syntax-case macro system.
HTH
--
Marco Maggi
Marco Maggi wrote:
This is wrong; it is the guile-r6rs executable that,
when used interactively, does not import the R6RS bindings
by default as I expected.
This is my own script, it does not come with Guile...
--
Marco Maggi
.) #f]
ERROR: No matching modules found.
make: *** [gtest] Error 1
--
Marco Maggi
in (import (rnrs) (lib))
is it actually possible to load libraries?
--
Marco Maggi
libtool (GNU libtool) 2.2.8
and git show prints as last commit
a4082ab57e81c1826906c1a8601593e8dea5078c.
TIA
--
Marco Maggi
is:
#!r6rs
(import (rnrs)
(rnrs eval)
(makers makers))
--
Marco Maggi
/local fixed it.
For some reason it seems the gettext.m4 file, with
AM_GNU_GETTEXT definedin it, under
/usr/shared/aclocal/gettext.m4 was not found by the other
tools installed under /usr/local.
Thanks.
--
Marco Maggi
... and just go with UTF8?
Many of my files start with ;;; -*- coding: utf-8-unix -*-.
--
Marco Maggi
). Is there a plan to add this?
Many R6RS implementation allow the selection of a search
path for libraries through an environment variable; what
about GUILE_R6RS_LIBPATH?
--
Marco Maggi
into the Networking section.
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
TDGNU General Public License version 2, or (at your
option) any later version./TD/TR
TRTDIrequires/I/TD
TDGuile 1.8/TD/TR
/TABLEP
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing
TRTDIrequires/I/TD
TDGuile 1.8/TD/TR
/TABLEP
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
later version./TD/TR
TRTDIrequires/I/TD
TDGuile 1.8, JSON 0.7/TD/TR
/TABLEP
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo
Languages, and neither
for GEE/Streams, I suggest Scheme Language Extensions.
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile
closely at what you have, but have you seen
the paper:
http://cm.bell-labs.com/cm/cs/who/wadler/papers/lazyinstrict/lazyinstrict.ps
It had the off-by-one error in it. Fixed.
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
it.
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
in a few hours.
@Neil Jerram
8c. This is for my own ego: yeah, yeah, yeah! Define:
typedef SCM scm_t;
Surely there's an elisp incantation that would make it kiss
SCM for you?
Of course! :-)
Marco Maggi wrote:
1. TCL has nice programs that allow to distribute single
file auto
with a tutorial from the about page.
I am not sure that voting on topics can work though. This is
the Net not a polite society...
One thing that would be useful is to have a page with a roadmap
like this one http://wiki.tcl.tk/12753 for Tcl.
--
Marco Maggi
Now feel the funk blast!
Rage Against
.
Records are too common to be removed from the core: almost
everyone would end up loading that module.
This surprises me. I thought that they were a rarely used
feature because they are unschemey :-) and because of the
existence of GOOPS.
--
Marco Maggi
Now feel the funk blast!
Rage Against
dispatch methods for streams (unfortunately
there is no way to select a base sequence class);
streams can be implemented with both a Scheme or C producer
function.
https://gna.org/projects/gee
http://download.gna.org/gee/gee-streams/gee-streams-0.1b5-src.tar.bz2
--
Marco Maggi
Now feel
on the primitive generic functionality.
This is probably caused by a mess in my C code, but I am
failing to find the problem. Can someone point me towards
the code in Guile that does method invocation? It should be
somewhere in the evaluator...
TIA
--
Marco Maggi
Now feel the funk blast!
Rage Against
-extracting-and-running archives holding the
core executable, shared libraries, pure TCL modules and
some data files (search for tclkit).
2. Resurrect Serveez.
3. Resurrect SCWM (Scheme Constraints Window Manager).
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine
socket.) *Note File Status Flags::, for information about
nonblocking mode.
HTH
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman
Ciao,
Ludovic Courtès wrote:
Marco Maggi [EMAIL PROTECTED] writes:
I have written a simple extension to test the
compiled closures feature, and it seems to work.
I wonder if it can be documented (and in this case
I can contribute a Texinfo node) or there are plans
to change the API
Ciao,
I have written a simple extension to test the
compiled closures feature, and it seems to work.
I wonder if it can be documented (and in this case
I can contribute a Texinfo node) or there are plans
to change the API.
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm
/gee/tmp/multi-smob.tar.gz
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
Corrections... :(
Marco Maggi wrote:
scm_make_extended_class_with_supers(my,
scm_variable_ref(number));
This must be:
scm_make_extended_class_with_supers(my,
scm_list_1(scm_variable_ref(number)));
and the change to 'scm_class_of()' must
be something like:
{
/* Goops object
that I have already written a module
to implement variable-length vectors of C language
types, so that way of saving memory is already
available to me.
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile
Stephen Compall wrote:
On Sat, 2007-10-13 at 08:37 +0200, Marco Maggi wrote:
(body ?args ?body)
First, invoke that instead of this. Second, does the above
pattern
match the below syntax?
(body ()
(display 'ciao)
(newline))
Thanks and sorry, I did multiple errors
)
#f))
I get:
ERROR: invalid syntax ()
from the first argument to BODY; if I change
'body ()' to 'body (a b)' the error becomes:
ERROR: invalid syntax (key . args)
Why there is no error when using LAMBDA
but there is with custom keywords?
--
Marco Maggi
Now feel the funk blast!
Rage Against
-RULES only?
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
://lists.gnu.org/archive/html/guile-user/2005-09/msg00093.html
but it is not available now, nor it will be available
anytime soon. And no, I cannot work on it.
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
Thanks to all. Am I correct in saying that with a form like:
(a . body)
if the symbol 'a' appears in 'body' the graph is cyclic,
while if the symbol does not appear in its own body the
graph is Acyclic?
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
not use FOR-EACH. I fail
to see how to do it with a macro, and I cannot APPLY a
LAMBDA, for example the following does not work:
((list lambda '() result))
Ideas?
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
William Xu wrote:
I'll try. But where can i get the source?
https://gna.org/projects/gee/ - download area - foreign
http://download.gna.org/gee/foreign/guile-xlib-0.4.tar.gz
--
Marco Maggi
Now feel the funk blast!
Rage Against the Machine - Calm like a bomb
on Linux, though.
--
Marco Maggi
Now feel the funk blast!
pRage Against the Machine - Calm like a bomb
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
stuff in ASL, which could be useful).
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
Mike Gran wrote:
what is the scheme version of the following C code
printf(%s %d\n, __FILE__, __LINE__);
A better solution[1] than the other I posted. Still far
from perfect.
[1]
http://community.schemewiki.org/?guile-function-and-file-name
--
Marco Maggi
They say jump!, you say how high
-name*
alpha beta))
(define (further-func . args)
(apply format #t file: ~A, func: ~A, a ~A, b ~A~%
*current-file-name*
*current-function-name*
args))
(my-func)
(other-func 123 'abc)
(further-func 123 'abc)
--
Marco Maggi
They say jump!, you say how high
:~%)
(hash-for-each (lambda (key val)
(format #t ~/key ~S, val ~S~% key val))
table)
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user
On Tue Jun 12 22:50:02 2007 +0200 Andy Wingo wrote:
On Sat, 2007-06-09 at 08:18 +0200, Marco Maggi wrote:
---A---
| |
v v
A1 A2
B
I wonder if there is a way to parameterise the
construction of 'B' to let it have 'A1' or 'A2'
as base
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
)
(format #t result ~A~% a)
;; -
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo
Ciao,
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.
TIA.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
fails.
--
Marco Maggi
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
site.
[1] http://community.schemewiki.org/
--
Marco Maggi
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
the SMOB driver.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
language. Are you sure that you need
SWIG?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
, but it is included when the compiler
does its job;
now you can use 'scm_c_call_with_current_module()'
and invoke the initialisation function.
--
Marco Maggi
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
++ library. And even in this case mixing the two
dynwinds is troublesome. I am not a C++ programmer,
but maybe using object functions to invoke the Guile/C
API and wrapping them in scm_dynwind_begin/end...
--
Marco Maggi
___
Guile-user mailing list
...
(if flag
...)
...))
...
(set! flag #t)
...
(join-thread tid))
and it works like I expect it to in a test suite, but is it
correct?
P.S. Guile doc: '1+' is undocumented.
--
Marco Maggi
(proc=0x403252a0,
arg1=0x4031d9a8, args=0x405c44c8)
at ../../libguile/eval.c:4880
## --
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user
, like vectors and matrices.
To distinguish built in reals from other real things
there is the IS-A? predicate, and to make old code
continue to work there are modules.
So how bad it is to break this?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet
-TCL in a couple of days, and it
is finished with very simple code.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo
a solution for
this. Suggestions are welcome.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
Neil Jerram wrote:
Marco Maggi [EMAIL PROTECTED] writes:
[...] I asked for some help to complete my
Guile binding to OpenSSL
Out of interest, what happened with that,
It is somewhat working, I still have some things
to write and some things about certificate management
and session caching
In the first episode I asked for some help to
complete my Guile binding to OpenSSL, which I have
to admit is not much fun to code.
Now I have written a binding[1] to GD[2] (the
graphics library etc.) which, you have to admit
IS somewhat funny. Most of the code is there,
with
Neil Jerram wrote:
Marco Maggi [EMAIL PROTECTED] writes:
Is there a list of net protocols available for Guile
in modules and/or extensions?
[...]
there might be something in this area in Andy Wingo's
guile-library package.
Mh, no.
Of course there are the http implementations in mod_lisp
No luck so far. The EXIT-HOOK is executed only if
RUN-HOOK is invoked and in my experiments this does
not happen with 'guile -s' or EXIT invocation.
I am thinking of patching guile for a special
EXIT signal, to make it work like the GNU Bash
fake EXIT signal.
--
Marco Maggi
They say jump!, you
Is there a list of net protocols available for Guile
in modules and/or extensions?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org
the
stack is better or worse than this?
http://www.ossau.uklinux.net/guile/debugging-demo/shot2.html
I dunno. It has a completely different purpose. Nice one
that there is a stepping debugger, though.
Neil Jerram wrote:
Marco Maggi wrote:
and that the args content is not explicitly documented
even
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);
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
-scheme-function.
For the ones that know how Tcl works: what I want
is the same as saving the errorInfo global variable
and restoring it later.
Is there a way?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
of the elements of a num/vec/mat
is 0 or 1. So Octave requires two functions call to
achieve the result of HIT-NAN?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user
it?
If there is a solution it could be a good idea to
add the implementation example to the GOOPS
documentation.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
Neil Jerram wrote:
Marco Maggi [EMAIL PROTECTED] writes:
Example: I have two predicates HIT-NAN? and MAP-NAN?
which one it is better to call NAN?
I'm afraid I don't understand. Perhaps you could write
the down for the two possibilities that you have in mind.
For a vector of real numbers
Yes! applicable works.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
Ciao,
when I define a generic function that accepts a procedure
or generic function as parameter I have to define two
identical functions:
(define-method (map (p procedure) ...
(define-method (map (p generic) ...
is there a base class for procedure and generic?
--
Marco Maggi
They say
the GSL Reference manual for details and
references. The others are using a different
convention (Abramowitz Stegun). As such, all the
answers are correct.
So, do you suggest me to override the GSL function to
make it equal to the Guile one, or vice versa?
--
Marco Maggi
They say jump!, you
Ciao,
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?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
?)
(define-method (integer? (o number))
(saved-integer? o)))
(export integer?)
--
Marco Maggi
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
.
Chi vivrà, vedrà...
Also, Guile 1.8 uses GMP internally. Does your
set of bindings provide additional functionalities
It exposes integer functions not exposed by Guile,
like the number theoretic ones; it also exposes
MPF functions (but I have to review that code).
--
Marco Maggi
, ...)
but INTEGER? is the only one that causes problems.
--
Marco Maggi
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
Neil Jerram wrote:
Marco Maggi [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] wrote:
I do not understand why the first solution does not work;
I've tried different combinations of functions but there is
something I am missing.
Damn... it seems to work if I do not EXPORT the generic
methods
=)
;;
but I get the same error.
I do not understand why the first solution does not work;
I've tried different combinations of functions but there is
something I am missing.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
[EMAIL PROTECTED] wrote:
I do not understand why the first solution does not work;
I've tried different combinations of functions but there is
something I am missing.
Damn... it seems to work if I do not EXPORT the generic
methods.
--
Marco Maggi
Sorry for the late reply...
[EMAIL PROTECTED] wrote:
No problems here:
...
What is your problem ??? Write is correctly defined
and even used by guile...
Mh... yes. Trying to create a generic method named
OPEN only gives me the imported module ... overrides
core binding ... warning.
I will have
Did you try the documentation on this?
Cough... now that I've read it, it is clear. Thank you.
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
of the mark function we return the first cell and at
subsequent invocations we return the cdr?
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http
Marco Maggi [EMAIL PROTECTED] writes:
If, dunno when, I come up with a simple example channel
implementation: is there an official place where I can
put it?
I don't think so. Well, depends on what you mean by
official I guess. ;-) And BTW, what do you mean
by channel?
I come from TCL
need the open/close/read/write/end operations, no
events, no seek.
--
Marco Maggi
They say jump!, you say how high?
Rage Against the Machine - Bullet in the Head
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile
95 matches
Mail list logo