Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You're right about the Go client, I'm also scratching my head as to why it's doing the extra lookup instead of just using a dial function directly:

    tcpAddr, _ := net.ResolveTCPAddr("tcp4", "localhost:1201")
    conn, _ := net.DialTCP("tcp", nil, tcpAddr)
Vs.

    val socket = new Socket("localhost", 1201)
Edit: Go has e.g. net.Dial("tcp", "localhost:1201") and as someone pointed out elsewhere for a more accurate bench in both clients why not use the numerical address instead?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: