@thorstenball - I can
- totally
- second
- this.
- I hate
- them
- too in
- ChatGPT.
- Maybe
- you could
- threat ChatGPT
- via custom
- instructions to
- avoid them
- in the future.
Yeah, finally Go 1.22 with the new routing pattern support is here.
https://t.co/6cZkCGTYv9
Don't forget to change the Go version in your existing go.mod to 1.22 otherwise it will stick to the old Go version.
@MSiatrak It is not only great for writing (boilerplate) code, but also to decipher TypeScript error messages or use it as a rubber duck via the Copilot chat.
Are you tired of breaking your fingers writing shell scripts because the syntax is so special?
Maybe Go script is something for you. You can use it to write a lot of things in Go that you used to write as a shell script.
https://t.co/kIeuqcbNSR
@thorstenball Every ms counts:
(1.62ms*1000 times/day*30 days/month*12 months/year*10000000 developers)/3600000)*120 USD/hour
= 194,400,000 USD saved!
Or three times the GDP of Tuvalu
When working with CGO the chance to produce memory leaks by accident is very high. A simple way besides pprof to locate memory leaks is the "Instruments" App that is shipped with Xcode.
As you can see below, I have a memory leak: --> π§΅
And here is the pendant without the leak:
package main
// #include <stdlib.h>
import "C"
import (
"fmt"
"unsafe"
)
func main() {
for {
foo := C.malloc(1)
fmt.Println(foo)
https://t.co/3ZPv4496ch(unsafe.Pointer(foo))
}
}
Hey SQLiters, what are your most used PRAGMAs?
Mine are:
- PRAGMA synchronous=1; (to make sure, changes are synced to the underlying FS on the most critical moments)
- PRAGMA journal_mode = wal2; (enable the new write ahead log)
https://t.co/K1GPrpLCBg
@thorstenball I love dogfooding, but in the early days of a product, you are constantly fixing one bug after another instead of working on the features themselves. π But yes, it's more than worth it.