News for hackers. Stuff that matters.
Re:Linus Torvalds: “I'm happily hacking on a new save format... by mattgreenrocks on Friday March 07, 2014 @11:19AM (#7361046)
Preach it. My favorite persistence code: stuff that has nothing to do with SQL/NoSQL.

I leaned heavily on Python's pickle module for serializing a few thousand entities to disk a few years ago. By streaming them to the application at startup time, it remained plenty fast for all datasets it'd encounter. I intended to replace it with SQLite one day, but I never had to. I could just keep them all in memory.

I'd probably choose something a bit safer now, but it was hard to beat the simplicity.

Re:Linus Torvalds: “I'm happily hacking on a new save format... by 3pt14159 on Friday March 07, 2014 @11:37AM (#7361170)
I used to do that, but pickle bit me once. I think it changes between versioning or something. I had to start the statistical model from scratch.
Re:Linus Torvalds: “I'm happily hacking on a new save format... by mattgreenrocks on Friday March 07, 2014 @11:49AM (#7361242)
Now that you mention it, I remember running into something like it. It's a big issue. That module had a bunch of scar code to migrate entities as they came up from disk.
Re:Linus Torvalds: “I'm happily hacking on a new save format... by rcxdude on Friday March 07, 2014 @06:45PM (#7363500)
Yeah, I wouldn't use pickle for anything where backwards or forwards compatibility is important. It is however very convenient for 'I want to send/store this data for a bit' tasks.