From: Daniel Lucraft Date: 2008-08-05T22:21:28+09:00 Subject: Re: Cool Projects Martin DeMello wrote: > On Thu, Jul 31, 2008 at 4:10 AM, Alasdair Bell > wrote: >> So, anyone working on something awesome? >> >> Brag here... > Valar: http://github.com/danlucraft/valar/tree/master It's rb++ but for the Vala language. Vala (live.gnome.org/Vala) is a C#-like language with automated memory management and collections like ArrayLists and HashMaps. Vala compiles into C so is pretty performant. ValaR makes it dead simple to write Ruby extensions in Vala. Compile your vala code into a library and point valar at the generated vapi file. Vala will generate the C glue code to allow you to call your Vala library from Ruby. Features: * automated conversions between Vala and Ruby types. e.g. int -> Integer, string -> String, ArrayList -> ["foo", "bar", ...], HashMap -> {1 => "foo"} * An object oriented Ruby API. Instead of RSTRING_PTR(str), you can write str.to_vala() * Ruby types. So instead of VALUE, VALUE, VALUE, you write Ruby.Value, Ruby.Array, Ruby.String and enjoy automatically generated type checking to rule out segfaults. * Automated memory management, linked to the Ruby garbage collector. It's dependent on Ruby-Gnome2 and isn't packaged as a gem yet, my bad. Also I'm writing a tutorial on how to get it working which I will link to in the readme soonish. best, Dan -- Posted via http://www.ruby-forum.com/.