Skip to content
/ ekitai Public

Ekitai is a small programming language with refinement types that compiles to binary code using the LLVM ecosystem.

Notifications You must be signed in to change notification settings

tarberd/ekitai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

液体 (えきたい)

液体, romanized ekitai, means liquid. It is built from two parts: 液 (えき, eki) meaning fluid; and 体 (たい, tai) meaning body.

Ekitai is a small programming language with refinement types that compiles to binary code using the llvm ecosystem.

Examples

// withdraws checks if amount is <= than balance and returns the new balance.
// this is all statically checked by the type checker.
fn withdraw(
  balance: {x:i64| true},
  amount: {y: i64 | y <= x},
) -> {new_balance:i64| new_balance == balance-amount} {
//...
}

withdraw(50, 100) // compiler statically verifies this line to be incorrect
withdraw(100, 50) // compiler statically verifies this line to be correct

About

Ekitai is a small programming language with refinement types that compiles to binary code using the LLVM ecosystem.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages