Go ahead, self-host Postgres
Love this "The real operational complexity" paragraph.
https://pierce.dev/notes/go-ahead-self-host-postgres
Love this "The real operational complexity" paragraph.
https://pierce.dev/notes/go-ahead-self-host-postgres
Okay, I outsmarted myself. It’s not that I’m in a deep trouble, but it’s something that adds more and more friction and I start hating that.
Here’s the code:
BlobID values are stored in a JSONB column in Postgres, just for the context.
The problem is with
I want to get rid of these two functions and simply store the
The question is: how can I make such migration in the simplest way? I can see about 2-3 possible solutions, and I’m curious what you’d suggest and why.
Thanks in advance.
Here’s the code:
type BlobID uint64
func (id BlobID) MarshalJSON() ([]byte, error) {
return []byte(`"` + id.String() + `"`), nil
}
func (id *BlobID) UnmarshalJSON(b []byte) error {
idd, err := ParseBlobID(string(b[1 : len(b)-1]))
*id = idd
return err
}
BlobID values are stored in a JSONB column in Postgres, just for the context.
The problem is with
String() and ParseBlobID() (the implementation isn’t important, but they’re obviously not just thin wrappers around strconv).I want to get rid of these two functions and simply store the
uint64 as a string (i.e. just use strconv).The question is: how can I make such migration in the simplest way? I can see about 2-3 possible solutions, and I’m curious what you’d suggest and why.
Thanks in advance.
> My experience with writing Rust software tends to be once you've got it working, it stays working.
Somehow, this phrase made me giggle.
https://blog.rust-lang.org/2025/12/19/what-do-people-love-about-rust/
Somehow, this phrase made me giggle.
https://blog.rust-lang.org/2025/12/19/what-do-people-love-about-rust/
blog.rust-lang.org
What do people love about Rust? | Rust Blog
Empowering everyone to build reliable and efficient software.
Ignoring case in configuration files is bad. Really, what problem are you trying to solve?
Does this happen that often? Is it really hard to switch to normal (lower, hah) casing?
I don’t understand such simplifications that try to solve imaginary problems.
LOG_PRETTY=trUE
Does this happen that often? Is it really hard to switch to normal (lower, hah) casing?
I don’t understand such simplifications that try to solve imaginary problems.
And I think this is beautiful
func ctx2fn(ctx context.Context) func() context.Context { return func() context.Context { return ctx } }> xzone malloc is a memory allocator for Apple OS platforms designed to mitigate heap memory safety vulnerabilities to the maximum extent possible while also achieving excellent performance. It is a part of Apple's Memory Integrity Enforcement technology.
https://github.com/apple-oss-distributions/libmalloc/blob/af3c5dc3a540eeec030930b35b1349f4de400206/doc/xzone_malloc.md
https://github.com/apple-oss-distributions/libmalloc/blob/af3c5dc3a540eeec030930b35b1349f4de400206/doc/xzone_malloc.md
GitHub
libmalloc/doc/xzone_malloc.md at af3c5dc3a540eeec030930b35b1349f4de400206 · apple-oss-distributions/libmalloc
Contribute to apple-oss-distributions/libmalloc development by creating an account on GitHub.
Detect Go’s silent arithmetic bugs with go-panikint
https://blog.trailofbits.com/2025/12/31/detect-gos-silent-arithmetic-bugs-with-go-panikint/
https://github.com/trailofbits/go-panikint
https://blog.trailofbits.com/2025/12/31/detect-gos-silent-arithmetic-bugs-with-go-panikint/
https://github.com/trailofbits/go-panikint
The Trail of Bits Blog
Detect Go’s silent arithmetic bugs with go-panikint
We’re releasing go-panikint, a modified Go compiler that turns silent integer overflows into explicit panics. We used it to find a live integer overflow in the Cosmos SDK’s RPC pagination logic, showing how this approach eliminates a major blind spot for…
Open PRs — Vote to merge https://www.openchaos.dev/
pls upvote -> https://github.com/skridlevsky/openchaos/pull/14
thx
pls upvote -> https://github.com/skridlevsky/openchaos/pull/14
thx
Newton's Law of Universal Gravitation in action.
https://www.cnbc.com/2026/01/12/apple-google-ai-siri-gemini.html
https://www.cnbc.com/2026/01/12/apple-google-ai-siri-gemini.html
CNBC
Apple picks Google's Gemini to run AI-powered Siri coming this year
Google's market value surpassed Apple for the first time since 2019 as it rolls out updated artificial intelligence features.
Startup interview: please send us code you’re proud of, and we’ll review it and make a decision.
On one hand, it’s cool - no dumb LeetCode. On the other hand…it’s kind of hard to find something you’re reaaaally proud of that actually shows your skills or whatever.
Is this something new/popular on the market? I mean this type of interview.
On one hand, it’s cool - no dumb LeetCode. On the other hand…it’s kind of hard to find something you’re reaaaally proud of that actually shows your skills or whatever.
Is this something new/popular on the market? I mean this type of interview.
Python's
Thanks to LLM's this is now not that hard to read. Yes, Go's
struct module API is kinda impressive. Reminds me Malbolge.struct.pack('<IHB', 100, 3, 255)
struct.pack('>2Q', 1, 2)
struct.pack('!f', 3.14)
Thanks to LLM's this is now not that hard to read. Yes, Go's
time, I'm looking at you.
oleg_log
Python's struct module API is kinda impressive. Reminds me Malbolge. struct.pack('<IHB', 100, 3, 255) struct.pack('>2Q', 1, 2) struct.pack('!f', 3.14) Thanks to LLM's this is now not that hard to read. Yes, Go's time, I'm looking at you.
https://en.wikipedia.org/wiki/Malbolge
Hello World:
Hello World:
(=<`#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj