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

By Harald Naumann - Last updated: Monday, February 8, 2010 - Save & Share - Leave a Comment

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.

share save 171 16 The big wedding in the M2M world: Twitter, GPRS and Python
Posted in M2M FAQ, hints, tips • Tags: Top Of Page

Write a comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes