Hacker News new | ask | show | jobs
by TimByte 3 days ago
There's no practical point to this. System calls and hardware interactions are deterministic. We don't need a probabilistic model to efficiently handle interrupts or write blocks to disk. Ai is great for the user interface layer, but at the kernel level, hardcoded C or Rust will always be faster and more reliable

The only viable scenario for that kind of ji approach would be a profiler that analyzes load patterns and recompiles kernel modules with optimal compiler flags for a specific use case. Dynamically generating kernel code from scratch would kill the system with compilation and ast verification overhead