-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Because of the change in topic, I started a new thread for Rii:
Uriel wrote:
> There are already two 9P implementations in pure ruby[1], do you
> really think creating ruby bindings for libixp is a good idea? libixp
> pretty much sucks, and needs to be seriously re-designed. if you want
> to create bindings, why not use a saner library, like lib9p from
> p9p[2]?
>
> Also would love to know what do you plan to use the bindings for.
>
> Curious
>
> uriel
First of all I wanted to look into the depth of ruby. I think it is a
very nice feature to be able to write low-level/faster code, so it
directly can be executed on the cpu. So I just wanted to test how ruby
is designed and what it is like to write ruby in C.
Moreover it can't harm to have a very fast interface to wmii. Something
like combining the comfort of ruby and the speed of C.
I did not know very much about the lib9p, but as wmii has problems with
other pure 9p implementations, like the 9p kernel module, I wanted to be
on the save side. Figuring out if I did no know of some tricky ruby
things or if the lib fails is not that much fun.
It worked fine and I have already implemented the pure libixp calls. I
just have to read and test some other ruby-C features (like ruby-threads
in C) and my first goal to know more about the depth of ruby will be
accomplished. And because it is usable with wmii, perhaps someone else
wants to use it ;)
Here is a first test of the speed, reading /client/sel/props 10000 times
user system total real
rii - single fid 0.070000 0.050000 0.120000 ( 0.551429)
rii - open,read,close 0.160000 0.160000 0.320000 ( 1.503666)
ruby-ixp 8.730000 0.730000 9.460000 ( 20.393708)
wmiir in sh 0.000000 0.000000 24.030000 (140.062003)
Regards,
wabu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFuIlHBbWbHb9PeLsRAlNbAKCL2A/DCQJS6COD6TtpeB4XFmJdmwCfQ8ci
KBPeYhKuo31pYHRnONyhM6c=
=MXmJ
-----END PGP SIGNATURE-----
Received on Thu Jan 25 2007 - 11:43:23 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:19:49 UTC