all things py

29
All Things *Py* Random assorted stuff on Py from the world wide web thingy.

Upload: krishna-sangeeth-k-s

Post on 22-Jul-2015

112 views

Category:

Technology


0 download

TRANSCRIPT

All Things *Py*

Random assorted stuff on Py from the world wide web thingy.

Err. What’s in a name Mister?

Roses are red,Violets are blue,Programming languages have Wonderful names.

http://en.wikipedia.org/wiki/List_of_programming_languages

“Over six years ago, in December 1989, I was looking for a "hobby" programming project that would keep me occupied during the week around Christmas. My office ... would be closed, but I had a home computer, and not much else on my hands. I decided to write an interpreter for the new scripting language I had been thinking about lately: a descendant of ABC that would appeal to Unix/C hackers. I chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python’s Flying circus)”

Guido writes

Guido likes to work even during Christmas.

You heard it right. Python have got nothing to do with snakes or snake charmers.

Python is not a new language. It’s been around for a while and battle tested.

& the curious case of beard.

http://www.wired.com/2012/06/beard-gallery/

Forgot to ask. What is your Python?

Is this your Python?

Python lives in JVM too.

.NET and open source :O

One Self eating snake to rule them all.

Hmm.. Interesting.. Maybe.. Maybe not

What about Cython?

Anaconda

This is supposed to be funny.

My bad. The Anaconda distribution of Python for real.

Cpython*

Jython.

IronPython

PyPy.

*Not to be confused with Cython

Implementations of Python

Q: Is Python interpreted or compiled ?

What if someone asks you?

A: Well. It depends on the context.

What do you do when you are not sure of the answer or just want to evade the question completely?

when the guy who asked the question is looking else where..

The simple version.

The longer version.

• IronPython: compiles to DLR trees which the DLR then compiles to CIL bytecode. What happens to the CIL bytecode depends upon which CLI VES you are running on, but Microsoft .NET, GNU Portable.NET and Novell Mono will eventually compile it to native machine code.

• Jython: interprets Python sourcecode until it identifies the hot code paths, which it then compiles to JVML bytecode. What happens to the JVML bytecode depends upon which JVM you are running on.

• PyPy: compiles to PyPy bytecode, which then gets interpreted by the PyPyVM until it identifies the hot code paths which it then compiles into native code, JVML bytecode or CIL bytecode depending on which platform you are running on. There is also a JIT compiling process that happens.

• CPython: compiles to CPython bytecode which it then interprets.

http://stackoverflow.com/questions/2998215/if-python-is-interpreted-what-are-pyc-files

So the smart answer is.

It depends on the context.!!

Implementation details are key to the answer.

CPython is byte code interpreted unless proved otherwise.

How do you Learn Python?

A byte of Python (http://www.swaroopch.com/notes/python/)

The MOOC

& ChennaiPy

Learning never stops.

The Myth of Genius Programmer

Thank You And That’s how Pattambi Railway Station came to existence.!

(A mallu joke so profound that people simply don’t get it unless you are a mallu.)

Questions? Go easy on me!