digitalmars.D - Posting My Demo
- Jim Burnes (21/21) Apr 24 2008 Hey D'ers(?)
- BCS (7/12) Apr 24 2008 Jim Burnes wrote:
- Jim Burnes (4/8) Apr 24 2008 Okay BCS. Good idea.
Hey D'ers(?) As a first excercise in D programming I wrote a straightforward implementation of John Conway's Life simulation. I developed it on Linux using gdc. I uses ncurses for output so its sort of old-school, but has some nice features such as: 1. During startup it loads an initial screen from disk 2. Immediately after startup you get to edit the initial screen. 3. Its runs fairly fast even though it doesn't use octree optimizations. 4. You can pause the sim at any time, edit the current screen and unpause and single step. In any case I learned a bit about interfacing to C libraries, dynamic multi-dimensional arrays etc and thought someone else might benefit from the code. It compiles and runs fine under the version of GDC in ubuntu. If you plan on building it yourself you will need the "bcd" package that converts C header files to D (had to go hunting for that). In any case, I tried contacting admin dsource to get it posted there but I haven't heard back. Any suggestions? Thanks, Jim Burnes
Apr 24 2008
Jim Burnes wrote: [...] coolIn any case, I tried contacting admin dsource to get it posted there but I haven't heard back.The guy who runs dsource might just be busy. I'd wait a week at least before writing him off. Also if the source files aren't to big (250Kb*) I'd feel free to attach them to a postAny suggestions?*) I think I've seen posts with more than that in the body text :)
Apr 24 2008
BCS Wrote:The guy who runs dsource might just be busy. I'd wait a week at least before writing him off. Also if the source files aren't to big (250Kb*) I'd feel free to attach them to a postOkay BCS. Good idea. Expect it sometime soon after I do a little clean up. Jim
Apr 24 2008