Re: GNU Guile 3.0.5 released

2021-01-07 Thread Tim Van den Langenbergh
On 2021年1月7日木曜日 14時09分08秒 CET you wrote: > We are delighted to announce GNU Guile release 3.0.5, the latest in the > 3.0 stable release series. > > Compared to the previous release in the 3.0 series, Guile 3.0.5 can > compile chained "if" expressions into the equivalent of what a C > compiler

Re: Question about data structures

2020-11-22 Thread Tim Van den Langenbergh
On Sunday, 22 November 2020 19:48:24 CET 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

Re: trace-calls-to-procedure

2020-12-25 Thread Tim Van den Langenbergh
On 25/12/2020 13:37, Tim Van den Langenbergh wrote: trace-calls-to-procedure is a low-level trace procedure that returns a trap that you have to install in the trap state. You can either use the add-trap! procedure from (use-modules system vm trap-state), or use the add-trace-at-procedure-call

Re: trace-calls-to-procedure

2020-12-25 Thread Tim Van den Langenbergh
r use the add-trace-at-procedure-call! procedure from the same module. That said, there seems to be a bug in add-trace-at-procedure-call! which I'm having a hard time figuring out... c'est la vie. Vale -Tim Van den Langenbergh OpenPGP_0xF50AF328D9D1E635.asc Description: application/pgp-keys

Re: guile style

2021-06-19 Thread Tim Van den Langenbergh
On Saturday, 19 June 2021 02:55:34 CEST jerry wrote: > I am fairly new to guile and scheme. People tell me that I should use a > functional style. > > I have 3 solutions for project euler problem #1. The first is > functional, the second is imperative and the third is written in "Little > Schemer"

Re: Simple list of key-value pairs?

2021-07-09 Thread Tim Van den Langenbergh
On Thursday, 8 July 2021 16:37:09 CEST you wrote: > Hi, > > I'm seeking advice for passing simple key-value pairs to a function and > generate a string out of these values. Neither the names not the number > of keys is known in advance. > > Background: This shall become a generic function for

Re: Syntax-Case macro that selects the N-th element from a list

2021-04-05 Thread Tim Van den Langenbergh
On Monday, 5 April 2021 13:30:21 CEST you wrote: > Hi, > > In dryads-wake I need selection of the element in a list in a macro from > user-input. Currently I have multiple macros, and the correct one (which > strips the non-selected choices) is selected in a simple cond: > > (define-syntax-rule

Re: dynamic-link sadness

2021-02-23 Thread Tim Van den Langenbergh
re you using Guile from your Guix install? I have had issues with that as well and I needed to use Guile from my regular OS. If you're not using Guix then I haven't had that problem, so I'm afraid I can't help. Vale, -Tim Van den Langenbergh

Re: guile-hall issues converting my project to a hall project

2021-02-16 Thread Tim Van den Langenbergh
Err, looking at your hall.scm file, you have the fslib file added to your libraries twice. Guix environment is not needed if you have all the requirements for building the package installed locally, but if you want to distribute your package it's good practise to ensure it builds in a clean

Re: guile-hall issues converting my project to a hall project

2021-02-07 Thread Tim Van den Langenbergh
hir Hi Zelphir, the prefix is a part of the project name that you do not want to include in the name of whichever module/library you are making, for example if I want to make a project called "Guile-Utils" which exports a library called "utils" I would use the prefix argument to add "guile" in front. Without it I could make a library called "utils" but hall would complain if I didn't have a library called "guile-utils" as well. You also raised various good points, especially about what a pain it is to run hall scan after running hall dist (which we really should warn people not to do). Basically the way to think of hall is like an inverse git, where instead of excluding certain files with a .gitignore, you keep track of files through your hall.scm. If you don't want to restart the conversion of your project to a hall project from scratch I fear you may have to edit your hall.scm by hand. Feel free to contact me if you have more questions. Vale, -Tim Van den Langenbergh

Re: Can guile be implementation independent?

2021-12-18 Thread Tim Van den Langenbergh
On 17/12/2021 17:26, Dr. Arne Babenhauserheide wrote: > The short of this: Call guile with --r7rs and the main incompatibility > is missing reading of circular data structures with datum labels. > > Best wishes, > Arne Well, Guile is also missing digit-value, which is easily mocked-up by using

Re: How to capture pid of (system process?

2021-12-14 Thread Tim Van den Langenbergh
On 13/12/2021 22:01, Jacob Hrbek wrote: > I wrote this potato-make definition > (was simplified): > > #:SRC_BEGIN sheme-mode > #!/usr/bin/env sh > exec guile -s "$0" "$@" > !# > > (use-modules (ice-9 futures) >  (potato make)) > (initialize) > > (:

Re: GNU Shepherd 0.9.0 released

2022-04-08 Thread Tim Van den Langenbergh
Ognen Duzlevski writes: > Ludovic Courtès writes: > >> [[PGP Signed Part:Undecided]] >> We are pleased to announce the GNU Shepherd version 0.8.1. This release >> represents 49 commits by 3 people, bringing a new concurrent, >> event-driven core, improved logging, and on-demand service

Re: [EXT] Re: Chickadee 0.8.0 released

2022-06-01 Thread Tim Van den Langenbergh
"Thompson, David" writes: > Hi Bill, > > Unfortunately there has been no release that fixes the configure script to > allow Guile 3. There is no actual incompatibility beyond that. > > I (and the Guix project) just patch guile-opengl's configure.ac and > Makefile.am so that it works for Guile

Re: Guile Steel: a proposal for a systems lisp

2022-07-11 Thread Tim Van den Langenbergh
Christine Lemmer-Webber writes: > A little blogpost this morning, not actual software, but software > desiderata: > https://dustycloud.org/blog/guile-steel-proposal/ > > I'd love to see something like the above happen. I'd love to help make > it happen. So this is more of a call to arms

Re: Using guile (running on a port) in Org Mode

2022-07-15 Thread Tim Van den Langenbergh
Munyoki Kilyungi writes: > [[PGP Signed Part:Undecided]] > > Hi Guilers! > > Recently I worked out a way to point an org src > block to any python environment I want: > . > WRT to scheme code, is there a way to