RubyRDF + C

the [ANN] description said 'pure Ruby'.

since Redland (quite similar to your API) requires C, i figure someone might find this useful, especially as Ruby+Redland users report SWIG/Finalizer-related memleaks or might not want the added dep


Ruby/Redland works great with MRI 1.9, and ive not found memleaks. whether this is due to improvements in language GC or my limited usage of the full API, im not sure..

also it appears RubyRDF isnt pure Ruby:

gcc -I. -I/usr/local/include/ruby-1.9.0/x86_64-linux -I/usr/local/include/ruby-1.9.0 -I.   -fPIC -g -O2  -fPIC   -o utf8proc_native.o -c utf8proc_native.c
utf8proc_native.c: In function 'utf8proc_ruby_map':
utf8proc_native.c:14441: error: 'struct RString' has no member named 'ptr'
utf8proc_native.c:14441: error: 'struct RString' has no member named 'len'
utf8proc_native.c:14448: error: 'struct RString' has no member named 'ptr'
utf8proc_native.c:14448: error: 'struct RString' has no member named 'len'
make: *** [utf8proc_native.o] Error 1

my memory says it changed to RSTRING_LEN(ptr) or similar. unfortunately you have to #ifdef it, as the new macro is not back-compat (or eb did anyways)


can you summarize in which ways C is used to extend RubyRDF?

(curious)

Received on Saturday, 12 April 2008 00:18:06 UTC