2006-05-29

And first commit

<svnbot6> r10450 | cmarcelo++ | HsJudy <svnbot6> r10450 | cmarcelo++ | * added JudyL functions to Judy/Private.hsc <svnbot6> r10450 | cmarcelo++ | * make test: a few tests to check Judy1 (via BitSet) and JudyL

Talking to $mentor, we decided my first task to be doing the low-level FFI bindings. There are four data types in Judy: Judy1 (a bitmap), JudyL (maps words to words), JudySL (maps strings to words) and JudyHS (maps array-of-bytes to words). I started working on top of John Meacham implementation of BitSet on top of Judy1.

Now JudyL low-level is almost entirely up, too, the only missing piece is identification of malloc() errors, which is done by checking if the pointer address return by functions is -1. Judy has more sofisticated error management for catching invalid pointer, etc., but I'm not exploring that route right now.

Also added some tests to check if the Haskell is indeed calling the C library, and tried to read/understand each function in BitSet, they were helpful for making tests for JudyL. I hope finish this low-level part by the end of this week, so the work on the implementing APIs begin, which will allow first performance tests to be taken.

No comments:

About Me