[Sugar-devel] Rationale behind the JSON -> CJSON switch in Sugar codebase?
Jonas Smedegaard
dr at jones.dk
Fri Nov 13 08:43:14 EST 2009
On Fri, Nov 13, 2009 at 01:10:35PM +0100, Sascha Silbe wrote:
>On Fri, Nov 13, 2009 at 10:12:11AM +0000, Daniel Drake wrote:
>
>>>As Tomeu mentions, Python 2.6 reduces the cjson/json performance
>>>advantage.
>>OK, didn't see this. Yes, using python standard library seems like the
>>way to go.
>Unfortunately not all distros ship Python 2.6 yet, most notably
>Debian. So we need to at least fall back to simplejson for those.
Generally, I recommend Sugarlabs to document clearly in source of the
various components (e.g. in an INSTALL file) which versions of Python
the code is expected to work against, and which version has been
extensively tested.
One thing is that Debian do not currently ship Python 2.6 as default
version of Python. Another is that we ship multiple versions
concurrently, and attempt[1] to allow users to choose at runtime.
Currently I package Sugar packages with the assumption that they all
work with Python 2.5 and newer - but it would sure be better if you
explicitly stated which version were a) believed working and b) actually
tested.
...or that you provide refression tests, so that distributors can
automatically discover if some odd setup suddently stop working at a
"minor" Sugar update.
- Jonas
[1] it is often difficult to package for multiple Python releases, so
some package maintainers choose the easier approach of only packaging
for whatever is the default version (which allows Ubuntu to switvh to
their often newer default version with a simple rebuild of same
packaging, but does not allow users at runtime to switch to a different
version for that Python module - and all dependent modules).
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20091113/24b56b9c/attachment.pgp
More information about the Sugar-devel
mailing list