{"slug": "incin-a-rust-machine-learning-framework-for-setting-fire-to-dimensionality-bugs", "title": "Incin, a rust machine learning framework for setting fire to dimensionality bugs", "summary": "A developer has released Incin, a deep learning framework in Rust that encodes a tensor's shape, dtype, device, and gradient state into its type, turning mismatches into compiler errors. The project aims to explore how much of the tensor contract can be carried by the type system while remaining flexible and user-friendly.", "body_md": "[Incin](https://github.com/xupremix/incin) is a deep learning framework in Rust where a tensor’s shape, dtype, device and gradient state all live in its type. Shape, dtype, device mismatches and so on are compiler errors.\n\n``` js\nuse incin::prelude::*;\n let x = Cpu.randn(shape![4, 8])?;\nlet w = Cpu.randn(shape![8, 2])?;\nlet y = x.matmul(&w)?; // [4, 8] x [8, 2] -> [4, 2]\n let bad = Cpu.randn(shape![3, 8])?;\nlet _ = x.matmul(&bad)?; // inner dims 8 and 3: does not compile\n```\n\nThe main goal was to find out how much of the tensor contract the type system can genuinely carry, how flexible we can make it, and how pleasant to work with it can be.\n\nIf you're interested on the features, architecture or anything else:", "url": "https://wpnews.pro/news/incin-a-rust-machine-learning-framework-for-setting-fire-to-dimensionality-bugs", "canonical_source": "https://dev.to/xupremix/incin-a-rust-machine-learning-framework-for-setting-fire-to-dimensionality-bugs-55h8", "published_at": "2026-08-26 01:07:13+00:00", "updated_at": "2026-08-26 01:43:09.905409+00:00", "lang": "en", "topics": ["machine-learning", "developer-tools"], "entities": ["Incin", "Rust"], "alternates": {"html": "https://wpnews.pro/news/incin-a-rust-machine-learning-framework-for-setting-fire-to-dimensionality-bugs", "markdown": "https://wpnews.pro/news/incin-a-rust-machine-learning-framework-for-setting-fire-to-dimensionality-bugs.md", "text": "https://wpnews.pro/news/incin-a-rust-machine-learning-framework-for-setting-fire-to-dimensionality-bugs.txt", "jsonld": "https://wpnews.pro/news/incin-a-rust-machine-learning-framework-for-setting-fire-to-dimensionality-bugs.jsonld"}}