Skip to content

89netraM/ai-compiler

Repository files navigation

AiCompiler

Do you want

  • Slower compile times
  • Unreliable output, or
  • The worst code imaginable?

Then AiCompiler is the NuGet package for you!

AiCompiler is the easiest way to write C#, by not writing any C# at all! With a sleek AiGenerated attribute applied to an empty method, the compiler writes the implementation for you!

Look at this amazing example

/// <summary>
/// Adds two integers.
/// </summary>
/// <param name="a">The first integer.</param>
/// <param name="b">The second integer.</param>
/// <returns>
/// The sum of the two integers.
/// </returns>
[AiGenerated]
private partial int Add(int a, int b);

With no effort1 from the developer at all the compiler generates code that passes the tests

Add(2, 3).Should().Be(5)

Use it in production today!

dotnet add package AiCompiler --version 0.1.0.0

Footnotes

  1. Except a few comments

About

Compile with an AI (don't)

Resources

License

Stars

Watchers

Forks

Languages