[04:04] *** salmon_ has joined #kamaelia
[05:38] *** Uraeus has joined #kamaelia
[07:21] *** Lawouach_ has joined #kamaelia
[07:46] < MS-> Morning
[08:36] < Lawouach> hello
[08:42] < Lawouach> once I have time (which may be never) I will try to hook kamaelia to erlang like twisted has done http://twistedmatrix.com/trac/browser/sandbox/therve/
[08:42] < Lawouach> I like the idea
[08:43] < MS-> Why not :)
[08:43] < MS-> I suspect that it may be rather simple
[08:43] < MS-> FWIW, Nokia's "disco" project links python and erlang together as well
[08:48] < Lawouach> right
[08:58] < MS-> Just committed a simple console component. Currently just implements a "read from console, execute, display" loop
[08:59] < MS-> But since its from inside a threaded component does mean you can launch more components and activate them and have them just run
[09:42] < Lawouach_> I realised yesterday that it wasn't easy to have a non-threaded component that performed the same job as the CheapAndCheerfulClock
[09:46] < Lawouach_> Damn I received a comment on my blog that was a cleverly hidden spam
[09:46] < Lawouach_> The text itself was smart and almost relevant but when you looked at the various links it was clearly spam
[09:46] < Lawouach_> It actually tricked me first
[10:19] *** MS- has joined #kamaelia
[10:32] *** MS- has joined #kamaelia
[10:45] *** MS- has joined #kamaelia
[10:49] *** MS- wonders if that's netsplits or local. Looks like netsplits
[11:07] *** MS- has joined #kamaelia
[11:30] *** Lawouach_ has joined #kamaelia
[11:38] *** MS- has joined #kamaelia
[11:38] < MS-> Was disconnected but wasn't showing locally. (guessing a netsplit)
[11:39] < MS-> Have completed the basic python interpreter component
[11:39] < MS-> If you add this to any kamaelia system:
[11:39] < MS-> def NetInterpreter(*args, **argv):
[11:39] < MS-> return Pipeline(
[11:39] < MS-> PureTransformer(lambda x: str(x).rstrip()),
[11:39] < MS-> InterpreterTransformer(),
[11:39] < MS-> PureTransformer(lambda x: str(x)+"\r\n>>> "),
[11:39] < MS-> )
[11:39] < MS-> ServerCore(protocol=NetInterpreter, port=1236).run()
[11:40] < MS-> The you can telnet to your system, and rummage around inside the running piece of code
[11:40] < Lawouach_> oh that is very nice
[11:40] < Lawouach_> it's close to something erlangs provides
[11:40] < MS-> Code is currently here:
[11:40] < MS-> https://kamaelia.googlecode.com/svn/trunk/Sketches/MPS/Experiments/Interpreter
[11:40] < Lawouach_> for instance I can do:
[11:41] < Lawouach_> ejabberd debug
[11:41] < Lawouach_> and it will be hook me to a running instance of ejabberd
[11:41] < MS-> That's cool :)
[11:41] < Lawouach_> well what you offer here is similar, isn't it?
[11:41] < MS-> Yep
[11:42] < MS-> I've noticed that the greylisting mail server has a growing memory footprint over time, even though it's now stable
[11:42] < MS-> so I wanted to find out why
[11:42] < MS-> hence the desire for such a component
[11:42] < Lawouach_> right
[11:45] < MS-> It's also rather small and trivial, so it's bizarre it's not been there before :)
[11:47] < Lawouach_> never had a need for it until now I suppose
[11:47] < MS-> indeed. However I suspect it will be more generally useful
[11:48] < MS-> given you can embed it in various things and it can start up any axon system by just activating it
[11:48] < MS-> eg
[11:48] < MS-> from Kamaelia.UI.Pygame.Ticker import Ticker
[11:48] < MS-> Ticker().activate()
[11:49] < Lawouach_> that's rather nifty
[11:58] < MS-> I think I'll place it in Kamaelia.Experimental for the moment
[12:44] < MS-> OK, that's officially wierd
[12:45] < MS-> Doing this:
[12:45] < MS-> from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
[12:45] < MS-> Pipeline(
[12:45] < MS-> Textbox(size = (800, 300), position = (100,380)),
[12:45] < MS-> InterpreterTransformer(),
[12:45] < MS-> TextDisplayer(size = (800, 300), position = (100,40)),
[12:45] < MS-> ).run()
[12:45] < MS-> And then inside that importing pygame
[12:45] < MS-> and calling
[12:45] < MS-> pygame.display.toggle_fullscreen()
[12:45] < MS-> is officially very odd
[13:04] *** salmon_ has joined #kamaelia
[14:03] *** eikenberry has joined #kamaelia
[14:26] < MS-> OK, checked in the PythonInterpreter component into SVN in
[14:26] < MS-> Kamaelia.Experimental.PythonInterpreter
[14:27] < MS-> Examples of usage here:
[14:27] < MS-> http://code.google.com/p/kamaelia/source/browse/trunk/Code/Python/Kamaelia/Examples/PythonInterpreter
[15:53] *** vmlemon_ has joined #kamaelia
[15:57] < vmlemon_> Hi
[16:13] < MS-> hi
[16:14] *** Uraeus has joined #kamaelia
[17:56] *** salmon_ has joined #kamaelia
[18:01] *** Davbo has joined #kamaelia