The Awesomeness of Go. Igor Lankin DevFest Karlsruhe, Nov 2016

Size: px
Start display at page:

Download "The Awesomeness of Go. Igor Lankin DevFest Karlsruhe, Nov 2016"

Transcription

1 The Awesomeness of Go Igor Lankin DevFest Karlsruhe, Nov 2016

2 Igor Lankin Software inovex C#, Java, Java Script, full-time GO (waipu.tv ) 2

3 What is Go? 3

4 An Awesome Programming Language 4

5 Imagine 2007 Awesome Language!!! Sep 21 Robert Griesemer Rob Pike Ken Thompson 5

6 Why? The World has Changed multicore processors networked systems massive computation clusters tens of millions of lines of code web programming see Go at Google: Language Design in the Service of Software Engineering 6

7 Problems Languages did not adapt (well) slow, clumsy development poor concurrency support poor tooling slow compilation 7

8 New Language 2007 Awesome Language!!! Sep 21 Robert Griesemer Rob Pike Ken Thompson 8

9 1. Awesome By Design Goal: Create an Awesome Language make programming fun again higher productivity modern language: gc, networking, concurrency 9

10 Two Years Later Awesome Language!!! Robert Griesemer Rob Pike Ken Thompson 10

11 Birth of Go November 10,

12 2. Awesome Mascot: Gopher By Renée French 12

13 Awesome Result Go native language with "scripty" feeling statically typed, object oriented (kinda) simple, pragmatic, efficient built for scalability, multiprocessing, networking 13

14 Examples package main import "fmt" type Rect struct { } Width, Height int func main() { sum := 0 for i := 0; i < 10; i++ { if i%2 == 0 { fmt.println(i) sum += i } } fmt.println(sum) } func (r *Rect) Area() int { return r.width * r.height } rect := Rect{6, 7} fmt.printf( %v has an area of %d\n, rect, rect.area()) 14

15 3. Awesomely Readable clean, concise syntax reduced typing no stuttering: foo.foo *myfoo = new foo.foo(foo.foo_init) //?? flat type system clear control flow standardized formatting 15

16 Tabs vs Spaces 16

17 4. End of the Holy War TABS! standardized formatting no style guide automatic code formatting (> go fmt) no choice (really) 17

18 5. Awesome Tooling fast compiler (go build) dependency management (go get) testing, coverage, benchmarks (go test) profiler, static code analysis (go test) documentation, formatting (go doc, go fmt) great editors: vs code, sublime, atom, intellij awesome 3rd-party tools 18

19 Visualizing Concurrency gotrace: Fan-In 19

20 6. Awesome Community Share all the code fast-growing open-source libraries, tools, projects easy to share and reuse: import "github.com/aws/aws-sdk-go/aws" docs: godoc.org/github.com/aws/aws-sdk-go/aws github.com/avelino/awesome-go golanglibs.com 20

21 7. Awesomely Popular 21

22 Who is using Go? Cool Folks Only! inovex GmbH, waipu.tv (exaring) Google: Youtube, kubernetes, dl.google.com Apple, Twitter, docker, Dropbox, SoundCloud, github.com/golang/go/wiki/gousers Popular among pythoners, IT-engineers 22

23 8. Awesome Performance Java < Go < C++ ~10-20% faster in v1.7 (amd64) x% faster in v1.8? (Jan 2017) compiled, garbage-collected superior concurrency => better CPU utilization 23

24 The End Of Moors Law 24

25 9. Awesome for Concurrency built-in support comprehensible concurrency, that keeps you sane (mostly) 1. lightweight threads (goroutines) 2. safe communication (channels) 25

26 goroutines go dosomething() 26

27 func say(text string, delay int) { time.sleep(time.duration(delay) * time.second) fmt.println(text) } func main() { go say("let's go!", 3) go say("ho!", 2) go say("hey!", 1) fmt.println("waiting...") time.sleep(4 * time.second) } 27

28 28

29 Do not communicate by sharing memory; share memory by communicating. - Rob Pike 29

30 Communicating Sequential Processes (CSP) Interaction between concurrent systems (T. Hoare, 1977) Channel 30

31 31

32 var ch = make(chan string) func say(text string, delay int) { time.sleep(time.duration(delay) * time.second) ch <- text } func main() { go consume() go say("let's go!", 3) go say("ho!", 2) go say("hey!", 1) func consume() { for { message := <-ch fmt.println(message) } } } time.sleep(4 * time.second) 32

33 goroutines + channels = <3 very powerful concept easy to use safe communication comprehensible concurrency, that keeps you sane (mostly) 33

34 10. Awesomely Pragmatic Keep it simple pragmatic attitude remove waste (language, tools, libraries) keep things small, comprehensible (minimalistic) lets you focus on the problem 34

35 11. Awesome for Web Services And more not only for infrastructure cool frameworks for web services small, simple, beautiful but you can also build complex monoliths, too ;) 35

36 Everything Awesome? "90% Perfect, 100% of the time" Missing features: generics, thread-safe data structures May be confusing: slices, nil, pointers, range variable You need to think differently Modelling can be tricky But it still is pretty awesome! ;) 36

37 12. Awesomely Easy to Start golang.org welcome/ - A Tour of Go faq/ - FAQ doc/effective_go.html - Deep Dive play.golang.org gobyexample.com - Examples 37

