Live data from Hacker News

Show HN: Ecosim – A cellular ecosystem simulator toy for Linux written in C

github.com

21–30 of 31 posts

Re: Show HN: Ecosim – A cellular ecosystem simulator toy for Linux written in C

#21
Very cool. I have dreamed of building something similar. I would be interested in these modifications:

1. Change living/non-living distinction of food to two different dimensions, shared by living and non living food alike: * Composition - arbitrary bits to match against a consuming organism's diet * Defense - arbitrary bits to match against consuming organism's capabilities, might be a function of energy level for living food

2. Organisms leave behind waste as part of eating and/or moving. Waste left behind is food for other organisms

This might allow for the rise of symbiosis and multicellular organisms

Re: Show HN: Ecosim – A cellular ecosystem simulator toy for Linux written in C

#23
post #4

Very cool! However, I don't see why this has to be so specific for Linux from when by judging from the libraries used it can be also compiled for MingW, macOS, Free/Open/NetBSD, QNX and even surprising Haiku. But a very interesting project nevertheless.

Currently having difficulties getting it running on macOS, and gdb doesn't seem to play nice with Catalina

Doesn't work on ubuntu 19.10 either.

gcc -c main.c gcc -g3 logger.o quadtree.o graphics.o utils.o agents.o input.o main.o -o ecosim -lGL -lm -lglfw -lGLEW $ ./ecosim Segmentation fault (core dumped)

Re: Show HN: Ecosim – A cellular ecosystem simulator toy for Linux written in C

#24
post #5

It looks pretty interesting but unfortunately I'm unable to run the demo, getting a crash in glDrawElements which is sort of outside of my scope to address. As a side note the debug symbols flag doesn't get passed to individual C files so the binary ends up without debugging symbols (as a workaround I moved the -g3 flag to CC variable instead).

I am getting a Segmentation fault under Debian Stretch.

Likewise on Ubuntu 19.10. Running an NVIDIA GTX 950 on nvidia-driver-430 (proprietary).

Re: Show HN: Ecosim – A cellular ecosystem simulator toy for Linux written in C

#26

Earlier quoted context omitted.

I am getting a Segmentation fault under Debian Stretch.

Uh oh, what graphics card / driver are you using?

Not the OP, but it crashed with ubuntu 19.10 with a GTX1070 with the default ubuntu nvidia binary blob: i nvidia-driver-390 - NVIDIA driver metapackage

Maybe the code is incompatible with libglew2.1?

When I run: $ ./ecosim Segmentation fault (core dumped)

I see a window map for an instant before the seg fault.

Re: Show HN: Ecosim – A cellular ecosystem simulator toy for Linux written in C

#27
post #4

Very cool! However, I don't see why this has to be so specific for Linux from when by judging from the libraries used it can be also compiled for MingW, macOS, Free/Open/NetBSD, QNX and even surprising Haiku. But a very interesting project nevertheless.

Currently having difficulties getting it running on macOS, and gdb doesn't seem to play nice with Catalina

Try LLDB; Apple keeps breaking GDB.

Re: Show HN: Ecosim – A cellular ecosystem simulator toy for Linux written in C

#30
post #21

Very cool. I have dreamed of building something similar. I would be interested in these modifications: 1. Change living/non-living distinction of food to two different dimensions, shared by living and non living food alike: * Composition - arbitrary bits to match against a consuming organism's diet * Defense - arbitrary bits to match against consuming organism's capabilities, might be a function of energy level for l…

These are great ideas. I was looking for ways to facilitate symbiosis. Thank you :)
Post reply on HN