web developer & system programmer

coder . cl

ramblings and thoughts on programming...


[ann] pyxser-1.5.1r was released

published: 11-10-2010 / updated: 11-10-2010
posted in: c, development, programming, projects, python, pyxser
by Daniel Molina Wegener

Dear pyxser users, I’m pleased to announce that I’ve released pyxser-1.5.1r. This release includes a new argument for deserialization functions, so you can skip the initialization construct by using cinit = False as argument, this improves performance, but leaves uninitiated objects, without calling its default constructor.

emacs as python ide

published: 30-09-2010 / updated: 30-09-2010
posted in: development, emacs, programming, python, sysadmin, tips
by Daniel Molina Wegener

Emacs is a powerful text editor. It has an embedded List dialect interpreter, called Emacs-Lisp and it has many extensions — called Emacs Modes — to work in various tasks, from programming tasks, IRC clients, MUAs and time organizing tasks. Many people says that Emacs works likely an Operating System, since it has a lot of applications mounted on top of Emacs Lisp. Python Mode (python-mode) in emacs has been extended and it can be used with various tools, turning your Emacs editor in a powerful IDE to work with Python.

processing mail with python

published: 11-09-2010 / updated: 11-09-2010
posted in: development, programming, python, tips
by Daniel Molina Wegener

Python is a very neat as language. It has very useful functions and methods, and also it is multi-paradigm. I was playing with mail processing extensions, specifically with the mailbox extension. It has a lot of features to process mbox, mmdf, mh and maildir formats. A customer has requested to me to process some mbox files, tracking the Received route on those files.

[ann] pyxser-1.5r is available

published: 24-08-2010 / updated: 24-08-2010
posted in: c, development, programming, projects, python, pyxser, tips
by Daniel Molina Wegener

Dear pyxser users, I’m pleased to announce that I’ve released pyxser-1.5r. This release has several bug fixes plus enhancements. pyxser now is 15% faster and do not have memory leaks. For people who do know pyxser, it is a Python Object to XML serializer and deserializer. You install pyxser, and you will have functions to convert Python Objects into XML and viceversa, convert that XML back into a Python Object.

comparing pyxser & .net serialization

published: 17-08-2010 / updated: 17-08-2010
posted in: development, programming, projects, python, pyxser
by Daniel Molina Wegener

Did you know about the InvalidOperationException on the System namespace on .NET?. Specifically, what happens on .NET serializations with cross referenced or circular referenced objects in .NET?. Object Oriented programming is complex, and objects can hold complex structures, including those kind of object references, but in .NET you have prohibited to use that kind of object references, cross and circular ones, if you want to serialize an object. Instead of prohibition, pyxser — my Python-Object to XML serializer — allows you to create that kind of references, preserving its original reference across the serialization and deserialization process.

pyxser profiling

published: 07-08-2010 / updated: 07-08-2010
posted in: c, programming, projects, python, pyxser
by Daniel Molina Wegener

Today I was enhancing pyxser, and I’ve reduced some memory usage and enhanced its performance. I’ve reduced some functions to use less instructions and gained a little bit of better performance. But seems that still is using a large amount of dictionaries. or leaving them in memory until the test is finished. Also, I’ve modified the profiling script, to run 1000 times each function. The enhancements looks promising…

[ann] pyxser-1.4.6r released

published: 03-08-2010 / updated: 03-08-2010
posted in: c, programming, projects, python, pyxser
by Daniel Molina Wegener

pyxser is a Python extension which holds functions to serialize and deserialize Python objects into XML. It’s one of my FOSS projects. Some characteristics of of this serializer are the fact that it can serialize objects with circular references and cross referenced objects — try to serialize an object with circular references in .NET. Other facts is that it uses an O(n) algorithm, with n equal to the number of objects and not their references in the object tree. Today I’ve released pyxser-1.4.6r, let me show what I’ve done…