w00ps

Just when you thought you had this great new idea, it has been done already. For a long long time.

Soooo, I discovered JSON. That looks a lot like SSS. Yeah. I’m not a JSON expert (IANAJSONE?) but I can tell there are some differences between their format and ours. Pros and cons, like any decision.

Our pros are that it’s a very basic storage method. It’s JSON light. So if JSON is fat-free XML, SSS is fat- and carbohydrate-free JSON.

So, SSS is a project of me and Maurice, and we also have a SourceForge site up, almost. The name SSS was taken already, so we went with something slightly more controversial. We were surprised nobody took the name/acronym we came up with yet!

In unrelated news, I’ve watched The Matrix tonight since what, 6 years or so? And it rocked even harder then when I was 12. Tears of joy coming down from my eyes when Neo OWNS so hard in the entry hall of the building. Epic.

STF Utility (updated!)

The SSS STF (a cool new format for storing data with multiple levels but still > XML, more info here) parser is almost finished. I’m trying to simplify it up as we speak. C++ Templates sure can be frustrating! “/me twitches with his eyes.”

So the parser was working, but it didn’t utilize C++ all the way. I’m trying to reduce the code and thus ease further development and maintainability.

Some hours later…

It is finished! As far as I can tell anyway.  It has a nice example app with it, here’s a (now already dated) sneak peek:

    prettyprint("Welcome to the SSS example app");
cout
< < "This application shows how easy it is to use SSS.\n"
<< "STF is a \"new\" way to store leveled data, just as XML can do, for example.\n"
<< "The format looks like a C(++) struct, which we think is easier to read than XML.\n"
<< "Each :{ is a node, a node has other nodes and values. The first node is unnamed.\n"
<< endl;

So what are you waiting for? Grab the source with example app from the SourceForge page (either checkout from the SVN or select “Browse SVN” -> “Download GNU tarball” (all the way down) ), and use this neat alternative to XML! More information after the break.

Read the rest of this entry »

SSS > XML

Title says it all.

Maurice and I were thinking of how to circumvent XML one more time, and Maurice came up with this format:

ideayaybox:{
  author:"nick overdijk"
  author:"maurice bos"
  description:
"blabla
   blabla"
  link:{
      file:       "blah"
      tag: "something"
      tag:"something"
  }
}

So, basically we have 2 types, values and lists (which can be seen as values). Values are between quotation marks, if you want a quotation mark inside a value, you need double quotation marks! A list starts with ‘{‘, and ends with ‘}’.

In the above example, ideayaybox consists of 2 authors, 1 description, and a list of links. Simple enough right?

Simple String Structures, taking over the world!