Hacker News new | ask | show | jobs
by pbw 4 days ago
This will happen for real. But then a JIT-like process will generate regular code for efficiency, on the fly in the background.
2 comments

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

Yeah, this is only a joke because it doesn't work very well at the moment. On-the-fly code generation is the logical conclusion of coding models.