Giter VIP home page Giter VIP logo

killeroid / cpushpush Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 684 KB

The Push programming language and the PushGP genetic programming system implemented in C++

Home Page: http://hampshire.edu/lspector/push.html

License: GNU General Public License v2.0

Makefile 13.76% C++ 85.93% C 0.31%
artificial-intelligence evolutionary-algorithms evolutionary-computation genetic-programming pushgp

cpushpush's People

Contributors

killeroid avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lacava

cpushpush's Issues

Implement tags

Implement the tagging behaviour already implemented in clojush

Implement environment editing instructions

Currently, environments as implemented differs from the implementation in Clojush. We need to modify the current implementation so that an environment represents a local scope in which a set of instructions can be executed, returning some values to the parent environment when execution is complete and enabling the resumption of program execution in the parent environment.

See https://push-language.hampshire.edu/t/environments/93

'operator<<' should be declared prior to the call site

I was trying to compile this code. First, I do ./configure --prefix=/Users/nbro/Desktop/CPushPush/PUSH_INSTALLATION, so that the installation files will be under that folder PUSH_INSTALLATION. Then I do make and I get the following error

... 
-MF .deps/pushC.Tpo -c ../extension/pushC.cpp  -fno-common -DPIC -o .libs/pushC.o
In file included from ../extension/pushC.cpp:7:
In file included from ../extension/PointExtension.h:21:
./Literal.h:49:12: error: call to function 'operator<<' that is neither visible in the template definition nor found by
      argument-dependent lookup
        os << value;
           ^
./Literal.h:42:5: note: in instantiation of member function 'push::Literal<std::__1::valarray<double> >::to_string'
      requested here
    Literal(T val) : value(val) {}
    ^
../extension/PointExtension.h:91:33: note: in instantiation of member function 'push::Literal<std::__1::valarray<double>
      >::Literal' requested here
                return Code(new Literal< point_t >(val));
                                ^
../extension/PointExtension.h:106:15: note: 'operator<<' should be declared prior to the call site
std::ostream& operator<<(ostream& os, point_t point) {
              ^
1 error generated.
make[2]: *** [pushC.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any help? It seems that the problem is related to valarray (which is a typedefed to point_t somewhere), which cannot be used with operator<< in Literal.h.

If I do #include "prettyprint.hpp" in Literal.h after having downloaded that source file from here into the src directory, it compiles. Not sure why you didn't encounter this problem before.

However, even after the compilation, if I try to execute the example pushgp_int (or any other the binaries) inside PUSH_INSTALLATION/bin, I get

zsh: segmentation fault  ./pushgp_int

This project seems abandoned, but I guess, if I am wrong, I would appreciate a litlte help.

By the way, I am on a Mac OS (Catalina, version 10.15.7). The version of g++ is Apple clang version 11.0.0 (clang 1100.0.33.8).

I've noticed that the first error and the segfault do not occur on Ubuntu 18.04.3 with g++ 7.5.0. So, this problem seems to be specific to Mac and maybe clang (or even these specific versions of the mac and clang)

Implement PushGP system

Currently, the push lang is implement but the push genetic programming system isnt yet and it needs to be implemented

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.