Mathics has about 25K lines of python of which only about 10 lines are platform specific. There are also about 100K lines of JS, but much of it is automatically generated or libraries. Admittedly it is missing lots of the features of Mathematica, but I think its an interesting comparison to make.<p>Disclaimer: I'm a developer for Mathics