vala

Custom Iterators in Vala

    For a certain code golf challenge I needed a way to abstract away the mess of dealing with stdin to make my code cleaner (and I can reuse this wherever, which is a big bonus). However, being accustomed to STDIN.each_line in ruby, I wanted an iterator instead of using a while loop in my SumApplication.run() method, so I spent an hour in the vala source figuring out how to write my own iterator that works with foreach(). Now I give this knowledge to you, so you don't have to spend the time yourself!

Raking up Vala

    I've been watching the Vala project very closely for the past while. The goal is to make a nice high level language built on top of the existing GLib/GObject type system. The advantage is, vala code compiles down to standard C/GLib code, so it maintains the speed and interoperability of C without dealing with the suckiness of GObject copypasta. The issue in paradise? The only build system that remotely supports vala is autotools, which can go die in a fire as far as I'm concerned.