Change search
ReferencesLink to record
Permanent link

Direct link
It's Go Time!
KTH, School of Computer Science and Communication (CSC).
KTH, School of Computer Science and Communication (CSC).
2011 (English)Independent thesis Advanced level (professional degree), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

The purpose of this report is to evaluate the functionality and syntax of Googles new programming language: Go! To achieve this goal, several tests will be conducted. Trial-division, naive and optimal versions; The Sieve of Eratosthenes; Fibonacci generators, iterative, recursive and recursive with memorization; a small math-based game; and a wiki will be implemented. For comparison, each test will also be implemented in three other major languages: C, Java and Python. The powers of Go is its (allegedly) smooth syntax and fast runtime. It feels like an interpreted, dynamically typed language but is in fact a compiled, statically typed language. Overall Go performed very well, it was faster than both Java and Python (even when not counting Javas extra second to boot the virtual machine) and in most cases as fast as C. In addition to the good runtime, it was easier to implement the tests in Go than in C and Java thanks to the simple syntax and orthogonality of the functions and packages.

Abstract [sv]

Syftet bakom denna rapport är att utvärdera Googles nya programmeringsspråk, Go! För att uppnå det målet ska i. För att få perspektiv på språket ska dessa tester dessutom implementeras i tre andra stora språk; Java, C och Python. Gos styrkor är dess enkla syntax och snabba exekveringstid. Det känns som ett interpreterat, dynamiskt typat språk men är ett kompilerat, statiskt typat språk. Överlag presterade Go väldigt bra, det var snabbare är både Java och Python (även om Javas en sekund extra tid för start av virtuell maskin inte räknas med) och i många fall lika snabbt som C, men det var väldigt mycket lättare att implementera saker i Go än i Java och C tack vare den enkla syntaxen och okomplicerade funktioner och paket.

Place, publisher, year, edition, pages
Kandidatexjobb CSC, K11080
National Category
Computer Science
URN: urn:nbn:se:kth:diva-130822OAI: diva2:654269
Educational program
Master of Science in Engineering - Computer Science and Technology
Available from: 2013-10-07 Created: 2013-10-07

Open Access in DiVA

No full text

Other links
By organisation
School of Computer Science and Communication (CSC)
Computer Science

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 35 hits
ReferencesLink to record
Permanent link

Direct link