04:55 < arpunk> yea, you need stackless python for it
04:57 < Ralith> what's the benefit of that?
04:57 < arpunk> stackless python is faster than standard CPython

With stackless Python we can use as many microthreads as we like, without
wasting memory and cpu. Normal kernel threads wouldn't allow this.
F,e, it isn't a problem to launch a microthread for every received packet.

However, another major benefits of microthreads is the possibility to 
realise the integrated pyntk simulator: 
        the simulator (you can find in pyntk/ntk/sim) is a Discrete Event
        Simulator. It can simulates a virtual network. The nice thing is
        that, with Python we've been able to insert the sim under the whole
        pyntk code: f.e. we wrap directly socket.py! In this way, to simulate
        something: just launch N pyntk virtual instances in a simulated
        network, and let the simulator run. The pyntks you're going to simulate
        are exactly those of real life pyntk code.
        To clarify: if you see that the simulation goes smooth, without a
        single node crashing, then this will happen in reality, too.
        (the integrated simulator works right now: see test/sim/ )

06:50 < Komzzpa> [EMAIL PROTECTED] pyntk % /opt/stackless/bin/python2.5 
setup.py build
06:50 < Komzzpa>   File "setup.py", line 43
06:50 < Komzzpa>     author='The Netsukuku Team',
06:50 < Komzzpa>          ^
06:50 < Komzzpa> SyntaxError: invalid syntax

don't use setup yet. Just launch "pystackless ntkd" in pyntk/

07:00 < arpunk> i cant tell ntkd to use just one nic

        modprobe dummy
        pysta ./ntkd "n=['dummy0']" dbg=9       
or for just one NIC:
        pysta ./ntkd "n='dummy0'" dbg=9

(the options are python code ;)
-- 
:wq!
"I don't know nothing" The One Who reached the Thinking Matter   '.'

[ Alpt --- Freaknet Medialab ]
[ GPG Key ID 441CF0EE ]
[ Key fingerprint = 8B02 26E8 831A 7BB9 81A9  5277 BFF8 037E 441C F0EE ]
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku

Reply via email to