W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > April 2008

RubyRDF + C

From: carmen <_@whats-your.name>
Date: Fri, 11 Apr 2008 16:09:10 -0400
To: public-rdf-ruby@w3.org
Message-ID: <20080411200910.GA21413@m>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 12 April 2008 00:18:07 GMT