<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zhongkai Fu</title>
    <description>The latest articles on DEV Community by Zhongkai Fu (@zhongkaifu).</description>
    <link>https://dev.to/zhongkaifu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3997340%2F8de0c4c9-4495-4eca-aea0-688845bc68c9.jpg</url>
      <title>DEV Community: Zhongkai Fu</title>
      <link>https://dev.to/zhongkaifu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zhongkaifu"/>
    <language>en</language>
    <item>
      <title>New Book: From Tensors to Tokens: Building a Multimodal LLM Inference Engine from Scratch with TensorSharp and Gemma 4 E4B</title>
      <dc:creator>Zhongkai Fu</dc:creator>
      <pubDate>Tue, 21 Jul 2026 02:03:23 +0000</pubDate>
      <link>https://dev.to/zhongkaifu/new-book-from-tensors-to-tokens-building-a-multimodal-llm-inference-engine-from-scratch-with-ijg</link>
      <guid>https://dev.to/zhongkaifu/new-book-from-tensors-to-tokens-building-a-multimodal-llm-inference-engine-from-scratch-with-ijg</guid>
      <description>&lt;p&gt;My new book is now available on Amazon! 😀&lt;/p&gt;

&lt;p&gt;This book is written for AI application developers who are not satisfied with simply calling an LLM endpoint and want to understand model architectures and the internal workings of inference engines. It uses the open-source TensorSharp project and Google’s Gemma 4 E4B GGUF model as practical examples.&lt;/p&gt;

&lt;p&gt;TensorSharp has achieved performance parity with llama.cpp across the main benchmarks, while outperforming it in several scenarios. The book explains some of the key performance optimizations and their implementations, including paged and prefix KV caching, continuous batching, GPU kernel fusion, and more.&lt;/p&gt;

&lt;p&gt;I chose Gemma 4 E4B, a dense model, because it is a compact multimodal model that supports images, audio, and video, making it suitable for a wide range of devices. TensorSharp also supports and is optimized for MoE and diffusion architectures, as well as model families such as Qwen and GPT-OSS. However, due to limitations in time and book length, these topics are not covered in this edition. Those interested can explore the project directly on GitHub or contact me for further discussion.&lt;/p&gt;

&lt;p&gt;I selected GGUF because it is an inference- and edge-device-friendly model format. This is particularly relevant to the .NET ecosystem, where local applications, mobile applications, and game development are important use cases. TensorSharp also supports the Safetensors format, which it currently uses for VAE and LoRA models.&lt;/p&gt;

&lt;p&gt;For clarity and ease of understanding, the book primarily presents the CPU code path. In practice, however, TensorSharp supports and is extensively optimized for multiple GPU backends, including NVIDIA CUDA, Apple Metal/MLX, and Vulkan for AMD, Intel, and other devices. More implementation details are available in the GitHub repository.&lt;/p&gt;

&lt;p&gt;TensorSharp and this book focus exclusively on model inference. For model training, readers can refer to Seq2SeqSharp, one of my earlier open-source projects. Adding a trainer to TensorSharp itself would not be particularly difficult, but building a modern, efficient architecture that unifies training and inference is a much larger undertaking. I do not currently have sufficient resources to explore that topic properly, so it remains outside the project’s scope for now.&lt;/p&gt;

&lt;p&gt;One more point: TensorSharp is a project built with the assistance of a native coding agent. Throughout the book, I have also incorporated my own views on how code-agent-driven projects should be developed and managed—perhaps a little personal perspective woven into the technical content.&lt;/p&gt;

&lt;p&gt;The philosophy can be summarized as:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Contracts as the source of truth.&lt;br&gt;
Test-driven development.&lt;br&gt;
Evaluation before optimization.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here is the book link on Amazon:&lt;a href="https://www.amazon.com/dp/B0H9P44QZZ" rel="noopener noreferrer"&gt;From Tensors to Tokens: Building a Multimodal LLM Inference Engine from Scratch with TensorSharp and Gemma 4 E4B&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is TensorSharp Github Repo: &lt;a href="https://github.com/zhongkaifu/TensorSharp" rel="noopener noreferrer"&gt;https://github.com/zhongkaifu/TensorSharp&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>gemma</category>
      <category>csharp</category>
      <category>dotnet</category>
    </item>
    <item>
      <title>Virtual Clothes Try-On by TensorSharp</title>
      <dc:creator>Zhongkai Fu</dc:creator>
      <pubDate>Mon, 13 Jul 2026 06:33:07 +0000</pubDate>
      <link>https://dev.to/zhongkaifu/virtual-clothes-try-on-by-tensorsharp-56hm</link>
      <guid>https://dev.to/zhongkaifu/virtual-clothes-try-on-by-tensorsharp-56hm</guid>
      <description>&lt;p&gt;The video shows virtual cloth try on demo by &lt;a href="https://github.com/zhongkaifu/TensorSharp" rel="noopener noreferrer"&gt;TensorSharp&lt;/a&gt; using Unsloth Qwen Image Edit 2511 models.&lt;br&gt;&lt;br&gt;
Here are models using in this demo:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Qwen-Image-Edit&lt;/th&gt;
&lt;th&gt;MMDiT DiT (the&amp;nbsp;&lt;code&gt;--model&lt;/code&gt;&amp;nbsp;GGUF)&lt;/th&gt;
&lt;th&gt;&lt;a href="https://huggingface.co/unsloth/Qwen-Image-Edit-2511-GGUF" rel="noopener noreferrer"&gt;unsloth/Qwen-Image-Edit-2511-GGUF&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;e.g.&amp;nbsp;&lt;code&gt;qwen-image-edit-2511-Q4_K_M.gguf&lt;/code&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Qwen-Image-Edit&lt;/td&gt;
&lt;td&gt;Qwen-Image VAE (required)&lt;/td&gt;
&lt;td&gt;&lt;a href="https://huggingface.co/QuantStack/Qwen-Image-Edit-GGUF" rel="noopener noreferrer"&gt;QuantStack/Qwen-Image-Edit-GGUF&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;VAE/Qwen_Image-VAE.safetensors&lt;/code&gt;&amp;nbsp;— place next to the DiT or pass&amp;nbsp;&lt;code&gt;--qwen-image-vae&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen-Image-Edit&lt;/td&gt;
&lt;td&gt;Qwen2.5-VL-7B text encoder (required)&lt;/td&gt;
&lt;td&gt;&lt;a href="https://huggingface.co/unsloth/Qwen2.5-VL-7B-Instruct-GGUF" rel="noopener noreferrer"&gt;unsloth/Qwen2.5-VL-7B-Instruct-GGUF&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Optional vision mmproj:&amp;nbsp;&lt;code&gt;mmproj-BF16.gguf&lt;/code&gt;&amp;nbsp;(same repo) for image-grounded edits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen-Image-Edit&lt;/td&gt;
&lt;td&gt;Lightning LoRA (optional, 4/8-step)&lt;/td&gt;
&lt;td&gt;&lt;a href="https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning" rel="noopener noreferrer"&gt;lightx2v/Qwen-Image-Edit-2511-Lightning&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors&lt;/code&gt;&amp;nbsp;via&amp;nbsp;&lt;code&gt;--qwen-image-lora&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For TensorSharp.Server (OpenAI/Ollama comptiable API endpoint and WebUX chat), it can be launched by this command line:&lt;/p&gt;

&lt;p&gt;TensorSharp.Server.exe --model c:\Works\models\qwen-image-edit-2511-Q4_K_M.gguf --qwen-image-vae c:\Works\models\Qwen_Image-VAE.safetensors --qwen-image-vl c:\Works\models\qwen-image-te-Qwen2.5-VL-7B-Q4_K_M.gguf --qwen-image-mmproj c:\works\models\Qwen2.5-VL-7B-mmproj-BF16.gguf --backend ggml_cuda --qwen-image-lora c:\Works\models\Qwen-Image-Edit-2511-Lightning-8steps-V1.0-bf16.safetensors&lt;/p&gt;

&lt;p&gt;Here is an benchmarks results comparing to stable-diffusion.cpp:&lt;/p&gt;

&lt;h1&gt;
  
  
  Image editing (stable-diffusion)
&lt;/h1&gt;

&lt;p&gt;Same input image, prompt, resolution, step count, cfg and seed for every engine. Timings are each engine's&amp;nbsp;&lt;strong&gt;own pipeline timers&lt;/strong&gt;&amp;nbsp;(TensorSharp's&amp;nbsp;&lt;code&gt;[pipe-timing]&lt;/code&gt;&amp;nbsp;phases + server&amp;nbsp;&lt;code&gt;elapsedSeconds&lt;/code&gt;; sd.cpp's phase logs +&amp;nbsp;&lt;code&gt;generate_image&lt;/code&gt;&amp;nbsp;total), so weight-file loading and HTTP/process overhead are excluded on both sides.&amp;nbsp;&lt;code&gt;total (warm)&lt;/code&gt;&amp;nbsp;is the steady-state request on an already-running server;&amp;nbsp;&lt;code&gt;first request (cold)&lt;/code&gt;&amp;nbsp;additionally pays TensorSharp's per-request DiT rebuild + graph capture on a fresh server (a CLI engine has no such distinction). Lower is better.&lt;/p&gt;

