Commit Graph

36 Commits (41ba552e97a969a461b58e6f06fe451e4e176ff9)

Author SHA1 Message Date
John Benediktsson e6a09a4198 json: some performance improvements. 2013-03-14 18:53:13 -07:00
John Benediktsson 4ed70f0ab7 json.writer: slightly faster using first2. 2012-07-11 20:47:38 -07:00
John Benediktsson af2d3a9761 json.writer: using interleave is much cleaner (thanks @jckarter!). 2012-07-11 20:41:25 -07:00
John Benediktsson 94aa0b6c7f json.writer: faster writing, makes the json benchmark almost twice as fast. 2012-07-11 19:31:57 -07:00
John Benediktsson 8d4ab73a52 json.reader: make json parsing faster for files that contain a lot of spaces. 2012-07-11 18:45:10 -07:00
Joe Groff eee483654a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman be12f2b27d Make "foo.private" require load foo instead.
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201.
2011-11-02 11:50:03 -07:00
John Benediktsson fd853f9958 Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
John Benediktsson c09cf60ab8 json.reader: cleanup and speed up when handling heavily escaped strings. 2011-09-15 07:59:17 -07:00
otoburb 2bb4f1ec14 json.writer: Updated docs to mention the dynamic variable jsvar-encode? 2011-07-05 00:07:59 -04:00
otoburb e33e7f7b17 json.writer: Currified jsvar-encode. Removed whitespace in tuple>fields json output. Added tests to json.writer-tests. 2011-07-04 23:14:51 -04:00
otoburb 8f71d71184 json.writer: Ability to turn jsvar-encode substitution on/off via jsvar-encode? dynamic variable. Added test cases. 2011-06-23 01:28:24 -04:00
Joe Groff 201ec1eaa4 json.reader: factor read-jsons from json> 2010-06-03 13:11:47 -07:00
Slava Pestov 4ffcf8e50d Remove math.floats.parser now that its no longer needed 2010-02-08 16:52:29 +13:00
Slava Pestov 9724a7d9d1 math.floats.parser: new vocabulary with old string>float word 2010-02-08 08:32:13 +13:00
Joe Groff 78486f0d80 json: if-json-null combinator, in the same vein as if-zero, if-empty, etc. 2010-02-05 14:10:06 -08:00
Alec Berryman 43a7facd09 json reader: correctly handle empty objects in objects
Attempting to parse { "foo" : {} } previously resulted in an error.
(close-hash) expected to consolidate an object into the values of the
containing object (in the first line of code).  While there is none in
the case of the empty hash, the structure of the accumulator looked like
it contained an unconsolidated object, so it folded the values into the
keys and got very confused.
2009-12-27 01:29:12 +13:00
Keith Lazuka 8f79ea91ba docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman 47fab85a00 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Joe Groff 2ac4a2c85d json.reader doesn't need to USE: math.parser.private anymore since I made float>string public 2009-09-11 20:29:02 -05:00
Philipp Winkler db29ac4870 Fix a error parsing out nested arrays. 2009-06-06 20:49:44 -07:00
Philipp Winkler ea25031e6a Add a hand parser. Improves speed from 23 seconds to 0.03 seconds when parsing a 123Kb string. 2009-06-04 11:25:33 -07:00
Slava Pestov 4d438a3edd Remove cruddy string encoding/decoding code from VM 2009-05-02 13:45:38 -05:00
Slava Pestov dced1da5b5 More JSON tweaks 2008-11-15 03:09:57 -06:00
Slava Pestov e313988bf0 json.writer now converts ratios to floats 2008-11-15 03:07:55 -06:00
Slava Pestov 3d83ed07fd Minor documentation updates: json, xml, serialize 2008-11-14 22:49:17 -06:00
Peter Burns a4cecaaf40 swap drop === nip 2008-11-08 13:45:45 -08:00
Peter Burns 64cdabf57a A bit more refactoring and testing of json.reader 2008-11-08 12:08:58 -08:00
Peter Burns 706da24b8c Refactored json.reader, added a couple more unit tests, no more rationals 2008-11-07 20:00:19 -08:00
Peter Burns 6e22f39f46 Rewrote json.reader to use peg.ebnf 2008-11-06 21:45:24 -08:00
Peter Burns e631e1ca08 Normalized spacing to 4 space tabs in json modules 2008-11-06 04:41:53 -08:00
Peter Burns 986ea40835 Changed json-null to a SINGLETON for method dispatch 2008-11-06 04:38:12 -08:00
Peter Burns 260862603c Added some tests for json.writer, fixed a bug with t >json and json-null >json 2008-11-06 04:26:49 -08:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Slava Pestov cf80dd122a Updating code for make and fry changes 2008-09-10 22:11:40 -05:00
Slava Pestov 724fae53e9 Move web framework to basis 2008-09-04 18:15:13 -05:00