Literate progamming in Scheme Re: Documenting Guile code

2025-07-09 Thread Keith Wright
"Dirk-Jan C. Binnema" writes: > One thing I'm not quite sure about is how to document my Guile code. > What I want is: This is not what you want, but it may be an occasion to let y'all know about a project I have been working on (sporadically) for a long time. http://www.free-comp-shop.com/te

Re: Running Compiled Guile Objects

2024-12-13 Thread Keith Wright
Nala Ginrut writes: > The current Guile is not AOT yet. Google says: Attack On Titan. > Although the object file is ELF, it's just bytecode wrapped ELF > header. So you can't run it as a regular executable file. I don't think that was the question...Hakan wants to call the Guile executable and

Macros that don't work

2024-05-15 Thread Keith Wright
You are doing great work that I do not understand. Though I worry that by the time we have worked on it long enough to know how it should be done, we are too tired to do it, Still, I am happy to still be living, learning, and understanding more. I am deterimined to understand how macros should

Re: Quiet compilation for scripting

2024-03-15 Thread Keith Wright
Olivier Dion writes: >>> Like the warning says, you ought to either use the GUILE_AUTO_COMPILE >>> environment variable or use the `--no-auto-compile' switch. >>> Unfortunately, there is no `--quiet' or `--warning=/dev/null' option. >> >> I think the OP is fine with autocompilation (I even guess

Re: G-Golf- [subject changed] cairo based^W^WWhy me?

2023-12-22 Thread Keith Wright
> From: Aleix Conchillo Flaqué > Subject: Re: G-Golf- [subject changed] cairo based examples > To: David Pirotte > Cc: guile-user , guile-devel On Fri, Dec 22, 2023 at 3:22 PM David Pirotte wrote: > Hi Aleix, > > i decided to answer separately - and change the subject line - Maybe

What is needed to compile Guile?

2023-11-22 Thread Keith Wright
Jean Abou Samra writes: >> and have no idea how to set LIBFFI >> to avoid the need to call it. > > Don't, this is too complicated. Thank you for your consise and correct advice. I have compiled Guile 3 from tarball and verified that it can still evaluate the program I was working on last year.

What does Guile need to compile? (What libunistring does guile need?)

2023-11-20 Thread Keith Wright
LIBFFI to avoid the need to call it. Acording to the web page, pkg-config is a program to read *.pc files. Where do those come from? I don't see them in the tarball. -- Keith > Am 20.11.2023 04:01 schrieb Keith Wright: >> I am trying to install guile from source tarball. >>

What libunistring does guile need?

2023-11-19 Thread Keith Wright
I am trying to install guile from source tarball. Of course, I had to install a couple of other things (gmp,m4,etc.) but that's done. gmp from source, other things with apt-get. I'm stuck on libunistring. It seems libunistring is not in Debian but I have libunistring2 already installed: kwrig

Re: Generating "independent" random numbers

2023-10-10 Thread Keith Wright
Maxime Devos writes: > Op 04-10-2023 om 18:14 schreef Keith Wright: >> From: Zelphir Kaltstahl >> >>> my goal is normal distributed floats (leaving aside the finite >>> nature of the computer and floats). >> The following is either provably correc

Re: Generating "independent" random numbers

2023-10-04 Thread Keith Wright
From: Zelphir Kaltstahl > my goal is normal distributed floats (leaving aside the finite > nature of the computer and floats). Warning: I am out of my depth, I can't even spell statisticion, but... The following is either provably correct up to round-off, or totally stupid. First define the cu

Re: map-par slower than map

2022-10-23 Thread Keith Wright
Zelphir Kaltstahl writes: > Of course,if you have global state and do not have a synchronization > construct for accessing the hash table, I would expect things to > go wrong at some point, with non-reproducible results. Indeed. > I do not think that futures are to blame here, > or parallel map

Re: Ideas for making Guile easier to approach

2022-02-09 Thread Keith Wright
Maxime Devos writes: > Christine Lemmer-Webber schreef op wo 09-02-2022 om 10:18 [-0500]: >> We had: >> >>     #:use-module (srfi args-fold) >>     #:use-module (srfi streams) >>     #:use-module (srfi tests)) > > The RnRS reserved the (srfi ...) namespace for the SRFI process, I don't know off

Re: [ANN] Scheme-GNUnet 0.2 released

2022-02-03 Thread Keith Wright
Maxime Devos writes: > The source code can be found at , > I can send a copy of the manual (PDF, HTML or TeXmacs) by mail if desired. Would it not be easier to put the documentation in the same place as the source code? (Possibly in a separate directo

Re: can't get http-get w/ accept header working

2022-01-26 Thread Keith Wright
Matt Wette writes: > Does someone have example of using the Accept header with http-get? I don't. > I'm basically calling >     (http-get url #:headers (list auth (parse-header 'accept "*/*") ...) > > and getting back error from web/request.scm: >     (validate-headers (((*/*)) ... ) > > head

Re: Option to create statically linked binaries

2021-12-29 Thread Keith Wright
James Crake-Merani writes: > On 21/12/29 10:59pm, Sai Karthik wrote: >> Hello everyone! I'm new to guile. I am exploring the language since a couple >> of days. It would be nice to have option to produce such binaries for >> programs built using guile (like with golang & some more langs). > I'm

Re: [EXT] Can guile be implementation independent?

2021-12-19 Thread Keith Wright
Taylan Kammer writes: > On 17.12.2021 18:05, Thompson, David wrote: >> >> I think the shortest and easiest answer to this question, >> in practice, is "no." >> >> I prefer to think of each Scheme implementation as its own distinct >> language, I hope not. > The RnRS have some severe limitation

Re: Syntax locations are ambiguous: can we track source 'offset' and 'length'?

2021-08-03 Thread Keith Wright
>> Vivien Kraus via General Guile related discussions > what do you think of the attached patch? Well, I think it is too special interest and way too damn big for a general user discussion list. -- Keith

C programs in Scheme syntax

2020-05-28 Thread Keith Wright
I am thinkging about a project that uses Scheme macros to generate C code. To this end I want to encode C programs as S-expressions. For example, the C program that is encoded in Ascii as for (j=0;j<12;++j) a[j] = j*pi/6; might be encoded as an S-expression as (for ((= j 0)(< j 12) (++ j)) (=

Re: mailmam, web bridge, forum, p2p

2019-10-27 Thread Keith Wright
Mike Gerwitz writes: > To make sure I see replies, please include me in the recipient list (not > just the mailing list). I missed this at first. > > On Sat, Oct 26, 2019 at 09:48:37 +0200, to...@tuxteam.de wrote: >>> Passing session tokens via GET requests is a bad idea, because that >>> leaks

Re: A value for "nothing"

2018-09-15 Thread Keith Wright
HiPhish writes: > Not a fan of either, "nada" is not English, and "nix" is a slang term, > unlikely to be known to foreign speakers (I didn't know about it myself). How > about "nihil", it's an inter-lingual term and close to "nil" in sound. none?

Re: guile-user Digest, Vol 188, Issue 9

2018-07-08 Thread Keith Wright
Zelphir Kaltstahl writes: >>> I decided to take a look at how one can parse command line arguments in >>> Guile and was looking for something like argparse in Python. It seems >>> that (use-modules (ice-9 getopt-long)) does the job, except that I hit >>> one problem and don't know what the mistak

An impudent introduction to impudence

2016-02-08 Thread Keith Wright
Panicz Maciej Godek writes: > (I wonder whether we should switch to private correspondence, or > doesn't anyone mind having such updates here?) I would think so. Thanks for telling us about this project, it's interesting to read somebody who cares about writing on a programming list. For examp

Bug in system?

2012-11-06 Thread Keith Wright
the system call does not go into the string, why not? -- -- Keith Wright Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com> --- Food, Shelter, Source code. ---

Re: sxml-match example from manual fails

2012-06-10 Thread Keith Wright
e "'". That is change: > (sxml-match '(e (@ (i 1)) 3 4 5) to > (sxml-match `(e (@ (i 1)) 3 4 5) -- -- Keith Wright Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com> --- Food, Shelter, Source code. ---

Re: About gh.h

2011-11-08 Thread Keith Wright
is a compatible library, you just have to change everything over to the scm.h interface. -- -- Keith Wright Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com> --- Peace, Love, and Source Code ---

Re: Problems to install Guile 2.0.0

2011-03-10 Thread Keith Wright
> From: l...@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) > > If the ^L character was a problem, then you’d have troubles compiling > GNU programs. :-) > > So I suspect there was another problem. Was the ctrl-L what he said is the problem? I don't know what email reader you are using, but I sa

Re: manipulating continuations

2011-02-12 Thread Keith Wright
> From: Andy Wingo > Cc: guile-user@gnu.org > > Hi Thomas, > > In this expression, `foo' has returned twice. The first time it > returned a continuation, which was applied. The second time it returned > whatever `newline' returned: the unspecified value. Applying the > unspecified value faile

Re: List functions

2010-12-01 Thread Keith Wright
> Cc: adams...@email.unc.edu, guile-user@gnu.org > From: Hans Aberg > > I was trying variations like >(let () > (define (g x)(lambda (f)(f x))) > (map (g 2) '(sin cos))) > Which gives an error: >In expression (f x): >Wrong type to apply: sin Somebody should patc

Re: List functions

2010-12-01 Thread Keith Wright
> From: Hans Aberg > Cc: guile-user@gnu.org > > On 1 Dec 2010, at 18:35, Joel James Adamson wrote: > > >> I am writing on a parser that translates normal > >> function syntax in to Guile code. > >> > >> It seems natural to translate (f, g) x into ((f g) x), If "(f, g) x" is (in normal syntax)

Re: Can't define in (if...) after (use-syntax (ice-9 syncase)) ?

2010-09-01 Thread Keith Wright
> From: Andy Wingo > > It's ugly, but a quick solution: Actually, I would not even take it as a solution at all. The quesion was how to do it in legal Scheme. The problem is not the position of the define, but that no Scheme report has any procedure called |defined?|. Scheme is intended to be

Re: [guile-user] Ideas for Documentation

2010-05-16 Thread Keith Wright
> From: Linas Vepstas > > On 15 May 2010 16:35, Karl Winterling wrote: > > > Anything I write would probably focus a lot on > > discrete math and describing the rationale for > > Scheme's design, > > Well, of all of the applications that use guile, none > that I know of can be described as "di

Re: strange behaviour of (floor .)

2010-01-03 Thread Keith Wright
> From: Thien-Thi Nguyen > > Note, however, that usually it is better (less fiddly) > to represent monetary values as integers. Yes, always represent money as an integer number of cents and put in a decimal point when you print. That is, "$16.98" is produced by something like (money->string 1698

Re: About the primitive macros `and' and `or'

2009-12-26 Thread Keith Wright
> From: Yi DAI > > I don't see the point why Scheme provides the general > `and' and `or' as primitive macros (which does stand > in our way when we wanna (apply and things) instead > of primitive procedures. For efficiency? This suggestion was thought of and rejected dozens of times before you

Re: A minor name improvement suggestion to Guile API

2009-12-17 Thread Keith Wright
> From: l...@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) > Cc: guile-user@gnu.org > >> > >> Yi DAI writes: > >> > >>> I'd like to suggest the following name convention > >>> which complies to names commonly found in > >>> assembly languages. > >>> > >>> > >>>    - Replace < (less than) with *_lt*

Re: Uploading Word documents, PDFs, PNG files etc

2009-05-13 Thread Keith Wright
> From: Linas Vepstas > Cc: guile-user@gnu.org > > 2009/5/13 Sebastian Tennant : > > > Restricting regexps to actual text is fine... until > > you need to grep binary data, or, as in this case, > > a combination of text and binary data. > > > in cgi.scm that extracted the uploaded (possibly > >

Re: Dynamic variable binding

2008-12-19 Thread Keith Wright
> From: Sebastian Tennant > > > Quoth Keith Wright : > > > I don't know what happens (in Guile), but I can tell > > you what _should_ happen. (In my humble opinion as > > a demi-god of semantics.) > > I'm trying to wrap my head around symbols,

Re: 1+ is not R5RS

2008-12-18 Thread Keith Wright
> From: Clinton Ebadi > Cc: guile-user@gnu.org > > l...@gnu.org (Ludovic Courtès) writes: > > "Bertalan Fodor (LilyPondTool)" writes: > >> Could you provide me some background why 1+ exists, as it is the same > >> as (+ 1, and why is it named like this? > > > > It'll be hard to get a definite an

Re: guile history: your input needed!

2008-11-22 Thread Keith Wright
> From: "Neil Jerram" <[EMAIL PROTECTED]> > Cc: guile-user > > 2008/11/20 Andy Wingo <[EMAIL PROTECTED]>: > > Hey Guilers! > > > > Many (most?) of you have been at this guile thing for longer than > > I have, some of you from the very beginning. While doing some > > reorganizations to the manual

Re: Dynamic variable binding

2008-11-12 Thread Keith Wright
> From: Sebastian Tennant <[EMAIL PROTECTED]> > > guile> (define-macro (definer var val) > `(define ,var ,val)) > guile> (definer 'foo "bar") > guile> foo > ERROR: Unbound variable: foo > ABORT: (unbound-variable) > > No doubt this fails for the same reason this does: > > guile> (

Re: Leap second bug?

2008-06-09 Thread Keith Wright
> From: Greg Troxel <[EMAIL PROTECTED]> > > It seems very odd for time-utc->date to pay attention to leap seconds. > I would only expect leap seconds to come into play when converting > between UTC and TAI. Procedure time-utc->date resents the anthropomorphism. The author of that procedure proba

Re: request to shutdown projects

2008-04-16 Thread Keith Wright
on guile-user in response (it now seems) to discussions in some other forum. As I tried to figure it out I found more things I did not understand and began to have fun with paranoia. > Keith Wright <[EMAIL PROTECTED]> writes: > > >> From: "Marco Maggi&qu

Re: request to shutdown projects

2008-04-15 Thread Keith Wright
> From: "Marco Maggi" <[EMAIL PROTECTED]> > > > > It is telling that nobody stepped out saying "I have a copy of the > source, let's find a place to host it", mh? I don't know about telling, but I am asking why the Subject: header says "Re: "? I

Re: Looping local binding

2007-11-03 Thread Keith Wright
> From: Dmitry Dzhus <[EMAIL PROTECTED]> > > That's terrific, Marco, and that code is almost clear to me. > > I'm now strongly convinced that I should introduce myself to Scheme > macro forms closer. What may a recommended definite guide to it? (I > read SICP, but that book concentrates on other

Re: rfc (define-module ... #:use-modules ...)

2007-10-06 Thread Keith Wright
> From: Thien-Thi Nguyen <[EMAIL PROTECTED]> > > for me, it means everyone interested should say what they would > (or would not) do and then if there is concensus (after some > refinement), i follow. if there is no concensus, i muddle > through the best i can (as always). from the sound of the

Re: rfc (define-module ... #:use-modules ...)

2007-10-05 Thread Keith Wright
> From: Thien-Thi Nguyen <[EMAIL PROTECTED]> > > that is, `#:use-modules X Y Z' would be exactly equivalent > to `#:use-module X #:use-module Y #:use-module Z'. > > quantitatively, for N upstream (used) modules, this would result > in N-1 fewer keywords required in the `define-module' form. > >

Re: ANN: Guile-Reader 0.3, A Reader Framework for Guile

2007-02-24 Thread Keith Wright
cuses too much on the reader, when the focus should be on the content of the chapter, but at least it is not a flagrant insult. -- -- Keith Wright Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com> --- Food, Shelter, Source code. --- ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: Scsh is not GUSH

2006-06-30 Thread Keith Wright
> The Scsh FAQ came up about third from the top in a Google > search for "scsg scheme shell". Of course, that should be a search for "scsh scheme shell". -- Keith ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listin

Scsh is not GUSH

2006-06-30 Thread Keith Wright
ncer' and `rxspencer' packages, > available at http://arglist.com/guile/. The Scsh FAQ came up about third from the top in a Google search for "scsg scheme shell". -- -- Keith Wright <[EMAIL PROTECTED]> Programmer in Chief, Free Compu