&lt;h1&gt;
  
  
  Qwen-Image-Edit 2511 (Q2_K DiT + Lightning 4-step LoRA) —&amp;nbsp;image_edit&amp;nbsp;on CUDA, 544x1184, 4 steps
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Engine&lt;/th&gt;
&lt;th&gt;total (warm)&lt;/th&gt;
&lt;th&gt;per step&lt;/th&gt;
&lt;th&gt;sampling&lt;/th&gt;
&lt;th&gt;text encode&lt;/th&gt;
&lt;th&gt;VAE encode&lt;/th&gt;
&lt;th&gt;VAE decode&lt;/th&gt;
&lt;th&gt;first request (cold)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TensorSharp&lt;/td&gt;
&lt;td&gt;40.44 s&lt;/td&gt;
&lt;td&gt;7.57 s&lt;/td&gt;
&lt;td&gt;30.27 s&lt;/td&gt;
&lt;td&gt;7.45 s&lt;/td&gt;
&lt;td&gt;0.54 s&lt;/td&gt;
&lt;td&gt;1.51 s&lt;/td&gt;
&lt;td&gt;54.11 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;stable-diffusion.cpp&lt;/td&gt;
&lt;td&gt;48.16 s&lt;/td&gt;
&lt;td&gt;9.43 s&lt;/td&gt;
&lt;td&gt;37.73 s&lt;/td&gt;
&lt;td&gt;4.47 s&lt;/td&gt;
&lt;td&gt;1.92 s&lt;/td&gt;
&lt;td&gt;2.57 s&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;TensorSharp vs stable-diffusion.cpp&lt;/strong&gt;&amp;nbsp;(ratio = stable-diffusion.cpp time / TensorSharp time; &amp;gt; 1.0× = TensorSharp faster): total (warm)&amp;nbsp;&lt;strong&gt;1.19×&lt;/strong&gt;, per step&amp;nbsp;&lt;strong&gt;1.25×&lt;/strong&gt;, sampling&amp;nbsp;&lt;strong&gt;1.25×&lt;/strong&gt;, text encode&amp;nbsp;&lt;strong&gt;0.60×&lt;/strong&gt;, VAE encode&amp;nbsp;&lt;strong&gt;3.56×&lt;/strong&gt;, VAE decode&amp;nbsp;&lt;strong&gt;1.70×&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It also has on par performance on auto regression LLM models comparing to llama.cpp. Here is details: &lt;a href="https://github.com/zhongkaifu/TensorSharp/blob/main/docs/engine_comparison_report.md" rel="noopener noreferrer"&gt;https://github.com/zhongkaifu/TensorSharp/blob/main/docs/engine_comparison_report.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/zhongkaifu/TensorSharp" rel="noopener noreferrer"&gt;TensorSharp&lt;/a&gt; is an open source local Unsloth (GGUF) LLM inference engine and applications. It supports many models from Unsloth, like Gemma4, DiffusionGemma, Qwen3.6 with multi-modal (image, vision, audio), Qwen Image Edit, reasoning and function tool. It can run on Windows/MacOS/Linux and fully leverage GPU's capability using Cuda, Metal and Vulkan. The API is completely compatible with OpenAI and Ollama interface. It has on par performance than llama.cpp&lt;/p&gt;

&lt;p&gt;This project is not just a C# wrapper of llama.cpp. It implemented the entire LLM inference engine from bottom to top. If you use CPU backend, it's 100% pure C# code execution. Besides CPU backend, I also implmented CUDA, MLX and GGML backend including ggml_cuda, ggml_vulkan, ggml_metal and ggml_cpu. The GGML backend refer GGML project as external project, and I build a few fusion operation at higher level.&lt;/p&gt;

&lt;p&gt;I learned a lot from other projects and apply them for TensorSharp, such as paged KV cache and continuous batching from vLLM, SSD based cache for MoE model from oMLX, GGUF quanztized from llama.cpp and other optimizations for prefill and decode.&lt;/p&gt;

&lt;p&gt;Any feedback and comments are welcome. If you like it, it would be really appreciated if you can get this project a star in GitHub: &lt;a href="https://github.com/zhongkaifu/TensorSharp" rel="noopener noreferrer"&gt;https://github.com/zhongkaifu/TensorSharp&lt;/a&gt; . Thanks in advance.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>csharp</category>
      <category>dotnet</category>
      <category>programming</category>
    </item>
    <item>
      <title>What Bun’s Rust Rewrite Tells Us About Rebuilding the AI Infrastructure Layer in C#</title>
      <dc:creator>Zhongkai Fu</dc:creator>
      <pubDate>Sat, 11 Jul 2026 06:49:06 +0000</pubDate>
      <link>https://dev.to/zhongkaifu/what-buns-rust-rewrite-tells-us-about-rebuilding-the-ai-infrastructure-layer-in-c-14ch</link>
      <guid>https://dev.to/zhongkaifu/what-buns-rust-rewrite-tells-us-about-rebuilding-the-ai-infrastructure-layer-in-c-14ch</guid>
      <description>&lt;p&gt;I use Google translator to translate the entire original blog in Chinese again and post it here. It's a interesting research and insightful thoughts. Hope you like it.&lt;/p&gt;

&lt;p&gt;This article is translated from the original blog in Chinese from &lt;a href="https://www.cnblogs.com/shanyou/p/21309486" rel="noopener noreferrer"&gt;https://www.cnblogs.com/shanyou/p/21309486&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  I. Lessons from Bun: System-level software must embrace compiled languages
&lt;/h1&gt;

&lt;p&gt;In late 2025, the Bun team published a blog post that shocked the industry – "Rewriting Bun in Rust". They migrated 535,000 lines of Zig code to Rust &lt;strong&gt;in 11 days using 64 Claude instances .&lt;/strong&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  1.1 Why rewrite?
&lt;/h1&gt;

&lt;p&gt;Bun is a JavaScript runtime, and its core challenge lies in the fact that &lt;strong&gt;JavaScript is a garbage-collected language, while the runtime requires manual memory management at the underlying level&lt;/strong&gt; . Zig provides extreme control, but it also introduces structural problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;node:zlib&lt;/code&gt;use-after-free crash&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;node:http2&lt;/code&gt;The re-entrant JS callback caused the hashmap to become invalid.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;UDPSocket.sendMany()&lt;/code&gt;Overbounded writing&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fs.watch()&lt;/code&gt;A memory leak is caused by a GC root reference count underflow.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are not edge cases, but &lt;strong&gt;structural problems in system-level software&lt;/strong&gt; . When GC and manual memory management are intertwined, the compiler cannot verify the lifecycle and can only rely on the engineer's "extreme caution" and post-hoc fuzzing/ASAN to remedy the situation.&lt;/p&gt;

&lt;h1&gt;
  
  
  1.2 Rust's Solution: Turning "Style Guidelines" into "Compiler Errors"
&lt;/h1&gt;

&lt;p&gt;The Bun team tried various solutions and ultimately found that: &lt;strong&gt;"Homegrown smart pointers offer worse ergonomics than Rust, with none of the guarantees."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Rust's borrow checker transforms "memory safety style guidelines" into &lt;strong&gt;compile-time mandatory constraints&lt;/strong&gt; . This isn't an improvement in the development experience, but &lt;strong&gt;a fundamental change in the feedback loop&lt;/strong&gt; —from "runtime crash → debug → fix" to "compile error → immediate correction".&lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  1.3 Mapping to AI Infrastructure
&lt;/h1&gt;

&lt;p&gt;AI infrastructure faces the same structural problems:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Bun's pain points&lt;/th&gt;
&lt;th&gt;The corresponding pain points of AI infrastructure&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Zig manual memory management + JS garbage collection hybrid → use-after-free&lt;/td&gt;
&lt;td&gt;Python GIL + Dynamic Typing → Runtime Crashes, Memory Leaks, Concurrency Bottlenecks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;With 500,000 lines of code, style guidelines are difficult to enforce.&lt;/td&gt;
&lt;td&gt;The "glue code" of Python AI frameworks is difficult to maintain.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11 days x 64 Claude rewrites, cost $165,000&lt;/td&gt;
&lt;td&gt;The maintenance cost of AI infrastructure increases exponentially with scale.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Key Insight&lt;/strong&gt; : AI inference services are shifting from "lab scripts" to "production infrastructure," and Python's dynamic typing and GIL are becoming system-level bottlenecks.&lt;/p&gt;

&lt;h1&gt;
  
  
  II. TensorSharp: A Breakthrough Validation of a C# AI Inference Engine
&lt;/h1&gt;

&lt;p&gt;Before discussing the "potential" of C#, let's answer a fundamental question: &lt;strong&gt;Does C# already have the strength to compete with C++ in terms of AI inference performance?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer is: &lt;strong&gt;It already possesses it, and it is surpassing it&lt;/strong&gt; .&lt;/p&gt;

&lt;h1&gt;
  
  
  2.1 TensorSharp's Qwen Image Edit 2511 benchmark
&lt;/h1&gt;

