HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
collinvandyck
go-and-java
Java2012–2012
collinvandyck / go-and-java

go-and-java

A comparison of a simple web service both written in Java and Go

2Distinct people
2Mentions
0Explicit recommenders
15GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A comparison of a simple web service both written in Java and Go

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 12:54:37 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2012-09-18 20:04:50 UTC to 2012-09-19 00:07:26 UTC.

012012-09-18 20:00:00 UTC to 2012-09-18 21:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 18, 20:002012-09-18 21:00:00 UTC to 2012-09-18 22:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2012-09-18 22:00:00 UTC to 2012-09-18 23:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsSep 18, 22:002012-09-18 23:00:00 UTC to 2012-09-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2012-09-19 00:00:00 UTC to 2012-09-19 01:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 19, 00:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Sep 18, 20:002012-09-18 20:00:00 UTC2012-09-18 21:00:00 UTC101
Sep 18, 21:002012-09-18 21:00:00 UTC2012-09-18 22:00:00 UTC000
Sep 18, 22:002012-09-18 22:00:00 UTC2012-09-18 23:00:00 UTC000
Sep 18, 23:002012-09-18 23:00:00 UTC2012-09-19 00:00:00 UTC000
Sep 19, 00:002012-09-19 00:00:00 UTC2012-09-19 01:00:00 UTC101

What Hacker News says

2 sources
Some notes from looking at the Go code. I don't know how important are those for performance, more like style nits. Java version doesn't do type conversion: https://github.com/collinvandyck/go-and-java/blob/master/jav... rs.getString("id") rs.getBoolean("admin") Go version does conversion at runtime, as row.Scan() accepts interface values. Also, the usage of sql interface is not optimal (at least with regards to code length) -- since the query is for one row, why not use QueryRow instead of Query? Authorization header decoding is strange -- it creates new base64 decoder, then string reader, then decodes. Why not just use base64.StdEncoding.DecodeString() and get rid of a few lines of code and a few allocations? https://github.com/collinvandyck/go-and-java/blob/master/go/... Similarly, JSON marshals into a newly allocated slice inst
Read the rest
ead of creating a decoder and then marshaling directly into ResponseWriter. https://github.com/collinvandyck/go-and-java/blob/master/go/... Constants for HTTP error codes, that are declared in net/http, for some reason are redeclared https://github.com/collinvandyck/go-and-java/blob/master/go/... - - - I sometimes wonder why various benchmarks include colorful charts, but fail to include a few lines from a simple run of profiler. It's so easy to do, and yet nobody bothers to learn where the cycles are actually spent!
In Comparing Go and Java, Part 2 – Performance

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.