Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!news-transit.tcx.org.uk!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'xml,': 0.05; 'json': 0.07; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; '(those': 0.09; 'encoder': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subclass': 0.09; 'tries': 0.15; 'why.': 0.15; 'reedy': 0.16; 'sane': 0.16; 'torn': 0.16; 'volunteered': 0.16; 'looked': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'header:In-Reply-To:1': 0.22; 'faster,': 0.23; 'tests.': 0.23; 'pm,': 0.24; 'code': 0.25; 'tests': 0.25; 'xml': 0.25; "i'm": 0.27; 'putting': 0.28; 'random': 0.28; 'pass': 0.29; 'moving': 0.31; 'version': 0.32; 'coding': 0.32; 'does': 0.32; 'implement': 0.32; 'actually': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'someone': 0.34; 'header:User-Agent:1': 0.34; 'curious': 0.34; 'preliminary': 0.34; 'pretty': 0.35; 'header:X-Complaints- To:1': 0.35; 'uses': 0.35; 'note,': 0.37; 'but': 0.37; 'something': 0.37; '(not': 0.38; 'think': 0.38; 'received:org': 0.38; 'some': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'tasks': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'forward': 0.62; 'straight': 0.63; 'alternative': 0.64; 'show': 0.67; 'care': 0.71; 'nathan': 0.84; 'thing).': 0.84; 'involved.': 0.91; 'tied': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Forking simplejson Date: Fri, 28 Oct 2011 16:52:43 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1319835184 news.xs4all.nl 6877 [2001:888:2000:d::a6]:52340 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15116 On 10/28/2011 1:20 PM, Nathan Rice wrote: > Just a random note, I actually set about the task of re-implementing a > json encoder which can be subclassed, is highly extensible, and uses > (mostly) sane coding techniques (those of you who've looked at > simplejson's code will know why this is a good thing). So far > preliminary tests show the json only subclass of the main encoder > basically tied in performance with the python implementation of > simplejson. The C version of simplejson does turn in a performance > about 12x faster, but that's apples to oranges. The design of the > encoder would also make a XML serializer pretty straight forward to > implement as well (not that I care about XML, *blech*). > > I'm torn between just moving on to some of my other coding tasks and > putting some time into this to make it pass the simplejson/std lib > json tests. I really do think the standard lib json encoder is bad Python is the result of people who thought *something* was 'bad' > and I would like to see an alternative in there and volunteered the effort to make something better. > but I'm hesitant to get involved. As someone who is involved and tries to encourage others, I am curious why. -- Terry Jan Reedy