Posted by: Anonymous
on January 06, 2009 03:52 AM
Vala will not compare to C++ in speed unless you fight the grain of the language. Nearly everything is done through virtual calls and so cannot be inlined. There are no expression templates so math will involve a lot of copying and function calling. You "can" write really fast code in Vala but it wont be modular since the mode of modularity is the function call. All generics in Vala look up the function like object->interface->function. That's two indirections. Private members are also accessed like object->priv->x, with another indirection just to keep the C code clean. It's a great tool and it's faster than Python but it's not really meant for speed. As far as learning Vala, just look at the vala compiler source code since it's written in vala. If that doesn't make any sense then learn Ruby or Python first as a learning exercise.