in reply to fork() on win10
> Is there some trick or something ...
the trick is called MCE and its author lurks here around with a wagon of useful examples. MCE - Multi Core Engine is optimized to run on Windows too, all the pain is for the author :)
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: fork() on win10 - MCE
by BernieC (Pilgrim) on Jan 03, 2023 at 19:41 UTC | |
I'm not sure what to do next | [reply] [d/l] |
by GrandFather (Saint) on Jan 03, 2023 at 22:06 UTC | |
Using Strawberry Perl v5.32.1 and cpanm I installed MCE on a Windows 11 machine and run the first sample from the synopsis for MCE without issue.
Note that this is a 64 bit build of Perl (the x64 bit). What version of Perl are you using?
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
| [reply] [d/l] |
by marioroy (Prior) on Jan 04, 2023 at 00:02 UTC | |
I wonder if sleep is broken or if the box is busy or delays coming from Windows anti-malware? Looking at tests 4, 5, and 8.
Is there an alternative to sleep on the Windows platform, ensuring delay before the workers exit?
Update 1: I have an idea to not use sleep. Instead, I will have workers read a channel. The manager process will notify workers to exit after completing tests list_running, list_joinable, list, pending, is_running, and is_joinable. Update 2: Released MCE 1.883 on meta::cpan | [reply] [d/l] [select] |
by kcott (Archbishop) on Jan 04, 2023 at 10:45 UTC | |
G'day Mario, I saw this being discussed in the CB, but the data is a bit too big for there. I attempted installation of MCE and MCE::Shared on Cygwin and MSWin. Cygwin was completely successful. MSWin didn't pick up the latest (1.883) version of MCE, nor the latest (1.880) version of MCE::Shared. Details follow. Cygwin Cygwin (on Win10) with Perl v5.36.0 (Perlbrew):
I'm set up as a CPAN Tester on this platform; green swatches in the post, i.e. awaiting matrix update. :-) MSWin Windows 10 with Strawberry Perl v5.26.3:
So, MCE v1.883 wasn't found/identified/whatever and v1.882 was up to date; and, MCE::Shared v1.880 wasn't found/identified/whatever and v1.879 was installed successfully. I'll be happy to test further; let me know. — Ken | [reply] [d/l] [select] |
by pryrt (Abbot) on Jan 03, 2023 at 22:16 UTC | |
or just the full perl -V to give the full information about your specific strawberry, in case perl -v and the three specific config variables above aren't sufficient to tell the other monks about your setup. (generally, if you ever think that there might be version or OS issues involved, sharing your full perl -V is best practice). and in your other post, you said, I don't exactly know what system "win32" is. Mine is a Win10/64bit.. that must make a difference.: Yes, win10/64bit could make a difference compared to 32bit or compared to win8/win7/.... But many of those passing results were win10/64bit: you can see that by clicking on the Win32 column header from the cpantesters report, which gives you a table of just those results, with more information. And each individual report will give perl -V or similar information, along with as much other meta-info as they can muster, which might help you determine the difference between your setup and theirs. | [reply] [d/l] [select] |
by syphilis (Archbishop) on Jan 03, 2023 at 23:02 UTC | |
A fair enough question, and worth asking. However, AFAICT, Strawberry have never provided such a build of perl. Cheers, Rob | [reply] |
by BernieC (Pilgrim) on Jan 03, 2023 at 20:56 UTC | |
| [reply] |
by kcott (Archbishop) on Jan 03, 2023 at 23:28 UTC | |
G'day BernieC, I assume the output you've shown is from the cpan utility. I had a look at "reports MARIOROY/MCE-1.882.tar.gz": you're correct in that its huge and not particularly useful. Even the link from the last line, "See http://www.cpantesters.org/show/MCE.html for details", wasn't helpful: it redirected then timed out. A much better way to look at these reports is as follows. I've shown this for MCE; the procedure's the same for most, if not all, modules. As I said above, I've assumed you're using the cpan utility (could be wrong). I don't know how you've set that up or how you ran the installation. I don't know what Perl version you're using. Overall, there's insufficient information to suggest a fix. If you can provide more verbose output, that would be great. If not, maybe look at the prove utility for detailed feedback. I wrote some notes about prove a day or two ago: possibly useful if you haven't previously used it. I have Strawberry Perl v5.26.3 on Win10. Purely as a test, I successfully installed MCE.
— Ken | [reply] [d/l] [select] |