SlideShare a Scribd company logo
Bilgisayar Mühendisliği Bölümü 
GYTE - Bilgisayar Mühendisliği Bölümü 
CSE 625 
Parallel Computing 
Uğur Tılıkoğlu 
131041018
İçerik 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
2 
• Erlang 
– Problem 
– İhtiyaç 
– Özellikleri 
• Giriş 
– Shell 
– Syntax 
• Demo
Erlang 
• Problem 
– Ericsson AXE santralleri 
– Harika ürün 
– Kötü maintainance 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
3
Erlang 
• İhtiyaç 
– İşlemler makul sürelerde tamamlanmalı 
– İşlemler birden fazla sistem üzerine dağıtılabilmeli 
– Sistem sürekliliği yıllarca devam etmeli 
– Sistem durdurulmadan yazılım bakımı 
yapılabilmeli 
– Fault tolerant olmalı 
– Çok sayıda concurrent işlemi handle edebilmeli 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
4
Erlang 
• Özellikler 
– Lightweight concurrency 
– Async communication 
– Scalable 
– No shared data 
– Immutability 
– Fault isolation and self healing 
– Continuos evolution of the system / dynamic code 
updating 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
5
Giriş 
• Shell 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
6
Giriş 
• Shell 
– Her komut . (dot) ile sonlanır 
– Komutu sonlandırmak için CTRL + G 
– Çıkış q(). 
– Her açılan shell bir node’dur. Node başlarken 
konfigüre etmek için erl executeable’ına ilgili 
parametreler verilir. 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
7
Giriş 
• Syntax 
– Integers: 12 = 10#12 = 2#1100 
– Arithmetic: Floating point division: 10 / 3  
3.33333~, Integer division: 10 div 3  3 
– Variable: büyük harfle başlar 
– Atoms: küçük harfle başlar 
– Strings: ‘foo bar’ 
– Boolean: andalso, orelse 
– Equality: == (equal) , /= (not equal), =:= (exactly 
equal) , =/= (exactly not equal)  1==1.0 true , 
1=:=1.0 false 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
8
Giriş 
• Syntax 
– Tuples: {a, b, c} 
– Lists: [a, b, c] 
– Recursion: List = [Element|List] or []. 
– Function: 
• area({square, Side}) -> 
Side * Side; 
area({circle, Radius}) -> 
math:pi() * Radius * Radius; 
area(Other) -> 
{error, unknown_object}. 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
9
Giriş 
• Syntax 
– Module: 
• .erl extension 
• -module(modulename). 
• -export([methodname/argcount]).  -export([area/1]). 
• Function list: 
• area({square, Side}) -> 
Side * Side; 
area({circle, Radius}) -> 
math:pi() * Radius * Radius; 
area(Other) -> 
{error, unknown_object} 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
10
Demo 
• Distributed Environment 
– erl -sname mynode1 -setcookie mynode1cookie 
– cd("C:/moduledirectory"). 
– compile:file(modulename). 
– net_kernel:connect('node@othernode'). 
– P=module:method('node@othernode'). 
– P ! message 
GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 
11

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Erlang - Uğur Tılıkoğlu

  • 1. Bilgisayar Mühendisliği Bölümü GYTE - Bilgisayar Mühendisliği Bölümü CSE 625 Parallel Computing Uğur Tılıkoğlu 131041018
  • 2. İçerik GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 2 • Erlang – Problem – İhtiyaç – Özellikleri • Giriş – Shell – Syntax • Demo
  • 3. Erlang • Problem – Ericsson AXE santralleri – Harika ürün – Kötü maintainance GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 3
  • 4. Erlang • İhtiyaç – İşlemler makul sürelerde tamamlanmalı – İşlemler birden fazla sistem üzerine dağıtılabilmeli – Sistem sürekliliği yıllarca devam etmeli – Sistem durdurulmadan yazılım bakımı yapılabilmeli – Fault tolerant olmalı – Çok sayıda concurrent işlemi handle edebilmeli GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 4
  • 5. Erlang • Özellikler – Lightweight concurrency – Async communication – Scalable – No shared data – Immutability – Fault isolation and self healing – Continuos evolution of the system / dynamic code updating GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 5
  • 6. Giriş • Shell GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 6
  • 7. Giriş • Shell – Her komut . (dot) ile sonlanır – Komutu sonlandırmak için CTRL + G – Çıkış q(). – Her açılan shell bir node’dur. Node başlarken konfigüre etmek için erl executeable’ına ilgili parametreler verilir. GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 7
  • 8. Giriş • Syntax – Integers: 12 = 10#12 = 2#1100 – Arithmetic: Floating point division: 10 / 3  3.33333~, Integer division: 10 div 3  3 – Variable: büyük harfle başlar – Atoms: küçük harfle başlar – Strings: ‘foo bar’ – Boolean: andalso, orelse – Equality: == (equal) , /= (not equal), =:= (exactly equal) , =/= (exactly not equal)  1==1.0 true , 1=:=1.0 false GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 8
  • 9. Giriş • Syntax – Tuples: {a, b, c} – Lists: [a, b, c] – Recursion: List = [Element|List] or []. – Function: • area({square, Side}) -> Side * Side; area({circle, Radius}) -> math:pi() * Radius * Radius; area(Other) -> {error, unknown_object}. GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 9
  • 10. Giriş • Syntax – Module: • .erl extension • -module(modulename). • -export([methodname/argcount]).  -export([area/1]). • Function list: • area({square, Side}) -> Side * Side; area({circle, Radius}) -> math:pi() * Radius * Radius; area(Other) -> {error, unknown_object} GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 10
  • 11. Demo • Distributed Environment – erl -sname mynode1 -setcookie mynode1cookie – cd("C:/moduledirectory"). – compile:file(modulename). – net_kernel:connect('node@othernode'). – P=module:method('node@othernode'). – P ! message GYTE - Bilgisayar Mühendisliği Bölümü CSE625 Parallel Computing - Erlang 11