oleg_log
1.77K subscribers
1.86K photos
129 videos
9 files
2.77K links
Shelter for antisocial programmers "Oleg"

halp: @olegkovalov
web: https://olegk.dev
fov: @oleg_fov
chat: @oleg_log_blabla
podcast: @generictalks
Download Telegram
Go ahead, self-host Postgres

Love this "The real operational complexity" paragraph.

https://pierce.dev/notes/go-ahead-self-host-postgres
> Remember, an LLM is a JPG of all the text of the internet.

😂
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:

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/
Ignoring case in configuration files is bad. Really, what problem are you trying to solve?

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.
Java’s == and .equal moment, apparently.
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
Hey, Linux gamers. Any suggestions on Linux distro?
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.
Please open Telegram to view this post
VIEW IN TELEGRAM
Any cool programming languages to share?

Gleam, C3, Hare, etc
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.