38
PROCESSOR, COMPILER AND PYTHON AS PROGRAMMING LANGUAGE AgusBejo, D.Eng. Digital System Laboratory Dept. of Electrical Engineering and Information Technology, Faculty of Engineering, Universitas GadjahMada Kopdar Python ID Jogja, 4 Februari 2017

Processor, Compiler and Python Programming Language

Embed Size (px)

Citation preview

Page 1: Processor, Compiler and Python Programming Language

PROCESSOR, COMPILER AND PYTHON

AS PROGRAMMING LANGUAGE

Agus Bejo, D.Eng.

Digital System Laboratory

Dept. of Electrical Engineering and Information Technology,

Faculty of Engineering, Universitas Gadjah Mada

Kopdar Python ID Jogja, 4 Februari 2017

Page 2: Processor, Compiler and Python Programming Language

FIRST EXPERIENCE WITH PYTHON

2013 - Twitter Crawling:Using the Twitter stream API to visualize tweets on Google Maps

Kopdar Python ID Jogja, 4 Februari 2017

Page 3: Processor, Compiler and Python Programming Language

BIODATAKopdar Python ID Jogja, 4 Februari 2017

Page 4: Processor, Compiler and Python Programming Language

GAMA32 Processor• Processor Design• Compiler Design• Porting Linux Kernel

RESEARCH FIELD IKopdar Python ID Jogja, 4 Februari 2017

Page 5: Processor, Compiler and Python Programming Language

Fingerprint AuthenticationRESERARCH FIELD II

� Net-banking� e-moblie payment

� e-money

Kopdar Python ID Jogja, 4 Februari 2017

Page 6: Processor, Compiler and Python Programming Language

Michael Schumacher“A seven-time Formula One World Champion”

Who is he

INTRODUCTIONKopdar Python ID Jogja, 4 Februari 2017

Page 7: Processor, Compiler and Python Programming Language

INTRODUCTION

Which one is faster

Application

Processor

Algo Code

Kopdar Python ID Jogja, 4 Februari 2017

Page 8: Processor, Compiler and Python Programming Language

INTRODUCTION

Which one is more convenient

Compiler

Kopdar Python ID Jogja, 4 Februari 2017

Page 9: Processor, Compiler and Python Programming Language

How application running on processor

INTRODUCTION

Application

Algo CodeCompilerProcessor

Kopdar Python ID Jogja, 4 Februari 2017

Page 10: Processor, Compiler and Python Programming Language

• High-Level Language

• Middle-Level Language (Assembly Code)

• Low-Level Language (Machine Code)

LANGUAGE ABSTRACTIONKopdar Python ID Jogja, 4 Februari 2017

Page 11: Processor, Compiler and Python Programming Language

Source: http://www.phonearena.com/news/Qualcomm-is-still-the-mobile-processor-market-leader-Intel-pretty-close-to-MediaTek_id532

MOBILE PLATFORM WAR

App.

Processor

Kopdar Python ID Jogja, 4 Februari 2017

Page 12: Processor, Compiler and Python Programming Language

Application Processor - System on ChipKopdar Python ID Jogja, 4 Februari 2017

Page 13: Processor, Compiler and Python Programming Language

SHARE MARKET SMARTPHONE SOCKopdar Python ID Jogja, 4 Februari 2017

Page 14: Processor, Compiler and Python Programming Language

QUALCOMM - Snapdragon SoC

ARM

processor

Kopdar Python ID Jogja, 4 Februari 2017

Page 15: Processor, Compiler and Python Programming Language

IPHONE – Apple SoC

ARM

processor

Kopdar Python ID Jogja, 4 Februari 2017

Page 16: Processor, Compiler and Python Programming Language

MEDIATEK - SoC

ARM

processor

Kopdar Python ID Jogja, 4 Februari 2017

Page 17: Processor, Compiler and Python Programming Language

SAMSUNG – Exynos SoC

ARM

processor

Kopdar Python ID Jogja, 4 Februari 2017

Page 18: Processor, Compiler and Python Programming Language

NVIDIA SoC

ARM

processor

Kopdar Python ID Jogja, 4 Februari 2017

Page 19: Processor, Compiler and Python Programming Language

Why ARM

ARM Processor

ASIP

Jazelle: Java Accellerator

Kopdar Python ID Jogja, 4 Februari 2017

Page 20: Processor, Compiler and Python Programming Language

BUSINESS MODEL

