Back to browse
GitHub Repository

Alder is a C# expression engine for .NET that parses, binds, validates, and executes C# expressions and statement blocks against CLR types, with support for async, Dynamic LINQ, expression-tree export, security controls, and NativeAOT.

14 starsC#

Alder: Dynamic Code Execution Without Roslyn

by MartiSilvio·May 18, 2026·1 point·0 comments

AI Analysis

●●●BangerWizardryBig Brain

Full C# semantics with NativeAOT dispatch finally solves the Roslyn overhead problem.

Strengths
  • Source generator emits reflection-free dispatch metadata specifically for NativeAOT scenarios.
  • Implements ECMA-334 7th edition semantics including lambdas, iterators, and pattern matching.
  • Zero third-party runtime dependencies while supporting both interpreted and compiled modes.
Weaknesses
  • Niche appeal limited to developers specifically needing dynamic execution in AOT-constrained environments.
  • Documentation depth for complex edge cases like custom operators may require reading source code.
Target Audience

.NET developers, engine builders, plugin system architects

Similar To

Roslyn · DynamicExpresso · NCalc

Post Description

Hey HN, I recently published Alder and thought Id share it here.

I’ve been working with dynamic code execution for quite some time now and there still seems to be a lack of a open source solution that fully tackles this problem. A lot of the libraries I keep finding seem to be outdated or only support a small subset of C#. On the other hand, embedding Roslyn isn’t a viable solution for me due to the overhead it would introduce.

So I started building my own solution. Alder is an expression engine that parses, semantically binds, validates, and executes C# code dynamically in both interpreted and compiled modes, with support for AOT dispatch as well.

Although it started as a much smaller project, I’m quite surprised by how much of the language I ended up supporting in the end.

https://github.com/MartiSilvio/Alder

Any thoughts or feedback are really appreciated

Similar Projects

AI/MLMid

A local AI workspace with dynamic routing and Docker-sandboxed

Buzzword-heavy README promises enterprise-grade features but only has 1 GitHub star.

Bold Bet
isaacdear
113mo ago
Developer Tools●●●Banger

Adam – An embeddable cross-platform AI agent library

Agent framework in a single C header file that actually runs local models offline.

WizardryBig BrainNiche Gem
marcobambini
2491mo ago