Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don't want to use a data serialization library that is so poorly written that it likely corrupts stuff sooner or later, do you?

Python's CPickle comes to mind. There's a race condition in there somewhere, but I've never been able to reproduce it with a small program. [1] Using the version of Pickle written in Python works.

This sort of thing is why I'm somewhat negative on the argument that "if Python is too slow, write the important parts in C". It's too easy to break Python's memory model in C code.

[1] http://bugs.python.org/issue23655



On the other hand it's fairly easy to not break Python's memory model if you don't unlock the GIL :)

Edit: Ah that kind of bug can be ... tricky.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: