banister / free Goto Github PK
View Code? Open in Web Editor NEWforce immediate garbage collection of an object
Home Page: http://banisterfiend.wordpress.com
force immediate garbage collection of an object
Home Page: http://banisterfiend.wordpress.com
I can't get it to build under Ruby 1.9.1-p243:
/Users/mryan/.rvm/rubies/ruby-1.9.1-p243/bin/ruby extconf.rb
creating Makefile
make
gcc -I. -I/Users/mryan/.rvm/rubies/ruby-1.9.1-p243/include/ruby-1.9.1/i386-darwin10.5.0 -I/Users/mryan/.rvm/rubies/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/backward -I/Users/mryan/.rvm/rubies/ruby-1.9.1-p243/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -O2 -g -Wall -Wno-parentheses -fno-common -pipe -fno-common -std=c99 -I./ruby_headers/ -o free.o -c free.c
free.c:41: error: field ‘typeddata’ has incomplete type
free.c: In function ‘object_free’:
free.c:187: warning: implicit declaration of function ‘RTYPEDDATA_P’
free.c:252: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’
make: *** [free.o] Error 1
It appears to be because 'RTypedData' isn't defined until 1.9.2.
Currently just frees the object it's given and does not free the objects contained in its ivars.
Perhaps when passed 'true' to free perform recursive free, e.g obj.free(true)
This is easy to fix.
need benchmakrs
1.9.3 isn't yet supported by free, consider providing support once 1.9.3 stabilizes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.