und C, Java, ...
Dr. Stefan Behnel
(Cython Core-Entwickler, Consultant und Schulungsleiter)
Skoobe - http://skoobe.de/
Quelle: Computer Language Benchmark Game (Shootout), 17.08.2012
... wie schnell ging das?
Anzahl Code-Zeilen bei ähnlichen Projekten:
(Pi x Daumen, aus Beiträgen auf comp.lang.python)
Code, den es nicht gibt,
=> Spitze !
Grobe Abschätzung über Ohloh-Statistiken
Open-Source-Projekte, Stand 29.09.2012
Sprache | Projekte | #Zeilen | #/Projekt | 1/Py |
---|---|---|---|---|
Python | 49.157 | 288.210.068 | 5.863 | 1,0 |
Ruby | 38.931 | 224.775.029 | 5.774 | 1,0 |
JavaScript | 87.689 | 1.068.477.617 | 12.185 | 2,1 |
Java | 68.184 | 1.372.759.440 | 20.133 | 3,4 |
C++ | 46.440 | 1.561.464.164 | 33.623 | 5,7 |
C | 57.169 | 3.260.033.266 | 57.024 | 9,7 |
Quelle: https://www.ohloh.net/languages
Einige Gründe:
Vorteile?
"An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl"
Lutz Prechelt, März 2000
http://page.mi.fu-berlin.de/~prechelt/Biblio/jccpprt_computer2000.pdf
"An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl"
Lutz Prechelt, März 2000
http://page.mi.fu-berlin.de/~prechelt/Biblio/jccpprt_computer2000.pdf
"An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl"
Lutz Prechelt, März 2000
http://page.mi.fu-berlin.de/~prechelt/Biblio/jccpprt_computer2000.pdf
"premature optimization is the root of all evil"
-- Donald Knuth
"Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered.
We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.
Yet we should not pass up our opportunities in that critical 3%."
-- Donald Knuth
(in: Computing Surveys, Dezember 1974, Hervorhebung von mir)
Quelle: Computer Language Benchmark Game (Shootout), 17.08.2012
=> 63% weniger Code -> Entwicklungszeit, Wartung, ...
nach Donald Knuth bei vergleichbarer Performance!
"Wir schreiben euer C!" (oder auch mal Fortran)
... unzählige andere im PyPI, für alle Anwendungsfälle
Viel
Spaß
ohne
C++
!
... Hilfsfolien ...
(Mikrocontroller mal beiseite gelassen - siehe PyMite)
Python | #Zeilen | Projekt | #Zeilen | Sprache |
---|---|---|---|---|
Zope 3 | 240.844 | JBoss AS | 1.287.320 | Java |
SQLAlchemy | 118.390 | Hibernate | 1.029.712 | Java |
Django | 147.484 | JSF | 380.820 | Java |
.. | Wicket | 849.862 | Java | |
.. | wt | 251.146 | C++ |
Quelle: https://www.ohloh.net/