Using a neural network implementation as a teaching tool for intermediate Rust — feedback welcome

āš“ Rust    šŸ“… 2026-02-05    šŸ‘¤ surdeus    šŸ‘ļø 6      

surdeus

I’m experimenting with whether implementing a small neural network engine can be a good teaching artifact for intermediate Rust concepts.

The project intentionally avoids external crates and focuses on:

  • flat memory layouts for tensors
  • explicit indexing math
  • simple, readable implementations over abstractions

The ML side exists mainly to force concrete design tradeoffs.

I’d appreciate feedback specifically on:
• API boundaries
• ownership/borrowing choices
• where this stops being idiomatic Rust
• whether this approach clarifies or obscures Rust concepts

Guide + code walkthrough:

1 post - 1 participant

Read full topic

šŸ·ļø Rust_feed