A quick introduction to psyco: The Python Compiler Geoff Davis Triangle ZPUG December 6.

Slides:



Advertisements
Similar presentations
OMNISCIENT CODE GENERATION TM a whole-program compilation technology for superior code density and performance.
Advertisements

Introduction to Programming Lecture 2. Today’s Lecture Software Categories Software Categories System Software System Software Application Software Application.
Title of your presentation Jane Doe Hans Müller TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA.
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
JAS in SDA. My Experience My assignment was to use JAS to read SDA data and make plots. –I used OSDA and OSDAphysics to read SDA data. OSDA and OSDAphysics.
MPI and C-Language Seminars Seminar Plan  Week 1 – Introduction, Data Types, Control Flow, Pointers  Week 2 – Arrays, Structures, Enums, I/O,
Copyright © 1998 Wanda Kunkle Computer Organization 1 Chapter 2.1 Introduction.
Geo 118/318 – Introduction to GIS Programming Dr. Jim Graham.
Language Issues Misunderstimated? Sublimable? Hopefuller? "I know how hard it is for you to put food on your family.” "I know the human being and fish.
Introduction to Computers and Programming
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
VBA session 3 Paul Rubinov  My job: diverse audience so Bore you for 15 minutes. Confuse you for the other 15 min.  Feel free to contact me
Introduction to Usability Engineering Learning about your users 1.
1 ITSK 2611 Welcome. 2 Operating System 3 What is an OS Resource Manager –Disk –Memory –CPU Device Manager –Printers –Video Card –Sound Card Utility.
Understanding Eclipse Development Environment Hen-I Yang July 7, 2006
Mark Nelson What are game engines? Fall 2013
Standard Grade Computing SYSTEM SOFTWARE CHAPTER 19.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1-1 Welcome to: CSC225 Introduction to Computer Organization.
Intro to Java & Processing. Review CS is about problem-solving CS is about problem-solving To write programs you must To write programs you must –Be able.
Social Skills Lesson, December 14, What is interrupting?  When you interrupt someone, you talk when they are talking.  It can be very rude to.
Electronic Visualization Laboratory University of Illinois at Chicago VTK-Python and Other CS 526 Things Allan Spale
DUE Introduction to the Android Platform Working Connections 2011.
Keys to a Good Website A guide to creating the almost perfect website! From #1: Help!! I need website help! Quick! From # 2: Easy. Just watch this powerpoint.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
University of Illinois at Chicago Giving Presentations the EVL way Jason Leigh Electronic Visualization Laboratory University of Illinois at Chicago “Jason.
Mike Mabey CSE 598 – Spring 2010Nishanth Kotha Venkata A Robot for Google Wave.
Python – May 11 Briefing Course overview Introduction to the language Lab.
A (very brief) intro to Eclipse Boyana Norris June 4, 2009.
My Digital-Footprint Aaron Quilapio Block B. How can your digital footprint affect you future opportunities? Give at least two examples.
15/06/2006 The Future of Visual DCT EPICS Collaboration 2006 Argonne National Laboratory
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Survey of Program Compilation and Execution Bangor High School Ali Shareef 2/28/06.
Geo 118/318 – Introduction to GIS Programming Dr. Jim Graham.
GOSS iCM Forms Gary Ratcliffe. 2 Agenda Webinar Programme Form Groups Publish Multiple Visual Script Editor Scripted Actions Form Examples.
ASP. NET Differences Dave Webster EMEA Technical Team dave
Grade level: 2 nd grade Content area: Telling time Description: Students will learn how to read a clock. Telling Time.
People with Autism By: Shaked Finkelstein. Introduction Introduction There are so many people among us that have Autism! In March, 2014 the Centers for.
Department of Electronic & Electrical Engineering Introduction to C - The Development cycle. Why C? The development cycle. Using Visual Studio ? A simple.
11 Computers, C#, XNA, and You Session 1.1. Session Overview  Find out what computers are all about ...and what makes a great programmer  Discover.
Course Introduction David Ferry, Chris Gill Department of Computer Science and Engineering Washington University, St. Louis MO 1E81.
Debugging and Printing George Mason University. Today’s topics Review of Chapter 3: Printing and Debugging Go over examples and questions debugging in.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
Static DLX processor Understanding its architecture and available toolset.
Programming Objectives What is a programming language? Difference between source code and machine code What is python? – Where to get it from – How to.
ITP 109 Week 2 Trina Gregory Introduction to Java.
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
1  2004 Morgan Kaufmann Publishers No encoding: –1 bit for each datapath operation –faster, requires more memory (logic) –used for Vax 780 — an astonishing.
Today… Modularity, or Writing Functions. Winter 2016CISC101 - Prof. McLeod1.
As a general rule you should be using multiple languages these days (except for Java)
Geo 118/318 – Introduction to GIS Programming Dr. Jim Graham.
CSCE 343 – Programming Language Concepts Welcome!.
MIX 09 11/30/2017 5:54 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Beginning of Xamarin for iOS development
Development Environment
A Playful Introduction to Programming by Jason R. Briggs
Debugging Memory Issues
Introduction to programming
What’s the difference between the Ribbon and the Quick Access Toolbar?
A (very brief) intro to Eclipse
NGS computation services: APIs and Parallel Jobs
Introduction to Computational Thinking
Geo 118/318 – Introduction to GIS Programming
Web User Interface (WUI) Behavior
A quick introduction.
Embedded System Development Lecture 13 4/11/2007
Plutus Playground Okay, I’m now about to do something very dangerous, which is tell you lot how to actually do something! And we’re even going to do it.
Introduction to Windbg
CSCI 203: Introduction to Computer Science I
DATA MINING Python.
Presentation transcript:

A quick introduction to psyco: The Python Compiler Geoff Davis Triangle ZPUG December 6

What is psyco? Open source python compiler – Very easy to use Only works on 32-bit x86 processors – (or 64 bit in 32-bit compatibility mode)

How to use psyco Quick overview: – import psyco – psyco.full() That’s it! psyco then takes over DEMO

Play nice with Macs If distributing code for mixed platforms, put code in a try block: try: – import psyco – psyco.full() except: – pass

Use psyco selectively psyco tries to compile everything Not always useful – Compilation overhead – Uses lots of memory – Disables pdb Can use psyco more selectively

Precision psyco Can tell psyco to compile individual functions – E.g. SpeedPack – Profiled everything in CMF, then compiled slowest methods with psyco Can have both compiled and uncompiled versions: – fastfunction = psyco.proxy(slowfunction) DEMO

Plug for 10 minute talks Easy to put together! Took me 1 hour Lots of stuff would be useful in this format – Editors / IDEs – Debugging tools – Plone/Zope products – Pure python products No need for a huge, involved presentation Please volunteer!