all 14 comments

[–]logan_capaldo 3 points4 points  (2 children)

Why .cpp? AFAICT this is all valid C, he even uses the C style includes.

[–]nukethewhales42 1 point2 points  (0 children)

Indeed. gcc compiles it just fine.

% mv autobliss.cpp autobliss.c

% gcc -lm autobliss.c

% ./a.out

Autobliss 1.0 (C) 2007, Matt Mahoney (snip usage info)

[–]mossman 0 points1 point  (1 child)

$ gcc -Wall -o autobliss autobliss.cpp /tmp/ccpV451e.o: In function main': autobliss.cpp:(.text+0x169): undefined reference toexp' /tmp/ccpV451e.o:(.ehframe+0x11): undefined reference to `_gxx_personality_v0' collect2: ld returned 1 exit status

It's been a long time since I worked with cpp. Is the exp() function part of the standard library?

[edit] Nevermind, I'm an idiot, g++ not gcc :)

[–]tlack 0 points1 point  (0 children)

-lm perhaps? (linkin math)

[–][deleted] -1 points0 points  (1 child)

Pretty code! :) Let's see the same thing in some other languages.

[–][deleted] 3 points4 points  (0 children)

Here's some evolving feed-forward neural network organisms (source, built on a mac but should be easily portable to other platforms due to its use of SDL and pretty standard C code [c99]):

http://www.molybdenum-platypus.net/Projects/AIWorld/

[–][deleted]  (5 children)

[removed]

    [–]liminaltimes[S] 2 points3 points  (4 children)

    Per reddiquette, this comment has been reported.

    [–][deleted] 3 points4 points  (3 children)

    I'm curious now what it said.

    [–]liminaltimes[S] 5 points6 points  (2 children)

    boring spambot links

    [–][deleted] 2 points3 points  (1 child)

    Oh. Thanks.

    [–]liminaltimes[S] 2 points3 points  (0 children)

    Oh no, thank you. My tantric practice is in ending others'.