Go.

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

Object-Oriented programming in C++ Classes as units of encapsulation Information Hiding Inheritance polymorphism and dynamic dispatching Storage management.
Go Language * Go - Routines * Channels. New Concepts Do not communicate by sharing memory; instead, share memory by communicating. creating shared memory.
Processes CSCI 444/544 Operating Systems Fall 2008.
C++ fundamentals.
Computer Programming 12 Mr. Jean March 3 rd, 2014.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
Programming Languages and Paradigms Object-Oriented Programming.
CSM-Java Programming-I Spring,2005 Introduction to Objects and Classes Lesson - 1.
Chapter 3 Getting Started with C++
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
JavaScript, Fourth Edition
Programming Language C++ Xulong Peng CSC415 Programming Languages.
Chapter 6 Object-Oriented Java Script JavaScript, Third Edition.
111 © 2002, Cisco Systems, Inc. All rights reserved.
Inheritance in the Java programming language J. W. Rider.
C# EMILEE KING. HISTORY OF C# In the late 1990’s Microsoft recognized the need to be able to develop applications that can run on multiple operating system.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
7 1 User-Defined Functions CGI/Perl Programming By Diane Zak.
Introduction to Object-Oriented Programming Lesson 2.
Functions  A Function is a self contained block of one or more statements or a sub program which is designed for a particular task is called functions.
Inheritance Inheritance is the process of extending the functionality of a class by defining a new class that inherit,all the features of extending class.
3/12/2013Computer Engg, IIT(BHU)1 OpenMP-1. OpenMP is a portable, multiprocessing API for shared memory computers OpenMP is not a “language” Instead,
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
1 n Object Oriented Programming. 2 Introduction n procedure-oriented programming consists of writing a list of instructions and organizing these instructions.
TOPIC : SEQUENTIAL AND PARALLEL BLOCKS Module 2.3 : Behavioral modeling in verilog.
Programming in Go(lang)
Chapter 9 Subprograms.
Chapter 10 Programming Fundamentals with JavaScript
Objects as a programming concept
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Objects as a programming concept
Tutorial 12 Working with Arrays, Loops, and Conditional Statements
Programming with ANSI C ++
Learn Go Fast With Riley.
Multithreaded Programming in Java
C Language VIVA Questions with Answers
Classes and Objects in Java
C# and the .NET Framework
Computer Engg, IIT(BHU)
Introduction to PL/SQL
Classes and Objects in Java
Today in OOAD Today in Lab Review EU-Lease Assignment (Vision)
About the Presentations
Classes and Objects in Java
Object-Orientated Programming
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
New trends in parallel computing
CSCI 3370: Principles of Programming Languages Chapter 9 Subprograms
Object Oriented Analysis and Design
Chapter 10 Programming Fundamentals with JavaScript
VISUAL BASIC.
Object-Oriented Programming
Subprograms and Programmer Defined Data Type
Exception Handling In Text: Chapter 14.
Iteration Implemented through loop constructs (e.g., in C++)
Classes and Objects.
Channels.
Chapter 8 Advanced SQL.
CS360 Client/Server Programming Using Java
VIRTUAL FUNCTIONS RITIKA SHARMA.
Channels.
Channels.
Concurrency in GO CS240 23/8/2017.
Threads -For CSIT.
Creating and Using Classes
Threads CSE 2431: Introduction to Operating Systems
Presentation transcript:

Go

Introduction My talk today is about a statically typed programming language - Go. Go features user-friendly concurrency and some special data types, such as slice and interface, that increase program flexibility and performance.

Introduction I will begin by introducing Go’s concise syntax, which contains only 25 keywords, then I’ll talk about the usage and structure of the data types that Go provides. I conclude the advantages of Go and how it stands out from other programming languages.

Syntax Go’s syntax includes changes from C that aimed to keep code concise and readable. Semicolons that terminate statements are unnecessary. Declaration and initialization operators are combined. Functions are allowed to return multiple values.

Slice Type Slice resembles a dynamic array; append() function increases the slice size. The copy() function assigns the reference of the array to another one.

Interface Interface is a collection of methods Data types implementing an interface can use the methods defined in that interface. Empty interface, implemented by every data type, is an interface without any methods. An interface can be implemented by many data types; a data type can implement multiple interfaces.

goroutines goroutine, a type of light-weight process, is the primary concurrency construct. A function call prefixed with the “go” keyword starts a function in a new goroutine. Current implementations multiplex a Go process's goroutines onto a smaller set of operating system threads.

channels Channel allows two goroutines to communicate while executing concurrently. Syntax <-ch Blocks an executing goroutine until a value comes into the channel ch ch <- x sends the x value to channel ch

Conclusion Go’s syntax is relatively more concise and flexible than C. Go enables programmers to implement concurrency more easily. Go provides different ways to implement OOP concepts such as polymorphism.