GithubHelp home page GithubHelp logo

syyyr / libshv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silicon-heaven/libshv

0.0 0.0 0.0 3.96 MB

License: GNU Lesser General Public License v3.0

Shell 0.02% JavaScript 6.68% C++ 75.25% C 9.52% D 6.57% HTML 0.65% QMake 1.31%

libshv's Introduction

ChainPack - the best from both XML and JSON

Motivation

XML

PROS:

  • ability to annotate element with attributes

CONS:

  • boring verbose tag closing, not very usefull when doc is generated by machine.
  • element anotations are not XML. CSS might be also XML if this would be.
  • no standard binary representation

JSON

PROS:

  • not as verbose as XML

CONS:

  • no attributes.
  • no standard binary representation
  • lack of BLOB type
  • Strings are not encoded in UTF8

ChainPack

PROS:

  • binary ChainPack and text Cpon representation with easy and fast conversion (see cp2cp)
  • any value can have metadata. Metadata itself are ChainPack/Cpon again. Even more, the metatada values can have own metadata etc.
  • Cpon is JSON superset with only exception that string values are always encoded in UTF8.
  • binary packed data are relatively small. Size is slightly bigger than MessagePack or Cbor
  • BLOB support
  • C, C++, D, Python, JavaScript bindings

CONS:

  • user have to learn something very new with poor community support

More detailed information can be found on wiki.

Build

qmake SHV_PROJECT_TOP_SRCDIR=`pwd` SHV_PROJECT_TOP_BUILDDIR=`pwd`
make

QtCreator qmake additional arguments

SHV_PROJECT_TOP_SRCDIR=%{sourceDir} SHV_PROJECT_TOP_BUILDDIR=%{buildDir}

libshv's People

Contributors

fvacek avatar j4r0u53k avatar michalhorcic avatar gejza avatar jsalus avatar michallenc avatar ppisa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.