Among proposed optimisations for Python, we find, for instance, the notion of replacing a call like len(‘abc’) by its value (3 in this case). On the one hand, implementing such optimisations makes sense only if the respective instances are executed very often in a program. Otherwise, the gain is just way too small to bother. … Continue reading Why Optimising Python is Hard (1)
Author: Tobias Kohn
Have you ever wondered how a compiler might actually optimise your code to make it run faster? Or would like to know what an Abstract Syntax Tree (AST) is, and what it might be used for? In this article I am going to give an overview of how Python code is transformed into tree form … Continue reading Implementing Code Transformations in Python
It is exciting to see how Computer Science is developing into a proper subject in Swiss schools, findings its way into the curricula from primary schools up to advanced high school courses. In order to continue our support for this development, Prof. Juraj Hromkovic from ETH Zurich, and I have combined our years of experience … Continue reading Teaching Python: “Einfach Informatik”
It is all too obvious that computing devices pervade our daily lives. As we rely on these devices for an ever increasing amount of work, a good and thorough understanding of the underlying principles is crucial. In order to deepen this understanding, the Swiss Federal Department of Economic Affairs, Education and Research dedicated a day … Continue reading TigerJython Meets the Swiss Government
Ever since having been introduced to the wonderful world of LaTeX, I enjoyed tinkering with it, and, in particular, writing my own templates, classes, and packages. With time, I started to aggregate all my modifications into one large document-class, which I called tkDocument. The idea behind this class is to have a template with all … Continue reading My LaTeX-Template
Wieso Programmieren mehr als angewandte Mathematik ist Der folgende Artikel ist im Jahresbericht 2016/17 der Kantonsschule Zürcher Oberland erschienen (in leicht überarbeiteter Form). Forschung heisst immer auch, sich überraschen zu lassen und festzustellen, dass man völlig falsch liegt. So musste ich im Laufe meiner Doktorarbeit über den Informatikunterricht eingestehen, dass zunächst meine eigenen Überzeugungen nicht … Continue reading Die Wissenschaft der Guetsliformen
During the year 2016, I had the chance to work together with Prof. Bill Manaris on an IBM funded project to create a prototype for a cloud-based Python environment. This article summarises my view and some of the experience gained through the project. Python has a long history of being used to access large sysems, … Continue reading Creating an Online Python Environment
An der kalifornischen Küste Morro Bay Ein zarter Nebel streicht noch um den grossen Fels vor der Bucht. Der frische Wind ist kühl und trägt die verlorenen Rufe der Seehunde zu mir her. Mit dem letzten Dunkel der Nacht wirkt der Ozean unter der Nebeldecke fast bedrohlich. Irgendwo klatschen weisse Kronen an Steine. In der … Continue reading Durch Kalifornien
Der erste Tauchgang Für Sandra Ich muss wahnsinnig sein! Nachdem ich den Kindern geholfen habe, ihr Zeug auf das Boot zu packen, klettere ich selbst ziemlich unbeholfen hinein. Ich bin mir die enge und einengende Kleidung nicht gewohnt. Dann werden auch die Badegäste schon immer kleiner und bald sind nur noch die farbigen Sonnenschirme zu … Continue reading Unter Wasser