Introduction

First post on the new blog

Hello, world!

import Foundation

func sysctlStr(_ key: String) -> String {
    var size = 0
    sysctlbyname(key, nil, &size, nil, 0)
    var buf = [CChar](repeating: 0, count: size)
    sysctlbyname(key, &buf, &size, nil, 0)
    return String(cString: buf)
}

print("Hostname: \(sysctlStr("kern.hostname"))") 
print("Kernel Version: \(sysctlStr("kern.version"))")
Hostname: lakhans-mac-mini.local
Kernel Version: Darwin Kernel Version 27.0.0: Mon Jun 15 23:01:03 PDT 2026; root:xnu-13432.0.5.501.1~2/RELEASE_ARM64_T8132

I’m Lakhan Lothiyi, commonly known as llsc12 online. I study computer science and AI at university, and I’ll be posting about various Apple development things here for the most part!

This won’t be my first blog post unironically, since I wrote about some malware I found recently. It’s a little informal because I didn’t expect to publish it!

Thanks for checking out my site!