38 Vielen Dank Igor Lankin Software Developer inovex GmbH Ludwig-Erhard-Allee

Erlang and Go (CS262a, Berkeley Fall 2016) Philipp Moritz

Erlang and Go (CS262a, Berkeley Fall 2016) Philipp Moritz Erlang and Go (CS262a, Berkeley Fall 2016) Philipp Moritz The Problem Distributed computation is hard! State Hard to do recovery, dependency on order of execution Concurrency and Synchronization Hard to

More information

Introduzione a Go e RPC in Go

Introduzione a Go e RPC in Go Università degli Studi di Roma Tor Vergata Dipartimento di Ingegneria Civile e Ingegneria Informatica Introduzione a Go e RPC in Go Corso di Sistemi Distribuiti e Cloud Computing A.A. 2017/18 Valeria Cardellini

More information

The Go Programming Language. Frank Roberts

The Go Programming Language. Frank Roberts The Go Programming Language Frank Roberts frank.roberts@uky.edu - C++ (1983), Java (1995), Python (1991): not modern - Java is 18 years old; how has computing changed in 10? - multi/many core - web programming

More information

Go Forth and Code. Jonathan Gertig. CSC 415: Programing Languages. Dr. Lyle

Go Forth and Code. Jonathan Gertig. CSC 415: Programing Languages. Dr. Lyle J o n a t h a n G e r t i g P a g e 1 Go Forth and Code Jonathan Gertig CSC 415: Programing Languages Dr. Lyle 2013 J o n a t h a n G e r t i g P a g e 2 Go dogs Go or A Brief History of Go 6 years ago

More information

Go Language September 2016

Go Language September 2016 Go Language September 2016 Giacomo Tartari PhD student, University of Tromsø http://127.0.0.1:3999/golang2016.slide#34 1/53 Go http://127.0.0.1:3999/golang2016.slide#34 2/53 Why? Rob Pike's take (one of

More information

Motivations History Principles Language Gommunity Success stories Conclusion. Let s Go! A brief introduction to Google s new language.

Motivations History Principles Language Gommunity Success stories Conclusion. Let s Go! A brief introduction to Google s new language. Let s Go! A brief introduction to Google s new language Aurélien Dumez Inria Bordeaux - Sud-Ouest aurelien.dumez@inria.fr Tuesday, October 2nd 2012 Content - 1/2 1 2 3 4 Characteristics SDK vs Examples

More information

Lecture 22 Go http://xkcd.com/979/ Go developed ~2007 at Google by Robert Griesemer, Rob Pike, Ken Thompson open sourced in 2009 compiled, statically typed very fast compilation C-like syntax garbage collection

More information

Jython. An introduction by Thinh Le

Jython. An introduction by Thinh Le Jython An introduction by Thinh Le precursor_python! Google App Engine! Dropbox! PyGTK (Gnome)! Vim (embedded)! BitTorrent/Morpheus! Civilization/Battlefield Jython! Interpretation of Python (1997)! Jim

More information

Go on NetBSD (and pkgsrc!) A modern systems programming language 23 March Benny Siegert Google Switzerland; The NetBSD Foundation

Go on NetBSD (and pkgsrc!) A modern systems programming language 23 March Benny Siegert Google Switzerland; The NetBSD Foundation Go on NetBSD (and pkgsrc!) A modern systems programming language 23 March 2013 Benny Siegert Google Switzerland; The NetBSD Foundation Agenda What is Go? Building Go code with the gotool Running Go code

More information

Lecture 4: Golang Programming. Lecturer: Prof. Zichen Xu

Lecture 4: Golang Programming. Lecturer: Prof. Zichen Xu Lecture 4: Golang Programming Lecturer: Prof. Zichen Xu Outline The history The reason The code Sophistication If more than one function is selected, any function template specializations in the set are

More information

Using the Go Programming Language in Practice

Using the Go Programming Language in Practice Using the Go Programming Language in Practice Erik Westrup & Fredrik Pettersson Department of Computer Science, Lund University Axis Communications, Sweden May 28, 2014 Supervisors: Jonas Skeppstedt

More information

developed ~2007 by Robert Griesemer, Rob Pike, Ken Thompson open source

developed ~2007 by Robert Griesemer, Rob Pike, Ken Thompson open source Go developed ~2007 by Robert Griesemer, Rob Pike, Ken Thompson open source compiled, statically typed syntax looks sort of like C garbage collection built-in concurrency no classes or type inheritance

More information

go get my/vulnerabilities Green threads are not eco friendly threads

