The big wedding in the M2M world: Twitter, GPRS and Python

Please be so kind and have a look at http://twitter.com/M2Mapps

M2MApps on Twitter shows a weather data of a weather station in Germany. The weather station has a link by GPRS to Internet. The serial link (RS232) of the weather station is wired to a Python powered GPRS modem. The GPRS modem with Python engine: http://tr.im/GVu5

Python is a licence free programming language. Python is an object-oriented, strictly, dynamically typed lexically scoped programming language. Its object model is quite flexible and somewhat similar to that of Smalltalk.

Python code is typically 3-5 times shorter than equivalent Java code. This difference can be attributed to Python’s built-in high-level data types and its dynamic typing.

Java code
public class HelloWorld
{
public static void main (String[] args)
{
System.out.println(“Hello, world!”);
}
}

if ( a > b )
{
a = b;
b = c;
}

Python code
print “Hello, world!”
if  a > b :
a = b
b = c

Almost everything said for Java also applies for C++, just more so: where Python code is typically 3-5 times shorter than equivalent Java code, it is often 5-10 times shorter than equivalent C++ code! Anecdotal evidence suggests that one Python programmer can finish in two months what two C++ programmers can’t complete in a year.

BTW, YouTube is written in Python too. The creator of Python, Guido van Rossum works for Google. Google uses Python for its search engine quality.

Updated: 2011-07-08 — 8:44 AM

Leave a Reply

Your email address will not be published. Required fields are marked *

Blue Captcha Image
Refresh

*