Sunday, April 14, 2013



Data Exchange formats:

Please note that this blog post is an adaptation of an article released in Dr Dobb's.

Data serialization is always a simple problem to address. There are so many options that are available now days. Yet the actual need remains the same. Does that means that all these standards are failing to deliver what is actually needed. Let’s take a look.

Data serialization in early days: Back in old days, data serialization was used to handle using binary protocols, which was unfortunately, not human readable format. Moreover these protocols are custom defined on ad-hoc basis. The sender and receiver had to agree on an agreement with respect to the fields and its associated data. Eventually these schemes made a way, partially, to emerge as a standard. Such a known standard is ASN.1.

OS addition: Evolution of operating systems and their inter communication, raised a new problem. Servers that lives in UNIX world need to exchange data in some way. Added complexity to the problem is how to exchange binary data when systems are using different endian system? The resulting, XDRformat, proposed by Sun, solves this key problem. It was quiet successful and still found today in NFS.
                                                                                          
Internet: The age of internet starts from mid-1990s, and hence requires a need for new standard which is human readable (XDR is not human readable), hence SGML- the markup super class, from which HTML is derived. In 1998, SGML was reworked, and evolved into another standard named as XML, which is till now considered to be most successful profile of SGML. By the end of the century, it was already in wide use. All languages (major or minor) had XML lib, and the format is been used whenever or wherever any kind of human readable data representation was required. It was so popular that it moved to the areas where it was never meant or intended to be, such as text markup, for ex DocBook (many thanks to XSLT!!).

Popularity of XML has hindered several drawbacks. Its drawbacks list starts from complexity of schema to performance. Some performance evangelists even believe that more than 40% of CPU cycles have been consumed while encoding or decoding the XML.

JavaScript evolution and JSON:
Evolution of javascript and its revolution has reshaped the entire arena, hence leads to another standard known as JSON. Standard JSON can be read as javascript, which is also being widely supported with many tools and lib. Although been popular and widely used, JSON suffers from some desirable traits. One of such traits is comments, JSON doesn’t support comments. Another one, there is no support for date data type. Above all it cannot represent the relational data.
These drawbacks have already led to its variants like BSON, devised by 10gen and used in their Mongo DB NO SQL database.

JSON extension:
Frustration with JSON has spurred a new revolution of examination and proposal of entirely new schemes. Such a most interesting scheme is TOML from Tom-preston-werner, a co-founder of GitHub. It uses a different notational scheme but contains the same brevity of JSON. TOML represents its structure like configuration files with key value pairs specified one per line and grouped by square bracketed item names. At a go you can feel a slight similarity with the .ini files popularized by Microsoft. TOML is not the only alternative under development. Another such is Protocol buffers, developed by Google, considered to be low-overhead, high speed data exchange format.

YAML: This discussion can’t be ended without discussing about YAML. YAML is considered to be, most remarkably, big standard (almost 80 pages), but concise in practice and highly readable. It borrows the Python's use of whitespace to indicate the start and end of blocks or subblocks. It avoids quotation marks, brackets, braces and open/close tags. It can reference to the element which is defined previously. Repeated element can be refer by creating an alias. Above all it supports standard data types & can map easily to lists, map, and hashes. Till now, it is supported by a wide variety of languages and its supporting libs.

For further reference, please check the wiki entry for comparisonbetween different formats.

Monday, August 9, 2010

Ohh Kassh-mir

a reason for labor,
toils up in day care,
a cause for a future,
we lend it to nurture,

a reason to believe,
have a faith of relief,
a cause to perish,
should never relish,

we stand we fight,
in broad day light,
viewers, witness and spectators,
muted as mutators...

Sunday, July 18, 2010

Few drop of life

few drop of rain
in my eyes,
few drop of rain
in your eyes,

dreams were shattering,
things were fading fast,
smoldering to dust,
no one would be there to last,

last thing that i remember,
laying down in the arms of the people,
emotions passing by,
to emptiness of heart and sly,

rain lashed down in darkness,
cries of mourning raises high,
time stopped in the silence,
to watch the ashes flying
in the sky,

Sunday, June 6, 2010

Tryst with second life

their was a difference in our eyes,
we met together but the decision was not wise,
we live in harmonious way,
but nature has its own ways,

our path will appear soon,
will that be a boon,
thinking all the way along,
is this a second life syndrome,

people rely on others,
prosperity!! does it matters,
i cried, been relied on myself,
indeed i lied to myself

i realized my fault,
its too late, its in the vault,
it been locked with my deeds,
who knows where are the keys.

Tuesday, June 1, 2010

LIfe and Small one

we hide from the truth,...
we fall in lies,
we fail in our eyes,
still we look out for glasses,

We ran from past,
we struggle in present,
still we await for the future,
to live our life in an extant,

from dusk to dawn,
we constantly move on,
to find truth,
we hail to strive on..

***

man is a fool,
using memory as a tool,
remember all the deeds,... See More
good or bad,
never remember how someone feels!!

Sunday, April 25, 2010

My first verse

The inspiration or the impetus behind this verse is still little unknown.
Moving through the different posts or message in Facebook, i came across
with one, a friend of mine who has been a constant blogger, even after being severely criticized by us, but he didn't give up all his unnatural creativity.

Recently he has written a beautiful citation of his memory of his tours and trip( i m sure he is trying hard for new professions, first guitar, now poetry OMG! :-) ).

So i thought lets give it a try at least, let me see what i can come up with..
here is small little chunk of my poetry nerve.


Memory

There is a chair in the room
sit up and watch the blooming moon,
its light fell on the backyard
glistening the wall and the room,

i was thinking and smiling,
remember the days of my styling,
I was beautiful and handsome
good and troublesome,

Happiness was a stroke away..
Innocence was my way..
but now the things have changed.
all lost and drained.

Touch me,
feel me,
lost in me,
says the merciless time
despair in chair
i hold my arms tight

dont let them fadeaway,
was the voices coming from inside....

Sunday, December 6, 2009

Hype of Communication Skills

They say, whether in school or in college, or in some professional course. You should possess good communication skills. Even more good communication skills may added weight-age your resume. But what are these communication skills ? Just To talk in English, is that what it is all about ? Or just an industry buzzword.

Well I try to find it out in my own way. In corporate world, communication in English, is considered to be decent practice and if you are the part of that practice then you have been labeled as "Best communicative person"(check your latest appraisal !). Even more if you use some hard words,wallah!! you won the battle.
In group discussions with office colleges or without them, you will find the ease of communication skills. Sometime it may happen that some one need your help financially or non financially and you have used your good communication skills to get rid of that person.
I always wonder, that what about the deaf or dumb persons. Doesn't they had good
communication skills ? It reminds me of an old bollywood movie(i prefer to write hindi but globalization!!!), titled as "Kosish". There they showed perfectly how they can communicate.

Today, after my routine walk, i went to a snacks corner and asked for tea and snacks. To my life I have witnessed some unusual communication skills.A dumb couple, by looking at there faces, i guessed probably they had a fight. May be to get freshen up they have decided to have a snacks together. First they look into the menu card, then they decided what to eat and then they went off. That's quite usual, that's what we all do. But the amazing part was there decision( or in industry terms decision making capability). They simply exchange some hand gestures and they came to a conclusion, what they want to eat. I was shocked and speechless.
Usually we spent some minutes to hours to get decided what to eat. They simply spend some seconds and get the decision what they want to eat. Amazing isn't it!!
Hence I came to a conclusion, communication skill, doesn't require you to walk and talk in English, its just a way to express yourself. I mean if you cant been able to make a sentence what is the use of words then!