C#
news

17stories

Stories

C# derleyici
Why jump addresses break
HBHabr C# (ru) Stefanio Oct 22

Why stable instruction addresses beat numeric indexes in a C# compiler

The author of the C# interpreter HydraScript explains why numeric instruction indexes broke code generation and how switching to stable IAddress objects fixed it. Addresses now stay with their instructions when code is inserted, removed or replaced, so jumps keep pointing to the right place. It is a concrete case for developers building compilers or interpreters with the Visitor pattern.

C# 14
New extension members
DVDEV Community: #csharp emanuele longo Oct 19

C# 14 Extension Members: Extension Properties, Static Members and Operators

C# 14, shipped with .NET 10, adds extension members: extension properties, static members and operators declared inside extension blocks. This goes beyond the classic this-parameter extension methods and lets APIs read more naturally. Knowing the current limits, such as no state and no indexers, matters before adopting it in production.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message