◆ Dispatch 104 · 2026-08-20 braixd
Compile-time payloads, text diffusion at 1500 TPS, and the C-to-Rust translation problem
“The gap between 'LLMs can translate small C functions to idiomatic Rust' and 'LLMs can translate a 500K-line C codebase while preserving its behavior' is exactly the context window problem.”
— Seln Oriax, today's narration
- A compromised Rust crate pulled a typosquatted dependency that executed code at compile time
- DiffusionGemma uses discrete diffusion to refine 256 tokens in parallel, hitting roughly 1500 output tokens per second on an H100
- Canonical and the University of Bristol are funding a three-year project to translate large C codebases into safe Rust using a hybrid neurosymbolic approach
- Tencent gray-tests Hunyuan Hy4 as its new flagship model, positioned above DeepSeek in the Yuanbao app
Chapters
- 00:00:04 Compile-time payloads
- 00:02:19 Text at diffusion speeds
- 00:04:45 Moving C at scale
- 00:07:10 Tencent's next model
Sources
4 cited-
1
Malicious Rust Crate arrayref Runs a Build-Time Payload
Article SafeDep Team
Supply chain attacks in Rust have moved from dependency confusion to active account compromise. The typosquatting of proc-macro1 (confusing with the real proc-macro2) shows attackers exploiting deep infrastructure knowl…
safedep.io/arrayref-proc-macro1-rust-build-… →Details
- Context
- Supply chain attacks in Rust have moved from dependency confusion to active account compromise. The typosquatting of proc-macro1 (confusing with the real proc-macro2) shows attackers exploiting deep infrastructure knowledge gaps. For builders, this is a reminder that even small crates sitting deep in your graph can trigger compile-time code execution.
- Key points
- Version 0.3.10 of the popular Rust crate arrayref pulled in a typosquatted proc-macro1 dependency
- The build script of proc-macro1 downloads and runs a remote binary at compile time
- droundy's crates.io and GitHub accounts were compromised; proc-macro1 impersonated David Tolnay
- arrayref sits deep under tiny-skia, sctk-adwaita, and winit — roughly 245M all-time downloads
- Provenance
- Article · Supporting source
-
2
DiffusionGemma Technical Report
Article
If diffusion models for text scale this way, the memory bottleneck that limits per-request generation speed in AR models gets circumvented entirely. The question isn't whether diffusion beats speculation on throughput —…
arxiv.org/abs/2608.00146 →Details
- Context
- If diffusion models for text scale this way, the memory bottleneck that limits per-request generation speed in AR models gets circumvented entirely. The question isn't whether diffusion beats speculation on throughput — it's whether the open-weight model can match the fine-tuned intelligence of proprietary systems at equal cost.
- Key points
- Uses discrete diffusion to refine blocks of 256 tokens in parallel instead of decoding one at a time
- Fine-tuned from Gemma 4 MoE (3.8B activated / 25.2B total parameters) with less than 10% of original training token budget
- Generates ~1,500 output tokens per second on a single H100 GPU via bidirectional attention across canvases
- Retains multimodal inputs, long-context support, and thinking mode; can still generate autoregressively
- Provenance
- Article · Supporting source
-
3
Canonical Backs New Project to Translate Large C Codebases Into Safe Rust
Article Bobby Borisov
The gap between 'LLMs can translate small C functions to idiomatic Rust' and 'LLMs can translate a 500K-line C codebase while preserving its behavior' is exactly the context window problem. This project's answer — combi…
linuxiac.com/canonical-backs-new-project-to… →Details
- Context
- The gap between 'LLMs can translate small C functions to idiomatic Rust' and 'LLMs can translate a 500K-line C codebase while preserving its behavior' is exactly the context window problem. This project's answer — combining LLMs with traditional analysis — is one of the few public commitments to solving it at scale.
- Key points
- Three-year research project between Canonical and University of Bristol for automated C-to-Rust translation
- Uses hybrid neurosymbolic approach — LLMs for pattern translation plus program analysis and formal methods for verification
- AppArmor and snap-confine serve as real-world case studies (not immediate rewrite targets)
- Current source-to-source translators copy C structures too closely, producing Rust that still relies on unsafe features
- Provenance
- Article · Supporting source
-
4
Tencent begins testing its new flagship model Hunyuan Hy4
Article Nunki08
Tencent's gray testing of Hy4 signals continued Chinese investment in frontier models despite the global compute constraint. The 'Expert-Level' positioning above DeepSeek and their own Hy3 suggests a tiered model strate…
www.reddit.com/r/LocalLLaMA/comments/1vth4l… →Details
- Context
- Tencent's gray testing of Hy4 signals continued Chinese investment in frontier models despite the global compute constraint. The 'Expert-Level' positioning above DeepSeek and their own Hy3 suggests a tiered model strategy rather than a single flagship.
- Key points
- Hy4 appeared in the Tencent Yuanbao App model selection list, labeled 'Expert-Level Model'
- Positioned above Hy3 and DeepSeek — positioned as a general-purpose model with tool-use focus
- Confirmed in last week's Q2 earnings report that larger-parameter Hy4 would launch soon
- Provenance
- Article · Supporting source
Compile-time payloads
00:00:04 The Rust crate arrayref got compromised today. It's a small library — just four macros for slicing arrays — with about 245 million all-time downloads sitting deep under tiny-skia, sctk-adwaita, and winit. Version 0.3.10 slipped in with a dependency on a typosquatted crate called proc-macro1.
00:00:25 The build script of proc-macro1 downloads a remote binary at compile time and runs it. The attacker took down the genuine droundy crates.io accounts first — both arrayref and append-only-vec were yanked or compromised — then published 0.3.10 with that dependency.
00:00:45 proc-macro1 itself is a renamed copy of the real proc-macro2 crate, so the library code works as a drop-in while the build script does something else entirely. It stores the server address as base64 fragments, reassembles them at compile time, downloads an architecture-specific binary over an unvalidated TLS connection, and drops it to /tmp/rust-setup on Unix or runs PowerShell and VBScript launchers on Windows.
00:01:16 Malicious versions have been pulled by the crates.io team. The GitHub repositories for the compromised droundy accounts are all 404ing now. What's interesting here is that this isn't dependency confusion or a confused deputy — it's an active account compromise with a build script payload hidden inside a crate whose source code looks perfectly fine.
00:01:42 Every time you compile something that pulls in arrayref 0.3.10, your compiler downloads and executes arbitrary code from a server at 23.254.165.112. It's a blind spot for most Rust developers, who've treated build scripts as inherently trustworthy — and usually were.
00:02:02 The crates.io team yanked the old clean releases too, which means anyone pointing at the latest version gets the bad one by default. This lands squarely in a pressure zone: the crate graph for GUI tooling on most Linux desktops.
Text at diffusion speeds
00:02:19 Google's researchers just published a technical report on DiffusionGemma, an experimental text diffusion model that generates around 1500 output tokens per second on a single NVIDIA H100. That's measured as average throughput across GPQA-Diamond and LiveCodeBench.
00:02:37 The approach is different enough from autoregressive decoding to deserve a closer look. Instead of generating one token at a time, DiffusionGemma refines blocks of 256 tokens in parallel through bidirectional attention across a canvas. It starts from a 25.2-billion-parameter Gemma 4 mixture-of-experts model, activating 3.8 billion per step, and uses less than ten percent of the original AR model's training budget.
00:03:07 The two-stage training pipeline does supervised fine-tuning to teach bidirectional denoising, then combines reinforcement learning with sampler distillation to compress the number of forward passes needed for good output quality. The paper shows it achieves about twenty tokens per forward pass on average, which is a meaningful step above speculative decoding's rough draft-and-verify throughput.
00:03:35 It also retains multimodal inputs, long-context support, and thinking mode from its AR starting point. And notably, despite being trained as a diffusion model, it can still generate text autoregressively with only minor performance degradation — suggesting the weights don't have to abandon one regime to use another.
00:03:58 The memory bottleneck that limits per-request generation speed in AR models comes from transferring model weights and the key-value cache from VRAM to the accelerator between each token. Text diffusion shifts execution from a memory-bound regime toward a compute-bound one by predicting entire blocks simultaneously.
00:04:20 Heavier individual forward passes are the trade-off, but the reduction in total passes offsets that cost. The real question is whether this reaches production scale. Measurements were taken on single-H100 setups with a batch size of one — the exact latency regime where diffusion needs to prove it can beat autoregressive models using multi-token prediction.
Moving C at scale
00:04:45 Canonical is funding a three-year research project with the University of Bristol to make it practical to automatically translate large C codebases into safe Rust. The target repos are sometimes hundreds of thousands of lines of code. The approach is what they call hybrid neurosymbolic — combining machine learning with traditional program analysis, testing, and formal methods.
00:05:12 Large repositories get split into smaller parts that can be translated separately while preserving type information, dependencies, and behavioral invariants. Language models handle the pattern translation; formal methods check whether the output behaves like the original.
00:05:31 Canonical will use AppArmor and snap-confine as real-world case studies. They're clear these aren't immediate rewrite targets — the existing code isn't being replaced with research results. Instead, they're testbeds for validating the translation technology against mature C projects that have years of fixes and compatibility updates baked in.
00:05:55 Current source-to-source translators can handle a lot of code but tend to copy C structures too closely into Rust, producing code that still relies on unsafe features and keeps C-style patterns. LLMs face a different problem — they can create good idiomatic Rust for small, clear pieces of code, but managing the context of an entire repository is much harder.
00:06:20 Code that looks right may not always work the same way as the original C version. The public announcement here matters more than the immediate deliverable. The gap between 'LLMs can translate small C functions to idiomatic Rust' and 'LLMs can translate a 500K-line C codebase while preserving its behavior' is exactly the context window problem, and no amount of prompting closes that gap on a repo scale.
00:06:49 Combining LLMs with traditional analysis is one of the few visible attempts at solving it. uutils/coreutils and sudo-rs have already made their way into the Ubuntu distribution as part of Canonical's broader Rust push. This new research provides the infrastructure layer that ad-hoc efforts are still missing.
Tencent's next model
00:07:10 Tencent gray-tested its new flagship model Hunyuan Hy4 this morning. A user spotted it appearing in the Tencent Yuanbao App model selection list, labeled 'Expert-Level Model' and positioned above their own Hy3 and DeepSeek. The company confirmed in last week's Q2 earnings report that Hy4 would launch soon with enhanced multimodal capabilities and tool-use focus.
00:07:35 Tencent has been quietly building out a tiered model strategy rather than a single flagship — Hy3 for general-purpose work, Hy4 for expert-level tasks, and DeepSeek positioned alongside for reasoning. The gray test suggests the product is close to public release.
00:07:53 The broader signal here is continued Chinese investment in frontier models despite the global compute constraint. It's one thing to talk about hardware embargoes and export controls; it's another to keep spending on model training at this scale when the path to sufficient GPU capacity gets harder every quarter.
00:08:14 That covers the day — supply chain attacks moving into build scripts, text diffusion breaking the token-by-token bottleneck, and C-to-Rust translation getting a proper research budget. Seln Oriax.