a simple and fast functional programming language
- simplicity
- performance
- safety
- a fast compiler
# clone the repo
git clone https://github.com/eyelash/moebius
# compile the compiler
cmake .
make
# compile some moebius code
./moebc examples/HelloWorld.moeb
# run the compiled code
examples/HelloWorld.moeb.exe
- codegen
- x86
- C
- JavaScript
- optimizations
- monomorphization
- dead code elimination
- inlining
- constant propagation
- tail call optimization
- common subexpression elimination
- register allocation
- types
- integers
- floating-point numbers
- closures
- structs (product types)
- enums (sum types)
- arrays
- strings
- interfaces
- recursive types
- first-class types
- operators
- arithmetic (
+
,-
,*
,/
, and%
) - relational (
==
,!=
,<
,<=
,>
, and>=
) - logical (
&&
,||
, and!
)
- arithmetic (
- compile-time garbage collection
- compile-time reflection
- testing
- monadic IO
- async/await