Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15116

Re: Forking simplejson

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 <python-python-list@m.gmane.org>
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 <tjreedy@udel.edu>
Subject Re: Forking simplejson
Date Fri, 28 Oct 2011 16:52:43 -0400
References <CAL7_Mo8cLHxh9bt1NvmJFDzLMz9K3gm9k53JRzRSKQPB1485BA@mail.gmail.com> <CAMZYqRQc5ywN0V-X+vLAuJs5O9vjL1=FOrzWaLdjMY+vJAsuug@mail.gmail.com> <CAL7_Mo9VC1Sf-gM=efbV+wxTGV4_RXvqP1-BTAv438X41yPVuQ@mail.gmail.com> <CAOFbRmKiOV+noWrLVXzjSYGLCXBas4fvbaHQgaVYKc9-jsChjQ@mail.gmail.com>
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 <CAOFbRmKiOV+noWrLVXzjSYGLCXBas4fvbaHQgaVYKc9-jsChjQ@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2294.1319835184.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Forking simplejson Terry Reedy <tjreedy@udel.edu> - 2011-10-28 16:52 -0400

csiph-web