Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

raviqqe/fmm

Open more actions menu

Repository files navigation

F--

GitHub Action License

The uncurried minimal functional programming language

It's designed to be a compiler target for high-level functional programming languages.

Features

  • SSA
  • Minimal
    • Only 4 control instructions
      • branch
      • call
      • if
      • return
    • No backward jump
  • Portable
    • Pointer-sized integer
    • C-like union type
    • Boolean type
  • Structural typing
  • CPS transformation
  • IR builder library

Backends

  • LLVM
  • C
    • No guarantee for tail call optimization

Limitations

  • Inductive types
  • Weak typing
  • No type inference

Calling convention compatibility table

Caller \ Callee Target (C) Tail Source (CPS)
Target (C) x x *1
Tail x x *1
Source (CPS) x x x
  • *1: Suspension in functions is not supported.

Design notes

  • Expressions have no side effect.
    • You can use them in constants.
  • Instructions can have side effects.

License

Apache 2.0

About

The uncurried minimal functional programming language for CPS transformation

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.