Krypton

Programming Language Compiler CLLVM

Krypton is a simple, high-performance, general-purpose language with C-like control designed for human programmers.


Note

Source code is not available to the public to avoid license violations such as LLMs training on it.
If you wish to access the source code, please reach out to contact@kyren.codes and I'll give you access.

Design Goals

Truly General Purpose

From kernels to games and apps, backend servers or highly optimized database engines -- Krypton can handle it all.

While Krypton supports low-level control, it provides a good "batteries included" core library and has good ergonomics, making it feel like other high-level languages.

High performance and Low-level Control

Krypton allows you to achieve the highest performance through low-level control, matching or exceeding that of C and similar languages.

Additionally, Krypton encourages and provides tools for certain patterns that help produce more performant code, such as arenas and other custom allocators.

Full C ABI Compatibility

Krypton fits right into your C/C++ application with full C ABI compatibility out of the box: no need for special "C compatible" types or functions, no limitations on what Krypton features you can use from C.

Let the compiler generate C headers for you to use along with static or dynamic libraries produced by Krypton code.

Simple but Powerful

While Krypton has powerful features such as metaprogramming, it aims to keep things simple and straightforward, and avoids complicating the language by piling on lots of features.
For something to be added, there must be a really good reason to include it.

The programmer should be able to form a complete mental model of the language. Including its semantics, syntax and how it works. It should feel intuitive and unsurprising.

Joy of Programming

Programming should be fun, fighting the language isn't. Krypton provides you with the tools you need to solve your problems, and then gets out of your way.

Krypton is designed to be a "sharp knife" for good programmers. It avoids overly restrictive "safety" features, and doesn't shy away from useful features that might get misused.

Zen of Krypton

  • Favor simplicity over ease of use
  • Performance matters
  • Runtime crashes are better than bugs
  • Compile errors are better than runtime crashes
  • Semantic compression over premature abstraction
  • Unnecessary Complexity is the root of all evil
  • Errors are not special
  • Bits are high level
  • Assume as much as possible
  • You know the most about your code

Contributing

If you are interested in becoming a maintainer, reach out to me via mail <contact@kyren.codes>.

If you are interested in working on the backend side of a language, such as lowering code to LLVM or working on custom backends, please do reach out.

License

All logos and artwork are copyrighted works of Kyren contact@kyren.codes and are licensed under CC BY-NC-SA 4.0.

The official Krypton Compiler ("kc") is provided as either an executable, or as a library via libkrypton which can be linked either statically or dynamically, licensed under the following:

Copyright (c) 2025-2026 Kyren contact@kyren.codes. All rights reserved.

Redistribution and use only in binary forms, without modification, are permitted provided that the following conditions are met:

  1. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  2. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

  3. Source Code Availability and Use

    The source code for "libkrypton" and the Krypton Compiler ("kc") is proprietary and not publicly distributed. Source code may be made available on a case-by-case basis at the sole discretion of Kyren, typically for educational purposes or to selected individuals.

    Use of any provided source code is strictly limited as follows:

    • No modifications may be made without prior explicit written permission.
    • Redistribution or public distribution of source code is prohibited.
    • Source code is provided "as-is" and for education only.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.