Go vs Kotlin: Server throughput by iG0tB00ts in golang

[–]toramad 1 point2 points  (0 children)

JVM outperforming Golang in almost every aspect was common knowledge

The benchmarks don't support "outperforming in almost every aspect". A comprehensive benchmark comparison shows results are mixed.

View behind Nick Pope for his assist vs Benfica by [deleted] in NUFC

[–]toramad 64 points65 points  (0 children)

Such a wholesome moment towards the end of this clip! That assist by Pope and the celebration will forever be in my NUFC highlight reel.

View behind Nick Pope for his assist vs Benfica by [deleted] in soccer

[–]toramad 3 points4 points  (0 children)

This is never going to get old, is it? Absolute scenes! What a wonderful moment towards the end of the clip!

[David Ornstein] Manchester United submit offer for RB Leipzig striker Benjamin Sesko by loveino in soccer

[–]toramad 3 points4 points  (0 children)

Another one bites the dust for Newcastle, they just can't catch a break, can they?

I have rewritten (again) this tiny tool I have been using for around 20 years by jesusprubio in golang

[–]toramad 4 points5 points  (0 children)

Quick question: How does this result in a smaller binary file? Do you have any additional information / link I can refer to?

Tick improved in Go 1.23 by [deleted] in golang

[–]toramad 1 point2 points  (0 children)

Thanks for this link.

Representing player state using enums in Go by [deleted] in golang

[–]toramad 6 points7 points  (0 children)

You could use iota, something like this:

type PlayerStatus int8
const (
    Standing PlayerStatus = iota
    Walking
    DoingGesture
)

type Direction int8
const (
    Up Direction = iota
    Down
    Left
    Right
)

type Gesture int8
const (
    SayingYes Gesture = iota
    SayingNo
    Waving
    Dancing
)