Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"03-13-14 - Hilbert Curve Testing"

3 Comments -

1 – 3 of 3
Blogger dfan said...

Haskell has a great library called QuickCheck where you give it descriptions of how to generate random data of any type you're testing (in your case, all seven variables), then it tests your functions and assertions with a zillion random cases. It's not exhaustive, of course, but it tends to find problems really quickly. I last used it when I had some tricky logic in a card game and wanted to test it out on lots of game states but obviously wasn't going to iterate through 52! possibilities. Turned out there was one corner case that showed up in a few seconds.

March 17, 2014 at 5:37 AM

Blogger MH said...

This is similar to fuzzing things. I wrote a genetic art program which generated random shader programs. The user could then vote on the ones they liked and the process continued.

But a bunch of trees either returned errors, even though they were legal, or better yet, crashed my driver.

I was then working on a network system that had the messages nicely laid out. I realized I could do the same thing there.

Turns out I inadvertently invented fuzzing. I didnt know it was a thing.

April 9, 2014 at 5:27 PM

Blogger MH said...

Oh, on the Hilbert curve thing. I want to build a space jump system based on it.

So, using the Nth approximation as what hyperspace band we live in (something like 12 or 20 or such), you can jump up a band by being in the right place and engaging your Hilbert drive. Hyperspace only allows movement in 1D. You travel how far you want, then jump out.

A variation would be that you can only jump up at ends or corners. This would make certain sectors of space very valuable. Even without it, certain lines would be valuable (but require tremendous amount of energy. Each jump up the approximations require N^(>1) energy)

April 9, 2014 at 5:39 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.