web developer & system programmer

coder . cl

ramblings and thoughts on programming...


what is thread-safe?

published: 26-11-2011 / updated: 26-11-2011
posted in: c, development, java, programming, tips
by Daniel Molina Wegener

What is thread-safe?. Thread-safe implies that for a given resource it will not be used at the same time by two or more threads or processes. By resource, we must understand a memory block or similar kind of resources. If you create a list that is shared between threads to store data, you will need a way to write that list — appending nodes or removing nodes — without writing it simultaneously. This implies the usage of thread-safety techniques that will bring you sequential access to the list allowing sequential writes, instead concurrent writes that will probably crash your application.

static analysis on c source

published: 23-08-2011 / updated: 23-08-2011
posted in: c, development, programming, tips
by Daniel Molina Wegener

Static analysis is cool, you can find bugs without running your programs or without debugging your programs, doing source code analysis with automated tools that analyzes your code execution path, variables and behaviour doing a static interpretation of your code. The resulting reports of static analysis can guide you to construct better code and correct a wide variety of errors on early stages of your program development, including hardening tasks, creating better programs with early corrections. There are various tools that can check your C source code and make your C programming tasks easier to handle.

[ann] pyxser-1.5.2-r2.win32 was released

published: 26-03-2011 / updated: 26-03-2011
posted in: c, development, programming, projects, python, pyxser
by Daniel Molina Wegener

Dear pyxser users, I’m pleased to announce that I have released pyxser-1.5.2r-r2.win32. This is the same release as 1.5.2-r2, but for Win32 platform. It does not add new features or similar stuff, it’s just a compiled binary distribution for Windows machines. You can download this release build for Python 2.7 and Win32 machines on SourceForge. Please follow the following link to download the pyxser-1.5.2-r2.win32 package. It uses the Windows Installer and it’s an executable. You just need to download an official Python 2.7 distribution to use this release.

[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.

[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.

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…