Re: Weird import behaviour of digital modules

2024-06-08 Thread lloda
> On 8 Jun 2024, at 19:30, Tomas Volf <~@wolfsden.cz> wrote: > > On 2024-06-08 15:59:12 +0200, lloda wrote: >> Modules can't have numbers as names in general > > Modules most definitely *can* have numbers as names, my Advent of Code > solutions > a

Re: Weird import behaviour of digital modules

2024-06-08 Thread lloda
> On 7 Jun 2024, at 21:51, Yuval Langer wrote: > > In this commit I have the WEIRDEST behaviour: > > https://codeberg.org/kakafarm/guile-srfi-189/commit/6e72cc50cc6b068de726f6e97b249a5af26d883c > > When I run the following command at the repository worktree root: > > ``` > guix shell -C gui

Re: cond clause does not allow definitions

2024-05-22 Thread lloda
Fwiw Guile isn't 100% consistent about this, for example match forms don't allow definitions and maybe some other form that I don't recall atm. > On 22 May 2024, at 22:37, lloda wrote: > > > This is probably > http://git.savannah.gnu.org/gitw

Re: cond clause does not allow definitions

2024-05-22 Thread lloda
This is probably http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=764e3614b8c13de604399572a67d071621e9ca21 and the next commit that documents the change. It was after 3.0.9.

Re: Python slices in Scheme

2023-06-19 Thread lloda
hether that's a good idea or not). (1) https://lloda.github.io/guile-newra/#Slicing <https://lloda.github.io/guile-newra/#Slicing> https://github.com/lloda/guile-newra/ <https://github.com/lloda/guile-newra/> https://notabug.org/lloda/guile-newra <https://notabug.org/lloda/guile-newra>

Re: guile-cairo - patches - new interfaces

2023-03-21 Thread lloda
Not to leave this thread hanging, just to mention that these patches have been applied to guile-cairo at dc0c2821fa7e1ab8b522ff1c2c8987a91a1595f2 ff. Thank you!

Re: guile-cairo - patch

2023-03-21 Thread lloda
Hi David, the patch works fine on my side and fixes make check/distcheck as you describe, thank you. However I think it's unfortunate that it requires the dynamic library path to be adjusted after installation, which is something that guile-cairo was handling before. This is a private libra

Re: hashmark in symbols

2023-01-01 Thread lloda
> On 2 Jan 2023, at 03:27, Andreas Reuleaux wrote: > > > but I still have no clue, how to write a simple symbol, that when > translated to a string, results in "#444". https://www.gnu.org/software/guile/manual/guile.html#Symbol-Read-Syntax

Re: bytevector-string-ref

2022-12-22 Thread lloda
> On 22 Dec 2022, at 09:58, Sascha Ziemann wrote: > >>> (define str "Hello, World!") >>> (define bv (string->utf8 str)) >>> (define sa (make-shared-array bv (lambda (i) (list (+ i 7))) '(0 4))) >> >> I think this should be >> >> (define sa (make-shared-array bv (lambda (i) (list (+ i 7))) 4

Re: vector-last / vector-ref with negative indices?

2020-12-20 Thread lloda
Besides the standard which applies to vector- operations, negative indices wouldn't work for Guile arrays to count from the end since negative indices, like in say Fortran, can be valid [e.g. (make-array 0 '(-1 4))]. In older versions of Guile you could use vector-ref on such arrays. I don't