dotcl.win-x64
0.1.33
See the version list below for details.
dotnet add package dotcl.win-x64 --version 0.1.33
NuGet\Install-Package dotcl.win-x64 -Version 0.1.33
<PackageReference Include="dotcl.win-x64" Version="0.1.33" />
<PackageVersion Include="dotcl.win-x64" Version="0.1.33" />
<PackageReference Include="dotcl.win-x64" />
paket add dotcl.win-x64 --version 0.1.33
#r "nuget: dotcl.win-x64, 0.1.33"
#:package dotcl.win-x64@0.1.33
#addin nuget:?package=dotcl.win-x64&version=0.1.33
#tool nuget:?package=dotcl.win-x64&version=0.1.33
dotcl
Common Lisp for .NET applications. Embed it in a C# program to evaluate Lisp, call Lisp functions, and let Lisp call back into your code. Lisp values are .NET objects and Lisp code calls any .NET API directly, so there is no marshalling layer between the two.
dotnet add package DotCL.Runtime
Quick start
using DotCL;
DotclHost.EnsureCore();
// Evaluate Lisp and take the result back as a .NET value.
var answer = DotclHost.EvalString("(+ 40 2)");
Console.WriteLine(DotclHost.ToClr<int>(answer)); // 42
// Let Lisp call into C#.
DotclHost.Register("greet", args => $"Hello, {args[0]}!");
DotclHost.EvalString("(print (greet \"Lisp\"))"); // "Hello, Lisp!"
// Define a function in Lisp and call it from C#.
DotclHost.EvalString("(defun fact (n) (if (< n 2) 1 (* n (fact (1- n)))))");
Console.WriteLine(DotclHost.ToClr<long>(DotclHost.Call("fact", 20))); // 2432902008176640000
Embedding dotcl covers the host API: loading code, passing values both ways, errors, output, and running where no code may be generated at run time.
Features
- The whole .NET library from Lisp.
(dotnet:new "System.Text.StringBuilder"),(dotnet:invoke sb "Append" "x"),(dotnet:static "System.Math" "Sin" 1.0); NuGet packages load at run time. See Calling .NET from Lisp. - Real .NET classes from Lisp.
dotnet:define-classemits an ordinary .NET type, so frameworks such as ASP.NET Core, MAUI, Avalonia and MonoGame see a plain subclass. See Defining .NET classes. - Runs where code generation is not allowed. Lisp compiled ahead of time
runs under NativeAOT and Unity IL2CPP, including a WebGL build. See the
Precompiled*samples. - Common Lisp, not a subset. The ansi-test suite passes except for one deliberate deviation, with the few tests that ansi-test itself marks as specification problems left out. Most Quicklisp libraries load, some of them with patches from the dotcl dist; library status is the measured list.
- Edit while it runs. Redefine a function and the next call uses the new definition; a host can reload a file without restarting. See HotReloadDemo.
- One package for Windows, macOS and Linux on x64 and ARM64, with builds for
.NET 10, .NET 8 and
netstandard2.0(Unity).
How fast, measured against C# and SBCL: Benchmarks.
Before you embed it
dotcl runs in your process with the same rights as your code, and Lisp code can reach any .NET API. It is not a sandbox: do not run code you do not trust. The runtime is one image per process, shared by every thread that calls into it. Hosting dotcl safely says what that means for threads and for untrusted input.
Using dotcl as a Lisp
dotcl is also a Common Lisp you can use on its own, with a REPL, scripts and Quicklisp:
dotnet tool install --global dotcl
dotcl repl
dotcl --load my-program.lisp
dotcl for Lisp programmers starts there: libraries, editors, the REPL, and shipping what you write as a .NET tool or an executable. To try it without installing anything, the playground runs dotcl in your browser.
Showcase
- paalam: an image / comic / PDF viewer (Avalonia). UI and application logic are Common Lisp end to end.
- playa: an Emacs-style split-tiling
video / music player (Avalonia + LibVLCSharp), Lisp compiled ahead of time by
the project's own
dotnet build.
Samples
Complete projects in samples/, each with its own README:
- AspNetLispDemo: an ASP.NET Core controller written in Lisp.
- MauiLispDemo: a .NET MAUI app (Windows + Android) defined in Lisp.
- MonoGameLispDemo: a MonoGame
Gamesubclass in Lisp. - HotReloadDemo: a host that reloads a Lisp file on every save.
- McpServerDemo: a Model Context Protocol server exposing a Lisp REPL.
- PrecompiledLispDemo, ...Aot, ...WebGL: precompiled Lisp with no run-time code generation, on CoreCLR, NativeAOT and Unity IL2CPP WebGL.
Documentation
The documentation index. Building dotcl from source is in
Getting started; the architecture and
design history are in DESIGN.md.
License
MIT. See LICENSE.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.38 | 103 | 11/24/2026 |
| 0.1.37 | 121 | 11/7/2026 |
| 0.1.36 | 123 | 10/31/2026 |
| 0.1.35 | 109 | 10/23/2026 |
| 0.1.34 | 1,146 | 10/17/2026 |
| 0.1.33 | 113 | 10/11/2026 |
| 0.1.32 | 120 | 10/3/2026 |
| 0.1.31 | 108 | 10/2/2026 |
| 0.1.30 | 121 | 9/28/2026 |
| 0.1.29 | 120 | 9/20/2026 |
| 0.1.28 | 121 | 9/13/2026 |
| 0.1.27 | 127 | 9/1/2026 |
| 0.1.26 | 370 | 8/24/2026 |
| 0.1.25 | 140 | 8/18/2026 |
| 0.1.24 | 133 | 8/11/2026 |
| 0.1.23 | 133 | 8/6/2026 |
| 0.1.22 | 147 | 8/1/2026 |
| 0.1.21 | 143 | 7/24/2026 |
| 0.1.20 | 149 | 7/23/2026 |
| 0.1.19 | 144 | 7/20/2026 |