• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Head First Go: Performance of Go

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Performance comparison between Go and Other Languages.

can you illustrate the time taken a go program against time take in other languages for a program.
And also why is GO much faster. how is this possible.
how much does GO support, lack in both object oriented and functional concepts.
 
Author
Posts: 22
5
Mac Ruby Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll talk in very general terms; there are language benchmarks on the Web that go into much more detail...

Go programs compile to native bytecode, so they're going to be inherently faster than an interpreted language like Ruby or Python. They're also going to be faster to start up, and in many cases faster to run overall, than languages with just-in-time compilation like Java or C# (.NET).

In some cases they'll be marginally slower than C or C++ programs, whenever Go's automatic garbage collection isn't as optimized as the hand-coded memory management C or C++ requires.

When you choose Go, you're optimizing to spend less developer time, which is considerably more expensive than CPU time.

how much does GO support, lack in both object oriented and functional concepts.



Go has equivalents for almost any object-oriented concept, but it does things quite differently in some cases. It generally discards slow, error-prone concepts like class-based inheritance (although it offers other ways to get the same benefits).

I'm not as familiar with FP, so I'll rely on this Quora thread to answer that part for me.
 
sreesaran raghu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the information and like other head first series does the book cover basics of GO or does it touches advanced topics. can you provide a overview of topics covered ?.

 
Jay McGavren
Author
Posts: 22
5
Mac Ruby Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sreesaran raghu wrote:Thanks for the information and like other head first series does the book cover basics of GO or does it touches advanced topics. can you provide a overview of topics covered ?.



Here's the abbreviated table of contents:


1 Let’s Get Going: Syntax Basics 1
2 Which Code Runs Next?: Conditionals and Loops 31
3 Call Me: Functions 79
4 Bundles of Code: Packages 113
5 On the List: Arrays 149
6 Appending Issue: Slices 175
7 Labeling Data: Maps 205
8 Building Storage: Structs 231
9 You’re My Type: Defined Type 265
10 Keep It to Yourself: Encapsulation and Embedding 289
11 What Can You Do?: Interfaces 321
12 Back on Your Feet: Recovering from Failure 349
13 Sharing Work: Goroutines and Channels 379
14 Code Quality Assurance: Automated Testing 401
15 Responding to Requests: Web Apps 425
16 A Pattern to Follow: HTML Templates 445
A Understanding os.OpenFile: Opening Files 481
B Six Things We Didn’t Cover: Leftovers 495

 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic