[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Netsukuku-vala] cleaner and reusable code

From: Luca Dionisi
Subject: Re: [Netsukuku-vala] cleaner and reusable code
Date: Thu, 17 Oct 2013 09:56:48 +0200

On Oct 16, 2013 9:02 PM, "Alexei" <address@hidden> wrote:
Hi, Luca! Could you explain, please. If I understand right tasklets-mechanism is the narrow (problem) part of C-version netsukuku. And did you return from vala to C/Python-version? And is it the future plan to replace Python's code for micro-threads with C or vala? 

When I entered into netsukuku, the C version was already abandoned in favour of python. I don't know which mechanism it used for multitasking purposes. The devs stated that one of the advantages of Stackless Python was its light cooperative multi-threading system, called tasklets. They stated also that the porting from C to Python was complete and that their then-new QSPN algorithm had been implemented.

Then I started to test the program and with few other developers we fixed bugs and implemented new algorithms, always with (sort of) the supervision of Alpt. In the end we added and improved a lot of code.

For these reasons it's my humble opinion that going back to the C code is a big step backward, and I didn't ever suggest to anyone to do that.

A couple of years ago, the main reason being that Stackless Python was very difficult to put in embedded devices, I started to look for alternatives and decided to go with Vala as a language and the C library GNU Pth as a "nearly drop-in" replacement for tasklets.

The complete port of the python code to Vala is not finished yet. My personal plan is to continue in this path. The work that I presented in this mail is just a effort to better organize the code.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]