cd /news/machine-learning/incin-a-rust-machine-learning-framew… · home topics machine-learning article
[ARTICLE · art-111104] src=dev.to ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Incin, a rust machine learning framework for setting fire to dimensionality bugs

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.

read1 min views1 publishedAug 26, 2026

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.

use incin::prelude::*;

let x = Cpu.randn(shape![4, 8])?;
let w = Cpu.randn(shape![8, 2])?;
let y = x.matmul(&w)?; // [4, 8] x [8, 2] -> [4, 2]

let bad = Cpu.randn(shape![3, 8])?;
let _ = x.matmul(&bad)?; // inner dims 8 and 3: does not compile

The 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.

If you're interested on the features, architecture or anything else:

── more in #machine-learning 4 stories · sorted by recency
── more on @incin 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/incin-a-rust-machine…] indexed:0 read:1min 2026-08-26 ·