RE: Getting all symbols in a Scheme file as a list

2024-02-04 Thread M
>Onderwerp: Getting all symbols in a Scheme file as a list The following will give you a list of all the symbols (unless I made some syntax errors) (also replace ‘ by a proper quote, e-mail program is corrupting it): (use-modules (ice-9 match)) (define (all-symbols s-exp) (match s-exp (

RE: can't export conditional variable set with 'cond'

2024-02-01 Thread M
IMO this looks like a minimalised reproducer for a problem encountered in practice. If you are going to reify variables, I would propose boxes instead, which simply hold a single value and hence are have very straightforward semantics and are very close to the semantics of variables. Parameter

RE: can't export conditional variable set with 'cond'

2024-02-01 Thread M
>I think this has something to do with compilation indeed. More specifically, >it is caused by cross module inlining [1]. You probably need to declare your >env module as not declarative by setting #:declarative? to #f inside the >define-module form of env. I think the compiler inlines varB some

RE: guile 3.0.7: bitvector-copy not found

2024-01-21 Thread M
IIRC it’s not in the (guile) module, you need to import the appropriate module (I don’t recall which one).

Re: Characters - Guile Hacker Handbook

2020-10-16 Thread Bonface M. K.
I'm following the book. I'll try to post PR's against some minor things I noticed. -- Bonface M. K. <https://www.bonfacemunyoki.com> Chief Emacs Mchochezi / Rieng ya software sare Curator of <https://upbookclub.com> / Twitter: @BonfaceKilz GPG Key: D4F09EB110177E03C2

Re: How do you record output of both STDERR and STDIN to a string?

2020-09-10 Thread Bonface M. K.
(port-filename error-port) > (setvbuf port 'block 4096) > (values error-port port))) > > I certainly hope someone can come up with a better solution! > Thanks. If I don't find anything, I'll give it a shot :) > Kind regards, > Roel Janssen >

How do you record output of both STDERR and STDIN to a string?

2020-09-10 Thread Bonface M. K.
nt I have an error, like say, by running (system "ech hello"), I get the output: --8<---cut here---start->8--- "padding" "sh: command not found" "testing"" --8<---cut here---end--->8--- PS: I'm new to Guile :) -- Bonface M. K. (https://www.bonfacemunyoki.com) One Divine Emacs To Rule Them All GPG key = D4F09EB110177E03C28E2FE1F5BBAE1E0392253F signature.asc Description: PGP signature

Re: My Guile Hacker Handbook

2020-07-23 Thread Bonface M. K.
Jérémy Korwin-Zmijowski writes: > Le jeudi 23 juillet 2020 à 13:32 +0300, Bonface M. K. a écrit : >> I am that person ;) > > Please leave me your feedback on anything ! > Cool. I'll do that over the weekend or early next week :) > Jérémy > -- Bonface M. K. (h

Re: My Guile Hacker Handbook

2020-07-23 Thread Bonface M. K.
an experienced Guile hacker, the book will emerge > accordingly to my Guile journey haha. > > Hope it can help someone to jump in and hack. > I am that person ;) > Cheers, > > Jérémy > > -- Bonface M. K. (https://www.bonfacemunyoki.com) One Divine Emacs To Rule Them All GPG key = D4F09EB110177E03C28E2FE1F5BBAE1E0392253F

Re: Naming conventions

2020-07-07 Thread Bonface M. K.
akes sense. But also `make-vector` when you have a struct-like data structure makes sense too. The former being type-operation and the latter being operation-type. Now this is up to your good sense IMHO. > > Regards, > > Zelphir -- Bonface M. K. (https://www.bonfacemunyoki.com) One Divine Emacs To Rule Them All GPG key = D4F09EB110177E03C28E2FE1F5BBAE1E0392253F

Re: Naming conventions

2020-07-07 Thread Bonface M. K.
the indices of a matrix anything but i and j. In general, > the wider the scope of a name, the less that using abbreviation makes sense > for it. > > > John Cowan http://vrici.lojban.org/~cowanco...@ccil.org > Arise, you prisoners of Windows / Arise, you slaves of Redmond, Wash, > The day and hour soon are coming / When all the IT folks say "Gosh!" > It isn't from a clever lawsuit / That Windowsland will finally fall, > But thousands writing open source code / Like mice who nibble through a > wall. > --The Linux-nationale by Greg Baker -- Bonface M. K. (https://www.bonfacemunyoki.com) One Divine Emacs To Rule Them All GPG key = D4F09EB110177E03C28E2FE1F5BBAE1E0392253F

Inspekt3d: A 3D Model Viewer Prototype

2018-09-12 Thread Stewart M.
Hello, I have written a program using Guile called Inspekt3d. It is a viewer for Libfive (a 3D modeling system which also uses Guile). Inspekt3d is fairly simple at this point, as a working prototype. The program uses the Guile-OpenGL package for displaying models. It is designed to work wi

Problem when trying to 'make' for guile

2016-12-07 Thread M
Hello, I'm trying the 'make' command for the installation, but get this: make -C libguile scmconfig.h make[1]: Entering directory `/home/user/apps/guile-2.0.13/libguile' GEN gen-scmconfig /home/user/apps/gc-7.2/include/: file not recognized: Is a directory collect2: error: ld returned 1 ex

Problems when configuring Guile

2016-12-03 Thread M
Hello, I am trying to install Guile. However, I get the following error message at the ./configure stage: checking for libgmp... no configure: error: GNU MP 4.1 or greater not found, see README I have installed gmp 6.1.1 (with gmp.h present in the folder) and use the following command: ./config

Re: A request to take charge of guile-zmq

2016-09-12 Thread Christopher M. Hobbs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Mon, 12 Sep 2016 23:02:58 +0800 Nala Ginrut wrote: > I plan to use guile-zmq in my work. Also, guile-zmq may play an > important role in Artanis.  > > Thanks Wingo for all previous work. If you don't mind, I would like > to take charge of guile

getting started writing desktop applications

2016-07-17 Thread Christopher M. Hobbs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Greetings, Guilers! Is there a recommended library for building desktop applications? Maybe some GTK (or maybe Tk, as old as it is) tie-ins or something to that effect? Thanks a ton! cmh - -- Happy Hacking! http://libernil.net/~cmhobbs GPG: 120

Re: How do you earn money with Guile?

2016-06-03 Thread Christopher M. Hobbs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Fri, 03 Jun 2016 11:32:24 +0200 Arne Babenhauserheide wrote: > Hi, > > > “I would take Guile seriously when someone earned money with it.” > > — someone from IRC > > When I saw this on IRC, I realized that the there’s something to it: > When a

Re: zenity bindings

2016-03-28 Thread Christopher M. Hobbs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Mon, 28 Mar 2016 20:00:54 +0100 ra...@openmailbox.org wrote: > Hello > > I've made a guile interface to the zenity program: > . It is released under GPL3. > > This allows people to easily make simple dia