Private
Public Access
1
1
Clone
2
Home
Kyren223 edited this page 2026-07-24 18:36:31 +00:00

Krypton

Krypton Banner

Krypton is a high performance, statically typed. C transpiled language, designed as a C replacement for good programmers.

Krypton is currently in VERY EARLY STAGES and is not usable for any real programs.

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 at kyren.codes and I'll add you manually.

Goals

High performance

Krypton is designed with performance in mind, and ensures the same performance as C, by directly compiling to C99.

Krypton encourages certain patterns like arena/pool allocators, which MAY make it faster than C in the average codebase.

Truly seamless C and C++ interoperability

No bindings, no wrappers, Krypton compiles to C99 for full compatbility with C and C++. You may also generate a single-header C file from multiple Krypton source files to include as a library in your existing C/C++ project.

Calling a C function is as easy as importing it and calling it. Types and functions are C-compatible and use the C abi.
To achive this, Krypton uses the concept of "foreign imports" which skips type checking of foreign functions and variables.

It's also possible to manually or automatically generate type-infomration bindings to get better errors and type-safety.

Simple but powerful

Krypton aims to be as simple as possible while having enough features to be powerful, without over complicating the language.
This means avoiding pointless complexity with little to no benefit for the programmer.

The programmer should be able to form a complete mental model of the language. Including it's semantics, syntax and how it works.

Designed for good programmers

Krypton is designed to be a "sharp knife" for good programmers. unlike other languages such as Rust, which restrict the programmer, Krypton believes programmers are competent, and as such aims to provide them with powerful tools even if those tools can be misused.

This doesn't mean safety/misuse is not a concern, instead, Krypton prioritizes functionality that may be misused over no functionality.

Krypton will have safety features such as static typing, array bounds checking and warnings, because these don't overly restrict the programmer.

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.

You should be able to forget about the language, and enjoy the act of programming and problem solving.

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
  • Complexity is the root of all evil
  • Errors are values
  • 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>.

License

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.

All source code under the src/ directory is copyrighted work of Kyren contact@kyren.codes and licensed under LICENSE. All logos and artwork in the assets/ directory are copyrighted works of Kyren contact@kyren.codes and are licensed under CC BY-NC-SA 4.0.