I just realized that Linus' posts are the only reason I ever go to Google Plus.
The question nobody is asking, but actually should is: I wonder what other good G+ content you are missing? G+ is largely misunderstood. It is a lousy tool for interaction with people connected to you purely socially. It's a very good way to find and interact with people connected to you by interest.
Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
161–170 of 265 posts
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#162I think this title is wrong. Firstly some clarification - this appears to just be about the persistence format for his dive log. It was XML, now it's git based with plain text. As someone who had to manage a system which worked with plain text files structured in a filesystem for a number of years in the 1990s, this is done to death already. You now end up with the following problems: locking, synchronising filesyste…
But what he replaces it with is a git object store. Each xml-node becomes a git object. They each point to a parent (just as git commits point to a parent commit).
Now writing to this datastore means adding a new node to the git object database and changing the parent references.
Where git stores commits that are related sequentially in time, this stores nodes in a tree relationship that IS the document.
If he's not talking about this then I'd like to officially take credit for my weird idea right now.
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#163Earlier quoted context omitted.
I've been working with restructured Text a lot, it's a breeze as well. Seems quite similar.
Just a note, pandoc (implemented in Haskell) makes it almost a joy to work with various "dialects" of ReST/AsciiDoc/Markdown etc. It feels like what python's ReST should have been (at least the last time I looked, it was pretty hard to get different html out of it - even if it is supposed to be extendible). If you have a dependency on python, staying with the python libs are probably best, but if you just want "a doc…
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#164From the comments (Tristan Colgate) : "XML is what you do to a sysadmin if waterboarding him would get you fired. " Made my day :-)
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#165Earlier quoted context omitted.
This is a good point, but I feel that discouraging this type of approach is not the way to go. I apologise in advance for ranting... I hope this is not too off-topic, but instead a "zoom out" on the issue. This touches on something deep and wrong about how we use computers these days. Computers are really good at being computers, and the amplification of intellectual capabilities they afford is tremendous, but this i…
In a world where users will willingly enter malicious code into their computers if they believe it will do something they want[1], can there really be a better way? [1] https://www.facebook.com/selfxss
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#166On the game I'm currently working on, it's built very heavily around Lua. So for the save system, we simply fill a large Lua table, and then write that to disk, as Lua code. The 'save' file then simply becomes a Lua file that can be read directly into Lua. This is absolutely amazing for debugging purposes. Also you never have to worry about corrupt save files or anything of it's ilk. Development is easier, diagnosing…
That's how people are going to cheat at your game.
The only argument against human-editable text files is parsing speed, not security.
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#167I just realized that Linus' posts are the only reason I ever go to Google Plus.
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#168What's with all the XML hate? Of course, doing everything in XML is a stupid idea (e.g. XSLT and Ant) and thanks heaven that hype is over. But if I want something that is able to express data structures customized by myself, usually with hierarchical data that can be verified for validity and syntax (XML Schemas or old-school DTD), what other options are there? Doing hierarchical data in SQL is a bitch and if you wan…
Besides, since 1960 or thereabouts we have S-Expressions. The world should just have used that without reinventing the wheel once again.
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#169What's with all the XML hate? Of course, doing everything in XML is a stupid idea (e.g. XSLT and Ant) and thanks heaven that hype is over. But if I want something that is able to express data structures customized by myself, usually with hierarchical data that can be verified for validity and syntax (XML Schemas or old-school DTD), what other options are there? Doing hierarchical data in SQL is a bitch and if you wan…
Re: Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
#170Running the new executable then loaded the new configuration. This worked like a champ, up until the Age of Antivirus Software, which always had much grief over writing to executable files.
It's a trick I learned from the original Fortran version of ADVENT.