Stefan Sayer writes:

 > But now I realize that DSM language itself can actually be 
 > useful to also implement a whole lot of real app logic. So, would it 
 > make sense to add "if" in action blocks? or is that now really overdoing 
 > it? would it make much more sense to use a readily available language 
 > like lua or python?

stefan,

rather than keeping on extending DSM with more and more control
structures and library kind of features (mysql, smtp, xml, ...) use of
an existing language, such as python, sounds like better choice.  this is
provided that memory leaks could be somehow avoided.

by the way, i took a look at some python/c++ wrapping examples, e.g.

http://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip-apps/src/py_pjsua/py_pjsua.c

and noticed that they contain lots of Py_XDECREF calls which decrement
number of references to the object in order to finally get its memory
released.  based on those example, it is evident that without somekind
og debugging tool, it is not trivial to get all those calls correct like
you already told.  i then tried to run sems with valgrind in order get
an idea, where the memory is leaking, and it didn't produce any useful
information.

-- juha
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to