Каталог Agent Skills — навыки для Claude, ChatGPT, Codex и др. Смотреть навыки
MCP book

Zig System Calls for Bun

Оптимизируйте файловый ввод-вывод и системные вызовы Zig с помощью bun.sys. Изучайте кроссплатформенные паттерны, обработку ошибок с Maybe(T) и специфические для Bun системные реализации.

The Zig System Calls skill provides specialized guidance for developers working within the Bun ecosystem to perform low-level file operations and syscalls. It emphasizes the use of the `bun.sys` library over Zig's standard `std.fs` or `std.posix` modules to ensure superior cross-platform compatibility, especially for Windows environments. By leveraging the `Maybe(T)` union type, the skill helps developers implement robust error handling that includes syscall tags, file descriptors, and automatic retry logic for interrupted calls (EINTR), resulting in more stable and performant systems code.

Key Features

01Advanced error handling with detailed syscall metadata
02Automatic EINTR retry logic for system-level operations
03Directory iteration and optimized Linux statx support
04Cross-platform normalization for Windows and POSIX systems
0585,980 GitHub stars
06Implementation patterns for the bun.sys.File wrapper

Use Cases

01Developing Bun core components or Zig-based Bun plugins
02Refactoring standard Zig code to use Bun's robust syscall interface
03Building high-performance file system utilities in Zig

Источник: https://mcpmarket.com/tools/skills/zig-system-calls-for-bun

Комментарии

Комментариев пока нет. Будьте первым.