ikpx 2.2

For scripts to aid with computation or simulation in cellular automata.
User avatar
calcyman
Moderator
Posts: 2903
Joined: June 1st, 2009, 4:32 pm

Re: ikpx 2.2

Post by calcyman » June 24th, 2023, 7:29 am

May13 wrote:
June 24th, 2023, 5:02 am
I ran into a problem when searching for a (2,1)c/7 knightship. Three times the program crashed due to some kind of error.
Yes, it's a bug in Jannis Harder's incremental version of kissat that causes segfaults sometimes. Commit 27bc3beb shouldn't segfault.
What do you do with ill crystallographers? Take them to the mono-clinic!

User avatar
LaundryPizza03
Posts: 2260
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: ikpx 2.2

Post by LaundryPizza03 » June 24th, 2023, 11:45 pm

Warning message generated while recompiling ikpx2 on macOS 12.6.6. I had previously reported a similar warning message for apgsearch v5.39.

Code: Select all

> ./recompile.sh --rule b35s034
Updating submodules...
libkissat.a already detected
Configuring lifelib...
Using /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 to configure lifelib...
Valid symmetry: ikpx2_stdin
Success!
Gathering latest library versions...
Compiling ikpx2...
apgmera/includes/md5.cpp:342:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
    sprintf(buf+i*2, "%02x", digest[i]);
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
1 warning generated.
apgmera/includes/happyhttp.cpp:390:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf( buf, "%d", numericvalue );
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
1 warning generated.
In file included from src/main.cpp:2:
In file included from src/apgluxe.hpp:4:
In file included from src/../apgmera/includes/base.h:20:
In file included from src/../apgmera/includes/payosha256.h:7:
src/../apgmera/includes/../lifelib/soup/sha256.h:201:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(buf+i*2, "%02x", digest[i]);
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
1 warning generated.

 **** build process completed successfully ****
 

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

hkoenig
Posts: 240
Joined: June 20th, 2009, 11:40 am

Re: ikpx 2.2

Post by hkoenig » June 27th, 2023, 6:37 pm

I thought I posted a response on the other thread, but I don't see it.

That's a warning that "sprintf()" is considered a security risk, and a warning that it's deprecated and someday it might even disappear. Security isn't much of an issue here, so don't worry about it too much. The program will run as intended.

If it wasn't in a standard UNIX library and in one of their own libraries, Apple would've removed sprintf long ago. But there's too much old code out there, especially academic, non-commercial and open source, that depends on it, as you've discovered. If it really bothers you to have warnings (and it should), then it would be good programming to replace with it "snprintf()" so the code doesn't suddenly and inconveniently break if they do remove it.

If you prefer to live dangerously, you can also turn off deprecation warnings by overriding the implied "-Wdeprecated-declarations" switch.

User avatar
LaundryPizza03
Posts: 2260
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: ikpx 2.2

Post by LaundryPizza03 » June 29th, 2023, 3:27 am

I cannot read in any backup files.

Code: Select all

./ikpx2 -v 2,1c/5 -p 4 -n 10000 -k [your payosha256 key] -b "backup_b35s03478_velocity_2_1_5_width_24_even.bin"

           :'',
          ,: '' '' ,,
         :     : ,, ' ,
        :    ,:   : : :
         : , : , ', ,
              ,,' ' ':  ,,
                  ,  :'''',
                 ,: :,'' ,,
                    :, :',
                  ,, :  '' :
                   '''','': ,
                          ',:
                   '''     '  :
                   ,    :'  , '
                   ''', ',:,
          *---*   *---*  '*---------*   *---*   *---*
         /   /|  /   /'   |\         \   \   \ /   /
        /   / * /   *---*:* \   v2.2  \   \   v   /
       /   / / /         \ \ \         *   *     *
      /   / / /       *---* \ \   *---*   /       \
     /   / / /   / \   \  ,,,\ \   \,    /   / \   \
    *---* / *---* | *---* : ,:\ *---*   *---* | *---*
    |   |/  |   |/ \|   | '   :\|   |'' |   |/ \|   |
    *---*   *---*   *---*  '''  *---*   *---*   *---*
                           ,''',
                            ' ::,
                         ::' , ,:'
                           '',  '
                         ,''''':'',
                          , ,:  :,:
                                ''' ,,
                              ':  , :
                            ':,  ': :'
                             ':',,' :
                              ' ' :   ,
                               ::,, '
                                  :::
                                ,,,''
                                ',,

