unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
To: Olivier Dion <olivier.dion@polymtl.ca>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: [ANN] Guile-Parallel 1.0.0 released
Date: Sun,  8 Jan 2023 15:17:29 +0000	[thread overview]
Message-ID: <eaf96232-c431-e267-d305-673a02f3bbe6@posteo.de> (raw)
In-Reply-To: <877cxxf5lo.fsf@laura>


On 1/8/23 15:44, Olivier Dion wrote:
> On Sun, 08 Jan 2023, Zelphir Kaltstahl<zelphirkaltstahl@posteo.de>  wrote:
>> On 12/31/22 21:31, Olivier Dion wrote:
>>> On Sat, 31 Dec 2022, Zelphir Kaltstahl<zelphirkaltstahl@posteo.de>   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


  reply	other threads:[~2023-01-08 15:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-31  3:55 [ANN] Guile-Parallel 1.0.0 released Olivier Dion via General Guile related discussions
2022-12-31  9:06 ` Damien Mattei
2022-12-31 19:58 ` Zelphir Kaltstahl
2022-12-31 20:31   ` Olivier Dion via General Guile related discussions
2023-01-02 16:13     ` Greg Troxel
2023-01-02 17:59       ` Maxime Devos
2023-01-02 20:45         ` Greg Troxel
2023-01-02 21:24           ` Olivier Dion via General Guile related discussions
2023-01-02 23:56             ` Olivier Dion via General Guile related discussions
2023-01-03 10:57               ` Damien Mattei
2023-01-03 21:40                 ` guile-fibers timerfd_create bug (was: Re: [ANN] Guile-Parallel 1.0.0 released) Maxime Devos
2023-01-03 22:38                   ` Damien Mattei
2023-01-03 22:43                     ` Maxime Devos
2023-01-04  1:28                     ` Olivier Dion via General Guile related discussions
2023-01-03 22:06                 ` [ANN] Guile-Parallel 1.0.0 released Olivier Dion via General Guile related discussions
2023-01-03 22:29                   ` Damien Mattei
2023-01-02 20:28       ` Olivier Dion via General Guile related discussions
2023-01-08 13:30     ` Zelphir Kaltstahl
2023-01-08 14:44       ` Olivier Dion via General Guile related discussions
2023-01-08 15:17         ` Zelphir Kaltstahl [this message]
2023-01-08 15:55           ` Olivier Dion via General Guile related discussions
2023-01-08 15:59             ` Zelphir Kaltstahl
  -- strict thread matches above, loose matches on Subject: below --
2023-01-03 16:47 dsmich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eaf96232-c431-e267-d305-673a02f3bbe6@posteo.de \
    --to=zelphirkaltstahl@posteo.de \
    --cc=guile-user@gnu.org \
    --cc=olivier.dion@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).