On Tue, 22 Feb 2022 at 10:23, Alex Sassmannshausen
wrote:
>
> Hi Zelphir,
>
> I think you want to be using the popen / pipe procedures for this. See
> https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Pipes.html
> for the chapter in the manual.
Another example, for reading transactions o
extension language for lots of GNU programs that
already exist.
I think expressing that dichotomy, and arranging the docs as clearly
as possible while still allowing for both sides, is still our number 1
problem.
Best wishes,
Neil
ill
> undertake the effort to implement the makeover proposal.
Speaking as one of the past authors of the manual, I look forward to
hearing your thoughts. It is genuinely challenging to present this
amount of material and explain its complexity, and there is no reason
at all to consider any current arrangement as cast in stone. Thanks
for thinking about this.
Best wishes,
Neil
On Sun, 22 Nov 2020 at 18:49, Zelphir Kaltstahl
wrote:
> Hello Guile Users!
>
> I have a question about data structures.
>
> Recently I read a file and the lines in the file would become a list in
> my Guile program. The file was not super big or anything. However, I
> usually try to avoid having
ding the "wg
pubkey" output from it.
Alternatively, it might be buffering, i.e. the private key hasn't yet
reached "wg pubkey". In that case (force-output port) might help.
Best wishes,
Neil
On Tue, 10 Nov 2020 at 08:51, luhux wrote:
> Hello everyone
>
> I am a
ace [1]. For an example, see [2],
although that particular code might be outdated as I haven't run it for a
while.
[1]
https://www.gnu.org/software/guile/manual/html_node/Foreign-Function-Interface.html#Foreign-Function-Interface
[2] http://git.savannah.nongnu.org/cgit/ossaulib.git/tree/glib/dbus.scm
Best wishes,
Neil
I'm afraid arguing by analogy or proverb rarely helps, because the analogy
is usually inaccurate in some way.
Also, what about Horchata? :-)
On Thu, 17 Oct 2019 at 11:53, zx spectrumgomas
wrote:
> Let's hope so. But in Spain we have a proverb: "Blanco y en botella,
> leche". "White and bottle -
Correct usage of append! usually requires (set! x (append! x )),
despite what you might think from the !. I haven't read the rest of your
email carefully, but I wonder if that will make a difference?
Best wishes,
Neil
On Fri, 13 Sep 2019 at 13:39, Philip K. wrote:
>
> Hi
Kenan Toker wrote on 9/6/19 12:09 AM:
> With that in mind, if I were to choose one of the 'distributions' of
htmlprag, is there one you yourself would pick?
I suspect that the version in guile-lib (plus the patch I sent
yesterday) is best.
(Realistically, I probably can't work on anything be
st breaking changes to it.)
(Historical note: htmlprag was mostly written 18 years ago, when HTML
was different in both standards and practice. Today, I'd write the
parser very differently, though I think there's a good chance that
htmlprag will still work for one's purpose, with this change
atop RnRS again, and hopefully advancing it. `htmlprag` was
the very first Scheme code I ever wrote, and was tested on many Scheme
implementations, so porting `html-parsing` back from Racket first seems
suiting, and probably very easy.)
Neil V.
ge* (lookup-language 'nx-tcl))
>(top-repl)
>
> But this fails. Any hints?
Just guessing, but perhaps:
(fluid-set! *current-language* 'nx-tcl)
or
(fluid-set! *current-language* (lookup-language 'nx-tcl))
?
Neil
on the Gitlab site, and it looks like it would
be if you named it README.org. Is that something you're already aware
of?
Thanks,
Neil
= -1 ENOENT (No such file or directory)
I'm afraid I don't know any more, e.g. about whether libgsl.la _should_
be needed here.
Neil
lcblas.
> so, it could be a more basic issue, but i dont know how to proceed.
You could run under strace to confirm which files are being looked for,
and which of those are not found.
Regards,
Neil
re the JS dev want multiple threads to
> read stuff asynchroniusly at the same time?
>
> --
> Cheers
> Swedebugia
I don't know JS promises, but have you seen
https://www.gnu.org/software/guile/manual/html_node/Delayed-Evaluation.html?
Regards,
Neil
Catonano writes:
> Neil,
>
> Il giorno lun 19 nov 2018 alle ore 10:02 Neil Jerram <
> n...@ossau.homelinux.net> ha scritto:
>
>>
>>
>> On 18 November 2018 19:33:31 GMT, Catonano wrote:
>> >Il giorno lun 29 ott 2018 alle ore 22:58 swedebugia
>&g
d how to
prompt for them.
The command loop entry point is at
http://git.savannah.nongnu.org/cgit/ossaulib.git/tree/ossau/command-loop.scm
and the dependency modules are all included in that git repo.
Best wishes,
Neil
do it in scheme, otherwise I have to wrap every c functions.
>
> Thanks. :)
Would it work for you to use `%null-pointer' ?
>From `(guile) Foreign Variables':
-- Scheme Variable: %null-pointer
A foreign pointer whose value is 0.
Best wishes,
Neil
On 03/01/18 15:11, Christopher Howard wrote:
On Wed, 2018-01-03 at 11:53 +, Neil Jerram wrote:
Well, one Lispy mechanism in that area is hooks. For example, from
some
of my old code:
;; Changes to modem registration state are indicated by calling this
;; hook with args STATE and
te properties)
(run-hook registration-hook state properties))
Does that serve your purpose at all?
Best wishes - Neil
Best wishes - Neil
Original Message
From: Jan Nieuwenhuizen
Sent: Monday, 26 June 2017 11:22
To: Neil Jerram
Cc: guile-user@gnu.org; guix-de...@gnu.org; epsilon-de...@gnu.org
Subject: Re: Mes 0.8 released
Neil Jerram writes:
Hi Neil!
> In your bootstrap path, what is the step after Mes?
Hi Jan,
In your bootstrap path, what is the step after Mes? I guess it would be using
mescc to compile some C program - but if that is right, which program?
Regards - Neil
Original Message
From: Jan Nieuwenhuizen
Sent: Sunday, 25 June 2017 17:40
To: guile-user@gnu.org
Cc: guix-de
On 12/06/17 09:55, Neil Jerram wrote:
On 12/06/17 09:19, Chris Marusich wrote:
I think I'm missing something here. In (list (f)), the call to f
certainly looks like it's happening at a position that one might
intuitively call a "tail" position. So, in this case, what disqu
of tail position are
(begin
...
(f))
and
(if
(f))
The case you mentioned, (list (f)), is probably the simplest example of
a non-tail position, because something very clearly does need to be done
to the return value of (f): it needs to be inserted into a newly
allocated list.
Regards - Neil
Perhaps by making 'cursor' relative to 'view'?
Then you could always declare / assert that
(>= cursor-x 0)
(< cursor-x (screen-width))
; and similarly for cursor-y
Neil
Original Message
From: Amirouche Boubekki
Sent: Tuesday, 25 April 2017 10:40
T
! properties '(red narrow))
And in that case the question about '?' would disappear.
Regards,
Neil
On 25/04/17 04:43, Alex Vong wrote:
Good question! I can't decide as well. I want to know how people think
about it.
In a lazy language, a variable is a 0-ary thunk, while
The attached seems to help. With that, the stdout no longer shows
errors, and I see a sensible-looking web UI at http://localhost:8080 and
http://localhost:8080/admin.
On 06/04/17 22:52, Neil Jerram wrote:
Hey Andy,
I'm just trying to get started with tekuti, but am hitting problems
Hey Andy,
I'm just trying to get started with tekuti, but am hitting problems
which look like they're associated with having no content yet. I've
appended a transcript below - can you see what's wrong?
Thanks - Neil
neil@neil-laptop:~/SW/tekuti$ ./env src/tekuti
;
> Home page: https://dthompson.us/pages/software/guile-sdl2.html
I get 404 for that URL, and also if I add 'www.'.
, the innards of
Guile changed so much as to invalidate the (ice-9 debugging) stuff.
I'm out of the loop now, so not sure how best to do the things that
(ice-9 debugging) used to do; but at least one of the ingredients is the
excellent geiser.el mode for Emacs.
Neil
I got lost at the point of looking up the genres for Toy Story; why does that
involve graph traversal?
Probably it would help to add a bit into the blog to explain how the movie
information is mapped into a graph.
Original Message
From: Amirouche Boubekki
Sent: Friday, 9 September 2016 0
Your blog includes:
Mind the fact that -ref procedures have no ! at the end which means they
return a new record.
I think that should be -set instead of -ref
Neil
Original Message
From: Amirouche Boubekki
Sent: Friday, 9 September 2016 07:32
To: Guile User
Subject: Presentation of
example of what isn't working.
It's not clear to me if you mean
(define-module (.) ...)
or
(define-module (.something) ...)
or
(define-module (something . else) ...)
etc.
Regards,
Neil
phones, I might have done what you're asking. But no;
the gpsd clients, and the protocol itself, are pretty capable, and so far I've
been able to use those to do everything that I (think I) needed.
Regards,
Neil
(from phone, hence the top posting)
Original Message
From: Mike Gra
I don't know, but this rings a bell. I suggest running under strace and
looking at the stat syscalls, to see where Guile is looking.
Neil
(from a phone that only does top posting - sorry!)
From: Panicz Maciej Godek
Sent: Thursday, 12 May 2016 08:21
To: guile
On 05/01/16 09:40, Ludovic Courtès wrote:
Neil Jerram skribis:
I noticed you asked about libnotify on IRC
Also note that glibc built for the Linux kernel provides wrappers for a
bunch of inotify syscalls in :
--8<---cut here---start->8---
$ objd
%null-pointer)
%null-pointer)
I thought you might like that; note that you'll also need "aptitude
install libnotify-dev", or your system's equivalent.
Regards,
Neil
Hi Ludo,
On 19/11/15 14:25, Ludovic Courtès wrote:
"Neil Jerram" skribis:
Pjotr, I've made my submission now - please could you check if it
looks correctly done? (I've never done a FOSDEM submission before...)
I can confirm it’s in penta.fosdem.org, but I think you
Thanks, Alex and Ludo!
Pjotr, I've made my submission now - please could you check if it looks
correctly done? (I've never done a FOSDEM submission before...)
Thanks,
Neil
-Original Message-
From: guile-user-bounces+neil=ossau.homelinux@gnu.org
[mailto:guile-us
es.
Does that sound interesting?
Regards,
Neil
Original Message
From: Pjotr Prins
Sent: Saturday, 31 October 2015 09:44
To: guile-user@gnu.org
Subject: FOSDEM call for Guile related talks
# GNU Guile devroom call for talks @FOSDEM 2016
For the first time ever, we have a GNU G
Sorry for not mentioning this before, but have you seen make-c-struct and
parse-c-struct at
https://www.gnu.org/software/guile/manual/html_node/Foreign-Structs.html#Foreign-Structs
?
Original Message
From: Taylan Ulrich Bayırlı/Kammer
Sent: Monday, 31 August 2015 14:47
To: guile-user@gnu.o
> ,q
scheme@(guile-user)> (eval 'car (current-module))
$2 = #
scheme@(guile-user)> (module-define! n 'car car)
scheme@(guile-user)> (eval 'car n)
$3 = #
Hope that helps!
Neil
Needing the output is an independent concern, and means you should use (ice-9
popen) instead of system.
open-pipe* is analogous to system*, in that it doesn't use a shell.
Regards,
Neil
Original Message
From: Mark A. Hershberger
Sent: Saturday, 7 March 2015 15:09
To
iding Web sockets in Artanis,
his web server framework.
Original Message
From: David Thompson
Sent: Friday, 20 February 2015 21:51
To: Neil Jerram; guile-de...@gnu.org; guile-user@gnu.org
Subject: Re: WebSockets
Digging up this old thread. :)
Neil Jerram writes:
> I'm interested in a
other suggestions that people have made, note that
you could also use the Guile FFI to access ImageMagick's C API from
Guile.
Personally, I find using the FFI much more fun than writing a 'proper'
Guile binding.
Regards,
Neil
On 2014-09-15 02:16, m...@netris.org wrote:
Federico Beffa writes:
Neil Jerram writes:
This is just a guess, but what happens if you do this:
$ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/guile
Regards,
Neil
With this it works!
I notice that there is an /etc/ld.so.cache file
n provided by the Debian package.
>
> Am I doing something wrong? Is it possible to have two guile versions
> on the same system?
This is just a guess, but what happens if you do this:
$ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/guile
Regards,
Neil
t; disabled status of button update automatically as the truthiness of the
> conditions changes. (The former use-case is actually covered by "layout
> constraints", but that's strictly limited to layouting.)
IIRC, Metafont does that; but obviously it isn't intended as a general
language. Are there more general languages that solve equations like
this?
Regards,
Neil
On 2014-08-14 11:27, Taylan Ulrich Bayirli/Kammer wrote:
Neil Jerram writes:
I wonder about possibly having some magic that would automatically
match certain top-level forms and evaluate them at compile time. The
case for this for 'define-reader-ctor' feels quite strong. For the
'add-to-load-path' procedure and applied the magic to that.
What do you think? Would that be too magical?
Regards,
Neil
lieve an eval
closure is what guile-gnome uses to lazily bind Scheme procedure names
to the relevant underlying C code. Perhaps David Pirotte might comment
more on that, as he is working a lot with guile-gnome now.
Regards,
Neil
On 2014-07-22 19:46, Max wrote:
22.07.2014 19:05, Neil Jerram пишет:
On 2014-07-22 17:39, Max wrote:
OK, sorry to take your time on that attempt.
What if you do "guile --debug test.scm" where test.scm has just the
load-path
appending and (use-modules (glib dbus)) ? If that sti
On 2014-07-22 17:39, Max wrote:
I've copied glib/ to neil/, replaced all the instances of glib with
neil (except for
libglib of course :) and tried to use (neil dbus) but the result is
exactly the same
- ERROR: no code for module (neil dbus)
OK, sorry to take your time on that attempt.
ce. If there is a conflict with guile-gnome, that should avoid it.
Regards,
Neil
ype . ,content-type))
content)))
The problem here that 'content' contains binary data that can't be
returned as is in an HTTP response. It needs to be encoded in one of
the HTTP-supported encodings, and a corresponding Content-Encoding
header added to the response.
I think I investigated a little whether Guile's (web ...) modules could
do this, or could easily be enhanced, but decided instead on the
solution described above.
Regards,
Neil
On 2014-04-28 13:49, Max wrote:
27.04.2014 15:33, Neil Jerram пишет:
I have some FFI-based client-side bindings in my library at
http://git.savannah.gnu.org/cgit/ossaulib.git/. The (glib dbus)
module
exports procedures for
- making a synchronous or asynchronous dbus call
- registering a
now of. Should be quite easy to build on top of my
client-side bindings, though. (Or on top of any set of client-side
bindings.)
Regards,
Neil
ith GOOPS, so I'm not sure this is the right
> behavior.
Do you see this if you use #:init-value instead of #:init-form ? It
sounds to me like #:init-value is what you really want, and I suspect
you're seeing undefined behaviour that arises from giving an
unparenthesized form ('42') to #:init-form.
Neil
[Now guile-user only, since that seems appropriate]
On 2014-04-02 11:08, Nala Ginrut wrote:
On Wed, 2014-04-02 at 10:29 +0100, Neil Jerram wrote:
Hi there,
I'm interested in adding support for WebSockets
(http://tools.ietf.org/html/rfc6455) to Guile's web modules. Is
anyone
else
Hi there,
I'm interested in adding support for WebSockets
(http://tools.ietf.org/html/rfc6455) to Guile's web modules. Is anyone
else interested in - or possibly already working on - that?
Thanks,
Neil
ntion tail position, but only in passing, and it isn't obvious to me
why that restriction should exist.
Thanks,
Neil
th-exception-handler is what SRFI-34 specifies.
Alternatively you can use SRFI-34's 'guard' form, which encapsulates a
pattern like that.
Hope that helps,
Neil
constructors and dynamic
instantiation of OO primitives. I hope it'll save somebody else some
time one day.
Any comments and suggestions are welcome.
Regards
Jan
[1] http://wedesoft.de/oop-with-goops.html
Hi, that's a nice blog, especially the illustrations. :-)
Thanks,
Neil
d
xxx->pointer conversion for some of its arguments.
Regards,
Neil
o soonish.)
> (Somehow I doubt there is a phone keyboard that'll let me type
> +).
The Freerunner SHR terminal (on-screen) keyboard does; also
matchbox-keyboard. It isn't exactly easy, though, given how small the
keys are, and close to the bevel that surrounds the screen.
Regards,
Neil
ut-port) "a" "b" '() '()) #t))
ERROR: In procedure make-stack:
ERROR: In procedure a: b
$3 = #t
Neil
the #:slot-set! option of
your virtual 'score slot.
I've assumed that (score obj) provides the real underlying storage for
the virtual slot; it could be a (make-object-property), for example.
Unfortunately I'd say this adds up to an over-contrived solution; but
hopefully it's still useful to show how it _could_ be done.
Regards,
Neil
request)))
>
> I hope it's readable :-)
Certainly, it looks good. Where does mime-type-ref come from, though?
Perhaps that could be wrapped up as `static-file-response' (or a better
name if you can think of one) and added to (web server).
Regards,
Neil
I guess using the efficient sendfile)
without bothering modlisp or Guile, but dynamic stuff can be routed via
modlisp to Guile.
Regards,
Neil
William James writes:
> (define (regex-split regexp str . options)
Thanks for posting that! For fun/interest, here's an alternative
implementation that occurred to me.
Neil
(use-modules (ice-9 regex)
(ice-9 string-fun))
(define (regex-split regex str . opts
more information about why it is failing, that would help.
Regards,
Neil
- perhaps based on (current-module) - it should be possible to
enforce this by defining a new kind of slot #:allocation and putting
that runtime check in the #:slot-ref function.
Regards,
Neil
l...@gnu.org (Ludovic Courtès) writes:
> We are pleased to announce GNU Guile release 1.9.15. This is the last
> pre-release before the 2.0 release, due on Feb. 16th!
Wow, excellent job, and exciting times. Well done to everyone involved!
Neil
decent shell, I guess that's actually OK.
Neil
s the current directory? Note that .go files are
> installed to e.g. /usr/lib64/guile, while source is in /usr/share/guile.
Good point, thanks for the reminder about that. But (for 1.9/2.0)
`include' will always be well-defined and reliably relative to the
containing file's name, won't it?
Regards,
Neil
Neil Jerram writes:
> Marek Kubica writes:
>
>> What about "the same directory that the file is in"? The point is, when
>> writing scripts that become larger than one file, splitting them into
>> modules becomes immensely painful because the modules cannot fi
is has the effect of adding the parent of the script-containing
directory to the load path.
Part of the complexity is supporting both 1.8 and 1.9/2.0. For 1.9/2.0
support only, I believe it could be simplified by changing `load' to
`include', and retaining only the body of the `eval-when'.
Regards,
Neil
(lambda (x) (set! go x) 2
> ((1 . 2) (100 . 2) (1 . 2) (100 . 2))
> guile>
For what it's worth, my current Guile, from Git post 1.9.14, gives ((1
. 2) (100 . 2) (1 . 2) (100 . 2)) for both cases.
Neil
()
(begin
(loop ((define i 0))
(< i 10)
((set! i (+ i 1)))
((display i)))
(display "done!")
(+ 1 2)
)
))
0123456789done!$5 = 3
Regards,
Neil
pt-set! prompt)
(repl-default-option-set! 'prompt prompt))
Regards,
Neil
he specified module could not
> be found."
> Is there a configuration knob that needs to be tweaked to tell guile where to
> find this file?
On Linux I think you'd need either "export
LD_LIBRARY_PATH=/usr/local/lib", or to run "sudo ldconfig" after
installing Guile. I'm afraid I don't know what that equates to on
MinGW.
Neil
Hi Hans,
To reply quickly to one point in your email... (I'll ponder the rest
later.)
Hans Aberg writes:
> On 11 Dec 2010, at 01:25, Neil Jerram wrote:
>
>> In the hope that these questions might be useful to at least one of
>> us...
>
> I do not know what that me
et this effect, I need a function g that can call improper
> lists (g x_1, ..., x_k . y), where y is a list.
As Dan pointed out, that is not an improper list. It's a proper list.
In the hope that these questions might be useful to at least one of us...
Neil
been reading your emails, but I'm afraid I have no
idea what you are trying to do. Perhaps you could step back and explain
that overall, before continuing with details.
Neil
what do I know? for all I know, maybe g-wrap morphed into ffi).
>
>
As far as I know, g-wrap is still active, and part of the dev chain for
guile-gnome.
Neil
f51f0> #)))
> make[3]: *** [guile-procedures.texi] Error 1
>
>
> Am I missing something?
In my tree, guile-tools is in the "meta" subdirectory, and I don't see
where a path of ".../guile/guile-tools" could come from. Did you "git
clone" into a new directory?
Neil
re and suitable ChangeLog entries.
I'm happy to explain more if they're not immediately obvious...
Neil
eader file(s). Hopefully something like SWIG or GCC modularisation
might give us that in the future.
Neil
you invented something like `#:allocation #:custom-setter', it would
only apply to slots that had `#:allocation #:custom-setter' in their
slot definition.
Regards,
Neil
than plain slot-set!, but which uses slot-set! internally
after it has done the custom processing.
You could also define a new kind of #:allocation to implement the behaviour
you're looking for, and a metaclass for classes that can contain that kind
of slots, and write a compute-get-n-set method for that metaclass ... but
that's quite a bit more complex.
Regards,
Neil
quot;slot-ref", that would be recursively infinite.
> How can I deal with this? Any help will be appreciated, thanks!
>
I'm not sure this is what you mean... but yes, your #:slot-ref lambda can do
a slot-ref on normal slots, such as "cache", e.g.:
#:slot-ref (lambda (o) (car (slot-ref o 'cache)))
Neil
...), and that the path for compiled files needs to
be put in %load-compiled-path. Would you like to try that?
If this turns out to be correct, I'll update the doc for
primitive-load-path to cover it - so please report back.
Regards,
Neil
ations to use the new FFI. Although
probably also keeping the existing glue code implementation, as an
alternative to support older Guiles.
Regards,
Neil
.
Really cool to see these quick new bindings using the 1.9/2.0 FFI!
Neil
Thank you, it certainly did. To conclude, I'll just note that in the
Guile 2.0 future we won't have such difficult problems, because of using
libgc - which will automatically find active references anywhere in the
whole application. (And of course I understand that your code still
needs to work with Guile 1.8.x now.)
Regards,
Neil
ase
ask if not.
(For an example modlisp server and web page script that work with this, see
http://git.savannah.gnu.org/cgit/ossaulib.git/tree/scripts/modlisp-server
and
http://git.savannah.gnu.org/cgit/ossaulib.git/tree/scripts/modlisp-example.)
Neil
>From 35906ccf32c502eb34190960542
r code - that should help to avoid
introducing such characters.
2. I used emacs's indent-region function to indent the code
conventionally. This has no effect on the operation of the code, but
makes it easier for me and others to read.
Fingers crossed...
Neil
barry.scm
Description: Binary data
esn't allow that define where you currently have it - see R5RS section
5.2.
(At least, it's 5.2 in the copy of R5RS that comes with Guile; I haven't
checked other versions.)
Neil
bout what the problem is.
Regards,
Neil
1 - 100 of 562 matches
Mail list logo