Karan
banner
kmj007.bsky.social
Karan
@kmj007.bsky.social
your friendly neighborhood nerd

https://blog.karanjanthe.me
main thing is, if you know how databases works, it becomes easy to build vector DB, 99% of the job is related to database, from WAL, databse storage format and other things, only 1% job is regarding the vectors and choosing ANN algo based on the trade offs you want
November 14, 2025 at 11:50 AM
November 10, 2025 at 7:51 AM
const std = @import("std");

pub fn main() !void {
std.debug.print("{d}\n", .{@sizeOf(User)});
}

const User = struct {
id: u32,
name: []const u8,
};

The answer here is 24, not 20, cause 4 bytes are added for padding
October 30, 2025 at 7:40 AM