Login:  Password:  
EnFeauTec: SiteNews/JSONParser ...

newLisp JSON parser


Learning newLisp, I wrote JSON parser for it.


The code is downloadable in “files” section at the bottom of page.

About JSON

JSON is a language for structured data representation, like XML.
In opposition to XML, JSON designed to be used mostly for data packaging for storage and transmission.
It has not things like DTD and so, It has very simplyfied syntax, that can be easy viewed, parsed and constructed.
It has small libraries for many languages.

About newLisp

newLisp is a functional scripting language, built upon Lisp ideas.
It lacks some features of Common Lisp and gives alternative implementation for anoters.
But it is small and fast. It has many nice built-ins, and, best of all, it has Great documentation and tutorials.


Now I testing newLisp as a possible replacement of perl.

About coding

Good news:

  • I got code comparable in size with existing perl imlementation! So newLisp gives us a good scripting.
  • Programming functional is very nice! I had a very small number of logic mistakes while wrote code.
  • The interpreter is small and fast enough for awk-like and cgi scripting.

Bad news:

  • lexical closures is quite ugly in comparsion with Common Lisp (but still quite usable).

Resume:
Programming in newLisp is cool and (for me) more painless than in perl.
Unfortunatenly, I haven't yet practice on newLisp for reasonable big projects (above 1000lines of code)


Files accessible from this page:
2005-08-06 00:36:16    (6 Kb)  json.lsp  

There is one file on this page. [Display files/form]
There is no comment on this page. [Display comments/form]
firstVDS.ru