[Sugar-devel] Rationale behind the JSON -> CJSON switch in Sugar codebase?

Tomeu Vizoso tomeu at sugarlabs.org
Thu Nov 19 10:01:55 EST 2009


On Thu, Nov 19, 2009 at 15:53, Jonas Smedegaard <dr at jones.dk> wrote:
> On Thu, Nov 19, 2009 at 03:11:05PM +0100, Tomeu Vizoso wrote:
>>
>> 2009/11/13 Sascha Silbe <sascha-ml-ui-sugar-devel at silbe.org>:
>>>
>>> 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.
>>
>> Sounds good to me, so maybe we can ask for a minimum of 2.6 for 0.88? How
>> well that plays with Debian and its derivatives?
>
> I recommend you to not tune into specific needs of Debian or other
> particular distros, but aim generally at the FLOSS world.
>
> Generally, the faster you tighten the requirements, the more do you
> discourage the use of long-term supported systems.  Which is bad for
> deployers, especially those with few resources!
>
> So please include fallbacks when using features available only in newer
> backend libraries.  Not to play nice with Debian, but to play nice with
> "slow movers".

I see the value in playing nice with "slow movers" but there's also a
cost to be paid by both upstream and other distros, so if we can get a
better idea of what we actually gain, we can better find the sweetest
spot between old and recent dependencies.

Regards,

Tomeu

>
>  - Jonas
>
> --
> * Jonas Smedegaard - idealist & Internet-arkitekt
> * Tlf.: +45 40843136  Website: http://dr.jones.dk/
>
>  [x] quote me freely  [ ] ask before reusing  [ ] keep private
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIcBAEBCgAGBQJLBVvTAAoJECx8MUbBoAEhsisQAJKJPFTsWJZpbuwx0TiNAMm8
> t6ruywDn9rBz+g82qX6I9TS6QLQM6orbYsG8Sr9qLHIBT99zFPKvOS3mPxxZ+E67
> SCC9eLMeNHgfqkQdmH3tc0anSYirdsJtAMBJFQ28FNJ0LsnEd0dkqRlnr0NpVCPC
> Fv0tSz2X5M7J/+ZntBpkjbKCXmlGvPbGN7K6maegYgDFrEbUJHOQDg9GRlNURqfv
> 7QWRQ8ugDwc1J4dpkm+Wv+hAGOJMN1bri8z86+I+6MLMVu2E/G7782dnE3la2r7P
> JqNoZ0LJhOXFtex5Z+eYdrusyuHL6tvyG3Rq9QW9E9EIxsknzvvcNOvjcyVye8vV
> /xd1hqmQfuliYhZgTf0y9uZXHqiQC38vY9+DsDx1qIUoM0wli3TPpR90eWJbWuam
> EwbNBTvN9SeRCiQlZ4zOLqArBkzTBm/hgFdcEyLknZNzeYzrxEvXMZMcAC3ELTO8
> 1qugKtaoQPHWga9+mqVWHQaIKYirgg5C2pvon5JpPgd4p/Hm8jn61TkDsEJh+k07
> pzELul5atea+RxJ6N8wekJ7uk9fzKdigP07W9X+v7ED0eqeLiQsBzUwWJFb44zp1
> YwYDAbHrY/YQ+Gv5q3BBQ11miJ5FGkwS0bQeHRlTaHjnXTgfKQTGWiOa9hnDB3fh
> MdATnKjuBe0GtpH2wMry
> =sWVX
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>



-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning


More information about the Sugar-devel mailing list