Google apps
Main menu

Post a Comment On: Charlie's Second Blog

"Calling Vala code from Python"

4 Comments -

1 – 4 of 4
Anonymous Anonymous said...

While that might be cool and useful for some, I prefer Cython (and hopefully soon, RPython).

I don't see the point of learning yet another barely used C-style language.

18 May 2008 at 06:07

Blogger Guillaume Chéreau said...

I never heard of Cython before ! It looks very promising indeed ! I know pyrex, but I had been quite disappointed with it.

One of the advantage of vala is that you can use the gobject libraries. Also when you write a library in vala you can then use it from several languages, not just python.

That being said, I agree that Cython may be a better choice in general cases. I will definitively spend some time learning it.

18 May 2008 at 06:23

Anonymous Anonymous said...

Nice work! In the - hopefully not so distant - future, this will get even easier. PyBank will be able to generate Python bindings to GObject libraries on the fly, i.e. you won't need to write .override files or run pygtk-codegen, it will just work.

The information required for the bindings will be read from a GObject Introspection Metadata file, which the Vala compiler can automatically generate.

19 May 2008 at 06:47

Blogger Guillaume Chéreau said...

Wow PyBank is very interesting as well.

As far as I understand it will be somehow similar to the ctypes module, but with the ability to access gobject as well as plain C functions.

I like ctypes a lot, in fact this is what I use most of the time when I want to write a small part of my code in C.

Yeah, I will keep an eye on PyBank.

19 May 2008 at 19:16

You can use some HTML tags, such as <b>, <i>, <a>

You will be asked to sign in after submitting your comment.
Please prove you're not a robot