Re: test-equal: actual returned value is #f when tested expression raises execption

2021-02-20 Thread divoplade
Hello, This is what I understand from guile. I am no expert, so maybe it is not 100% accurate! Le samedi 20 février 2021 à 12:03 +0100, Jérémy Korwin-Zmijowski a écrit : > > Running `guile -L . char-sets-test.scm` in the file location will > produce the following output : > >$ guile -L .

Re: Guile Hacker Handbook - Character sets

2021-02-18 Thread divoplade
Hello, Le jeudi 18 février 2021 à 20:54 +0100, Jérémy Korwin-Zmijowski a écrit : > I happily managed to find some time to write a new chapter for the > Guile Hacker Handbook ! > > https://jeko.frama.io/en/char-sets.html > > It deals with char-sets, something new to me. The exercise was fun, I >

Re: Help making a GNU Guix package for pure GNU Guile library

2021-01-30 Thread divoplade
Hello, Le samedi 30 janvier 2021 à 20:43 +0100, Dr. Arne Babenhauserheide a écrit : > I think configure-runs should be slimmed down by a first check > whether > it’s in a known environment (so 90% of the tests can be skipped). But > that’s not a general complaint about the approach of autotools.

Re: Help making a GNU Guix package for pure GNU Guile library

2021-01-30 Thread divoplade
Hello, Le samedi 30 janvier 2021 à 18:55 +0100, Jérémy Korwin-Zmijowski a écrit : > I'm waiting to see support for guile-build-system in Guile-Hall for > example. If you use gnu-build-system, you can use a "bootstrap" (or "autogen.sh") script that will run 'hall dist -x' (with HOME set to a

Re: no scm_foreign_object_p ?

2021-01-23 Thread divoplade
ects and foreign pointer types are classes, maybe the is-a? predicate could work, with the foreign pointer type as the class? divoplade

Re: Question about data structures

2020-11-22 Thread divoplade
Le dimanche 22 novembre 2020 à 21:24 +0100, Zelphir Kaltstahl a écrit : > If I had a vector, I could simply go by index backwards or > forwards without adding any runtime complexity. So, you would like to sometimes go forward, sometimes go backward? If it is sequential, the list is what you want.

Re: Question about data structures

2020-11-22 Thread divoplade
Hello Zelphir! Le dimanche 22 novembre 2020 à 19:48 +0100, Zelphir Kaltstahl a écrit : > However, when I use the list in > reverse and ever need to output the lines in the list in their > original > order, I would first need to `reverse` the list again. There is a "reverse" function; you could

Example of defining and using exceptions

2020-10-24 Thread divoplade
Dear guile hackers, I would like to use the "new" exception style in guile, i.e. define- exception-type and friends. However, I don't understand how compound exceptions work. Do you have an example of using exceptions, showing what compound exceptions can bring? Best regards, divoplade

Status for guile-on-the-web?

2020-10-23 Thread divoplade
[1] https://www.gnu.org/software/guile/manual/html_node/Status.html Best regards, divoplade

Re: Calling back scheme from C

2020-09-22 Thread divoplade
or both of them, calling the function (still discarding the result, it does not matter) corrupts some values (=> assert failure in foreign library code). I will make further tests... divoplade Le mardi 22 septembre 2020 à 08:25 +0200, divoplade a écrit : > Hello guile, > > I am having

Re: Calling back scheme from C

2020-09-22 Thread divoplade
t on my side. Could you share your callback closure example? divoplade

Re: Passing SCM values around as void *

2020-09-21 Thread divoplade
Please ignore, the fix does not work. Le lundi 21 septembre 2020 à 22:18 +0200, divoplade a écrit : > Hello guile users, > > I have just found out a non-reproducible bug in my code on a (more > complex) version of this. Since it is not reproducible anyway, I will > not put

Passing SCM values around as void *

2020-09-21 Thread divoplade
? It seems that the problem does not happen with guile 2.2. Best regards, divoplade

Re: Guile web server example serving static files

2020-09-20 Thread divoplade
Le dimanche 20 septembre 2020 à 10:29 +0200, to...@tuxteam.de a écrit : > > I did not recommend using this term. There was a question in the > source > > code asking why guile used a different terminology; I put the > > explanation why, with the relevant citation (because the section is > > huge).

Re: Guile web server example serving static files

2020-09-20 Thread divoplade
Le dimanche 20 septembre 2020 à 09:48 +0200, to...@tuxteam.de a écrit : > Something to keep in mind when talking to "other cultures" -- > they are our neighbours, after all :-) I did not recommend using this term. There was a question in the source code asking why guile used a different

Re: Guile web server example serving static files

2020-09-17 Thread divoplade
!), and there is nothing special with files named as a series of dots. That's good, otherwise you would also need to check for '%' in mingw and whatever stuff microsoft invented to change the file name experience. Best regards, divoplade

Implementing a "write" method for self-evaluating objects (by equal?)

2020-09-17 Thread divoplade
Hello guile users, In the manual, I read: (define-method (write (file ) port) (format port "#< ~s ~a>" (name file) (fd file))) So it is possible to define a write method for foreign objects (and more generally GOOPS classes). My question is: why use such a bizarre syntax with # and #:fd ~a

Re: What is the point of bytevectors?

2020-09-12 Thread divoplade
r answer, it is exactly what I was looking for. Best regards, divoplade

What is the point of bytevectors?

2020-09-12 Thread divoplade
wants to always manipulate utf-8-encoded strings [1], using bytevectors is impossible or much more difficult (see points above). So, why should I ever use bytevectors? divoplade [1] https://utf8everywhere.org/

Re: No Guile on Windows? (was: My Guile Hacker Handbook)

2020-07-24 Thread divoplade
Hello, Le vendredi 24 juillet 2020 à 03:06 +0300, Dmitry Alexandrov a écrit : > Jérémy Korwin-Zmijowski wrote: > > https://jeko.frama.io > > ## Installation > > ### On Windows > > > > No solution yet. > > Is that true? Itʼs true (and a pity) that there no official > packages, of course, but

Re: Blog post about Hall

2020-06-11 Thread divoplade
which makes sure that the distribution can be built from source (detect missing files, out-of-tree build errors, and a few other goodies) https://www.gnu.org/software/automake/manual/html_node/Checking-the-Distribution.html Best regards divoplade > > Cheers! > > Jérémy > >

Re: Use of foreign objects to wrap anything other than an integer

2020-05-25 Thread divoplade
OK, nevermind, I did not understand correctly how it worked. Le mardi 26 mai 2020 à 00:04 +0200, divoplade a écrit : > Hello, > > How do I use the foreign object type? > > When I do: > > (use-modules (system foreign-object)) > (use-modules (oop goops)) > (define-fore

Use of foreign objects to wrap anything other than an integer

2020-05-25 Thread divoplade
ting exact integer): "hello" I thought it might be some kind of a bug, but it is the same thing for 3.0.2, 2.2.7 and 2.2.4 (guix) and 2.2.4 (debian). 2.2 is the first to introduce the foreign objects. How should I do it? divoplade