Recent

Author Topic: XON 1.0 Pre Alpha  (Read 17073 times)

Blestan

  • Sr. Member
  • ****
  • Posts: 461
XON 1.0 Pre Alpha
« on: January 04, 2011, 10:43:20 pm »
Hi All!
after several months of coding / testing i just released on google code the first version of my Object Notation Format - XON.
All basic functions are working and tested. Any comments and suggestions are welcome!
XON is a binary format similar to bson and json but more compact and faster.

here is the code  http://code.google.com/p/fpc-xon/downloads/list
Speak postscript or die!
Translate to pdf and live!

benohb

  • Full Member
  • ***
  • Posts: 218
Re: XON 1.0 Pre Alpha
« Reply #1 on: January 04, 2011, 11:01:14 pm »
Where can I find documents  :o

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: XON 1.0 Pre Alpha
« Reply #2 on: January 04, 2011, 11:35:11 pm »
Hi!
No docs for the moment. I have added a sample test to connect to mysql server and encode the result as xon, then write it to a file and the read / parse andput rows in a tree view ... it's pretty simple to understand an can be used as a reference..
 the basic idea is :
to create xon : create a XWriter .... writeX everithing you want and finalize it ... then send the result buffer to a file or to a socket...
to  read xon: create a xreader ... use nextX or findkey to navigate ... read the data ... use enterX to navigate subitems ( like xml nodes ) and exitX to go UP

don't forget this is pre alpha - just a proof of concept ... if you have ideas or comments please let me know :)
 
« Last Edit: January 04, 2011, 11:37:05 pm by Blestan »
Speak postscript or die!
Translate to pdf and live!

sp3iq

  • New Member
  • *
  • Posts: 13
Re: XON 1.0 Pre Alpha
« Reply #3 on: January 07, 2011, 12:05:30 am »
Hi,
Good job. I'm testing a MySQL 5.1 database under Linux (Lazarus and the SQL client under Windows). Xon_test program works OK. Method of testing the MySQL tables are cool, you can see the contents and their types. In real life I use MySQL Browser from MySQL AB. I already have some ideas to Modify, mainly by looking at improving functionality.
Regards.
« Last Edit: January 07, 2011, 12:11:06 am by sp3iq »

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: XON 1.0 Pre Alpha
« Reply #4 on: January 07, 2011, 09:08:36 am »
thanks for the comment!
send me all your remarks and propositions ... xon is under heavy development  now
Speak postscript or die!
Translate to pdf and live!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: XON 1.0 Pre Alpha
« Reply #5 on: January 07, 2011, 09:18:53 am »
I'm testing it... if it's really more compact than JSON, then probably I'll start using it for my web services.

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: XON 1.0 Pre Alpha
« Reply #6 on: January 07, 2011, 10:02:38 am »
Yep! and it sould be also faster because it' use only byte buffer not any fancy trees or objects.... i'm also planing to add a in-buffer compression to reduce size and a simple xor-encoding for basic encription for non-critical data
« Last Edit: January 07, 2011, 10:04:33 am by Blestan »
Speak postscript or die!
Translate to pdf and live!

jeffreywilson

  • Guest
Re: XON 1.0 Pre Alpha
« Reply #7 on: January 07, 2011, 02:59:52 pm »
I'm testing it... if it's really more compact than JSON, then probably I'll start using it for my web services.

Me too I'm also trying it out and so far all seems ok.

sp3iq

  • New Member
  • *
  • Posts: 13
Re: XON 1.0 Pre Alpha
« Reply #8 on: January 07, 2011, 03:06:14 pm »
Hi,
I do not know the objectives of the project.
My demands stem from the habit of SQL Browser from MySQL AB.
If the program is to serve as a browser, and be helpful to SQL Developer, a development XON should include:
 1. A separate window for logging the MySQL server.
 2. In the main window should be the view of all databases and tables.
 3. Resizing a window of SQL queries.
 4. Two ways to view the SQL query, this current is OK, but it is  also a good traditional (columns).
 5. Access to view, define new tables and modify existing tables.
 7. Templates for the CREATE, ALTER TABLE ...
 8. Read / write SQL commands to your hard drive.
 9. Record the results of the SELECT command as a text file for OpenOffice CALC TXT (MS-Excel).
The main advantages of XON:
 1. Lack of controls MySQL Lazarus operations.
 2. How to display the results of SQL queries - view of the TreeView is OK.
XON major disadvantages:
 1. Do not see the columns with a NULL value.
 2. Too small a window for SQL commands.
 3. Not covering PASSWORD database (should be covering the ***).
Regards.

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: XON 1.0 Pre Alpha
« Reply #9 on: January 07, 2011, 03:12:15 pm »
XON is about Cross Platfom Object Notation ... reading / parsing results from mysql server is only a demo to illustrate the capabilities of the format :)
the main objective is to serialize / deserialize complex data structure and transefer between diferent platforms / languages / hosts ...
Speak postscript or die!
Translate to pdf and live!

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: XON 1.0 Pre Alpha
« Reply #10 on: January 07, 2011, 11:22:19 pm »
excuse me, just works for mysql? Maybe I need your help for test it with firebird.

Regards.

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: XON 1.0 Pre Alpha
« Reply #11 on: January 08, 2011, 06:43:44 am »
ok i will help you but i just wanna repeat than the hole mysql stuff is just a demo...do not think that xon is directly related to mysql or any other db. you can use xon with whatever data structures you want.... soon i will post several others demos to clarify usage ...
Speak postscript or die!
Translate to pdf and live!

mWaltari

  • New Member
  • *
  • Posts: 15
Re: XON 1.0 Pre Alpha
« Reply #12 on: January 11, 2011, 08:22:36 am »
Yep! and it sould be also faster because it' use only byte buffer not any fancy trees or objects.... i'm also planing to add a in-buffer compression to reduce size and a simple xor-encoding for basic encription for non-critical data

Hello,

Check http://synopse.info/forum/viewtopic.php?id=32 for very very fast compression formats! Should work with Fpc using pure pascal mode... (No ASM)... I've tested it and in memory compression is fast as h**l. Perfect for this kind of stuff...

-Tee-

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: XON 1.0 Pre Alpha
« Reply #13 on: January 11, 2011, 10:21:07 am »
hi!
i also tested synlzo but i still get runtime errors ... can you send me hints or modified code how to use in buffer compression with fpc?
thanks!
Speak postscript or die!
Translate to pdf and live!

mWaltari

  • New Member
  • *
  • Posts: 15
Re: XON 1.0 Pre Alpha
« Reply #14 on: January 11, 2011, 11:52:34 am »
hi!
i also tested synlzo but i still get runtime errors ... can you send me hints or modified code how to use in buffer compression with fpc?
thanks!

I have not used it in Fpc, only at Delphi... So I don't know... And I used Streams...

-TP-

 

TinyPortal © 2005-2018