Instruction set AVX2 detected
ikpx2 has been compiled for the rule b35s03478  (779 prime implicants).

Checking SAT solver...
...check complete!

sizeof(workitem) = 32
sizeof(iterator) = 8
libc++abi: terminating with uncaught exception of type std::invalid_argument: stoll: no conversion

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

User avatar
LaundryPizza03
Posts: 2260
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: ikpx 2.2

Post by LaundryPizza03 » June 29th, 2023, 5:59 am

calcyman wrote:
June 24th, 2023, 7:29 am
May13 wrote:
June 24th, 2023, 5:02 am
I ran into a problem when searching for a (2,1)c/7 knightship. Three times the program crashed due to some kind of error.
Yes, it's a bug in Jannis Harder's incremental version of kissat that causes segfaults sometimes. Commit 27bc3beb shouldn't segfault.
I cannot revert to this commit because there are local changes to recompile.sh, but git reset does nothing.

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

The latest edition of new-gliders.db.txt and oscillators.db.txt have 35296 spaceships and 1451 oscillators from outer-totalistic rules. You are invited to help!

TYCF
Posts: 289
Joined: August 7th, 2023, 3:44 am

Re: ikpx 2.2

Post by TYCF » September 2nd, 2023, 12:02 pm

The "Quick start" in README.md says:
"To build ikpx2 for the default rule (B3/S23), simply run: ./recompile.sh"

Where am I suppose to run the code ?

(I am new to using programs so I don't really know how to use them)

Code: Select all

x = 5, y = 3, rule = B3/S23
obobo$2ob2o$obobo!

Code: Select all

x = 5, y = 4, rule = B35/S234i8
2bo$bobo$2ob2o$5o!



User avatar
MEisSCAMMER
Posts: 96
Joined: September 20th, 2022, 5:12 pm
Location: Yes
Contact:

Re: ikpx 2.2

Post by MEisSCAMMER » September 2nd, 2023, 12:27 pm

TYCF wrote:
September 2nd, 2023, 12:02 pm
Where am I suppose to run the code ?
It's to be entered in a command-line interface. In Mac the app's called Terminal, on Windows it's Command Prompt. (Not sure what it's called on Linux.) It's the one where you type commands to the little > prompt, with white text on a black background.
THE TRILOGY HAS BEEN COMPLETED
next: quadrilogy??? Is that even a word

TYCF
Posts: 289
Joined: August 7th, 2023, 3:44 am

Re: ikpx 2.2

Post by TYCF » September 2nd, 2023, 12:33 pm

MEisSCAMMER wrote:
September 2nd, 2023, 12:27 pm
TYCF wrote:
September 2nd, 2023, 12:02 pm
Where am I suppose to run the code ?
It's to be entered in a command-line interface. In Mac the app's called Terminal, on Windows it's Command Prompt. (Not sure what it's called on Linux.) It's the one where you type commands to the little > prompt, with white text on a black background.
It is windows 10 on this computer, but I can't find Command Prompt.
Also, can I use Windows PowerShell ?

Code: Select all

x = 5, y = 3, rule = B3/S23
obobo$2ob2o$obobo!

Code: Select all

x = 5, y = 4, rule = B35/S234i8
2bo$bobo$2ob2o$5o!



User avatar
MEisSCAMMER
Posts: 96
Joined: September 20th, 2022, 5:12 pm
Location: Yes
Contact:

Re: ikpx 2.2

Post by MEisSCAMMER » September 2nd, 2023, 1:49 pm

