r/linuxadmin • u/Ok_Sky3062 • 28d ago
libark: A modern, secure, Swift-native foundational layer over Linux POSIX primitives. {Early Development}
https://github.com/ARK-OS-Swift-and-Linux/libarklibark
libark is a modern, secure, Swift-native foundational layer over Linux POSIX primitives.
While originally developed as the core runtime layer for ArkOS, libark is completely decoupled and designed to be used on any Linux distribution. It provides highly secure, object-oriented abstractions over low-level system calls, memory management, and file system interactions, without the burden of manual C interoperability.
Features
- Object-Oriented POSIX: Wraps file descriptors, paths, and directory operations in safe, RAII-compliant Swift types.
- Secure Syscall Boundary: Routes kernel interactions through strict, audited Syscall primitives.
- Terminal Capabilities: Built-in abstractions for TTY detection and window sizing.
- Advanced Formatting: Standardized formatters for human-readable byte sizes (SI and IEC), ISO 8601 timestamps, permissions, and classifications.
- Declarative Sorting: Powerful generic SortEngine for metadata sorting across multiple criteria.
Also ARK-OS has switched to github: https://github.com/orgs/ARK-OS-Swift-and-Linux/repositories
-2
u/insanemal 28d ago
Wow I hate it.
Keep that swift bullshit over in Mac Land thanks
-1
u/Ok_Sky3062 28d ago
Swift is actually a good langauge mate its secure, type-safe... Just because its a part of apple land dosen't neccesarilly make the langauge bad!
-2
u/insanemal 28d ago
I don't believe you.
Plus we have rust.
1
u/Ok_Sky3062 28d ago
They aren't identical under the hood—Rust is lower-level and has zero runtime overhead, whereas Swift has a lightweight runtime for ARC.
But in terms of modern language features , they are the same.
Swift gives you baout the same of rust safety and speed with a fraction of the speed.
You don't have to code borrow checker or write explicit lifetime annotations just to pass a variable to a function.
Rust is great programming systems, but Swift is much better for getting things built quickly without compiling errors!
Also why i switched from rust to swift!
-1
u/insanemal 28d ago
Yeah, see if it don't need rust I have python or go.
I don't see which gap swift actually fills
And how does it give me rust safety and speed with a fraction of the speed?
That doesn't make sense
2
u/notthedefaultnam 28d ago
Ok but why?