Odin's New Inline Assembly Templates

22 points by gingerBill


linkdd

Honestly, this is great.

In C land, inline assembly is mostly: "copy/paste this snippet in your codegen" and you have to write it as string literals with embedded linebreaks.

Here, it feels like a high level assembly with a carefully designed bridge to Odin's type system, with many annotations to help both the developer and compiler understand what's going on.

While I'm not using Odin that much, it really feels like a well designed language where every feature fit together nicely.