Skip Navigation

KORE Programming Language

Build software better, together

GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

From the README:

What is KORE?

KORE is a self-hosting programming language that combines the best ideas from multiple paradigms:

ParadigmInspirationKORE Implementation
SafetyRustOwnership, borrowing, no null, no data races
SyntaxPythonSignificant whitespace, minimal ceremony
MetaprogrammingLispCode as data, hygienic macros, DSL-friendly
Compile-TimeZigcomptime execution, no separate macro language
EffectsKoka/EffSide effects tracked in the type system
ConcurrencyErlangActor model with message passing
UI/ComponentsReact/JSXNative JSX syntax, components, hot reloading
TargetsUniversalWASM, LLVM native, SPIR-V shaders, Rust transpilation

Example

  kore
    
// Define a function with effect tracking
fn factorial(n: Int) -> Int with Pure:
    match n:
        0 => 1
        _ => n * factorial(n - 1)

// Actors for concurrency
actor Counter:
    var count: Int = 0

    on Increment(n: Int):
        count = count + n

    on GetCount -> Int:
        return count

fn main():
    let result = factorial(5)
    println("5! = " + str(result))

  

Comments

7

Comments

7