- 授权协议: LGPL
- 开发语言: C/C++ Vala
- 操作系统: Linux
- 软件首页: http://live.gnome.org/Vala
- 软件文档: http://www.vala-project.org/doc/vala/
软件介绍
vala是专为gnome环境准备的开发语言,之所以vala会出现,是因为目前的glib,gio,gtk+,gnome-lib等等的C语言接口开发 起来实在太繁琐(这个深有感触),而同时,如果采用java,C++这些东西,那又显得太臃肿。
vala是对c语言的一种高层封装,集成并实现了gnome环境的函数,在编译的时候首先vala代码会转成c代码,然后再编译。LUPA开源社区4WO$B-a7|4G["g-g这么做,相当于用简单的方 式来编写C程序,而且又有面向对象的特性,同时又不失C语言的优秀特性。
1、安装编译环境
sudo apt-get install valac
2、 编写hello world
sanool@sanool-laptop:~/tmp/foo$ cat a.vala
using GLib; public class HelloVala: GLib.Object { public static int main (string[] args) { stdout.printf ("Hello world!\n"); return 0; } }
3、 编译
valac -o a a.vala
4、运行即可。
可以看到 vala 的编译器是valac。
Visual Thinking
Colin Ware / Morgan Kaufmann / 2008-4-18 / USD 49.95
Increasingly, designers need to present information in ways that aid their audiences thinking process. Fortunately, results from the relatively new science of human visual perception provide valuable ......一起来看看 《Visual Thinking》 这本书的介绍吧!