Example:� Product: Mi5, LG5, HTC, etc� SoC: Snapdragon 820� Chip Manufac: Samsung� Processor: ARM

Kopdar Python ID Jogja, 4 Februari 2017

Page 21: Processor, Compiler and Python Programming Language

PROGRAMMING LANGUAGE

CODING

(Programming Languages)

Processor

Kopdar Python ID Jogja, 4 Februari 2017

Page 22: Processor, Compiler and Python Programming Language

PROGRAMMING LANGUAGE

What is the best Programming Language

Kopdar Python ID Jogja, 4 Februari 2017

Page 23: Processor, Compiler and Python Programming Language

PROGRAMMING LANGUAGE

What is the mot popular Programming Language

Kopdar Python ID Jogja, 4 Februari 2017

Page 24: Processor, Compiler and Python Programming Language

CODING

(Programming

Languages)

Compiled

(Programming)

Intrepreted

(Scripting)

Python, Java, Ruby, Matlab, PHP, JavaScript, R

C, Java, Pascal, Basic, Cobol, Fortran, ADA, Go

PROGRAMMING LANGUAGEKopdar Python ID Jogja, 4 Februari 2017

Page 25: Processor, Compiler and Python Programming Language

Compiler- Translasi off-line, - Optimisasi kode baik,- Eksekusi lebih cepat- Lebih rumit bagi programmer

Translator- Translasi on-line, - Tidak ada optimisasi kode,- Eksekusi lebih lambat,- Lebih sederhana bagi programmer- Run anywhere

COMPILER VS INTERPRETERKopdar Python ID Jogja, 4 Februari 2017

Page 26: Processor, Compiler and Python Programming Language

COMPILER & INTERPRETER ABSTRACTION

Java

Kopdar Python ID Jogja, 4 Februari 2017

Page 27: Processor, Compiler and Python Programming Language

JAVA

Compiler

Interpteter

Kopdar Python ID Jogja, 4 Februari 2017

Page 28: Processor, Compiler and Python Programming Language

PYTHON

Compiler Intepreter

Kopdar Python ID Jogja, 4 Februari 2017

Page 29: Processor, Compiler and Python Programming Language

Programming Language vs Scripting Language

BossGeneral

Syntax

EmployeeDetail

Syntax

Kopdar Python ID Jogja, 4 Februari 2017

Page 30: Processor, Compiler and Python Programming Language

Programming AbstractionKopdar Python ID Jogja, 4 Februari 2017

Page 31: Processor, Compiler and Python Programming Language

WHY PYTHON?

�Easy to learn�Nice and readable syntax�Less code�Good community�Makes your life easy

Why

Kopdar Python ID Jogja, 4 Februari 2017

Page 32: Processor, Compiler and Python Programming Language

ARTIFICIAL NEURAL NETWORK

ANN is mostly used for Pattern Recognition

Kopdar Python ID Jogja, 4 Februari 2017

Page 33: Processor, Compiler and Python Programming Language

ANN with PYTHON

Python Code

Kopdar Python ID Jogja, 4 Februari 2017

Page 34: Processor, Compiler and Python Programming Language

Automatic Number Plate Recognition (ANPR)

1. Original Image 2. Edge detection

3. Bin + Morp. Opening + Closing 4. Detected Plate Number

5. Char Segmentation

6. Char Recognition

AB1341YA

Neural

Network

Kopdar Python ID Jogja, 4 Februari 2017

Page 35: Processor, Compiler and Python Programming Language

BIOMETRICS – Fingerprint Authentication

1. Original 2. Dir Filter 3. Binarization 4. Thinning 5. Min Extraction

Kopdar Python ID Jogja, 4 Februari 2017

Page 36: Processor, Compiler and Python Programming Language

HOW TO IMPROVE PYTHON PERFORMANCEKopdar Python ID Jogja, 4 Februari 2017

Page 37: Processor, Compiler and Python Programming Language

CALLING C FROM PYTHON

Python-C-API Ctypes

Wripper.py

Kopdar Python ID Jogja, 4 Februari 2017

Page 38: Processor, Compiler and Python Programming Language

� Python adalah salah satu bahasa pemrograman terpoluler saat ini, cocok untuk pengembang aplikasi dengan penekanan pada aspek “rapid development and easy maintenance”.

� Python memiliki sintaks yang mudah sehingga cepat dipelajari/dikuasai oleh orang yang baru belajar sekalipun.

� Efeknya dari fast development time adalah more productifity.

CLOSING STATEMENTKopdar Python ID Jogja, 4 Februari 2017