so you think you know 'go'? the go programming language

Post on 15-Jul-2015

328 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Presented by John Potocny @ATO 2014

So you think you know ‘Go’?

The Go Programming Language

About Me

Backend Developer at VividCortex, BCE from Kettering University

Programming Experience: Mainly C#/Java, Embedded C/C++, some Python

Twitter: @JohnPotocny1

Email: johnp@vividcortex.com

A Brief History

● Created in 2007 by Robert Griesemer, Rob Pike, & Ken Thompson

● Developed by Google

● Open Source - since Nov 10, 2009 (Public Announcement)

● Currently v1.3.3 (Stable)

What Kind of Language is Go?

Language Features

Actually, It’s More Like This

Great Tools Built-In

Compiles Quickly - Native Binary

Garbage Collected

Statically Typed

Interfaces and Composition

Concurrency

What Did Go Get Rid Of?

Remember The Goals!

Enough Chat, Let’s See Some Code!

A “Modern” Hello World

A “Modern” Hello World

How About a Real Example?

How About a Web Server?

http://play.golang.org/p/r-__BazPxE

How About a Web Server?

http://play.golang.org/p/r-__BazPxE

Or Even:

Server With Limited Connections?

http://play.golang.org/p/OMian3YwlD

No Language Is Perfect...

A Fun Example

http://play.golang.org/p/kPFCYuNTTG

Other Things?

No Generics

Go Has Complex Numbers

Static Types - No Implicit Conversion

Strict Compiler Interrupts Flow

Race Conditions Still Exist

Wait, Go Has ‘goto’!?

Other Fun Keywords

Proof: http://play.golang.org/p/dFBcMMHq0a

Questions?

Thank You!

top related