This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Head First Go: Performance of Go  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
Chrome Mac Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Chrome Mac Ruby
  • Mark post as helpful
  • send pies
  • 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

 
And then we all jump out and yell "surprise! we got you this tiny ad!"
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!