How Apache DataFusion Runs SQL In-Process
Apache DataFusion is an embeddable query engine: SQL goes in, runs as columnar Arrow batches inside your own process, and results come out without a separate service.
Loading…
Topic
77 posts about Rust. Every summary links to the original.
See the idea
Apache DataFusion is an embeddable query engine: SQL goes in, runs as columnar Arrow batches inside your own process, and results come out without a separate service.
Axum is a Rust web framework for composing routes, middleware, and extractors. This explainer shows how different login flows become verified identity before a handler responds.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Air in RustRover provides a dedicated workspace for managing coding agent sessions and reviewing their work. Users connect agents such as Junie, Codex, or Claude Agent through the Agent Sessions tool window, then start sessions with small tasks. Each session displays its status and cost, and changes appear in a built-in diff viewer where users can leave line-level notes for rework. The IDE’s editor, terminal, and Git tools allow verification before committing, and presets store repeated instructions. Worktrees are optional for parallel pull requests, and Air supports existing agent accounts and configurations.
Polars is a high-performance columnar DataFrame library written in Rust and powered by Apache Arrow, using full multicore CPU parallelism and lazy execution with query optimization. Built-in expressions may not cover highly specialized algorithms, so custom expression plugins allow users to write Rust functions that integrate seamlessly into Polars’ lazy engine, benefiting from logical plan optimizations and predicate pushdown. This tutorial guides Rust beginners through creating a Polars expression plugin using PyCharm with the Rust plugin and cargo-generate template. It covers project setup, writing a capitalize function in Rust with the #[polars_expr] macro and apply_into_string_amortized for amortized allocation, and registering it on the Python side with register_plugin_function, demonstrated on a DataFrame of names. The plugin is built with maturin develop triggered by PyCharm, and the resulting native shared library executes with bare-metal speed and zero Python GIL overhead during runtime, with the build result cached for faster subsequent runs.
Tool-call parsers in Rust must handle model output that arrives in pieces, with arguments cut short or model-specific markup leaking into the answer. The frontend-crates library provides reusable components behind NVIDIA Dynamo parsers, using a Conformance Corpus of YAML fixtures to test the same behavioral cases across model families. A tutorial demonstrates creating a parser for a new model by defining a GOLDEN test set, implementing the parser against the model’s grammar, and iterating with unit tests. The parser must follow consistent rules for what to emit, what to buffer, and how to handle the end of the stream, preserving valid data without inventing calls. End-to-end testing requires a Dynamo runtime, discovery services, and hardware for the model, with failures turned into regression tests.
Cloudflare has open-sourced Kitesurf, a stateless browser engine for AI agents that runs entirely on Cloudflare Workers. The engine parses HTML, applies CSS, executes JavaScript, and renders screenshots without a traditional browser container. It supports the Chrome DevTools Protocol, allowing clients such as Puppeteer to connect and control it programmatically. The repository is available on GitHub under the Apache 2.0 license and includes the engine, Rust core, DOM shims, renderer, and CLI as separate packages. Developers can run Kitesurf locally or deploy it to their own Cloudflare Workers account, though a Workers Paid plan is required for deployment.
Eclipse Aerospace faced the challenge of ingesting nearly two decades of proprietary flight telemetry into Databricks without costly always-on infrastructure. The previous approach decoded files into Avro via a Rust-based Lambda, which introduced latency, duplicated schema logic, and split observability between Lambda logs and Spark UI. By using the PySpark custom data source API available in Databricks Runtime 15.4 LTS, the team wrapped its existing Rust decoder in a thin Python layer built with PyO3 and Maturin. Data crosses the foreign-function interface as Apache Arrow RecordBatches without copying, and decoding runs inside Spark on Databricks Serverless compute. The result eliminated the intermediary Avro hop, reduced storage costs, unified observability in the Spark UI, and delivered up to 20x performance over a pure-Python implementation.
Cloudflare is building Meerkat, an experimental distributed consensus service for its global control plane, using the QuePaxa consensus algorithm. Common leader-based algorithms like Raft and Paxos degrade under volatile network conditions because they stall when the leader becomes unreachable or slow. QuePaxa is leaderless, allowing any proposer to drive decisions without a single point of failure. Proposers cooperate by using a shared data structure to track pending ballots and back off when they detect contention, preventing the destructive interference that causes metastable failures. Cloudflare is formally verifying its Rust implementation of QuePaxa and plans to share benchmarks and lessons learned in future posts.
A 2026 survey found that 53.2% of Rust users do not use a debugger, with 81.3% citing prints as easier or faster. Debugger usage has risen from 36% to 46.8% since 2021, but async (28.1%) and macros (23.0%) still break stepping features. The post demonstrates four debugging approaches using a Graham scan algorithm bug: print debugging, terminal-based rust-lldb, the RustRover IDE, and AI-assisted debugging via an MCP server. RustRover evaluates expressions by lowering them to MIR and sending them to the debugger. Starting with RustRover 2026.3, the MCP server allows agents like Codex to set breakpoints, step through code, and inspect variables automatically.
RustRover 2026.3 introduces JetBrains Air, an IDE layer that runs coding agents from providers such as Claude, Codex, Gemini, and GitHub Copilot without requiring a separate AI subscription. Debugger views now shorten long Rust type and symbol names, making program state and call stacks easier to scan. A new debugger MCP server lets agents set breakpoints, step through code, inspect variables, and evaluate expressions, helping find runtime errors from natural language descriptions. The release also adds remote development via SSH with native OpenSSH support, including certificate-based authentication and hardware tokens, and improves profiler integration with direct Jump to Source for Rust functions. Automatic error and UI freeze reports are sent to JetBrains with personal details removed, enabling prioritized fixes based on real impact.
Predrag Gruevski, an OpenAI engineer who created cargo-semver-checks and Trustfall, uses AI to make Rust code more correct rather than produce more code. He sorts code by risk: low-stakes tasks like CI workflows are delegated, but logic others rely on, such as Rust’s CI tooling, gets scrutiny like constructing false alarms to validate accuracy. Unsafe Rust demands line-by-line review because a 20-line mistake can cause memory safety issues at data center scale, and he spends four hours on 100 lines of unsafe code. Effective prompting requires sketching the design, specifying test structure, stating acceptable assumptions, and being precise; a 45-minute prompt found a single line deletion that made the new trait solver up to 7.5% faster. Verification focuses on design and tests using cargo-mutants, coverage tools, Miri, and sanitizers, with a prompt describing a full state machine verification process.
Cloudflare announced tsrs, a Rust port of the TypeScript compiler built within the Oxc toolchain in collaboration with VoidZero, Owner.com’s Max Schwenk, and the TypeScript team. Early benchmarks validated with the TypeScript team show tsrs up to 8x faster and using 70% less memory than TypeScript 7.0 with the same number of type-check workers, and an even faster adaptive default configuration. The project is not a fork; the TypeScript team retains full authority over language design, and tsrs maintains strict behavioral compatibility via a nightly automated process that reviews upstream diffs and runs the TypeScript test suite. Rust’s memory model, lacking a garbage collector, enables efficient WebAssembly execution, allowing TypeScript environments to run in browsers or Cloudflare Workers without heavy overhead. Future plans include merging with tsc-rs for complete LSP support, adding type-aware lint rules to Oxlint, and contributing performance improvements back to TypeScript’s Go codebase.
SIM swap attacks let attackers take over a phone number by convincing the carrier to link it to a new SIM, enabling them to receive all calls and SMS, including OTP codes for two-factor authentication. Twilio’s Lookup API provides real-time SIM swap data from mobile network operators, indicating if the SIM linked to a number has recently changed. This tutorial shows how to integrate SIM swap detection into Rust using the rustlio crate, with dependencies dotenvy, serde, serde_json, and tokio. The code loads environment variables from a .env file for Twilio Account SID and Auth Token, calls lookup_phone_data with DataPackage::SimSwap, and prints the last_sim_swap date (e.g., 2020-04-27T10:18:50Z), swapped_period (e.g., PT48H), and swapped_in_period boolean. The post notes legitimate SIM swaps happen for reasons like lost phones or porting numbers, so the data should always be used as part of a larger, more holistic determination rather than alone.
SMS Pumping Fraud exploits phone number input fields to generate revenue from SMS messages sent to numbers controlled by a specific mobile network operator. Twilio’s Lookup v2 API provides an SMS Pumping Risk Score from 0 to 100, based on a proprietary model using network data including Verify Fraud Guard signals and unusual traffic patterns. This Rust tutorial uses the rustlio crate, dotenvy, serde, and tokio to call the API and retrieve the score along with carrier risk category and block status. Canadian numbers do not return carrier information, and Twilio advises against using the score for US or Canadian numbers. Guidelines recommend sending messages for scores 0-60, adding friction for 60-75, treating as suspicious for 75-90, and blocking for 90-100.
The 2026 Developer Survey gathered responses from over 30,000 developers over seven weeks, covering work patterns, technology usage, and AI adoption. Only 18% of developers work in an office daily, and the share of solo developers rose from 4% to 10%, possibly reflecting AI-enabled solopreneurship. In technology rankings, SQL surpassed HTML/CSS for the second spot, while Rust climbed to 12th most used language, potentially influenced by memory safety advocacy. AI usage is widespread: 73% of AI tool users employ them daily, with Claude Code (66%) and GitHub Copilot (59%) as leading agents, primarily for code generation (67%) and debugging (61%). Developers prioritize quality over cost (75% vs 38%) when using AI, and organizations implement cost controls like usage limits (38%) and model routing (27%), though 21% report increased spending.
This post compares RustRover and VS Code with the rust-analyzer extension for Rust development, detailing their architectural differences. VS Code, a general-purpose editor, relies on the rust-analyzer language server to provide completion, diagnostics, inlay hints, navigation, quick-fixes, and refactoring. RustRover is a dedicated professional IDE using JetBrains’ own analysis engine that builds a model of crates, dependencies, targets, and code structure from the Cargo workspace, with built-in debugging, testing, and version control. Key differences include RustRover’s integrated debugger versus VS Code’s need for an extension like CodeLLDB, and RustRover’s project-wide refactoring with affected-usage review. AI assistant capabilities also differ, with RustRover offering agent-driven tasks through Air and JetBrains AI while VS Code supports inline suggestions and agent providers like Copilot. The post offers a five-step migration guide for VS Code users and concludes the choice depends on whether one prefers a modular editor or an integrated IDE experience.
Cloudflare announced an experimental Emscripten target for wasm-bindgen, enabling native Rust code compiled with wasm-bindgen to run directly on Workers with full platform feature virtualization. This resolves the long-standing incompatibility between Emscripten and wasm-bindgen by having Emscripten drive the build while wasm-bindgen produces portable bindings included in Emscripten’s library system. The integration virtualizes timers, file system operations, and sockets atop Workers’ Node.js APIs, bringing significantly improved library compatibility for many previously unsupported Rust crates after minor patches to libraries like libc and socket2. Tokio async runtime support is achieved through WebAssembly JavaScript Promise Integration, which suspends blocking calls and returns control to the event loop without stalling. In testing, a Rust Minecraft server (Pumpkin) was deployed inside a Durable Object with TCP ingress using real Tokio sockets, persisting world state through Durable Object storage and supporting multiplayer connections.
The post announces a major update to the free JetBrains Academy course ‘100 Exercises to Learn Rust,’ which runs inside RustRover. The course teaches Rust through hands-on exercises building a ticket management system across eight chapters from ownership to futures, assuming fluency in another language. The update adds a rebuilt introduction, an FAQ, a final challenge turning the system into an async REST API by editing Cargo.toml and verifying with a requests.http file, visible test assertions, and a dev/release profile experiment. A ‘fast track’ lets experienced users skip to the final challenge to quickly see which areas need revisiting. The post advises using AI for explanations, not code generation, and turning off AI code completion during exercises to maximize learning from getting stuck and working out solutions.
The tokenizers library is being reworked for version 1 with a heavy focus on performance, as tokenization can become a bottleneck that starves models of data when workloads scale. The work draws on ideas from other open-source tokenizers like gigatoken, tiktoken, and kitoken. Key optimizations include using SIMD instructions for UTF-8 text, ensuring merges never cross pre-token boundaries, and reusing scratch buffers to avoid allocations. The release candidate is implemented in the Rust pre-release on crates.io, with the crate split into tk-encode, tk-serialize, tk-convert, and tk-train. Batched model calls and faster decoding with parallel batch processing are also part of the improvements.
Cloudflare describes how excessive memory use in pingora-ketama, the consistent-hashing component of its Pingora Backend Router, was investigated as a resource-efficiency problem at global scale. Consistent hashing maps servers and cache keys onto a circular hash space, but a single hash per server creates uneven ranges, while multiple hashes improve balance; with 160 points per server, the coefficient of variation falls to about 8% in the 100-server example. The work produced a v2 ring with compacted storage, faster sorting, and a configurable base number of hashes per node, while retaining the existing v1 ring and supporting simultaneous use during migration. After the old ring was decommissioned, measured memory usage for PBR fell by 100TB globally, and the changes are available in pingora-ketama behind an unadvertised Cargo feature.
The ClickHouse adapter for dbt v2, dbt’s Rust rewrite, entered public beta on September 16, 2026, while ClickHouse became a natively supported data warehouse on the dbt platform in private beta. The v2 adapter ships inside the open-source dbt binary, connects through an ADBC driver using Apache Arrow, and supports both open-source ClickHouse and ClickHouse Cloud. Existing models, tests, and profiles carry over, although some features remain incomplete and dbt plans to support the v1 and v2 adapters in parallel. The platform integration provides ClickHouse connections for Studio, environments, scheduled jobs, and Catalog, while the planned path to general availability includes parity items such as ON CLUSTER DDL and distributed materializations, followed by Fusion capabilities.
cuTile Rust (cutile-rs) extends Rust’s ownership model to tile-based GPU kernels, and this post describes an agentic workflow for translating cuTile Python and Triton-TileIR implementations. Because all three front ends target CUDA Tile IR and share the tileiras compiler, the workflow compares reference and translated IR while making Python’s implicit specializations explicit through Rust const generics, fixed dtype symbols, and FFI checks. A bounded multi-agent pipeline covers analysis, device kernels, host and FFI code, correctness, and benchmarking, with machine-checkable verdicts controlling progress. It ported all 24 public TileGym operators, roughly 40 kernels, and reported 99.5% average cuTile Python performance across 347 paired configurations on NVIDIA DGX B200. The skill ships with TileGym and uses acceptance checks requiring correctness, backend execution, and a geomean speedup of at least 0.95.
The best engineering reads, once a week.