qmetrics.net

Natasha

Roslyn-based runtime C# dynamic assembly compiler

Natasha screenshot

Natasha lets .NET applications compile and load C# at runtime using Roslyn. It adds domain and plugin management with isolation, unload, and hot-swap.

Overview

Natasha is a Roslyn-based library for building domains, assemblies, classes, structs, enums, interfaces, and methods from C# source while an application is running. That allows adding modules and behavior without restarting the host process.

The library integrates domain and plugin management so workloads can use domain isolation, domain unloading, and hot plug-in style updates. Compilation follows a full pipeline with error reporting, automatic reference resolution, and templates for common data structures.

Developers consume it through NuGet packages such as the C# compiler and optional domain modules for newer .NET versions. A chain-style API is intended to keep focus on the scripts being compiled rather than boilerplate setup.

Documentation and FAQ cover initialization and typical compilation flows. The library targets netstandard2.0 and newer .NET Core application versions and runs cross-platform.

Key features

  • Runtime Roslyn C# compilation
  • Domains, assemblies, types, and methods
  • Domain isolation and unload
  • Hot-swappable plugin management
  • Automatic reference handling
  • Structured build templates
  • Chain-style API
  • Cross-platform .NET support

Use cases

  • Runtime-loaded business rules in .NET apps
  • Hot-reloadable plugin architectures
  • Scripted extensions without separate processes
  • Isolated compilation domains for untrusted code
  • Dynamic module delivery in long-running services

Tags

Similar software

TypeScript

Typed JavaScript language with compile-time checks

TypeScript adds optional static types to JavaScript and compiles to standard JavaScript. It targets application-scale code on browsers, Node.js, and other JavaScript runtimes.

★ 111.9k⟳ yesterdayApache-2.0

Carbon Lang

Experimental successor language interoperating with C++

Carbon Language is an experimental programming language and toolchain aimed at C++ interoperability, migration, and modernization. It is not ready for production use and remains under active development.

★ 34k⟳ yesterdayApache-2.0 · open core

Roslyn

Open-source C# and Visual Basic compiler platform APIs

Roslyn implements the .NET C# and Visual Basic compilers and exposes APIs for analyzing, refactoring, and generating .NET code in tools and applications.

★ 20.8k⟳ todayMIT

GopherJS

Go to JavaScript compiler for browser front-end code

GopherJS translates Go programs into JavaScript so front-end logic can run in browsers. Install the gopherjs CLI to build, test, and serve packages like the standard go tool.

★ 13.2k⟳ 16 days agoBSD-2-Clause

Halide

Embedded language for fast image and array pipelines

Halide helps write high-performance image and array processing code, embedded in C++ or Python. Pipelines compile to CPUs and multiple GPU compute APIs.

★ 6.6k⟳ todayMIT · open core

The Agda Wiki

Dependently typed functional language and interactive proof assistant

Agda combines a dependently typed functional programming language with an interactive environment for writing and checking constructive proofs.

★ 3k⟳ yesterdayMIT