Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^15: High Performance Game of Life (updated)

by marioroy (Prior)
on Aug 15, 2017 at 02:12 UTC ( [id://1197393]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl createblinker.pl 5000 -9000 100 >x.tmp 2>y.tmp
    
  2. or download this
    $ /opt/perl-5.24.2/bin/perl -I. tbench1.pl x.tmp 2
    cell count at start = 15000
    ...
    cell count at end = 15000
    time taken: 0 secs
    
  3. or download this
    $ /opt/cperl-5.24.3c/bin/cperl -I. tbench1.pl x.tmp 2
    cell count at start = 15000
    ...
    cell count at end = 6753   <-- fails on 64-bit hw ($half = 32)
    time taken: 0 secs
    
  4. or download this
    # perl createblinker.pl 5 -9 100 >x.tmp 2>y.tmp
    
    # print "@zcells\n";
    9223372039002259557 -9.22337203900226e+18 -9.22337203900226e+18, ...
    
  5. or download this
    # use 30-bits on 64-bit hw for cperl compatibility
    my $half = ( ( log(~0 + 1) / log(2) ) >= 64 ) ? 30 : 16;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1197393]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-09-08 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.