go get my/vulnerabilities Green threads are not eco friendly threads go get my/vulnerabilities Green threads are not eco friendly threads 1 Who ( Web Mobile ) penetration tester Code reviewer Programmer Roberto Clapis @empijei 2 Go Google s language Born in 2007 (quite

More information

Go Concurrent Programming. QCon2018 Beijing

Go Concurrent Programming. QCon2018 Beijing Go Concurrent Programming chao.cai@mobvista.com QCon2018 Beijing Shared Memory Model Shared Memory Model class Worker implements Runnable{ private volatile boolean isrunning = false; @Override public void

More information

Go for Java Developers

Go for Java Developers Go for Java Developers Stoyan Rachev May 26-27 16, Sofia 1 Agenda Introduction Variables and Control Flow Types and Data Structures Functions Methods and Interfaces Concurrency Conclusion 2 What is Go?

More information

Pursuit of stability. Growing AWS ECS in production. Alexander Köhler Frankfurt, September 2018

Pursuit of stability. Growing AWS ECS in production. Alexander Köhler Frankfurt, September 2018 Pursuit of stability Growing AWS ECS in production Alexander Köhler Frankfurt, September 2018 Alexander Köhler DevOps Engineer Systems Engineer Big Data Engineer Application Developer 2 @la3mmchen inovex

More information

THE GO PROGRAMMING LANGUAGE CHARACTERISTICS AND CAPABILITIES

THE GO PROGRAMMING LANGUAGE CHARACTERISTICS AND CAPABILITIES Годишник на секция Информатика Съюз на учените в България Том 6, 2013, 76 85 Annual of Informatics Section Union of Scientists in Bulgaria Volume 6, 2013, 76 85 THE GO PROGRAMMING LANGUAGE CHARACTERISTICS

More information

New Parallel Programming Languages for Optimization Research

New Parallel Programming Languages for Optimization Research New Parallel Programming Languages for Optimization Research John W. Chinneck, Stephane Ernst Systems and Computer Engineering Carleton University, Ottawa, Canada Motivation Challenges for optimization

More information

Kotlin for Android Developers

Kotlin for Android Developers Kotlin for Android Developers Learn Kotlin the easy way while developing an Android App Antonio Leiva This book is for sale at http://leanpub.com/kotlin-for-android-developers This version was published

More information

Let s Go! Akim D le, Etienne Renault, Roland Levillain. June 8, TYLA Let s Go! June 8, / 58

Let s Go! Akim D le, Etienne Renault, Roland Levillain. June 8, TYLA Let s Go! June 8, / 58 Let s Go! Akim Demaille, Etienne Renault, Roland Levillain June 8, 2017 TYLA Let s Go! June 8, 2017 1 / 58 Table of contents 1 Overview 2 Language Syntax 3 Closure 4 Typed functional programming and Polymorphism

More information

understanding

understanding understanding nil @francesc thanks welcome every single one of you agenda what is nil? what is nil in Go? what does nil mean? is nil useful? nil? you misspelled null how I learn words how I learn words

More information

func findbestfold(seq string, energyfunction func(fold)float64)) Fold {

func findbestfold(seq string, energyfunction func(fold)float64)) Fold { Carl Kignsford, 0-0, Fall 0 Loose Ends Functions as values of variables Sometimes it would be useful to pass a function as a parameter to another function. For example, suppose you were writing a protein

More information

Go Tutorial. To do. A brief, gentle intro to Go. Next Networking. q Today

Go Tutorial. To do. A brief, gentle intro to Go. Next Networking. q Today Go Tutorial To do q Today A brief, gentle intro to Go q Next Networking About Go Developed by Google Webpage: https://golang.org/ Concurrency was a priority in the language design A bit of a mix between

More information

Kotlin for Android Developers

Kotlin for Android Developers Kotlin for Android Developers Learn Kotlin the easy way while developing an Android App Antonio Leiva This book is for sale at http://leanpub.com/kotlin-for-android-developers This version was published

More information

Another Go at Language Design

Another Go at Language Design Another Go at Language Design Rob Pike golang.org April 28, 2010 http://golang.org Who Russ Cox Robert Griesemer Rob Pike Ian Taylor Ken Thompson plus David Symonds, Nigel Tao, Andrew Gerrand, Stephen

More information

CS 220: Introduction to Parallel Computing. Introduction to CUDA. Lecture 28

CS 220: Introduction to Parallel Computing. Introduction to CUDA. Lecture 28 CS 220: Introduction to Parallel Computing Introduction to CUDA Lecture 28 Today s Schedule Project 4 Read-Write Locks Introduction to CUDA 5/2/18 CS 220: Parallel Computing 2 Today s Schedule Project

More information

Last Time: Objects and Abstraction. If it walks like a circle, swims like a circle, and quacks like a circle...!

Last Time: Objects and Abstraction. If it walks like a circle, swims like a circle, and quacks like a circle...! Pointers 02-201 Last Time: Objects and Abstraction If it walks like a circle, swims like a circle, and quacks like a circle...! Bird s Eye View of Object-Oriented Programming http://null-byte.wonderhowto.com!

More information

Don t let data Go astray

Don t let data Go astray Don t let data Go astray A Context-Sensitive Taint Analysis for Concurrent Programs in Go Volker Stolz Bergen University College, Norway & University of Oslo, Norway 28 th Nordic Workshop on Programming

More information

GO SHORT INTERVIEW QUESTIONS EXPLAINED IN COLOR

GO SHORT INTERVIEW QUESTIONS EXPLAINED IN COLOR GO SHORT INTERVIEW QUESTIONS EXPLAINED IN COLOR REVISION 1 HAWTHORNE-PRESS.COM Go Short Interview Questions Explained in Color Published by Hawthorne-Press.com 916 Adele Street Houston, Texas 77009, USA

More information

Overview. Rationale Division of labour between script and C++ Choice of language(s) Interfacing to C++ Performance, memory

Overview. Rationale Division of labour between script and C++ Choice of language(s) Interfacing to C++ Performance, memory SCRIPTING Overview Rationale Division of labour between script and C++ Choice of language(s) Interfacing to C++ Reflection Bindings Serialization Performance, memory Rationale C++ isn't the best choice

More information

Introduction to the Go Programming Language

Introduction to the Go Programming Language Introduction to the Go Programming Language Basics, Concurrency and Useful Packages Fabian Wenzelmann April 6, 2017 F. Wenzelmann Introduction to Go April 6, 2017 1 / 114 Why Go? What is Go? Go is a programming

More information

Parallelism. Master 1 International. Andrea G. B. Tettamanzi. Université de Nice Sophia Antipolis Département Informatique

Parallelism. Master 1 International. Andrea G. B. Tettamanzi. Université de Nice Sophia Antipolis Département Informatique Parallelism Master 1 International Andrea G. B. Tettamanzi Université de Nice Sophia Antipolis Département Informatique andrea.tettamanzi@unice.fr Andrea G. B. Tettamanzi, 2014 1 Lecture 5, Part a Languages

More information

Future Web App Technologies

Future Web App Technologies Future Web App Technologies Mendel Rosenblum MEAN software stack Stack works but not the final say in web app technologies Angular.js Browser-side JavaScript framework HTML Templates with two-way binding

More information

Go Cheat Sheet. Operators. Go in a Nutshell. Declarations. Basic Syntax. Hello World. Functions. Comparison. Arithmetic. Credits

Go Cheat Sheet. Operators. Go in a Nutshell. Declarations. Basic Syntax. Hello World. Functions. Comparison. Arithmetic. Credits Credits Go Cheat Sheet Most example code taken from A Tour of Go, which is an excellent introduction to Go. If you're new to Go, do that tour. Seriously. Original HTML Cheat Sheet by Ariel Mashraki (a8m):

More information

Das Frontend ist ja dann trivial - Microservices und Web-Frontends. Matthias Reuter & Michael Bruns Darmstadt,

Das Frontend ist ja dann trivial - Microservices und Web-Frontends. Matthias Reuter & Michael Bruns Darmstadt, Das Frontend ist ja dann trivial - Microservices und Web-Frontends Matthias Reuter & Michael Bruns Darmstadt, 22.06.2017 Matthias Reuter inovex GmbH Frontend developer I build stuff for the Internet Michael

More information

MegoSAT. A concurrent SAT solver in Go. Today: Search for directions. Lukas Prokop

MegoSAT. A concurrent SAT solver in Go. Today: Search for directions. Lukas Prokop MegoSAT A concurrent SAT solver in Go Today: Search for directions Lukas Prokop Advisor: Florian Mendel Lukas Prokop 22 nd of June 2015 slide number 1 Outline Goals Go-based concurrency Parallelized SAT

More information

Rheinisch-Westfälische Technische Hochschule Aachen. Lehrstuhl für Datenmanagement und -exploration Prof. Dr. T. Seidl. Proseminar.

Rheinisch-Westfälische Technische Hochschule Aachen. Lehrstuhl für Datenmanagement und -exploration Prof. Dr. T. Seidl. Proseminar. Rheinisch-Westfälische Technische Hochschule Aachen Lehrstuhl für Datenmanagement und -exploration Prof. Dr. T. Seidl Proseminar Google Go illustrated on the basis of Fibonacci numbers Jan Pennekamp Mai

More information

Introduction to Xamarin Cross Platform Mobile App Development

Introduction to Xamarin Cross Platform Mobile App Development Introduction to Xamarin Cross Platform Mobile App Development Summary: In this document, we talk about the unique ability to create native ios, Android, Mac and Windows apps using C# making Xamarin, a

More information

Go vs. Swift: The Languages of The Modern Tech Giants

Go vs. Swift: The Languages of The Modern Tech Giants Go vs. Swift: The Languages of The Modern Tech Giants Jake Rockland github.com/jakerockland/go-vs-swift December 20, 2016 1 Abstract This project stands as a comparative exploration of Go and Swift, the

More information

Don t Go Java! Edition 2019

Don t Go Java! Edition 2019 Don t Go, Java! Don t Go Java! Don t Go Java! Edition 2019 Disclaimer Disclaimer I actually like Go! Guess The Movie Guess The Movie Guess The Movie Guess The Movie Who s That Dude? Chris Engelbert Senior

More information

Processor. Lecture #2 Number Rep & Intro to C classic components of all computers Control Datapath Memory Input Output

Processor. Lecture #2 Number Rep & Intro to C classic components of all computers Control Datapath Memory Input Output CS61C L2 Number Representation & Introduction to C (1) insteecsberkeleyedu/~cs61c CS61C : Machine Structures Lecture #2 Number Rep & Intro to C Scott Beamer Instructor 2007-06-26 Review Continued rapid

More information

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle Operating Systems Operating System Structure Lecture 2 Michael O Boyle 1 Overview Architecture impact User operating interaction User vs kernel Syscall Operating System structure Layers Examples 2 Lower-level

More information

Static Deadlock Detection for Go by Global Session Graph Synthesis. Nicholas Ng & Nobuko Yoshida Department of Computing Imperial College London

Static Deadlock Detection for Go by Global Session Graph Synthesis. Nicholas Ng & Nobuko Yoshida Department of Computing Imperial College London Static Deadlock Detection for Go by Global Session Graph Synthesis Nicholas Ng & Nobuko Yoshida Department of Computing Imperial College London Contributions Static deadlock detection tool dingo-hunter

More information

CS 220: Introduction to Parallel Computing. Beginning C. Lecture 2

CS 220: Introduction to Parallel Computing. Beginning C. Lecture 2 CS 220: Introduction to Parallel Computing Beginning C Lecture 2 Today s Schedule More C Background Differences: C vs Java/Python The C Compiler HW0 8/25/17 CS 220: Parallel Computing 2 Today s Schedule

More information

Develop your Embedded Applications Faster: Comparing C and Golang. Marcin Pasinski Mender.io

Develop your Embedded Applications Faster: Comparing C and Golang. Marcin Pasinski Mender.io Develop your Embedded Applications Faster: Comparing C and Golang Marcin Pasinski Mender.io My view on C vs Go I think Go is great and very productive programming language It excels when developing networking

More information

Go Deep: Fixing Architectural Overheads of the Go Scheduler

Go Deep: Fixing Architectural Overheads of the Go Scheduler Go Deep: Fixing Architectural Overheads of the Go Scheduler Craig Hesling hesling@cmu.edu Sannan Tariq stariq@cs.cmu.edu May 11, 2018 1 Introduction Golang is a programming language developed to target

More information

Matt Butcher Matt Farina

Matt Butcher Matt Farina Matt Butcher Matt Farina FOREWORD BY Brian Ketelsen Includes 70 Techniques MANNING Go in Practice by Matt Butcher Matt Farina Chapter 1 Copyright 2016 Manning Publications brief contents PART 1 BACKGROUND

More information

CS61C Machine Structures. Lecture 3 Introduction to the C Programming Language. 1/23/2006 John Wawrzynek. www-inst.eecs.berkeley.

CS61C Machine Structures. Lecture 3 Introduction to the C Programming Language. 1/23/2006 John Wawrzynek. www-inst.eecs.berkeley. CS61C Machine Structures Lecture 3 Introduction to the C Programming Language 1/23/2006 John Wawrzynek (www.cs.berkeley.edu/~johnw) www-inst.eecs.berkeley.edu/~cs61c/ CS 61C L03 Introduction to C (1) Administrivia

More information

Cost of Your Programs

Cost of Your Programs Department of Computer Science and Engineering Chinese University of Hong Kong In the class, we have defined the RAM computation model. In turn, this allowed us to define rigorously algorithms and their

More information

Updating the Compiler?

Updating the Compiler? Updating the Compiler? Take Advantage of The New Development Toolchain Andreas Jaeger Product Manager aj@suse.com Programming Languages C C++ Fortran And Go 2 Why new compiler? Faster applications Support

More information

CS377P Programming for Performance Multicore Performance Multithreading

CS377P Programming for Performance Multicore Performance Multithreading CS377P Programming for Performance Multicore Performance Multithreading Sreepathi Pai UTCS October 14, 2015 Outline 1 Multiprocessor Systems 2 Programming Models for Multicore 3 Multithreading and POSIX

More information

Down the event-driven road: Experiences of integrating streaming into analytic data platforms

Down the event-driven road: Experiences of integrating streaming into analytic data platforms Down the event-driven road: Experiences of integrating streaming into analytic data platforms Dr. Dominik Benz, Head of Machine Learning Engineering, inovex GmbH Confluent Meetup Munich, 8.10.2018 Integrate

More information

Reading How the Web Works

Reading How the Web Works Reading 1.3 - How the Web Works By Jonathan Lane Introduction Every so often, you get offered a behind-the-scenes look at the cogs and fan belts behind the action. Today is your lucky day. In this article

More information

CSCI-GA Multicore Processors: Architecture & Programming Lecture 3: The Memory System You Can t Ignore it!

CSCI-GA Multicore Processors: Architecture & Programming Lecture 3: The Memory System You Can t Ignore it! CSCI-GA.3033-012 Multicore Processors: Architecture & Programming Lecture 3: The Memory System You Can t Ignore it! Mohamed Zahran (aka Z) mzahran@cs.nyu.edu http://www.mzahran.com Memory Computer Technology

More information

CSE 333 Lecture 1 - Systems programming

CSE 333 Lecture 1 - Systems programming CSE 333 Lecture 1 - Systems programming Steve Gribble Department of Computer Science & Engineering University of Washington Welcome! Today s goals: - introductions - big picture - course syllabus - setting

More information

Tranquility Publications. Web Edition MAC

Tranquility Publications. Web Edition MAC Web Edition 2019 -MAC 2 Go Go language is a programming language initially developed at Google in the year 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. It is a statically-typed language having

More information

CSE 333 Lecture 1 - Systems programming

CSE 333 Lecture 1 - Systems programming CSE 333 Lecture 1 - Systems programming Hal Perkins Department of Computer Science & Engineering University of Washington Welcome! Today s goals: - introductions - big picture - course syllabus - setting

More information

Introduction. A. Bellaachia Page: 1

Introduction. A. Bellaachia Page: 1 Introduction 1. Objectives... 2 2. Why are there so many programming languages?... 2 3. What makes a language successful?... 2 4. Programming Domains... 3 5. Language and Computer Architecture... 4 6.

More information

Concurrency in Go 9/22/17

Concurrency in Go 9/22/17 Concurrency in Go 9/22/17 Outline Mapreduce (15 mins) Two synchronization mechanisms Locks (15 mins) Channels (20 mins) Application: Word count Hello my love. I love you, my dear. Goodbye. hello: 1, my:

More information

Preview from Notesale.co.uk Page 3 of 79

Preview from Notesale.co.uk Page 3 of 79 ABOUT THE TUTORIAL Computer Prgramming Tutorial Computer programming is the act of writing computer programs, which are a sequence of instructions written using a Computer Programming Language to perform

More information

LEAN & MEAN - GO MICROSERVICES WITH DOCKER SWARM AND SPRING CLOUD

LEAN & MEAN - GO MICROSERVICES WITH DOCKER SWARM AND SPRING CLOUD LEAN & MEAN - GO MICROSERVICES WITH DOCKER SWARM AND SPRING CLOUD ERIK LUPANDER 2017-01-25 CALLISTAENTERPRISE.SE 2 What Go? 3 ON THE AGENDA Background: The footprint problem. The Go programming language

More information

Lecture Overview Methods and Interfaces Methods review Interfaces Example: using the sort interface Anonymous fields in structs

Lecture Overview Methods and Interfaces Methods review Interfaces Example: using the sort interface Anonymous fields in structs 1 Lecture Overview Methods and Interfaces Methods review Interfaces Example: using the sort interface Anonymous fields in structs Generic printing using the empty interface Maps Creating a map Accessing

More information

Performance Per Watt. Native code invited back from exile with the Return of the King:

Performance Per Watt. Native code invited back from exile with the Return of the King: 2009-1979-1989 Research: C with Classes, ARM C++ 1989-1999 Mainstream C++ goes to town (& ISO, & space, &c) 1999-2009 Coffee-based languages for productivity Q: Can they do everything important? Native

More information

The Go Programming Language. Part 3

The Go Programming Language. Part 3 The Go Programming Language Part 3 Rob Pike r@google.com (updated June 2011) 1 Today s Outline Exercise any questions? Concurrency and communication goroutines channels concurrency issues 2 Exercise Any

More information

Java Thread Programming By Paul Hyde

Java Thread Programming By Paul Hyde Java Thread Programming By Paul Hyde Buy, download and read Java Thread Programming ebook online in PDF format for iphone, ipad, Android, Computer and Mobile readers. Author: Paul Hyde. ISBN: 9780768662085.

More information

Cython: A Guide For Python Programmers By Kurt W. Smith

Cython: A Guide For Python Programmers By Kurt W. Smith Cython: A Guide For Python Programmers By Kurt W. Smith Cython A Guide for Python Programmers. ebook Details: Paperback: 254 pages; Publisher: WOW! ebook; 1st edition (January 31, 2015) Book cover of High

More information

Advance Mobile& Web Application development using Angular and Native Script

Advance Mobile& Web Application development using Angular and Native Script Advance Mobile& Web Application development using Angular and Native Script Objective:- As the popularity of Node.js continues to grow each day, it is highly likely that you will use it when you are building

More information

JAVA An overview for C++ programmers

JAVA An overview for C++ programmers JAVA An overview for C++ programmers Wagner Truppel wagner@cs.ucr.edu edu March 1st, 2004 The early history James Gosling, Sun Microsystems Not the usual start for a prog.. language Consumer electronics,

More information

GRITS AJAX & GWT. Trey Roby. GRITS 5/14/09 Roby - 1

GRITS AJAX & GWT. Trey Roby. GRITS 5/14/09 Roby - 1 AJAX & GWT Trey Roby GRITS 5/14/09 Roby - 1 1 Change The Web is Changing Things we never imagined Central to people s lives Great Opportunity GRITS 5/14/09 Roby - 2 2 A Very Brief History of Computing

More information

ENGR 105: Introduction to Scientific Computing. Dr. Graham. E. Wabiszewski

ENGR 105: Introduction to Scientific Computing. Dr. Graham. E. Wabiszewski ENGR 105: Introduction to Scientific Computing Machine Model, Matlab Interface, Built-in Functions, and Arrays Dr. Graham. E. Wabiszewski ENGR 105 Lecture 02 Answers to questions from last lecture Office

More information

SWIFT & #IOExtendedCLT, 18th May 2016

SWIFT & #IOExtendedCLT, 18th May 2016 SWIFT & KOTLIN @DagnaBieda, #IOExtendedCLT, 18th May 2016 Software Engineer at Quoin, 209 Delburg Street, Davidson, NC Sources tell The Next Web that Google is considering making Swift a first class language

More information

Go Circuit: Distributing the Go Language and Runtime. Petar Maymounkov

Go Circuit: Distributing the Go Language and Runtime. Petar Maymounkov Go Circuit: Distributing the Go Language and Runtime Petar Maymounkov p@gocircuit.org Problem: DEV OPS isolation App complexity vs manual involvement Distribute cloud apps How to describe complex deploy

More information

StackVsHeap SPL/2010 SPL/20

StackVsHeap SPL/2010 SPL/20 StackVsHeap Objectives Memory management central shared resource in multiprocessing RTE memory models that are used in Java and C++ services for Java/C++ programmer from RTE (JVM / OS). Perspectives of

More information

It's Time To Get Functional 이건희

It's Time To Get Functional 이건희 It's Time To Get Functional 20071032 이건희 1 Context Intro Performance Popularity Network Effect Why Is It Time To Get Functional? 2 Intro 3 Architect You are the architect (or carpenter). 4 Tools Can you

More information

ELPREP PERFORMANCE ACROSS PROGRAMMING LANGUAGES PASCAL COSTANZA CHARLOTTE HERZEEL FOSDEM, BRUSSELS, BELGIUM, FEBRUARY 3, 2018

ELPREP PERFORMANCE ACROSS PROGRAMMING LANGUAGES PASCAL COSTANZA CHARLOTTE HERZEEL FOSDEM, BRUSSELS, BELGIUM, FEBRUARY 3, 2018 ELPREP PERFORMANCE ACROSS PROGRAMMING LANGUAGES PASCAL COSTANZA CHARLOTTE HERZEEL FOSDEM, BRUSSELS, BELGIUM, FEBRUARY 3, 2018 USA SAN FRANCISCO USA ORLANDO BELGIUM - HQ LEUVEN THE NETHERLANDS EINDHOVEN

More information

High-Performance and Parallel Computing

High-Performance and Parallel Computing 9 High-Performance and Parallel Computing 9.1 Code optimization To use resources efficiently, the time saved through optimizing code has to be weighed against the human resources required to implement

More information

Chapter 9 :: Data Abstraction and Object Orientation

Chapter 9 :: Data Abstraction and Object Orientation Chapter 9 :: Data Abstraction and Object Orientation Programming Language Pragmatics Michael L. Scott Control or PROCESS abstraction is a very old idea (subroutines!), though few languages provide it in

More information

Why you should take a look at

Why you should take a look at Why you should take a look at Antonin Carette - FOSDEM 2018 - Rust devroom Slides and resources available @ github.com/k0pernicus/fosdem_rust_talk 1 Chalut 'tiot biloute! I tried to understand what the

More information

Overview. Rationale Division of labour between script and C++ Choice of language(s) Interfacing to C++

Overview. Rationale Division of labour between script and C++ Choice of language(s) Interfacing to C++ Scripting 1 Overview Rationale Division of labour between script and C++ Choice of language(s) Interfacing to C++ Rationale C++ isn't the best choice for all problems Complicated feature set, syntax Low-level,

More information

Parallelism and Concurrency. COS 326 David Walker Princeton University

Parallelism and Concurrency. COS 326 David Walker Princeton University Parallelism and Concurrency COS 326 David Walker Princeton University Parallelism What is it? Today's technology trends. How can we take advantage of it? Why is it so much harder to program? Some preliminary

More information

Deep Dive into the ArcGIS Geotrigger Service. Aaron CTO, Esri R&D Center Portland

Deep Dive into the ArcGIS Geotrigger Service. Aaron CTO, Esri R&D Center Portland Deep Dive into the ArcGIS Geotrigger Service Aaron Parecki @aaronpk CTO, Esri R&D Center Portland Geotrigger SDKs and API Just Launched! developers.arcgis.com What could your app do if it knew where it

More information

William Kennedy. Brian Ketelsen Erik St. Martin Steve Francia FOREWORD BY MANNING WITH

William Kennedy. Brian Ketelsen Erik St. Martin Steve Francia FOREWORD BY MANNING WITH SAMPLE CHAPTER William Kennedy WITH FOREWORD BY Brian Ketelsen Erik St. Martin Steve Francia MANNING Go in Action by William Kennedy with Brian Ketelsen and Erik St. Martin Chapter 2 Copyright 2015 Manning

More information

Go GC: Prioritizing Low Latency and Simplicity

Go GC: Prioritizing Low Latency and Simplicity Go GC: Prioritizing Low Latency and Simplicity Rick Hudson Google Engineer QCon San Francisco Nov 16, 2015 My Codefendants: The Cambridge Runtime Gang https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/sato_tadanobu_with_a_goban.jpeg/500px-sato_tadanobu_with_a_goban.jpeg

More information

OpenACC Course. Office Hour #2 Q&A

OpenACC Course. Office Hour #2 Q&A OpenACC Course Office Hour #2 Q&A Q1: How many threads does each GPU core have? A: GPU cores execute arithmetic instructions. Each core can execute one single precision floating point instruction per cycle

More information

Building RESTful Python Web Services

Building RESTful Python Web Services Building RESTful Python Web Services Gaston C. Hillar Click here if your download doesn"t start automatically Building RESTful Python Web Services Gaston C. Hillar Building RESTful Python Web Services

More information

HOW TO BUILD A MODERN AI

HOW TO BUILD A MODERN AI HOW TO BUILD A MODERN AI FOR THE UNKNOWN IN MODERN DATA 1 2016 PURE STORAGE INC. 2 Official Languages Act (1969/1988) 3 Translation Bureau 4 5 DAWN OF 4 TH INDUSTRIAL REVOLUTION BIG DATA, AI DRIVING CHANGE

More information

Technical Game Development II IMGD 4000 (D 11) 1. having agents follow pre-set actions rather than choosing them dynamically

Technical Game Development II IMGD 4000 (D 11) 1. having agents follow pre-set actions rather than choosing them dynamically Scripting Technical Game Development II Professor Charles Rich Computer Science Department rich@wpi.edu References: Buckland, Chapter 6 IMGD 4000 (D 11) 1 Scripting Two senses of the word scripted behavior

More information

Summarization of Program Development in Multi-core Environment

Summarization of Program Development in Multi-core Environment Summarization of Program Development in Multi-core Environment Hongyu Li College of Computer and Automatization Tianjin Polytechnic University Tianjin 300160, China E-mail: milanbaggio18@sina.com Abstract

More information

Java performance - not so scary after all

Java performance - not so scary after all Java performance - not so scary after all Holly Cummins IBM Hursley Labs 2009 IBM Corporation 2001 About me Joined IBM Began professional life writing event framework for WebSphere 2004 Moved to work on

More information

Quick Review of Object-Oriented Programming in Go

Quick Review of Object-Oriented Programming in Go Quick Review of Object-Oriented Programming in Go 02-201 Structs: Grouping Variables as Objects type Rectangle struct { x1 float64 y1 float64 width float64 height float64 type Circle struct { x1 float64

More information

FIVE REASONS YOU SHOULD RUN CONTAINERS ON BARE METAL, NOT VMS

FIVE REASONS YOU SHOULD RUN CONTAINERS ON BARE METAL, NOT VMS WHITE PAPER FIVE REASONS YOU SHOULD RUN CONTAINERS ON BARE METAL, NOT VMS Over the past 15 years, server virtualization has become the preferred method of application deployment in the enterprise datacenter.

More information

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG) SKILL AREA 304: Review Programming Language Concept Computer Programming (YPG) 304.1 Demonstrate an Understanding of Basic of Programming Language 304.1.1 Explain the purpose of computer program 304.1.2

More information

Thinking Functionally

Thinking Functionally Thinking Functionally Dan S. Wallach and Mack Joyner, Rice University Copyright 2016 Dan S. Wallach, All Rights Reserved Reminder: Fill out our web form! Fill this out ASAP if you haven t already. http://goo.gl/forms/arykwbc0zy

More information

Embedded type method, overriding, Error handling, Full-fledged web framework, 208 Function defer, 31 panic, 32 recover, 32 33

Embedded type method, overriding, Error handling, Full-fledged web framework, 208 Function defer, 31 panic, 32 recover, 32 33 Index A Alice package, 108, 110 App Engine applications configuration file, 258 259 goapp deploy command, 262 Google Developers Console project creation, 261 project details, 262 HTTP server, 257 258 task

More information

Lab 4: Interrupts and Realtime

Lab 4: Interrupts and Realtime Lab 4: Interrupts and Realtime Overview At this point, we have learned the basics of how to write kernel driver module, and we wrote a driver kernel module for the LCD+shift register. Writing kernel driver

More information

CS Prof J.P.Morrison

CS Prof J.P.Morrison CS1061 2018-2019 Prof J.P.Morrison C Programming C is the most popular language worldwide. Everything from microcontrollers to operating systems is written in C flexible and versatile, allowing maximum

More information

Parallelism Marco Serafini

Parallelism Marco Serafini Parallelism Marco Serafini COMPSCI 590S Lecture 3 Announcements Reviews First paper posted on website Review due by this Wednesday 11 PM (hard deadline) Data Science Career Mixer (save the date!) November

More information

PROGRAMMING GOOGLE APP ENGINE WITH PYTHON: BUILD AND RUN SCALABLE PYTHON APPS ON GOOGLE'S INFRASTRUCTURE BY DAN SANDERSON

PROGRAMMING GOOGLE APP ENGINE WITH PYTHON: BUILD AND RUN SCALABLE PYTHON APPS ON GOOGLE'S INFRASTRUCTURE BY DAN SANDERSON PROGRAMMING GOOGLE APP ENGINE WITH PYTHON: BUILD AND RUN SCALABLE PYTHON APPS ON GOOGLE'S INFRASTRUCTURE BY DAN SANDERSON DOWNLOAD EBOOK : PROGRAMMING GOOGLE APP ENGINE WITH PYTHON: Click link bellow and

More information

The Next Generation of Eclipse: e4. Mike Milinkovich Executive Director Eclipse Foundation

The Next Generation of Eclipse: e4. Mike Milinkovich Executive Director Eclipse Foundation The Next Generation of Eclipse: e4 Mike Milinkovich Executive Director Eclipse Foundation 1 Changing Environment New Technologies: RIA Applications and Cloud Computing AJAX, Flash, Silverlight Amazon E2

More information

Scientific GPU computing with Go A novel approach to highly reliable CUDA HPC 1 February 2014

Scientific GPU computing with Go A novel approach to highly reliable CUDA HPC 1 February 2014 Scientific GPU computing with Go A novel approach to highly reliable CUDA HPC 1 February 2014 Arne Vansteenkiste Ghent University Real-world example (micromagnetism) DyNaMat LAB @ UGent: Microscale Magnetic

More information