Thoughts on Go vs. Rust vs. Zig
https://sinclairtarget.com/blog/2025/08/thoughts-on-go-vs.-rust-vs.-zig/
#HackerNews #Go #Rust #Zig #Programming #Languages #Comparison
#Breaking There's an active nodejs supply chain attack going around.
From the looks of it many of these compromised packages have been mitigated but quite a few have not.
https://helixguard.ai/blog/malicious-sha1hulud-2025-11-24
#nodejs #cybersecurity #aws #github #npm #trufflehog #go #cyberattack #ShaiHulud #javascript #deno #browser #Sha1Hulud
Let go of StackOverflow; communities must take ownership
https://ahelwer.ca/post/2025-11-25-stackoverflow/
#HackerNews #Let #go #of #StackOverflow #communities #must #take #ownership #ownership #of #knowledge #tech #communities
Wails: Create beautiful applications using Go
「 The traditional method of providing web interfaces to Go programs is via a built-in web server. Wails offers a different approach: it provides the ability to wrap both Go code and a web frontend into a single binary. Tools are provided to make this easy for you by handling project creation, compilation and bundling. All you have to do is get creative! 」
A million ways to die from a data race in Go
https://gaultier.github.io/blog/a_million_ways_to_data_race_in_go.html
#HackerNews #A #million #ways #to #die #from #a #data #race #in #Go #data #race #Go #programming #concurrency #software #development
#Breaking There's an active nodejs supply chain attack going around.
From the looks of it many of these compromised packages have been mitigated but quite a few have not.
https://helixguard.ai/blog/malicious-sha1hulud-2025-11-24
#nodejs #cybersecurity #aws #github #npm #trufflehog #go #cyberattack #ShaiHulud #javascript #deno #browser #Sha1Hulud
Go Cryptography State of the Union
https://words.filippo.io/2025-state/
#HackerNews #Go #Cryptography #State #of #the #Union #cryptography #GoLang #technews #cybersecurity
I forgot how tedious it is to chase code coverage when writing tests.
However this was part of the reason that made me include the "boring" parts of building a robust library into the goals set for the #nlnet grant.
So after a couple of days of work I finally got the first of the storage backends for the #GoActivityPub library go past 80% test coverage.
I hope I can reuse some of the test logic in the other backends, as they need to perform identically.
I forgot how tedious it is to chase code coverage when writing tests.
However this was part of the reason that made me include the "boring" parts of building a robust library into the goals set for the #nlnet grant.
So after a couple of days of work I finally got the first of the storage backends for the #GoActivityPub library go past 80% test coverage.
I hope I can reuse some of the test logic in the other backends, as they need to perform identically.
Go's Sweet 16
#HackerNews #Go #Sweet #16 #Go #Programming #Language #Happy #Birthday #Go #16Years
Go, #go, [[go]]!
As we merge
we'll fork!
(Quite) A few words about async
https://yoric.github.io/post/quite-a-few-words-about-async/
#programming #concurrency #python #go #rust #javascript #blog
(Quite) A few words about async
https://yoric.github.io/post/quite-a-few-words-about-async/
#programming #concurrency #python #go #rust #javascript #blog
Did any #Go developers need code to get a zero value of a struct but without knowing the layout of the struct itself?
The only thing I could come up with was:
func zero[T any](v T) T {
z := &v
zz := reflect.ValueOf(z).Elem()
zz.Set(reflect.Zero(reflect.TypeOf(v)))
return *z
}
And see here an example of usage: https://go.dev/play/p/Aqzc_nRzOcP
I needed it in order to get zero copies of random structs so I could test that some marshal/unmarshal functionality is a bijection.
Is this a decent way to do it? Are there alternatives?