Golang from Perl
developer perspective
Brief Account
About me
Supreet Sethi Tech Architect
https://ecs1.tokopedia.net/img/og_tokopedia.jpg
Content
❖ Short intro of Go
❖ Perl vs Go
❖ Tooling
❖ Strategy
Not comprehensive http://bit.ly/1OPLDtH
Who is using Many respected technology
and services companies.
Simple language to learn
Golang. there is only
one way
Opposite of Perl in certain sense. Strict pre
defined implicit type declaration
@i = ( 1, 2, 3 );
becomes
i := []int{1, 2, 3}
Lets print something
❖ Print text
❖ print “Hello World”;
❖ fmt.Printf(“Hello Worldn”)
❖ Print text to file
❖ print $fh “Hello World”;
❖ fh.Write(“Hello Worldn”)
For sake of simplicity
❖ Golang does not have
❖ Implicit conversion between
types
❖ Classes
❖ Implements
❖ Pointer Arithmetic
❖ Exceptions
❖ Generics
For sake of simplicity …
❖ Golang has
❖ Implicit interfaces
❖ Error handling within realm
of function
❖ Error returns
Tooling
❖ Versioning
❖ Build
❖ Formatting available as CLI
tools
❖ Supports several IDEs
There is concurrency
❖ Concurrent code is easy to
write
❖ Either with semaphores
❖ or Go routines and channels
❖ Simple
❖ Can be parallelized in presence
of more than 1 CPU
Debugging
❖ log.Printf(“%v”, obj)
❖ GDB is also capable of stepping through go binary
Questions

Golang_Perl_Doc