TYCF wrote:
September 2nd, 2023, 12:33 pm
MEisSCAMMER wrote:
September 2nd, 2023, 12:27 pm
TYCF wrote:
September 2nd, 2023, 12:02 pm
Where am I suppose to run the code ?
It's to be entered in a command-line interface. In Mac the app's called Terminal, on Windows it's Command Prompt. (Not sure what it's called on Linux.) It's the one where you type commands to the little > prompt, with white text on a black background.
It is windows 10 on this computer, but I can't find Command Prompt.
Also, can I use Windows PowerShell ?
Actually, that's what it's called. It seems I was mistaken about calling it Command Prompt (I don't use Windows and was relying on memory, which failed me).
THE TRILOGY HAS BEEN COMPLETED
next: quadrilogy??? Is that even a word

TYCF
Posts: 289
Joined: August 7th, 2023, 3:44 am

Re: ikpx 2.2

Post by TYCF » September 2nd, 2023, 2:23 pm

MEisSCAMMER wrote:
September 2nd, 2023, 1:49 pm
TYCF wrote:
September 2nd, 2023, 12:33 pm
MEisSCAMMER wrote:
September 2nd, 2023, 12:27 pm


It's to be entered in a command-line interface. In Mac the app's called Terminal, on Windows it's Command Prompt. (Not sure what it's called on Linux.) It's the one where you type commands to the little > prompt, with white text on a black background.
It is windows 10 on this computer, but I can't find Command Prompt.
Also, can I use Windows PowerShell ?
Actually, that's what it's called. It seems I was mistaken about calling it Command Prompt (I don't use Windows and was relying on memory, which failed me).
Am I suppose to press enter after entering ./recompile.sh?
Attachments
Screenshot 2023-09-02 192748.jpg
Screenshot 2023-09-02 192748.jpg (41.72 KiB) Viewed 1653 times

Code: Select all

x = 5, y = 3, rule = B3/S23
obobo$2ob2o$obobo!

Code: Select all

x = 5, y = 4, rule = B35/S234i8
2bo$bobo$2ob2o$5o!



GUYTU6J
Posts: 2180
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: ikpx 2.2

Post by GUYTU6J » September 21st, 2023, 5:39 am

Is anyone else experiencing this issue recently? Even a freshly cloned ikpx2 fails to compile B3/S23.

Code: Select all

:~/ikpx2$ ./recompile.sh --rule B3/S23
Updating submodules...
Building kissat solver...
configure: reusing existing build directory 'build'
./configure: 363: can not combine '--quiet' and '--no-statistics': not found
configure: assuming GCC version 9.4.0 uses C99 by default
configure: compiler 'gcc  -W -Wall -O3 -ggdb3 -DCOMPACT -DNDEBUG -DNPROOFS -DQUIET'
configure: linker 'gcc' (no additional options)
configure: using default 'ar' (no cross compilation)
configure: no 'tissat' binary generated (without '--test')
configure: no 'libkissat.so' shared library generated (without '-shared')
configure: no 'kitten' binary generated (without '--kitten')
configure: generating compile_commands.json
./configure: 704: jq: not found
./configure: 708: jq: not found

User avatar
confocaloid
Posts: 1551
Joined: February 8th, 2022, 3:15 pm

Re: ikpx 2.2

Post by confocaloid » September 21st, 2023, 6:17 am

IIRC I was able to "solve" that (a few months ago) by removing a line related to "jq" somewhere in the source code.

Edit: the file "kissat_extras/configure" contains line:

Code: Select all

if which jq &> /dev/null
I just tried to inserted line "exit 0" before that line. Then recompiling seemed to work, and running "ikpx2 -v c/3o" found the turtle.
127:1 B3/S234c User:Confocal/R (incomplete table of INT rules)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
pzq_alex
Posts: 783
Joined: May 1st, 2021, 9:00 pm
Location: tell me if you know

Re: ikpx 2.2

Post by pzq_alex » September 24th, 2023, 2:37 am

Just do sudo apt install jq if you're on Linux (or WSL). Otherwise try to get jq installed (on the PATH) on your computer. I have no idea what ikpx2 would use jq to do though...
\sum_{n=1}^\infty H_n/n^2 = \zeta(3)

How much of current CA technology can I redevelop "on a desert island"?

Post Reply