&lt;p&gt;TensorSharp is a deep learning inference engine implemented purely in C#, and recently added support for &lt;strong&gt;Qwen Image Edit 2511.&lt;/strong&gt; In comparison with stable-diffusion.cpp (the de facto standard in C++):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test conditions&lt;/strong&gt; : CUDA · 544×1184 · 4 Steps · Q2_K DiT + Lightning 4-step LoRA · Same input, Prompt, CFG, Seed&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;index&lt;/th&gt;
&lt;th&gt;TensorSharp (C#)&lt;/th&gt;
&lt;th&gt;stable-diffusion.cpp (C++)&lt;/th&gt;
&lt;th&gt;C# Advantages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total time (Warm)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;40.44 seconds&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;48.16 seconds&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 1.19x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Time per step&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7.57 seconds&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;9.43 seconds&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 1.25x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sampling&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;30.27 seconds&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;37.73 seconds&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 1.25x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;VAE encoding&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.54 seconds&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.92 seconds&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 3.56x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;VAE Decoding&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.51 seconds&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2.57 seconds&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 1.70x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  2.2 Key Breakthrough: C# performance ≈ C++, but engineering capabilities are far superior.
&lt;/h1&gt;

&lt;p&gt;TensorSharp reveals a long-overlooked truth: &lt;strong&gt;C# has achieved C++-level performance in AI inference (and even surpasses it in VAE encoding/decoding), while retaining the engineering capabilities for full lifecycle management.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;stable-diffusion.cpp and llama.cpp are masterpieces of C++—extremely high performance, but:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No type-safe API contracts&lt;/li&gt;
&lt;li&gt;There is no native DI container management model lifecycle&lt;/li&gt;
&lt;li&gt;No EF Core manages the generation of historical data.&lt;/li&gt;
&lt;li&gt;Without OpenTelemetry tracing inference links&lt;/li&gt;
&lt;li&gt;One-click deployment to Kubernetes without .NET Aspire&lt;/li&gt;
&lt;li&gt;No Roslyn analyzer catches configuration errors at compile time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;TensorSharp proves that C# can rival C++ in performance while providing full lifecycle management capabilities that C++ can never offer.&lt;/strong&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  III. C# vs Rust vs Go: Language Selection for AI Infrastructure Layer
&lt;/h1&gt;

&lt;p&gt;Bun's choice of Rust was correct—browser engines require &lt;strong&gt;extreme memory control&lt;/strong&gt; . Go is a "cloud-native language"—Kubernetes, Docker, and Istio are all written in Go. But AI infrastructure needs &lt;strong&gt;more than just "fast deployment"; it needs complete engineering capabilities "from requirements to evolution&lt;/strong&gt; . "&lt;/p&gt;

&lt;h1&gt;
  
  
  3.1 Core Differences
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Go&lt;/th&gt;
&lt;th&gt;Rust&lt;/th&gt;
&lt;th&gt;C#&lt;/th&gt;
&lt;th&gt;Scene judgment&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Memory Model&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;GC (Minimalist)&lt;/td&gt;
&lt;td&gt;Ownership + Borrow Checker&lt;/td&gt;
&lt;td&gt;GC + Span&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins&lt;/strong&gt; : AI inference doesn't require extreme memory usage and has zero cost.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Concurrency Model&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Goroutines&lt;/td&gt;
&lt;td&gt;Tokio/async&lt;/td&gt;
&lt;td&gt;async/await + TPL&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Go wins&lt;/strong&gt; : It's the simplest; &lt;strong&gt;C# wins&lt;/strong&gt; : It's deeply integrated with the ecosystem.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Compilation time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Extremely fast (seconds)&lt;/td&gt;
&lt;td&gt;Slow (10-30 minutes)&lt;/td&gt;
&lt;td&gt;Quick (2-5 minutes)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Go wins&lt;/strong&gt; : fastest; C# is fast enough.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Binary size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Very small (15MB)&lt;/td&gt;
&lt;td&gt;Small (100KB-1MB)&lt;/td&gt;
&lt;td&gt;Medium (45MB)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Go wins&lt;/strong&gt; : smallest; C# is small enough, but more feature-rich.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Kubernetes support&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Excellent (client-go)&lt;/td&gt;
&lt;td&gt;(kube-rs)&lt;/td&gt;
&lt;td&gt;Excellent (.NET K8s + Aspire)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Go wins&lt;/strong&gt; : Kubernetes itself uses Go; &lt;strong&gt;C# wins&lt;/strong&gt; : Aspire offers a higher level of abstraction.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Observability&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Manually configure OTel-go&lt;/td&gt;
&lt;td&gt;Manually configure tracing&lt;/td&gt;
&lt;td&gt;Native OTel .NET + Aspire Dashboard&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins big&lt;/strong&gt; : Otel First-Class Citizen&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Database/ORM&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Manual migration of GORM/sqlx&lt;/td&gt;
&lt;td&gt;Diesel/SeaORM compile-time verification&lt;/td&gt;
&lt;td&gt;EF Core + Code First Automated Migration&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# triumphs&lt;/strong&gt; : Migration and LINQ are productivity killers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;API Contract&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gin/Echo + Manual Verification&lt;/td&gt;
&lt;td&gt;Axum/Tonic + Manual Verification&lt;/td&gt;
&lt;td&gt;
&lt;a href="http://ASP.NET" rel="noopener noreferrer"&gt;ASP.NET&lt;/a&gt; Core + Source Generator + JSON Schema&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins&lt;/strong&gt; : Generates serialized code at compile time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dependency Injection&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No native implementation, relies on wire&lt;/td&gt;
&lt;td&gt;No native support, relies on manual methods.&lt;/td&gt;
&lt;td&gt;Native DI + Lifecycle Management + HostedService&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins big&lt;/strong&gt; : Dependency Injection (DI) is a core design pattern in .NET.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Deployment toolchain&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Docker + Manual Kubernetes YAML&lt;/td&gt;
&lt;td&gt;Cargo + Manual Configuration&lt;/td&gt;
&lt;td&gt;One-click .NET Aspire to generate Kubernetes&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins hands down&lt;/strong&gt; : Aspire is "cloud-native Spring Boot"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI ecosystem integration&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;ONNX Go Community Maintenance&lt;/td&gt;
&lt;td&gt;Candle/burn emerging ecosystem&lt;/td&gt;
&lt;td&gt;ONNX C# Official + TensorSharp + SK&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins hands down&lt;/strong&gt; : Microsoft's official AI stack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Development efficiency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2-4 weeks&lt;/td&gt;
&lt;td&gt;3-6 months&lt;/td&gt;
&lt;td&gt;1-2 weeks&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins&lt;/strong&gt; : Familiarity with GC, large developer base.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Talent Costs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$150K-$180K&lt;/td&gt;
&lt;td&gt;$185K-$230K&lt;/td&gt;
&lt;td&gt;$130K-$165K&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# wins&lt;/strong&gt; : Abundant talent and controllable costs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Full lifecycle coverage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;40% (coding + deployment)&lt;/td&gt;
&lt;td&gt;30% (coding + compilation)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;95%&lt;/strong&gt; (Demand → Evolution)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;C# triumphs&lt;/strong&gt; : the only code to cover the entire lifecycle.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt; : In the AI ​​infrastructure layer, &lt;strong&gt;C# wins or ties in 10+/14 dimensions&lt;/strong&gt; . Rust only leads in 2 dimensions (concurrency safety, zero memory cost), while Go leads in 3 dimensions (compilation speed, image size, native Kubernetes) but lacks full lifecycle coverage.&lt;/p&gt;

&lt;h1&gt;
  
  
  3.2 Why should C# (instead of Go/Rust) be chosen for AI infrastructure?
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    Full lifecycle management requirements ↑
                         |
    Python  ←———————————·——————————→  Rust
    (Low control + low management)       |            (High control + low management)
                         |
                         ↓  System-level control requirements

              Go  ←——————·——————→  C#
           (High deployment + medium management)       (Medium control + high management)

                    C#'s sweet spot: upper-right quadrant
                    - 2x more complete full lifecycle management than Go
                    - 3-5x higher development efficiency than Rust
                    - TensorSharp proves performance ≈ C++
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Bun chose Rust&lt;/strong&gt; because browser engines require extreme memory control and deep interoperability with C++ libraries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Go's positioning&lt;/strong&gt; : a cloud-native language, but &lt;strong&gt;limited to the deployment layer&lt;/strong&gt; .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OpenClaw chooses C#&lt;/strong&gt; : AI infrastructure requires full lifecycle management + native Microsoft ecosystem + team scalability + &lt;strong&gt;C++-level performance proven by TensorSharp&lt;/strong&gt; .&lt;/p&gt;

&lt;p&gt;Go can help you "get the service running," while C# can help you "go from requirements to evolution"—including domain modeling, API contracts, compile-time checks, automatic migration, distributed tracing, one-click deployment, &lt;strong&gt;and the image/text reasoning engine itself&lt;/strong&gt; .&lt;/p&gt;

&lt;h1&gt;
  
  
  IV. Performance Benchmarks: C# Native AOT outperforms Python and is on par with Go/Rust.
&lt;/h1&gt;

&lt;h1&gt;
  
  
  4.1 Cold Start and Deployment Efficiency
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;language&lt;/th&gt;
&lt;th&gt;Cold start (AWS Lambda 1024MB)&lt;/th&gt;
&lt;th&gt;Compared to Python&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Python&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;325ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;benchmark&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Go&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;45ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7.2x Faster&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rust&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;30ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10.8x Faster&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C# NativeAOT&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;35ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;9.3x Faster&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Deployment Form&lt;/th&gt;
&lt;th&gt;Mirror size&lt;/th&gt;
&lt;th&gt;Compared to Python&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Python AI Inference&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,200MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;benchmark&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Go minimal&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;15MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;80x smaller&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C# NativeAOT&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;45MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;26.7x smaller&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  4.2 Inference Throughput
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;TensorSharp Qwen 2511 (CUDA · 544×1184 · 4 Steps):&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;index&lt;/th&gt;
&lt;th&gt;TensorSharp (C#)&lt;/th&gt;
&lt;th&gt;sd.cpp (C++)&lt;/th&gt;
&lt;th&gt;C# Advantages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Total time (Warm)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;40.44s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;48.16s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 1.19x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sampling&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;30.27s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;37.73s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 1.25x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VAE encoding&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.54s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.92s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 3.56x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VAE Decoding&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.51s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2.57s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast 1.70x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;ONNX Runtime DeepSeek R1 (RTX 4090 CUDA):&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;PyTorch&lt;/th&gt;
&lt;th&gt;ONNX Runtime (C#)&lt;/th&gt;
&lt;th&gt;Advantages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek 1.5B Int4&lt;/td&gt;
&lt;td&gt;49.7 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;313.3 tok/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;6.3x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek 7B Int4&lt;/td&gt;
&lt;td&gt;43.5 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;161.0 tok/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3.7x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  4.3 Concurrency Performance
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concurrent users&lt;/th&gt;
&lt;th&gt;Python RPS&lt;/th&gt;
&lt;th&gt;C# RPS&lt;/th&gt;
&lt;th&gt;Advantages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;3,200&lt;/td&gt;
&lt;td&gt;9,500&lt;/td&gt;
&lt;td&gt;3.0x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;td&gt;4,200&lt;/td&gt;
&lt;td&gt;42,000&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10.0x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1000&lt;/td&gt;
&lt;td&gt;4,500&lt;/td&gt;
&lt;td&gt;78,000&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;17.3x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concurrent users&lt;/th&gt;
&lt;th&gt;Python memory&lt;/th&gt;
&lt;th&gt;C# Memory&lt;/th&gt;
&lt;th&gt;Advantages&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1000&lt;/td&gt;
&lt;td&gt;25,000MB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,600MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;15.6x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  4.4 General Calculation
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;language&lt;/th&gt;
&lt;th&gt;1GB JSON processing (AWS Lambda)&lt;/th&gt;
&lt;th&gt;efficiency&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Python&lt;/td&gt;
&lt;td&gt;12,000ms&lt;/td&gt;
&lt;td&gt;benchmark&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Go&lt;/td&gt;
&lt;td&gt;3,200ms&lt;/td&gt;
&lt;td&gt;3.8x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rust&lt;/td&gt;
&lt;td&gt;2,050ms&lt;/td&gt;
&lt;td&gt;5.9x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;C# NativeAOT&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2,050ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.9x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  4.5 Compile-time error catching: ∞ times advantage
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Error Type&lt;/th&gt;
&lt;th&gt;Python&lt;/th&gt;
&lt;th&gt;Go&lt;/th&gt;
&lt;th&gt;C#&lt;/th&gt;
&lt;th&gt;Cost differences&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Null reference&lt;/td&gt;
&lt;td&gt;Production crash → Investigation → Rollback&lt;/td&gt;
&lt;td&gt;panic → recovery&lt;/td&gt;
&lt;td&gt;Roslyn compile-time interception&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;∞&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Type mismatch&lt;/td&gt;
&lt;td&gt;Runtime TypeError&lt;/td&gt;
&lt;td&gt;Compilation error&lt;/td&gt;
&lt;td&gt;Compilation error&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;∞&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Resource leak&lt;/td&gt;
&lt;td&gt;Memory overflow → Restart&lt;/td&gt;
&lt;td&gt;Depends on GC&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;using&lt;/code&gt;Compile-time checks&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;∞&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  V. Microsoft Agent Framework: C# is always a "first-class citizen"
&lt;/h1&gt;

&lt;p&gt;In October 2025, Microsoft released &lt;strong&gt;the Microsoft Agent Framework&lt;/strong&gt; (MAF) Public Preview, merging AutoGen and Semantic Kernel into a unified framework.&lt;/p&gt;

&lt;h1&gt;
  
  
  Evolution Timeline
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;time&lt;/th&gt;
&lt;th&gt;milestone&lt;/th&gt;
&lt;th&gt;C# Positioning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2023&lt;/td&gt;
&lt;td&gt;Semantic Kernel First Release&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;First released in C#&lt;/strong&gt; , with Python to follow.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2024&lt;/td&gt;
&lt;td&gt;SK Agent Framework RC&lt;/td&gt;
&lt;td&gt;C# first class citizen&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2025.5&lt;/td&gt;
&lt;td&gt;Azure AI Foundry GA&lt;/td&gt;
&lt;td&gt;Unified runtime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;October 2025&lt;/td&gt;
&lt;td&gt;MAF Preview&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;AutoGen + SK merged&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026 Q1&lt;/td&gt;
&lt;td&gt;MAF 1.0 GA&lt;/td&gt;
&lt;td&gt;Production ready&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026 Q2&lt;/td&gt;
&lt;td&gt;Process Framework GA&lt;/td&gt;
&lt;td&gt;Deterministic workflow&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  VI. Token Economics: C# for Compression of Hidden Costs
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cost items&lt;/th&gt;
&lt;th&gt;Python&lt;/th&gt;
&lt;th&gt;Go&lt;/th&gt;
&lt;th&gt;C#&lt;/th&gt;
&lt;th&gt;C# optimization&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Container Image&lt;/td&gt;
&lt;td&gt;1,200MB&lt;/td&gt;
&lt;td&gt;15MB&lt;/td&gt;
&lt;td&gt;45MB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;26.7x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cold start&lt;/td&gt;
&lt;td&gt;3-10s&lt;/td&gt;
&lt;td&gt;&amp;lt;100ms&lt;/td&gt;
&lt;td&gt;&amp;lt;100ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;30-100x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concurrency Model&lt;/td&gt;
&lt;td&gt;GIL → Multi-process memory explosion&lt;/td&gt;
&lt;td&gt;Goroutines&lt;/td&gt;
&lt;td&gt;async/await + thread pool&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runtime error&lt;/td&gt;
&lt;td&gt;Production collapse&lt;/td&gt;
&lt;td&gt;panic&lt;/td&gt;
&lt;td&gt;Compile-time capture&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;∞&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Observability&lt;/td&gt;
&lt;td&gt;Manual third-party&lt;/td&gt;
&lt;td&gt;Manual configuration&lt;/td&gt;
&lt;td&gt;OTel native + Aspire&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment Configuration&lt;/td&gt;
&lt;td&gt;Manual Kubernetes YAML&lt;/td&gt;
&lt;td&gt;Manual Kubernetes YAML&lt;/td&gt;
&lt;td&gt;Aspire One-Click Generation&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;TensorSharp has changed the cost model of image generation: Python stack image 1.2GB, cold start 3-10s, uncontrollable memory; C# stack image &amp;lt;100MB, cold start &amp;lt;1s, DiT reconstruction once reused, controllable memory— &lt;strong&gt;this is exactly the economic basis that TokenHub needs&lt;/strong&gt; .&lt;/p&gt;

&lt;h1&gt;
  
  
  VII. OpenClaw.NET: Practice of C# AI Native Infrastructure
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────┐
│  Python algorithm layer (compatibility retained)               │
│  · PyTorch training · Jupyter prototyping            │
├─────────────────────────────────────────┤
│  MCP protocol (cross-language boundary)                   │
├─────────────────────────────────────────┤
│  C# AI-native infrastructure layer (OpenClaw.NET)     │
│  · TensorSharp (image/text inference engine)       │
│  · MetaSkill DAG (workflow orchestration)            │
│  · Harness engine (execution runtime)             │
│  · TokenHub (Token economics)               │
│  · AxonHub (data collection/CDC)                │
│  · Semantic Kernel (LLM orchestration)            │
│  · Microsoft Agent Framework (Agent lifecycle)│
│  · ONNX Runtime C# API (general-purpose inference)         │
├─────────────────────────────────────────┤
│  .NET runtime (NativeAOT + managed memory)       │
├─────────────────────────────────────────┤
│  Full lifecycle management layer (Aspire + OTel + EF Core)│
└─────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Key Design&lt;/strong&gt; :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MCP protocol&lt;/strong&gt; : Without rewriting PyTorch, it exposes Python's algorithmic capabilities as a "service" to the C# infrastructure layer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TensorSharp&lt;/strong&gt; : A pure C# engine that outperforms C++ sd.cpp, proving that C# is not just "glue" but an "engine".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;C# exclusive tier&lt;/strong&gt; : MetaSkill, Harness, TokenHub, AxonHub, TensorSharp. No Python/Go equivalents.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  VIII. Philosophy: From Builder to Agent Leader to Taste
&lt;/h1&gt;

&lt;p&gt;When TensorSharp enables C# developers to build AI engines with C++-level performance, and when .NET Aspire makes one-click deployment the default, a question arises: &lt;strong&gt;if "building engines" is no longer a privilege, where does the value of humanity lie?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer lies in three progressive concepts: &lt;strong&gt;Builder → AI Agent Leader → Taste&lt;/strong&gt; .&lt;/p&gt;

&lt;h1&gt;
  
  
  8.1 Builder: Democratizing Tools
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;The groundbreaking significance of TensorSharp lies not in being 1.19x faster than C++, but in enabling &lt;strong&gt;a C# developer to build an image generation engine that surpasses stable-diffusion.cpp without needing to master CUDA kernel programming or understand DiT mathematical principles&lt;/strong&gt; .&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In the past&lt;/strong&gt; : SDE meant "someone who can write code"—a professional skill, honed through years of training.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Now&lt;/strong&gt; : A Builder is "someone who uses code to realize ideas"—code is a means, not an end.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;C#'s role&lt;/strong&gt; : Lowering the barrier to entry for Builders. Aspire + SK + MAF + TensorSharp make "engines for everyone" a reality.&lt;/p&gt;

&lt;h1&gt;
  
  
  8.2 AI Agent Leader: From Execution to Decision Making
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;MetaSkill DAG is a perfect metaphor:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MetaSkill DAG&lt;/strong&gt; defines workflows—not "writing code," but "defining the problem space."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Harness engine&lt;/strong&gt; executes workflows—not "debug code," but "enables agents to collaborate."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TokenHub&lt;/strong&gt; tracks economics—not "optimizing performance," but "evaluating input and output."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Humans&lt;/strong&gt; are responsible for "judging" and "calibrating"—not "fixing bugs," but rather "verifying whether the results match the intent."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;In the past&lt;/strong&gt; , ICs were "task executors"—receiving requirements, breaking down tasks, writing code, submitting PRs, fixing reviews, and delivering features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Currently&lt;/strong&gt; : The Agent Leader is the "decision-maker who defines tasks, selects tools, and evaluates outputs"—when faced with ambiguous business problems, they need to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Defining the problem&lt;/strong&gt; : "We need a system that can automatically generate marketing images based on user descriptions"—translating business intent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool selection&lt;/strong&gt; : "TensorSharp for image generation, SK for prompt optimization, and TokenHub for cost tracking"—a decision regarding resource orchestration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orchestrate intelligent agents&lt;/strong&gt; : "MetaSkill DAG: User Input → Prompt Optimization Agent → Image Generation Agent → Quality Assessment Agent → Output" — Designing a collaborative workflow&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verification results&lt;/strong&gt; : "Does the image align with the brand's tone? Is the cost within budget? Is user feedback positive?" — Value judgment&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;C#'s role&lt;/strong&gt; : Providing agent infrastructure. MetaSkill DAG, Harness, TokenHub, MAF—not just "tools," but "operating systems for agent collaboration."&lt;/p&gt;

&lt;h1&gt;
  
  
  8.3 Taste: Humanity's Last Moat
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;Taste is not "preference," but rather &lt;strong&gt;a structured judgment ability&lt;/strong&gt; that includes three progressive levels:&lt;/p&gt;

&lt;h1&gt;
  
  
  Technical Taste: "Is this implementation elegant?"
&lt;/h1&gt;

&lt;p&gt;When AI can generate 100 architectural solutions, Taste decides which one is selected:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is the code structure clear? Is the interface abstraction appropriate?&lt;/li&gt;
&lt;li&gt;Architectural Evolvability: How many files need to be modified when requirements change?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In TensorSharp PR #81, the authors chose a specific DiT reconstruction strategy and the timing of CUDA Graph Capture—not the "only right" one, but rather an "elegant balance between performance, memory, and complexity."&lt;/p&gt;

&lt;h1&gt;
  
  
  Product Taste: "Is this feature worth implementing?"
&lt;/h1&gt;

&lt;p&gt;When AI can generate an infinite number of functions, Taste decides where to allocate resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Are the user pain points real? Are the solutions simple?&lt;/li&gt;
&lt;li&gt;Return on investment: Is the value of this feature worth the cognitive bandwidth consumed by the team?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the design of TokenHub, it is necessary to determine: Is tracking the "cost of each generated token" sufficient? Or is the "cumulative cost per user" necessary? Is "cost trend prediction for the next 7 days" necessary? — This is &lt;strong&gt;the product's Taste&lt;/strong&gt; .&lt;/p&gt;

&lt;h1&gt;
  
  
  Ethical Taste: "Should this technology exist?"
&lt;/h1&gt;

&lt;p&gt;When AI can generate any content, Taste determines where the boundaries lie:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can image generation systems be used for deepfakes? How can this be prevented?&lt;/li&gt;
&lt;li&gt;Will AI services cause unemployment for certain groups? How can this be mitigated?&lt;/li&gt;
&lt;li&gt;Does the agent system respect user privacy and autonomy?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;KPMG's Clara AI requires an audit trail—not a technical requirement, but &lt;strong&gt;an ethical one&lt;/strong&gt; —regarding the value judgment that "AI decisions must be explainable and auditable."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;C#'s role&lt;/strong&gt; : Freeing humans from the task of "Taste". Aspire automates deployment, TensorSharp automates inference, and MAF automates agent orchestration—liberating humans from "execution" and allowing them to focus on "judgment".&lt;/p&gt;

&lt;h1&gt;
  
  
  8.4 Evolutionary Logic of the Three-Layer Model
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    Value hierarchy ↑
                         |
    Taste  ←———————————·——————————→  Ethical judgment
    (Aesthetics/value/ethics)      |            (What deserves to exist)
                         |
                         ↓  Degree of automation

    Agent Leader  ←——————·——————→  Decision orchestration
    (Define/select/verify)      |            (Enable agents to collaborate)
                         |
                         ↓  Tool barrier

    Builder  ←———————————·——————————→  Execution and implementation
    (Use code to realize ideas)      |            (Build engines/write services)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This is not "replacement," but &lt;strong&gt;"sublimation"&lt;/strong&gt; :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The barrier to entry for Builders&lt;/strong&gt; continues to decrease, eventually becoming a basic skill like "writing".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Agent Leader&lt;/strong&gt; has evolved from an "executor" to a "decision-maker," with its core value shifting from "writing code" to "defining problems, orchestrating agents, and validating results."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Taste&lt;/strong&gt; is the eternal moat: no matter how powerful AI becomes, the judgment of "what is worth doing" always belongs to humans.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  8.5 Philosophical Mapping of &lt;a href="http://OpenClaw.NET" rel="noopener noreferrer"&gt;OpenClaw.NET&lt;/a&gt;
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;level&lt;/th&gt;
&lt;th&gt;Human roles&lt;/th&gt;
&lt;th&gt;
&lt;a href="http://OpenClaw.NET" rel="noopener noreferrer"&gt;OpenClaw.NET&lt;/a&gt; components&lt;/th&gt;
&lt;th&gt;C# Toolchain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Builder&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Implementing ideas with code&lt;/td&gt;
&lt;td&gt;TensorSharp, ONNX Runtime&lt;/td&gt;
&lt;td&gt;NativeAOT, Span Roslyn&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Agent Leader&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Define the problem, orchestrate the agents, and verify the results.&lt;/td&gt;
&lt;td&gt;MetaSkill DAG, Harness, TokenHub&lt;/td&gt;
&lt;td&gt;SK, MAF, Aspire&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Taste&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Determining "what's worth doing"&lt;/td&gt;
&lt;td&gt;DDD, JSON-LD Ontology&lt;/td&gt;
&lt;td&gt;Strongly typed systems, Nullable, Roslyn&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  IX. Design Proposal: From Passive Auditing to Proactive Taste Interception
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  9.1 Current Status of OpenClaw.NET: A Passive Audit Infrastructure
&lt;/h1&gt;

&lt;p&gt;&lt;a href="http://OpenClaw.NET" rel="noopener noreferrer"&gt;OpenClaw.NET&lt;/a&gt; currently implements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Harness Contracts&lt;/strong&gt; : Inspectable Agent Work Plans (Reactive, Does Not Change Default Behavior)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence Bundles&lt;/strong&gt; : Checkable operational evidence, risks, and manual review (passive, does not change default behavior).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Governance Ledger&lt;/strong&gt; : Persistent record of approval and oversight decisions (passive, does not change default behavior)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan-Execute-Verify Mode&lt;/strong&gt; : Proactive governance for high-risk tool execution (but only for security/compliance, not aesthetics/value).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The user_input pause point&lt;/strong&gt; : manually entered data, but not for value judgment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These capabilities are all "post-screening"—recording and exposing information for manual review, but not actively intercepting judgments based on "aesthetics/ethics/product value".&lt;/p&gt;

&lt;h1&gt;
  
  
  9.2 Design Proposal: Taste Review Node – From Passive to Proactive
&lt;/h1&gt;

&lt;p&gt;Based on the existing architecture, a three-layer evolution direction is proposed:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Current state of OpenClaw.NET (implemented):
┌─────────────────────────────────────────┐
│  Passive Harness Contracts              │  ← Inspectable work plans, but no interception
│  Passive Evidence Bundles               │  ← Inspectable runtime evidence, but no interception
│  Passive Governance Ledger              │  ← Inspectable approval records, but no interception
│  Plan-Execute-Verify Mode             │  ← Proactive interception, but only for security/compliance
│  user_input pause point                      │  ← Manual input, but not value judgment
└─────────────────────────────────────────┘
           ↓ Evolution direction
Design proposal (Taste review node):
┌─────────────────────────────────────────┐
│  Active TasteGate feature                   │  ← Proactive interception based on aesthetics/ethics/product value
│  ITasteGate&amp;lt;TInput, TOutput&amp;gt; interface        │  ← Generic constraints verified at compile time
│  TasteDecision enum (Pass/Retry/Abort)  │  ← Output of value judgment
│  Constraint types defined by the Agent Leader              │  ← BrandTaste / EthicalTaste / TechnicalTaste
└─────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
  
  
  9.3 Three-Tier Architecture Design Proposal
&lt;/h1&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────┐
│  ① Taste constraint definition layer (led by the Agent Leader)  │
│  · Business intent translation → technical constraints                │
│  · Domain modeling (DDD) → entities, boundaries, aggregate roots    │
│  · Taste presets → aesthetic standards, brand tone, ethical red lines│
│  Output: domain model + Taste constraint document          │
├─────────────────────────────────────────┤
│  ② Review logic execution layer (designed by the Agent Leader + executed by AI)│
│  · MetaSkill DAG → workflow topology           │
│  · Tool selection → TensorSharp? ONNX? SK?    │
│  · Agent role assignment → Prompt/image/quality/cost │
│  · Harness engine → scheduling, state, failure recovery   │
│  Output: executable Agent collaboration graph              │
├─────────────────────────────────────────┤
│  ③ Taste validation layer (final judgment by the Agent Leader)  │
│  · Technical Taste → code structure, API design, evolvability│
│  · Product Taste → user value, brand consistency, return on investment│
│  · Ethical Taste → compliance, social impact, copyright safety  │
│  Output: Pass / Retry / Abort               │
└─────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
  
  
  9.4 Example: MetaSkill DAG (Design Proposal) for an AI Marketing Image Generation System
&lt;/h1&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User input (natural language)
    ↓
Taste constraints (brand tone) ←—— Agent Leader preset: "tech blue + minimalism + no people"
    ↓
Budget limit (Token quota) ←—— TokenHub configuration: cost per generation ≤ $0.50
    ↓
┌─────────────────────────────────────────┐
│  Agent layer (autonomous AI execution)                  │
│  · Prompt optimization Agent (SK)                │
│  · Image generation Agent (TensorSharp + CUDA)   │
│  · Quality evaluation Agent (CLIP + aesthetic score)       │
│  · Cost accounting Agent (TokenHub)              │
└─────────────────────────────────────────┘
    ↓
┌─────────────────────────────────────────┐
│  Taste review node (design proposal)                │
│  · Technical Taste → Is the API design intuitive? Is the architecture evolvable?│
│  · Product Taste → Image quality? Brand consistency? User value?│
│  · Ethical Taste → Copyright compliance? Deepfake risk?      │
└─────────────────────────────────────────┘
    ↓
    ├─→ Pass → output image + cost report
    ├─→ Retry → optimize Prompt → regenerate (maximum 3 attempts)
    └─→ Abort → record failure → trigger alert → human intervention
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
  
  
  9.5 Key Design Principles (Design Proposal)
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Principle 1: The location of the Taste review node is determined by "scope of influence × uncertainty".&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Decision types&lt;/th&gt;
&lt;th&gt;Influence&lt;/th&gt;
&lt;th&gt;uncertain&lt;/th&gt;
&lt;th&gt;Intervention methods&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AI is fully autonomous&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;No review required&lt;/td&gt;
&lt;td&gt;API routing, log format, caching strategy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI-driven + human oversight&lt;/td&gt;
&lt;td&gt;high&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Asynchronous review&lt;/td&gt;
&lt;td&gt;Model version upgrade, automatic scaling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human-led + AI-assisted&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;high&lt;/td&gt;
&lt;td&gt;Simultaneous review&lt;/td&gt;
&lt;td&gt;Prompt style, UI color scheme, and copywriting tone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Human intervention is necessary.&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;high&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;high&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Mandatory audit&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Taste review, ethical boundaries, and structural direction&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Principle 2: The Taste review output is not "Approved/Rejected", but rather "Approved/Reversed/Terminated".&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pass&lt;/strong&gt; : Meets the Taste criteria, proceed to the next stage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retry&lt;/strong&gt; : There is room for improvement; optimize the return to the upstream Agent (loop limit to prevent infinite rollback).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Abort&lt;/strong&gt; : The "Taste" threshold is reached, logging fails, an alarm is triggered, and manual intervention is required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Principle 3: Taste constraints should be encoded at compile time (design proposal).&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Design proposal code: an evolution direction based on OpenClaw.NET's existing type system
// Note: This is not an implementation in the current codebase, but illustrates how to encode Taste constraints as compile-time-verifiable C# types

// Taste constraints as types
public record BrandTaste(
    ColorPalette AllowedColors,           // Compile-time validation: only tech blue and minimalist white are allowed
    bool AllowHumanFaces,                   // Compile-time validation: human images are prohibited
    decimal MaxCostPerImage,                // Compile-time validation: per-image cost cap
    EthicalConstraint[] Constraints,          // Compile-time validation: list of ethical constraints
    StyleGuideline StyleGuide                 // Compile-time validation: style guide
) : ITasteConstraint;

// Taste review node as a generic interface
public interface ITasteGate&amp;lt;TInput, TOutput&amp;gt;
    where TInput : ITasteAuditable           // Compile-time constraint: input must be auditable
    where TOutput : ITasteAuditable          // Compile-time constraint: output must be auditable
{
    TasteDecision Audit(TInput input, BrandTaste taste);
}

// Product Taste review implementation (design proposal)
public class ProductTasteGate : ITasteGate&amp;lt;GeneratedImage, ValidatedImage&amp;gt;
{
    public TasteDecision Audit(GeneratedImage input, BrandTaste taste)
    {
        // Compile-time validation: the type system ensures that input contains all required Taste audit fields
        if (input.StyleScore &amp;lt; taste.MinStyleScore)
            return TasteDecision.Retry("Insufficient style consistency; consider adjusting the Prompt");

        if (input.Cost &amp;gt; taste.MaxCostPerImage)
            return TasteDecision.Abort("Cost exceeds the Taste constraint; triggering a budget alert");

        if (!taste.AllowedColors.Contains(input.DominantColor))
            return TasteDecision.Retry("The dominant color does not match the brand tone; consider regenerating");

        return TasteDecision.Pass();
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  9.6 Agent Leader Capability Model (Design Proposal)
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Capability Dimension&lt;/th&gt;
&lt;th&gt;AI Agent (Current)&lt;/th&gt;
&lt;th&gt;Agent Leader (Human)&lt;/th&gt;
&lt;th&gt;complementary relationship&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Technical judgment&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;td&gt;7/10&lt;/td&gt;
&lt;td&gt;AI execution, human decision-making&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product Insights&lt;/td&gt;
&lt;td&gt;7/10&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;td&gt;AI-assisted, human-led&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ethical Sensitive&lt;/td&gt;
&lt;td&gt;4/10&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;td&gt;AI-assisted, human-led&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Systems thinking&lt;/td&gt;
&lt;td&gt;8/10&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;td&gt;AI-assisted, human-led&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Aesthetic Intuition&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3/10&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;9/10&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;AI-assisted, human-led&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Risk awareness&lt;/td&gt;
&lt;td&gt;6/10&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;td&gt;AI-assisted, human-led&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Evolutionary prediction&lt;/td&gt;
&lt;td&gt;5/10&lt;/td&gt;
&lt;td&gt;8/10&lt;/td&gt;
&lt;td&gt;AI-assisted, human-led&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  9.7 The Transition Path from IC to Agent Leader (Design Proposal)
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;stage&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Core Competencies&lt;/th&gt;
&lt;th&gt;Tools/Frameworks&lt;/th&gt;
&lt;th&gt;Value output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Level 1: Builder&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;code implementer&lt;/td&gt;
&lt;td&gt;Coding, debugging, optimization&lt;/td&gt;
&lt;td&gt;IDE, Git, CI/CD&lt;/td&gt;
&lt;td&gt;Functional delivery&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Level 2: Agent Operator&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Intelligent agent operator&lt;/td&gt;
&lt;td&gt;Prompt Project, Agent Configuration&lt;/td&gt;
&lt;td&gt;SK, AutoGen&lt;/td&gt;
&lt;td&gt;Agent efficiency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Level 3: Agent Leader&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Agent Leader&lt;/td&gt;
&lt;td&gt;Problem definition, tool selection, process orchestration, and taste review.&lt;/td&gt;
&lt;td&gt;MetaSkill DAG, Harness, TokenHub&lt;/td&gt;
&lt;td&gt;System value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Level 4: Taste Architect&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Aesthetic Architect&lt;/td&gt;
&lt;td&gt;Domain modeling, value judgment, ethical boundaries, evolution prediction&lt;/td&gt;
&lt;td&gt;DDD, JSON-LD Ontology, Taste constraint type system&lt;/td&gt;
&lt;td&gt;Organization Taste&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  10. Conclusion: C# liberates humans from the burden of tasting.
&lt;/h1&gt;

&lt;p&gt;Bun chose Rust because browser engines require extreme memory control. Go is a cloud-native language, but &lt;strong&gt;its full lifecycle coverage is only 40%&lt;/strong&gt; . AI infrastructure needs a "full lifecycle native language"—C &lt;strong&gt;# has 95% coverage&lt;/strong&gt; , outperforming in 10+/14 dimensions, and &lt;strong&gt;TensorSharp surpasses C++'s stable-diffusion.cpp in image generation performance&lt;/strong&gt; .&lt;/p&gt;

&lt;p&gt;But more important than technology selection is &lt;strong&gt;the philosophical positioning&lt;/strong&gt; and &lt;strong&gt;design proposal&lt;/strong&gt; :&lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;When TensorSharp enables C# developers to build AI engines with C++-level performance, when .NET Aspire makes one-click deployment the default, and when Semantic Kernel makes LLM orchestration as natural as writing LINQ— &lt;strong&gt;humans are freed from "execution" and can focus on "judgment&lt;/strong&gt; . "&lt;/p&gt;

&lt;p&gt;Building upon OpenClaw.NET's existing passive auditing infrastructure (Harness Contracts + Evidence Bundles + Governance Ledger), &lt;strong&gt;Taste's audit node design proposal&lt;/strong&gt; evolves this "judgment" from "post-event" to "in-event":&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Problem Definition Layer&lt;/strong&gt; : Agent Leader translates business intent and pre-sets Taste constraints.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Intelligent Agent Orchestration Layer&lt;/strong&gt; : AI Autonomous Execution, Agent Leader Design Process&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Taste Verification Layer&lt;/strong&gt; : The Agent Leader injects human aesthetic, value, and ethical judgments at key nodes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="http://OpenClaw.NET" rel="noopener noreferrer"&gt;OpenClaw.NET&lt;/a&gt; you are working on essentially validates this proposition: &lt;strong&gt;using C# to build AI-native infrastructure lowers the barrier to entry for Builders, clarifies the role of Agent Leader, and makes Taste the last line of defense for humanity&lt;/strong&gt; .&lt;/p&gt;

&lt;p&gt;This is not a narrative of replacing Python/Go/Rust/C++—each language remains irreplaceable in its respective field—but rather &lt;strong&gt;C# is taking over the higher-value level of AI's production, service-oriented, infrastructure-oriented, and engine-oriented development&lt;/strong&gt; , while &lt;strong&gt;freeing humans to do what only humans can do: define problems, orchestrate intelligent agents, and verify tastes&lt;/strong&gt; .&lt;/p&gt;

&lt;h1&gt;
  
  
  Performance Benchmark Cheat Sheet
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Python&lt;/th&gt;
&lt;th&gt;Go&lt;/th&gt;
&lt;th&gt;Rust&lt;/th&gt;
&lt;th&gt;C++&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;Optimal&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;cold start&lt;/td&gt;
&lt;td&gt;325ms&lt;/td&gt;
&lt;td&gt;45ms&lt;/td&gt;
&lt;td&gt;30ms&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;35ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Rust&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mirror&lt;/td&gt;
&lt;td&gt;1,200MB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;15MB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100KB-1MB&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;45MB&lt;/td&gt;
&lt;td&gt;Go&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;gRPC QPS&lt;/td&gt;
&lt;td&gt;45K&lt;/td&gt;
&lt;td&gt;920K&lt;/td&gt;
&lt;td&gt;950K&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;1,000K+&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Image generation&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;48.16s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;40.44s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Token throughput&lt;/td&gt;
&lt;td&gt;49.7&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;313.3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concurrent RPS&lt;/td&gt;
&lt;td&gt;4,500&lt;/td&gt;
&lt;td&gt;82K&lt;/td&gt;
&lt;td&gt;95K&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;78K&lt;/td&gt;
&lt;td&gt;Rust&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory (1000 concurrent users)&lt;/td&gt;
&lt;td&gt;25GB&lt;/td&gt;
&lt;td&gt;1.4GB&lt;/td&gt;
&lt;td&gt;1.2GB&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.6GB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Rust&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full life cycle&lt;/td&gt;
&lt;td&gt;20%&lt;/td&gt;
&lt;td&gt;40%&lt;/td&gt;
&lt;td&gt;30%&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;95%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment toolchain&lt;/td&gt;
&lt;td&gt;Manual YAML&lt;/td&gt;
&lt;td&gt;Manual YAML&lt;/td&gt;
&lt;td&gt;Manual configuration&lt;/td&gt;
&lt;td&gt;Manual Makefile&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Aspire One-Click&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Observability&lt;/td&gt;
&lt;td&gt;Manual third-party&lt;/td&gt;
&lt;td&gt;Manual configuration&lt;/td&gt;
&lt;td&gt;Manual configuration&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Native + Dashboard&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI ecosystem&lt;/td&gt;
&lt;td&gt;Python native&lt;/td&gt;
&lt;td&gt;Community maintenance&lt;/td&gt;
&lt;td&gt;Emerging Ecosystems&lt;/td&gt;
&lt;td&gt;C++ native&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;TensorSharp + ONNX + SK&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  C# vs Go vs Rust vs Python vs C++: AI Infrastructure Selection Decision Tree
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    What is your scenario?
                         |
            ┌────────────┼────────────┬────────────┐
            ↓            ↓            ↓            ↓
      Algorithm research/experimentation   Cloud-native infrastructure   AI services/infrastructure   System kernel/engine
            |            |            |            |
         Python         Go            C#           Rust
            |            |            |            |
      · Jupyter      · K8s/Docker   · Inference services    · Browser engine
      · PyTorch      · Minimalist microservices   · Agent orchestration  · OS components
      · Rapid prototyping     · High-concurrency gateway   · Token economics · Safety-critical
      · Paper reproduction     · Monitoring/logging    · Image/text generation · Zero-cost memory
                         |            |
                         |            ↓
                         |           C++
                         |            |
                         |      · Legacy engines
                         |      · Hardware drivers
                         |      · Extreme optimization
                         |
                         ↓
                    TensorSharp proves:
                    C# can replace C++ for AI inference engines
                    while retaining full lifecycle management capabilities
                    freeing humans to focus on Taste
                    Design proposal for a Taste review node based on OpenClaw.NET
                    evolving the Agent Leader's judgment from "after the fact" to "in the loop"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>dotnet</category>
      <category>csharp</category>
    </item>
    <item>
      <title>TensorSharp supports Vulkan backend</title>
      <dc:creator>Zhongkai Fu</dc:creator>
      <pubDate>Tue, 07 Jul 2026 02:17:34 +0000</pubDate>
      <link>https://dev.to/zhongkaifu/tensorsharp-supports-vulkan-backend-58f1</link>
      <guid>https://dev.to/zhongkaifu/tensorsharp-supports-vulkan-backend-58f1</guid>
      <description>&lt;p&gt;Due to high Vulkan backend demand, I update &lt;a href="https://github.com/zhongkaifu/TensorSharp" rel="noopener noreferrer"&gt;TensorSharp&lt;/a&gt; and release the initial version of GGML Vulkan backend by leveraging external GGML project. The native Vulkan backend will be implemented later. I tested it on Nvidia Geforce RTX 3080 Laptop GPU, and Intel(R) UHD Graphics on Windows. They all work. However, I do not have AMD GPU, so I have no way to get it tested. It's really appreciated if you have AMD GPU and would like to try it out. Any feedback and comment are welcome.&lt;/p&gt;

&lt;p&gt;Here is the benchmark I run to compare with llama.cpp:&lt;/p&gt;

&lt;h1&gt;
  
  
  Performance ratio — TensorSharp vs reference engines
&lt;/h1&gt;

&lt;p&gt;Geomean of TensorSharp's per-scenario speedup over each reference engine on the &lt;strong&gt;same backend&lt;/strong&gt;, across every scenario both engines ran (single-stream, MTP-off). A value &lt;strong&gt;&amp;gt; 1.0× means TensorSharp is faster&lt;/strong&gt; (for decode / prefill throughput) or lower-latency (for TTFT); &lt;code&gt;—&lt;/code&gt; = no overlapping cells. Per-scenario ratios are in each model's section below.&lt;/p&gt;

&lt;p&gt;Model   Comparison  decode  prefill TTFT&lt;br&gt;
Gemma 4 E4B it (Q8_0, dense multimodal) vs llama.cpp · Vulkan  0.93×  0.96×  0.95×&lt;br&gt;
Gemma 4 12B it (QAT UD-Q4_K_XL, dense)  vs llama.cpp · Vulkan  1.18×  0.97×  0.95×&lt;/p&gt;

&lt;h1&gt;
  
  
  Gemma 4 E4B it (Q8_0, dense multimodal) (gemma4-e4b)
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Decode throughput (tok/s)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scenario    TensorSharp · Vulkan   llama.cpp · Vulkan&lt;br&gt;
text_short  41.6    45.3&lt;br&gt;
text_long   40.9    44.5&lt;br&gt;
multi_turn  41.3    43.6&lt;br&gt;
function_call   41.2    44.4&lt;br&gt;
&lt;strong&gt;Prefill throughput (tok/s)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scenario    TensorSharp · Vulkan   llama.cpp · Vulkan&lt;br&gt;
text_short  1641.7  1641.1&lt;br&gt;
text_long   1157.0  1718.1&lt;br&gt;
multi_turn  1695.5  1454.3&lt;br&gt;
function_call   1661.2  1531.6&lt;br&gt;
&lt;strong&gt;Time to first token (ms, lower is better)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scenario    TensorSharp · Vulkan   llama.cpp · Vulkan&lt;br&gt;
text_short  1203.0  1187.0&lt;br&gt;
text_long   2719.0  1813.0&lt;br&gt;
multi_turn  1235.0  1422.0&lt;br&gt;
function_call   1219.0  1328.0&lt;br&gt;
&lt;strong&gt;Performance ratio — TensorSharp vs reference (&amp;gt; 1.0× = TensorSharp faster)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Decode throughput&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Scenario    vs llama.cpp · Vulkan&lt;br&gt;
text_short  0.92×&lt;br&gt;
text_long   0.92×&lt;br&gt;
multi_turn  0.95×&lt;br&gt;
function_call   0.93×&lt;br&gt;
&lt;em&gt;Prefill throughput&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Scenario    vs llama.cpp · Vulkan&lt;br&gt;
text_short  1.00×&lt;br&gt;
text_long   0.67×&lt;br&gt;
multi_turn  1.17×&lt;br&gt;
function_call   1.08×&lt;br&gt;
&lt;em&gt;Time to first token (latency; &amp;gt; 1.0× = TensorSharp lower)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Scenario    vs llama.cpp · Vulkan&lt;br&gt;
text_short  0.99×&lt;br&gt;
text_long   0.67×&lt;br&gt;
multi_turn  1.15×&lt;br&gt;
function_call   1.09×&lt;/p&gt;

&lt;h1&gt;
  
  
  Gemma 4 12B it (QAT UD-Q4_K_XL, dense) (gemma4-12b)
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Decode throughput (tok/s)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scenario    TensorSharp · Vulkan   llama.cpp · Vulkan&lt;br&gt;
text_short  31.3    31.1&lt;br&gt;
text_long   31.4    30.0&lt;br&gt;
multi_turn  30.9    31.6&lt;br&gt;
function_call   60.8    31.9&lt;br&gt;
&lt;strong&gt;Prefill throughput (tok/s)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scenario    TensorSharp · Vulkan   llama.cpp · Vulkan&lt;br&gt;
text_short  766.1   729.4&lt;br&gt;
text_long   635.2   647.4&lt;br&gt;
multi_turn  617.5   636.6&lt;br&gt;
function_call   587.4   674.7&lt;br&gt;
&lt;strong&gt;Time to first token (ms, lower is better)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scenario    TensorSharp · Vulkan   llama.cpp · Vulkan&lt;br&gt;
text_short  2578.0  2672.0&lt;br&gt;
text_long   4953.0  4813.0&lt;br&gt;
multi_turn  3391.0  3250.0&lt;br&gt;
function_call   3531.0  3016.0&lt;br&gt;
&lt;strong&gt;Performance ratio — TensorSharp vs reference (&amp;gt; 1.0× = TensorSharp faster)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Decode throughput&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Scenario    vs llama.cpp · Vulkan&lt;br&gt;
text_short  1.01×&lt;br&gt;
text_long   1.05×&lt;br&gt;
multi_turn  0.98×&lt;br&gt;
function_call   1.91×&lt;br&gt;
&lt;em&gt;Prefill throughput&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Scenario    vs llama.cpp · Vulkan&lt;br&gt;
text_short  1.05×&lt;br&gt;
text_long   0.98×&lt;br&gt;
multi_turn  0.97×&lt;br&gt;
function_call   0.87×&lt;br&gt;
&lt;em&gt;Time to first token (latency; &amp;gt; 1.0× = TensorSharp lower)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Scenario    vs llama.cpp · Vulkan&lt;br&gt;
text_short  1.04×&lt;br&gt;
text_long   0.97×&lt;br&gt;
multi_turn  0.96×&lt;br&gt;
function_call   0.85×&lt;br&gt;
In case you didn't know what is TensorSharp, here is an introduction:&lt;/p&gt;

&lt;p&gt;TensorSharp is an open source local Unsloth (GGUF) LLM inference engine and applications. It supports many models from Unsloth, like Gemma4, DiffusionGemma, Qwen3.6 with multi-modal (image, vision, audio), image edit, reasoning and function tool. It can run on Windows/MacOS/Linux and fully leverage GPU's capability (support Cuda, Metal and Vulkan backends). The API is completely compatible with OpenAI and Ollama interface. It has on par performance than llama.cpp&lt;/p&gt;

&lt;p&gt;This project is not just a C# wrapper of llama.cpp. It implemented the entire LLM inference engine from bottom to top. If you use CPU backend, it's 100% pure C# code execution. Besides CPU backend, I also implemented CUDA, MLX and GGML backend. The GGML backend refer GGML project as external project, and I build a few fusion operation at higher level.&lt;/p&gt;

&lt;p&gt;I learned a lot from other projects and apply them for TensorSharp, such as paged KV cache and continuous batching from vLLM, SSD based cache for MoE model from oMLX, GGUF quantized from llama.cpp and other optimizations for prefill and decode.&lt;/p&gt;

&lt;p&gt;Any feedback and comments are welcome. If you like it, it would be really appreciated if you can get this project a star in GitHub. Thanks in advance.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
    </item>
    <item>
      <title>TensorSharp.ai Review: A .NET-Native Way to Run GGUF Models Locally</title>
      <dc:creator>Zhongkai Fu</dc:creator>
      <pubDate>Tue, 23 Jun 2026 07:09:52 +0000</pubDate>
      <link>https://dev.to/zhongkaifu/tensorsharpai-review-a-net-native-way-to-run-gguf-models-locally-5b56</link>
      <guid>https://dev.to/zhongkaifu/tensorsharpai-review-a-net-native-way-to-run-gguf-models-locally-5b56</guid>
      <description>&lt;h3&gt;
  
  
  Why &lt;a href="https://tensorsharp.ai/" rel="noopener noreferrer"&gt;TensorSharp&lt;/a&gt; is interesting right now
&lt;/h3&gt;

&lt;p&gt;Local AI is no longer just a Python or C++ story. &lt;a href="https://tensorsharp.ai/" rel="noopener noreferrer"&gt;TensorSharp&lt;/a&gt; is an open-source, .NET-native inference engine for GGUF models that gives developers three ways to work: a CLI for quick tests, an ASP.NET Core server with a browser chat UI, and OpenAI- plus Ollama-compatible HTTP APIs for drop-in integration. The official docs also position it as a real C# library you can embed via NuGet, which is the part that makes it stand out from many local-LLM tools that stop at “runs on localhost.”&lt;/p&gt;

&lt;p&gt;If you are a general software developer, the shortest description is this: TensorSharp is for teams that want local or on-prem LLM inference without forcing their stack to revolve around Python. The home page promises that prompts, documents, and images never leave the machine, there are no per-token fees, and the engine speaks familiar OpenAI and Ollama wire formats. That makes it especially relevant for internal copilots, privacy-sensitive assistants, lab environments, and .NET shops that would rather embed inference than wrap a foreign runtime.&lt;/p&gt;

&lt;h3&gt;
  
  
  What TensorSharp actually ships
&lt;/h3&gt;

&lt;p&gt;At the product level, TensorSharp bundles more than a model runner. Official docs describe &lt;code&gt;TensorSharp.Cli&lt;/code&gt; for one-shot prompts, REPL usage, multimodal experiments, JSONL batch workflows, and benchmarks; &lt;code&gt;TensorSharp.Server&lt;/code&gt; for browser chat plus REST APIs; and a set of NuGet packages for direct embedding in .NET code. Supported backends include pure C# CPU, GGML CPU, GGML Metal, GGML CUDA, direct CUDA, and Apple MLX, with Windows, macOS, and Linux support documented in the repo and wiki. &lt;/p&gt;

&lt;p&gt;Model support is broader than you might expect for a young project. The official supported-models page lists Gemma 3 and 4, Qwen 3 and 3.5/3.6-family models, GPT-OSS, Nemotron-H, Mistral 3, and DiffusionGemma-style text-diffusion models. Multimodal support is also part of the story: Gemma 4 supports image, video, and audio input, while several other families support image input. Tool calling, structured outputs, and a thinking-mode flag are documented across the HTTP API surface. &lt;/p&gt;

&lt;p&gt;One of the more compelling capabilities is compatibility. TensorSharp’s server exposes Ollama-style endpoints like &lt;code&gt;/api/generate&lt;/code&gt; and &lt;code&gt;/api/chat/ollama&lt;/code&gt;, plus OpenAI-style &lt;code&gt;/v1/chat/completions&lt;/code&gt;. The docs explicitly show redirecting an OpenAI client to &lt;code&gt;http://localhost:5000/v1&lt;/code&gt;, which lowers migration friction for existing apps. In practice, that means teams can test local inference without rewriting their application contracts from scratch. &lt;/p&gt;

&lt;p&gt;Here is the kind of developer workflow the docs imply, distilled into one flow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flowchart LR
    A[Pick a GGUF model] --&amp;gt; B[Build TensorSharp]
    B --&amp;gt; C[Choose backend]
    C --&amp;gt; D[Run CLI or start TensorSharp.Server]
    D --&amp;gt; E[Call OpenAI or Ollama-compatible API]
    E --&amp;gt; F[Add multimodal input or tool calls]
    F --&amp;gt; G[Tune batching, sampling, and benchmarks]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A minimal example from the official HTTP docs uses the standard OpenAI Python client against TensorSharp’s local endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;OpenAI&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost:5000/v1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;not-needed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Qwen3-4B-Q8_0.gguf&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Explain mixture-of-experts in one sentence.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}],&lt;/span&gt;
    &lt;span class="n"&gt;max_tokens&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Where TensorSharp fits and where it does not
&lt;/h3&gt;

&lt;p&gt;The biggest strength here is architectural fit for C# developers. TensorSharp is not just “compatible with .NET”; it is written in C#/.NET and exposes package layers for tensor primitives, runtime, models, and backends. If you want to keep inference inside an existing ASP.NET or service-oriented codebase, that is a strong differentiator from tools that mainly optimize for CLI convenience or Python-native serving. The project also documents advanced serving ideas like continuous batching, paged KV cache, and speculative decoding, which suggests it is trying to compete on systems design rather than on wrappers alone. &lt;/p&gt;

&lt;p&gt;There are still tradeoffs. First, the setup is more “developer toolchain” than “double-click desktop app”: the quick start expects .NET 10, Git, and in some cases CUDA or Apple build tooling. Second, while the project publishes internal regression numbers and references a cross-engine benchmark matrix, the public-facing benchmark page is not yet as polished or comparative as what many buyers expect. Third, pricing, enterprise support, and formal compliance claims are unspecified in the reviewed materials, so teams with procurement or audit requirements will need direct clarification.&lt;/p&gt;

&lt;p&gt;My take: TensorSharp looks most compelling for developers who want local GGUF inference with a real .NET embedding story, OpenAI-compatible integration, and enough systems-level optimization to move beyond toy demos. If you want the absolute easiest consumer-grade local setup, Ollama still looks simpler. If you want large-scale Python-first serving, vLLM remains the more established choice. But if your stack, team, and deployment model are already C#-heavy, TensorSharp is one of the more interesting projects to watch. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; strong .NET-native embedding story, OpenAI/Ollama compatibility, multimodal support, multiple hardware backends, and official documentation for continuous batching and paged KV caching. &lt;strong&gt;Cons:&lt;/strong&gt; public pricing/support details are unspecified, formal security/compliance claims are unspecified, and the public benchmark story is still more engineering-facing than buyer-facing. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Suggested Dev.to tags:&lt;/strong&gt; &lt;code&gt;dotnet&lt;/code&gt;, &lt;code&gt;csharp&lt;/code&gt;, &lt;code&gt;llm&lt;/code&gt;, &lt;code&gt;local-ai&lt;/code&gt;, &lt;code&gt;opensource&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Comparison snapshot
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Core focus&lt;/th&gt;
&lt;th&gt;Unique strengths&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TensorSharp.ai&lt;/td&gt;
&lt;td&gt;Self-hosted GGUF inference for .NET developers&lt;/td&gt;
&lt;td&gt;Native C# embedding via NuGet, OpenAI/Ollama-compatible APIs, multiple backends including MLX and GGML, documented multimodal + batching features&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;llama.cpp&lt;/td&gt;
&lt;td&gt;Low-level C/C++ LLM inference across diverse hardware&lt;/td&gt;
&lt;td&gt;Foundational GGUF ecosystem, minimal setup philosophy, broad hardware/performance focus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ollama&lt;/td&gt;
&lt;td&gt;Developer-friendly local model runtime and API&lt;/td&gt;
&lt;td&gt;Easiest onboarding, polished CLI/runtime UX, local-first with optional cloud account plans and integrations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;vLLM&lt;/td&gt;
&lt;td&gt;High-throughput, memory-efficient LLM serving&lt;/td&gt;
&lt;td&gt;Strong production-serving narrative, PagedAttention + continuous batching, broad hardware targets, OpenAI-compatible API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From a positioning standpoint, TensorSharp competes less on “friendliest consumer UX” than Ollama and less on “most established Python-serving engine” than vLLM. Its clearest niche is the developer who wants local or internal LLM serving with C# as a first-class implementation language, not just as a client calling out to another runtime. &lt;/p&gt;

&lt;h2&gt;
  
  
  Reader checklist, social blurbs, and source links
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Quick fit checklist&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You already build in C#/.NET and would benefit from embedding inference directly rather than calling a separate Python service. &lt;/li&gt;
&lt;li&gt;You want local or on-prem inference with OpenAI- or Ollama-compatible APIs and no per-token metering. &lt;/li&gt;
&lt;li&gt;You need GGUF support plus optional multimodal workflows such as image, video, or audio input. &lt;/li&gt;
&lt;li&gt;You are comfortable validating performance, support expectations, and compliance requirements yourself because public pricing/support/security detail is still limited. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tweet-length social blurbs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;“TensorSharp is one of the more interesting local-AI projects I’ve seen for .NET teams: GGUF inference, OpenAI/Ollama-compatible APIs, multimodal support, and direct C# embedding in one stack. If your AI roadmap is C#-heavy, this is worth a look.” &lt;/p&gt;

&lt;p&gt;“Ollama made local AI feel easy. TensorSharp makes it feel native to .NET. The big differentiator is not just localhost inference, but running and embedding GGUF models directly inside a C# application architecture.” &lt;/p&gt;

&lt;p&gt;“If you want privacy-first local inference without per-token fees and you’d rather point your existing OpenAI client at &lt;code&gt;localhost&lt;/code&gt; than rebuild your stack, TensorSharp has a compelling angle—especially on Apple Silicon and NVIDIA hardware.” &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source links&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The primary materials used for this review were official TensorSharp pages plus official comparator pages for llama.cpp, Ollama, and vLLM. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/" rel="noopener noreferrer"&gt;TensorSharp home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/overview.html" rel="noopener noreferrer"&gt;TensorSharp Overview &amp;amp; Architecture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/server.html" rel="noopener noreferrer"&gt;TensorSharp Server &amp;amp; Web UI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/http-api.html" rel="noopener noreferrer"&gt;TensorSharp HTTP API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/code-api.html" rel="noopener noreferrer"&gt;TensorSharp C# Library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/models.html" rel="noopener noreferrer"&gt;TensorSharp Supported Models&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/advanced.html" rel="noopener noreferrer"&gt;TensorSharp Advanced Features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tensorsharp.ai/benchmarks.html" rel="noopener noreferrer"&gt;TensorSharp Benchmarks &amp;amp; Testing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/zhongkaifu/TensorSharp" rel="noopener noreferrer"&gt;TensorSharp GitHub repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/zhongkaifu/TensorSharp/releases" rel="noopener noreferrer"&gt;TensorSharp v3.0.0.0 release notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>dotnet</category>
      <category>csharp</category>
    </item>
    <item>
      <title>TensorSharp: .NET Native Open Source Local LLM Inference Engine</title>
      <dc:creator>Zhongkai Fu</dc:creator>
      <pubDate>Mon, 22 Jun 2026 17:09:36 +0000</pubDate>
      <link>https://dev.to/zhongkaifu/tensorsharp-net-native-open-source-local-llm-inference-engine-4ena</link>
      <guid>https://dev.to/zhongkaifu/tensorsharp-net-native-open-source-local-llm-inference-engine-4ena</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/zhongkaifu/TensorSharp" rel="noopener noreferrer"&gt;TensorSharp&lt;/a&gt;&lt;br&gt;
I would like to share my latest open source .net native local LLM inference engine and applications. It supports many models, like Gemma4, DiffusionGemma, Qwen3.6 with multi-modal (image, vision, audio), reasoning and function tool. It can run on Windows/MacOS/Linux and fully leverage GPU's capability. The API is completely compatible with OpenAI and Ollama interface. It has on par performance than llama.cpp&lt;/p&gt;

&lt;p&gt;This project is not just a C# wrapper of llama.cpp. It implemented the entire LLM inference engine from bottom to top. If you use CPU backend, it's 100% pure C# code execution. Besides CPU backend, I also implmented CUDA, MLX and GGML backend. The GGML backend refer GGML project as external project, and I build a few fusion operation at higher level.&lt;/p&gt;

&lt;p&gt;I learned a lot from other projects and apply them for TensorSharp, such as paged KV cache and continuous batching from vLLM, SSD based cache for MoE model from oMLX, GGUF quanztized from llama.cpp and other optimizations for prefill and decode.&lt;/p&gt;

&lt;p&gt;Any feedback and comments are welcome. If you like it, it would be really appreciated if you can get this project a star in GitHub. Thanks in advance.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
