From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: [ANN] Guile-Parallel 1.0.0 released Date: Sun, 8 Jan 2023 15:17:29 +0000 Message-ID: References: <87wn68p6qi.fsf@laura> <87pmbzpb6h.fsf@laura> <877cxxf5lo.fsf@laura> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: Olivier Dion Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Jan 08 16:18:41 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pEXRY-0008fo-Rt for guile-user@m.gmane-mx.org; Sun, 08 Jan 2023 16:18:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEXQs-00075Z-Ew; Sun, 08 Jan 2023 10:18:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEXQX-00073X-Fc for guile-user@gnu.org; Sun, 08 Jan 2023 10:17:48 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEXQT-000735-OZ for guile-user@gnu.org; Sun, 08 Jan 2023 10:17:37 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 706F824009F for ; Sun, 8 Jan 2023 16:17:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1673191051; bh=mYA/BTzeBmZq8S5/UhmaqiSyvxgr1gzxnNUSXBNJZ2g=; h=Date:Subject:To:Cc:From:From; b=EEBtDjoPAP9Uf37FuKBICSiwuFng2wA/PSIOa8ddTMFn4slTwlU30COlNx6pD7RuG YTt7134Z1hXw951kxKJFoH/6+xwwop4gm38zOKXu2f+K8bHhRLTkmy9zTDNPJiv6v1 MLaa0NK3oAkR40LCFwC+bUxwYPCWGhVZ1X+pzCy1r5SsHsGpmKN8JF0bq5q+sXeD4m PiWZYu6qls5Th8bRngbPfq78arBLcK9AKNDU5HQGG6ISc0fa/okD16a/IIEx8WheFM /zdTbbd1d2ripPTciiGBU4eGQQOvtVQUhKR35BGIpobpApewInDstwkXu6cMKRxokE 45TH7j5DxcDYQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nqgfy49wTz9rxK; Sun, 8 Jan 2023 16:17:30 +0100 (CET) Content-Language: en-US In-Reply-To: <877cxxf5lo.fsf@laura> Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18854 Archived-At: On 1/8/23 15:44, Olivier Dion wrote: > On Sun, 08 Jan 2023, Zelphir Kaltstahl wrote: >> On 12/31/22 21:31, Olivier Dion wrote: >>> On Sat, 31 Dec 2022, Zelphir Kaltstahl wrote: >>> >>>> Maybe I can already make use of it in coming AoC puzzles. >>> Any sort of feeback is welcome! >> Hello Olivier! >> >> May I ask how to make use of the library? I cloned the project onto my local >> machine in a subfolder of a project, in which I want to use it. There are some >> guix files in the guile-parallel repository, but I am unsure how to make use of >> it as a guix package. I think there was a possibility to use local code as a >> package in a guix shell, but I cannot find the info how to do it, so I tried the >> following: > I could publish the next revision to Guix! In the mean time, I think > you can do the following from your root project directory: > > --8<---------------cut here---------------start------------->8--- > guix shell \ > --file=guile-parallel/.guix.scm \ > --with-source=guile-parallel=guile-parallel > --8<---------------cut here---------------end--------------->8--- > > You can replace `guix-shell' with `guix-build' to get the path where > guile-parallel was built. > > Also you could copy the package definition of guile-parallel under > guile-parallel/.guix.scm in your project tree somehwere. Then, you can > use > `--with-source=guile-parallel=https://git.sr.ht/~old/guile-parallel/archive/v1.0.0.tar.gz' > to use release source. > > Hope that help! Hello Olivier, thank you for the reply! I tried the following: ~~~~ user@user-desktop:~/dev/advent-of-code-2022/day-14$ guix shell \ > --file=guile-parallel/.guix.scm \ > --with-source=guile-parallel=guile-parallel user@user-desktop:~/dev/advent-of-code-2022/day-14$ guile GNU Guile 3.0.8 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (use-modules ... (parallel)) While compiling expression: no code for module (parallel) scheme@(guile-user)> ~~~~ That one does not seem to work. ~~~~ user@user-desktop:~/dev/advent-of-code-2022/day-14$ guix build --file=guile-parallel/.guix.scm --with-source=guile-parallel=guile-parallel /gnu/store/8fm8m43m2rx1b6slnldfi5q8rqw45kr8-guile-parallel-0.0.0 ~~~~ That one gives the filename. ~~~~ user@user-desktop:~/dev/advent-of-code-2022/day-14$ cp guile-parallel/.guix.scm . user@user-desktop:~/dev/advent-of-code-2022/day-14$ guix shell --with-source=guile-parallel=https://git.sr.ht/~old/guile-parallel/archive/v1.0.0.tar.gz guix shell: warning: no packages specified; creating an empty environment guix shell: warning: no packages specified; creating an empty environment user@user-desktop:~/dev/advent-of-code-2022/day-14$ guix shell --with-source=guile-parallel=https://git.sr.ht/~old/guile-parallel/archive/v1.0.0.tar.gz --file=.guix.scm Starting download of /tmp/guix-file.lJWk5a Fromhttps://git.sr.ht/~old/guile-parallel/archive/v1.0.0.tar.gz... v1.0.0.tar.gz 445KiB/s 00:00 | 38KiB transferred substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0% The following derivations will be built: /gnu/store/w9i162m5pmw83dm2xhwai4s6zsxhw6c0-profile.drv /gnu/store/nrnavbjjdahwvdxzkky8wh5amfpyjqkv-guile-parallel-0.0.0.drv building /gnu/store/nrnavbjjdahwvdxzkky8wh5amfpyjqkv-guile-parallel-0.0.0.drv... building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building profile with 1 package... user@user-desktop:~/dev/advent-of-code-2022/day-14$ guile GNU Guile 3.0.8 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (use-modules ... (parallel)) While compiling expression: no code for module (parallel) scheme@(guile-user)> ~~~~ (linebreaks inserted for readability) That one also does not seem to work for me. It is not a show stopper for me, as I can simply use my previously created parallel functions and replace them later, but I think it would be nice to try out guile-parallel : ) Regards, Zelphir -- repositories:https://notabug.org/ZelphirKaltstahl