Skip to content
Eli Dupree's avatar, a smiling face with a wizard's hat as a broken version of the 'male' and 'female' symbols.
Welcome to Eli Dupree's website! Eli Dupree is a human who writes stories, games, music, and art. Ze blogs about everything from feminism and neurodiversity to math and computer programming.
Home | Index | Feed iconAtom feed
You can contact Eli by email at:
eli(AT sign)elidupree.com
You will be able to register an account and log in here if your browser supports JavaScript and some form of local data storage. You appear to be using a browser that does not support JavaScript.

You are not logged in.

You will be able to register an account and log in here if your browser supports JavaScript and some form of local data storage. You appear to be using a browser that does not support JavaScript.

Username:
Password:
Duration:
Usernames must be between 3 and 32 characters, and can only contain letters, numbers, and underscores. Passwords must be at least 8 characters long.
Username:
Password:
Retype password:
Write "I am not a bot":
Login duration:
Posted at UTC 2011-06-20 18:37:56
Eli_Dupree says:
Eli_Dupree's avatar

Title: C++ vs. Haskell: ROUND TWO: But I want it to be fast!

In the last two days, I've entirely rewritten my game from Haskell into C++! As much as I love the expressive power of Haskell, it just isn't a suitable language for writing things that need to push the boundaries of computers' processing power. This is partially because of the way the languages are designed, and partially because a lot more work has gone into optimizing C++ compilers because it's a more popular language. On the plus side, by writing my game in Haskell first, I feel like I understand the structure of the program a lot better.

On my computer, this version runs smoothly at 100 frames per second, even when you have hundreds of bullets (laser bullets?) flying around in the infinite(!) world.

I've also added a few new features - there's now an infinite, randomly generated cave system, and the bullets last forever instead of disappearing when they leave the screen. I'd post a new screenshot, but it doesn't look much different than before... it's just that it's FIVE TIMES AS AWESOME when you play it.

As before, you can download the C++ source code, or a Linux binary.

Tagged in games, posts about computer programming.
Direct link to this post | You could reply if you had Javascript and local storage ("cookies") enabled
Posted at UTC 2011-06-20 23:38:39
infina says, in reply to Title: C++ vs. Haskell: ROUND TWO: But I want it to be fast!:
infina's avatar
Currently working on compiling a Windows binary.
Direct link to this post | You could reply if you had Javascript and local storage ("cookies") enabled
Posted at UTC 2011-06-22 04:08:05
infina says, in reply to user comment:
infina's avatar
After a little help, I came upon a whole lot of errors for compiling the code in a windows environment. Lots of them were syntax errors. I would attempt to fix them so I could finish the work on it, but I know nothing of C++.
Direct link to this post | You could reply if you had Javascript and local storage ("cookies") enabled
Posted at UTC 2011-06-21 01:21:05
infina says, in reply to user comment:
infina's avatar
never mind, windows hates compiling this code for some reason.
Direct link to this post | You could reply if you had Javascript and local storage ("cookies") enabled