From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Trouble trying to use some modules from the docs Date: Sat, 2 Jun 2018 19:13:07 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1527959493 21271 195.159.176.226 (2 Jun 2018 17:11:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Jun 2018 17:11:33 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jun 02 19:11:29 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPA3s-0005RD-Rl for guile-user@m.gmane.org; Sat, 02 Jun 2018 19:11:28 +0200 Original-Received: from localhost ([::1]:60459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPA5z-0002fe-PO for guile-user@m.gmane.org; Sat, 02 Jun 2018 13:13:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPA5X-0002fN-KN for guile-user@gnu.org; Sat, 02 Jun 2018 13:13:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPA5W-0001qm-HK for guile-user@gnu.org; Sat, 02 Jun 2018 13:13:11 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:54241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPA5W-0001p1-93 for guile-user@gnu.org; Sat, 02 Jun 2018 13:13:10 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id x6-v6so1541770wmc.3 for ; Sat, 02 Jun 2018 10:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=/P8gBFKEdZF9MpcvDH2/SI2eSkdGO/uIBOVwYnft4oo=; b=XDkLYMOqy7g2m1Wq/AI4D9wXP0eW/CMZ0mkwvYNi8EFODKodDT9YL1RMhBBy9BWlfj seTA4ovRXYSDFOvE/iukKMAtFJ7/XHBpS7t1+ptNcF2nkHxV46nqJk6DaQis1Ad6uLHe 2kDvHOQptg7E7hgiXdGJGcpQUaL+SBsrkt5bG28g0QVeVjtMe1XH76xpum7NvHdt0yhm o7YCwXXbe8YCM70b0JKocABcJbNT5RnAlRqZKCpRBAqIluSGnWadyqZ94LGM13PFFl/B x/OEvbPx5NMRjVQW+6XSJVnZ16QhMwxZ6WuXYAjDrmMq9yZO8w7r2hHMUFcptu5gY+RT foDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=/P8gBFKEdZF9MpcvDH2/SI2eSkdGO/uIBOVwYnft4oo=; b=DixlehmQLu524Paj9MhN1NI6dG1Ks2lFKXeJuHpRYmfBNH4ofCaOI/MTwFD3YrQiE3 zZ1qBnzmYRT5w3PF/+K9iPq5ubcmfKps4cMADYhAT1uJhLOmgPekDLUd34Vrlq8rfOmR SJOU1xuxIaL5xOjj5A/QUPk8OL59XzGyG/dufvAdd1v+iXq9PLyr64ZhYLIOZTjto9uL lx+q9aLVp4KMw/brBQ81i8nUoxnioFljlD54702PiTE567WZAsVz/I6g4vDJ6cDLvbMi 871u/ZK9D0QCaOLyLNvBxPjQPnnVRjUU4qzPtymbgcCesZeSWLuY1OCw+6blJUZSAbQ9 hq8Q== X-Gm-Message-State: APt69E3PoatLXq9m0OI4v1Aqylb2qPYmz80yUXCwhDDVCRr5aIjJlebk hCHMvFqgmkQM/+OvXXIeMvMZWw== X-Google-Smtp-Source: ADUXVKLtHFqrPp0Gc38pJ6JAwV7KN9F1SEaFwe39ayHO/1LtQ/v8kHjUjS4wrW7XQIekb7d01QDc8Q== X-Received: by 2002:a1c:168c:: with SMTP id 134-v6mr5509850wmw.53.1527959588903; Sat, 02 Jun 2018 10:13:08 -0700 (PDT) Original-Received: from ?IPv6:2a02:8109:ad3f:ec78:418a:e766:806c:f9ba? ([2a02:8109:ad3f:ec78:418a:e766:806c:f9ba]) by smtp.googlemail.com with ESMTPSA id y8-v6sm4474076wrq.35.2018.06.02.10.13.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Jun 2018 10:13:08 -0700 (PDT) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22b X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14600 Archived-At: Hello Guile mailing list members, Guile Scheme beginner here. I want to play with network programming things in Guile a little, but I cannot figure out how to use the modules, which are described in the docs at https://www.gnu.org/software/guile/manual/html_node/Network-Sockets-and-Communication.html . There is no (use-modules ...) example anywhere I looked and I could also not find any examples in search engines. For other modules I somehow always found an example (use-modules ...) somewhere, mostly in the docs. Is there some inherent way of simply knowing how to import a module? I did not read all of the docs from front to back, but that really should not be necessary in order to use some part of it. What I've tried already: (use-modules (ice-9 posix))  ; maybe the same way many other things are imported? (use-modules (posix))  ; maybe it's its own module? (use-modules (std posix))  ; maybe "std" for "standard" works? None of those worked in the REPL. A search on Github: https://github.com/cky/guile/search?utf8=%E2%9C%93&q=use-modules+posix&type= Yielded the following interesting result: https://github.com/cky/guile/blob/c1eb929258fc6b9653d31c0d1bc654d9e300d4e5/module/ice-9/boot-9.scm#L1445 But why does (use-modules (ice-9 posix)) not work then? I am out of ideas. Can you point me to the part of the docs, which explain how to always know how to import a module, if there is such? Or, if there is no such thing, can you help me out in this case? Regards, Zelphir