Skip to content

Feat/fs stdlib extension#12

Merged
lucaas-d3v merged 6 commits intodevfrom
feat/fs-stdlib-extension
Mar 12, 2026
Merged

Feat/fs stdlib extension#12
lucaas-d3v merged 6 commits intodevfrom
feat/fs-stdlib-extension

Conversation

@lucaas-d3v
Copy link
Owner

feat(fs/tests): overhaul FS API with zero-copy and recursive test runner

  • File System API Expansion & Hardening: Implemented native POSIX bindings for mkdir, rm, rm_dir, touch, ls, is_dir, is_file, file_size, mv, and copy.
  • Zero-Copy Architecture: The copy routine now utilizes the Linux sendfile syscall, piping bytes entirely within kernel space for maximum throughput, bypassing user-space memory allocation.
  • OS-Level Error Handling: Deprecated legacy flint_panic in I/O operations. read_file, write_file, and all new FS functions now return a boxed FlintValue, bubbling up genuine OS errno strings to the Flint catch block.
  • Test Infrastructure Revamp: Replaced shallow directory iteration with Zig's recursive Walker. Tests are now strictly segmented by domain (io, http, arrays, strings, etc.), tracking relative execution paths and enforcing strict teardown hygiene.

All 27/27 test suites passing. The foundation for DevOps scripting is now solidified.

lucaas-d3v and others added 6 commits March 11, 2026 00:02
- **File System API Expansion & Hardening**: Implemented native POSIX bindings for `mkdir`, `rm`, `rm_dir`, `touch`, `ls`, `is_dir`, `is_file`, `file_size`, `mv`, and `copy`.
- **Zero-Copy Architecture**: The `copy` routine now utilizes the Linux `sendfile` syscall, piping bytes entirely within kernel space for maximum throughput, bypassing user-space memory allocation.
- **OS-Level Error Handling**: Deprecated legacy `flint_panic` in I/O operations. `read_file`, `write_file`, and all new FS functions now return a boxed `FlintValue`, bubbling up genuine OS `errno` strings to the Flint `catch` block.
- **Test Infrastructure Revamp**: Replaced shallow directory iteration with Zig's recursive `Walker`. Tests are now strictly segmented by domain (io, http, arrays, strings, etc.), tracking relative execution paths and enforcing strict teardown hygiene.

All 27/27 test suites passing. The foundation for DevOps scripting is now solidified.
@lucaas-d3v lucaas-d3v merged commit 007d646 into dev Mar 12, 2026
2 checks passed
@lucaas-d3v lucaas-d3v deleted the feat/fs-stdlib-extension branch March 12, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant