Write your next library in Vala and get bindings for free!
Here is example how to use functions and objects from vala in your favorite language.
sudo apt-get install valac gobject-introspection libgirepository1.0-dev
sudo yum install vala gobject-introspection-devel
brew install vala
GObject Inrospection is waiting..
Feel free to add OSX instructions... I've donated my mac to charity :)
Source file shared library is object.vala
.
Run in shell:
make
You should get vala-object.so
and ValaObject-0.1.typelib
and
some other files. .so
and .typelib
are required for next examples.
If you want more details - read about GObject Introspection and it's architecture. Otherwise just skip to next step :)
- Ruby (Ruby 1.9.1, JRuby and Rubinius)
- Python
- Lua (Lua 5.1 and LuaJIT 5.1)
- JavaScript (Node.js, seed and gjs)
- Other languages
- Mailing list: vala
- IRC: #vala at irc.gimp.org
- Documentation
- Google+ page