zaoqi-unsafe / vala-object

Use Vala from Ruby, Python, Lua, JavaScript (Node.js, gjs, seed) and many other languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Vala for your next library, %username%

Objects for free

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.

Why Vala?

  • Vala is very fast
  • Vala manages memory for you
  • Write in Vala, (re)use from any %lang%

Setup Vala

Debian/Ubuntu

sudo apt-get install valac gobject-introspection libgirepository1.0-dev

Fedora

sudo yum install vala gobject-introspection-devel

OSX

brew install vala gobject-introspection

Make shared library

Source file for 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 :)

Bindings HOWTO (really easy and automagical)

Questions?

About

Use Vala from Ruby, Python, Lua, JavaScript (Node.js, gjs, seed) and many other languages


Languages

Language:Makefile 62.3%Language:Shell 6.7%Language:JavaScript 6.2%Language:Ruby 4.7%Language:PHP 4.0%Language:Perl 2.8%Language:Java 2.8%Language:HTML 2.7%Language:Vala 2.4%Language:Lua 2.2%Language:D 1.6%Language:Python 1.3%Language:C++ 0.5%