Problems with running Network Socket Examples

2023-11-26 Thread Erik Grun

Hello, Guile-Devel,

I just can't get the Network Socket Examples[1] to work. I am using 
Guile 3.0.7.


An obvious mistake seems to be, that the docs use different ports for 
client (80) and server (2904), but even if I use the same port (2904), I 
only get this error message:


Backtrace:
In ice-9/boot-9.scm:
   1752:10  6 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
5 (apply-smob/0 #)
In ice-9/boot-9.scm:
 724:2  4 (call-with-prompt _ _ #)
In ice-9/eval.scm:
 619:8  3 (_ #(#(#)))
In ice-9/boot-9.scm:
2835:4  2 (save-module-excursion _)
   4380:12  1 (_)
In /home/egnun/client.scm:
  7:14  0 (_)

/home/egnun/client.scm:7:14: Unbound variable: read-line

After some research I found out, that I need to include this line.
 (use-modules (ice-9 rdelim))
When I do that, it seems to kinda work?

Hello client
Backtrace:
In ice-9/boot-9.scm:
   1752:10  8 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
7 (apply-smob/0 #)
In ice-9/boot-9.scm:
 724:2  6 (call-with-prompt _ _ #)
In ice-9/eval.scm:
 619:8  5 (_ #(#(#)))
In ice-9/boot-9.scm:
2835:4  4 (save-module-excursion _)
   4380:12  3 (_)
In /home/egnun/client.scm:
  7:27  2 (_)
In ice-9/rdelim.scm:
195:24  1 (read-line _ _)
In unknown file:
0 (%read-line #)

ERROR: In procedure %read-line:
In procedure fport_read: Connection was reset by peer

Before I file a bug, could someone please help me figure out a solution?

Best regards,

Erik (egnun)

[1] 
https://www.gnu.org/software/guile/docs/docs-2.0/guile-ref/Internet-Socket-Examples.html#Internet-Socket-Examples


--
pub   rsa4096/C02662E2370D6F27 2016-05-27 [SCA] [verfällt: 2024-05-01]
   Schl.-Fingerabdruck = 7E0E 8A9E EAEE 075D E689  F32F C026 62E2 370D 6F27
uid  [ ultimativ ] Erik Grun 
uid  [ ultimativ ] Erik Grun 
sub   rsa4096/1DF94895FA78155E 2016-05-27 [E] [verfällt: 2024-05-01]

You are wondering, what this signature means?
Visit *emailselfdefense.fsf.org/en/infographic.html*
to find out how YOU can securely encrypt your e-mails.


OpenPGP_0xC02662E2370D6F27.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


role of core-updates

2023-11-26 Thread Andy Tai
Hi, hope Guix maintainers can clarify the role of the now core-updates
branch; the current documentation does not specify the core-updates
branch as a thing but there are clearly interests and uses of this
branch for package updates not belonging to a feature branch like
gnome and it is useful for, say, updating to the GNU make package
which would have caused world rebuild.  Thanks



Re: role of core-updates

2023-11-26 Thread Andy Tai
Sorry... this was sent to the wrong list. Meant to the guix devel list.
Sorry for the wrong post here.

On Sun, Nov 26, 2023 at 10:10 PM Andy Tai  wrote:

> Hi, hope Guix maintainers can clarify the role of the now core-updates
> branch; the current documentation does not specify the core-updates
> branch as a thing but there are clearly interests and uses of this
> branch for package updates not belonging to a feature branch like
> gnome and it is useful for, say, updating to the GNU make package
> which would have caused world rebuild.  Thanks
>