qmetrics.net

CSharp.lua

C# to Lua compiler with CoreSystem runtime library

CSharp.lua compiles C# source into Lua that runs on a Lua VM. It includes CoreSystem.lua for .NET-like types without the CLR.

Overview

CSharp.lua lets you author C# and execute the result on a Lua virtual machine. The compiler walks a C# abstract syntax tree, lowers it to a Lua AST, and emits Lua source designed to stay readable for debugging and inspection.

The companion CoreSystem.lua library implements much of the .NET Framework core surface, including basic types, delegates, generic collections, and LINQ-style operations. Converted Lua code depends on this library when running outside the CLR.

The toolchain is built on .NET and is intended to work across platforms where .NET is available. A command-line interface drives compilation, and sample console programs illustrate typical workflows such as Fibonacci output.

The project is suited to teams that want C# syntax and familiar APIs in environments where Lua is the deployment runtime, such as embedded scripting or game engines that standardize on Lua.

Key features

  • C# source to Lua output
  • Readable Lua code generation
  • CoreSystem.lua runtime
  • LINQ and collection support
  • Cross-platform .NET toolchain
  • Command-line compiler
  • CLR-free Lua execution

Use cases

  • Scripting with C# syntax
  • Lua VM game logic
  • Portable .NET-like APIs on Lua
  • Console utilities compiled to Lua

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