Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-08 Thread Zelphir Kaltstahl
On 1/8/23 16:55, Olivier Dion wrote: On Sun, 08 Jan 2023, Zelphir Kaltstahl wrote: 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-1

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-08 Thread Olivier Dion via General Guile related discussions
On Sun, 08 Jan 2023, Zelphir Kaltstahl wrote: > > 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 Try with: --8<

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-08 Thread Zelphir Kaltstahl
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 ho

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-08 Thread Olivier Dion via General Guile related discussions
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 libra

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-08 Thread Zelphir Kaltstahl
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

Re: guile-fibers timerfd_create bug (was: Re: [ANN] Guile-Parallel 1.0.0 released)

2023-01-03 Thread Olivier Dion via General Guile related discussions
On Tue, 03 Jan 2023, Damien Mattei wrote: > no i did not test fibers ,just look at it, but perhaps it is necessary for > parallel ? i saw the configure file (of parallel) claim about fibers? > i Only for running a certain benchmark against fibers. > will download fibers and test on Mac again an

Re: guile-fibers timerfd_create bug (was: Re: [ANN] Guile-Parallel 1.0.0 released)

2023-01-03 Thread Maxime Devos
On 03-01-2023 23:38, Damien Mattei wrote: no i did not test fibersĀ  ,just look at it, but perhaps it is necessary for parallel ? [...] IIUC, it's a bug report for Guile Parallel then? i saw the configure file (of parallel) claim about fibers? i will download fibers and test on Mac again

Re: guile-fibers timerfd_create bug (was: Re: [ANN] Guile-Parallel 1.0.0 released)

2023-01-03 Thread Damien Mattei
no i did not test fibers ,just look at it, but perhaps it is necessary for parallel ? i saw the configure file (of parallel) claim about fibers? i will download fibers and test on Mac again and hope to finish reinstalling the recent Linux tomorrow (complicated because triple boot,MacOS, Linux kick

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-03 Thread Damien Mattei
timerf_create does not exist on Mac OS system.Perhaps a call to a posix function will be ok. I'm reinstalling a new linux so i can not compare, i try on a Linux with Guile 3.0.1 but unfortunately (foreign-library) is missing.Hope i could have more info tomorrow On Tue, Jan 3, 2023 at 11:06 PM

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-03 Thread Olivier Dion via General Guile related discussions
On Tue, 03 Jan 2023, Damien Mattei wrote: > on Mac os i have (only) one error: > In procedure dlsym: Error resolving "timerfd_create": "dlsym(RTLD_DEFAULT, > timerfd_create): symbol not found" I can replace timerfd with timer_create(). It's POSIX compliant. -- Olivier Dion oldiob.dev

guile-fibers timerfd_create bug (was: Re: [ANN] Guile-Parallel 1.0.0 released)

2023-01-03 Thread Maxime Devos
On 03-01-2023 11:57, Damien Mattei wrote: on Mac os i have (only) one error: In procedure dlsym: Error resolving "timerfd_create": "dlsym(RTLD_DEFAULT, timerfd_create): symbol not found" Is this a bug report for Guile-Fibers? If so, could you provide basic information like which commit you

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-03 Thread dsmich
> From: "Olivier Dion via General Guile related discussions" > On Mon, 02 Jan 2023, Olivier Dion via General Guile related discussions wrote: > On Mon, 02 Jan 2023, Greg Troxel wrote: > > Hmm from a description I see on Guix, libev has relative timers. I > > don't know if it's portable like li

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-03 Thread Damien Mattei
on Mac os i have (only) one error: In procedure dlsym: Error resolving "timerfd_create": "dlsym(RTLD_DEFAULT, timerfd_create): symbol not found" On Tue, Jan 3, 2023 at 12:57 AM Olivier Dion via General Guile related discussions wrote: > On Mon, 02 Jan 2023, Olivier Dion via General Guile relate

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-02 Thread Olivier Dion via General Guile related discussions
On Mon, 02 Jan 2023, Olivier Dion via General Guile related discussions wrote: > On Mon, 02 Jan 2023, Greg Troxel wrote: >> Maxime Devos writes: >> epoll is as I understand it linux only so that's not a reasonable dependency. fibers now works with libevent which wraps multiple

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-02 Thread Olivier Dion via General Guile related discussions
On Mon, 02 Jan 2023, Greg Troxel wrote: > Maxime Devos writes: > >>> epoll is as I understand it linux only so that's not a reasonable >>> dependency. fibers now works with libevent which wraps multiple >>> faclilities and is thus pretty portable. >> >> Guile-Fibers still uses epoll on Linux, o

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-02 Thread Greg Troxel
Maxime Devos writes: >> epoll is as I understand it linux only so that's not a reasonable >> dependency. fibers now works with libevent which wraps multiple >> faclilities and is thus pretty portable. > > Guile-Fibers still uses epoll on Linux, on other systems it uses libevent. Understood - I

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-02 Thread Olivier Dion via General Guile related discussions
On Mon, 02 Jan 2023, Greg Troxel wrote: > O > Olivier Dion via General Guile related discussions > writes: > >> I haven't use fibers a lot, but I think that if you ever need to handle >> asynchronous I/O, for now you should stick with fibers. Also, fibers >> was written by peoples that have a wa

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-02 Thread Maxime Devos
On 02-01-2023 17:13, Greg Troxel wrote: O Olivier Dion via General Guile related discussions writes: I haven't use fibers a lot, but I think that if you ever need to handle asynchronous I/O, for now you should stick with fibers. Also, fibers was written by peoples that have a way better und

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-02 Thread Greg Troxel
O Olivier Dion via General Guile related discussions writes: > I haven't use fibers a lot, but I think that if you ever need to handle > asynchronous I/O, for now you should stick with fibers. Also, fibers > was written by peoples that have a way better understanding of Guile > internal then I d

Re: [ANN] Guile-Parallel 1.0.0 released

2022-12-31 Thread Olivier Dion via General Guile related discussions
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! > I am currently a bit confused about where the line is between a good use-case > for guile-parallel and guile-fibers. Or whether they could work well toget

Re: [ANN] Guile-Parallel 1.0.0 released

2022-12-31 Thread Zelphir Kaltstahl
Hello Olivier! On 12/31/22 04:55, Olivier Dion via General Guile related discussions wrote: Hi Guilers, I'm happy to announce the first release of guile-parallel. A library that offers primitives for parallelization of your programs. Project page: List

Re: [ANN] Guile-Parallel 1.0.0 released

2022-12-31 Thread Damien Mattei
interesting, yesterday i just succed in setting up a // code with Guile that use OpenMP, i will post it in a separate thread. Damien On Sat, Dec 31, 2022 at 4:55 AM Olivier Dion via General Guile related discussions wrote: > Hi Guilers, > > I'm happy to announce the first release of guile-parall