Re: Future = (Vpython + Glowscript) | Glowscript | ???
Bruce Sherwood <[email protected]> Sat, 9 Jun 2012 12:52:41 -0600
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <CAFDG03j_01pGyjdkrTG_kKLdv0NQ-GCdYov1JkfjyghJjNSthA@mail.gmail.com> |
I agree that using units can be a good thing, especially if one gets an error message when trying to add 5 kilograms to 3 meters. However, among the very many academics I know who use VPython for research or educational purposes, no one else has ever asked for VPython to support physical units. (This may be a lack of imagination on their part, of course.) I judge that implementing units in VPython would be a very major undertaking, and it would have to be done very carefully so as not to affect the execution speed of programs that don't use units. In fact, Kevin Karplus commented that Python with units is rather slow. There are hundreds of details that would have to be addressed in the C++ code, not to mention that numpy and the Boost libraries don't handle units. Unfortunately, very few people have ever contributed to the development and maintenance of the central C++ component of VPython, possibly because it is multithreaded C++ with connections to Boost libraries, numpy, and OpenGL, which means that it can be daunting. I personally see far more to do than I can accomplish within the domain of wants and needs that are important to all VPython users. That means that someone(s) would have to step forward and take on what is probably a very big task if units are to be supported in VPython. Bruce Sherwood ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/