.NET (OK, C#) gets union types
The article announces that union types are being introduced in .NET 11 (C# 15), allowing developers to define types that can represent one of several unrelated types using the new `union` keyword. It …
The article announces that union types are being introduced in .NET 11 (C# 15), allowing developers to define types that can represent one of several unrelated types using the new `union` keyword. It …
The article announces that C# 15, part of .NET 11, will finally introduce native support for union types using the `union` keyword. Union types allow a variable to represent one of several distinct ty…
The article announces that union types are being introduced in .NET 11 (C# 15), allowing developers to define a type that can represent one of several unrelated types using the new `union` keyword. It…
The article announces that union types, a long-requested feature common in functional programming languages, are finally being introduced in C# 15 as part of the .NET 11 preview. It explains how the n…
The article explores the new Web Worker project template introduced in the .NET 11 preview SDK, which allows Blazor WebAssembly applications to run CPU-intensive tasks on background threads without bl…
Git 2.54 introduces new features including easier rebasing through the `git history` command, which allows users to reword or split commits without checking out the associated branch first. The update…
The article explains how developers can reduce byte array allocations in .NET Framework by using `ReadOnlySpan<T>` instead of traditional byte arrays, even on older runtimes. It describes how `ReadOnl…
The article explains how to create custom Docker sandbox templates for running AI agents safely in isolated microVMs, building on a previous post about using the Docker sandbox tool (sbx). It provides…
The article describes how to safely run AI coding agents like Claude Code in "dangerous" mode—which bypasses permission prompts for improved productivity—by using Docker Sandboxes. These sandboxes pro…
The article introduces the `Microsoft.Extensions.Options.Contextual` NuGet package, which provides APIs for dynamically configuring options objects based on a provided context (such as user location o…
The article describes the restructuring of the **NetEscapades.EnumGenerators** NuGet package, a source generator that creates fast `ToStringFast()` methods for enums to improve performance over built-…
This article explains how to use the `MeterListener` type from the `System.Diagnostics.Metrics` APIs to consume and record metric values in-process within a .NET application. The author demonstrates t…
This article explains the `System.Diagnostics.Metrics` APIs in .NET, focusing on the distinction between "observable" and "normal" instruments. For normal instruments, the application (producer) activ…
The article explains how to use the `Microsoft.Extensions.Telemetry.Abstractions` source generator to simplify metric creation in .NET, replacing manual boilerplate code from the `System.Diagnostics.M…
The article introduces the `System.Diagnostics.Metrics` API, which was built into .NET 6 and is also available for earlier .NET versions via a NuGet package. It explains core concepts like `Instrument…
The article explains that when using `foreach` on an `IEnumerable<T>` variable instead of a concrete type like `List<T>`, the C# compiler generates code that allocates heap memory for the enumerator, …
File Pilot is a fast, third-party replacement for Windows File Explorer that is currently available for free during its beta phase, with plans to become a paid tool (around £40 for an individual licen…
The article summarizes updates to version 1.0.0-beta19 of the NetEscapades.EnumGenerators NuGet package, a source generator that creates fast methods for working with enums by replacing slow built-in …
This article summarizes an exploration of Kevin Gosse's Silhouette library, which enables developers to build .NET CLR profilers using C# and NativeAOT instead of traditional C/C++ code. The author cr…
The article describes the author's exploration of the Zed editor as a potential replacement for VS Code on Windows, driven by frustrations with VS Code's declining performance and unwanted .NET featur…