wer braucht Telit GM 862 Quad günstig

#2140052
Lesenswert?
• ▲
▼
Hallo zusammen, die neuen GSM-Module von Telit haben immer einen Python 
Interpreter an Board. Denn Unterschied mit der der Endung PY gibt es 
nicht mehr.

*fett*Python*fett*
Python is an object-oriented, strictly, dynamically typed, lexically 
scoped programming language
Its object model is quite flexible (single-dispatch, metaclasses, 
everything is an object), and somewhat similar to that of Smalltalk. 
Python has some functional programming features: first-class functions, 
map(), reduce(), list comprehensions, and lexical closures. Python is a 
very "free-form" language with very few ways of invariant construction.

*fett*Comparing Python with Java*fett*
Python is expected to run slower than Java, but they also take much less 
time to develop. 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.
1
Java-Code
2
public class HelloWorld
3
{
4
    public static void main (String[] args)
5
    {
6
        System.out.println("Hello, world!");
7
    }
8
}
9
 
10
if ( a > b )
11
{
12
    a = b;
13
    b = c;
14
}
Es geht in Python deuttlich kürzer und schneller.
1
Python-Code
2
print "Hello, world!"
3
 
4
if  a > b :
5
    a = b
6
    b = c

*fett*Comparing Python with C++*fett*
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. Python shines as a 
glue language, used to combine components written in C++.

Für kleine bis mittlere Applikationen mit der "heißen" Nadel gestrickt 
ist Python toll. Bei Senkung des Stromverbrauchs oder Apps in Richtung 
Echtzeitfähigkeit ist Python zu langsam. Python läuft auf dem obersten 
Software-Layer des Moduls. Wenn das Gerät die Zelle wechselt, dann 
bleibt das Pythonscript stehen. Einen Impuls eines Tastendrucks kann man 
ohne externe Beschaltung sicher nicht erkennen. Geht nicht gibt es 
nicht, aber geht schwer gibt es. Wer weitere Ideen oder Hinweise zum Bau 
von Wireless M2M-Geräten sucht kann gerne mein Twitter oder Blog 
abonnieren.
Gruß
Harald Naumann
http://twitter.com/H_Naumann Blog:http://www.gsm-modem.de/M2M/
Angehängte Dateien:

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren