Enact
(WIP) Enact: A compiled programming language that's simple, familiar and fast.
Install / Use
/learn @enact-lang/EnactREADME
<p align="center">
<img src="./docs/img/enact-logo-text.png" alt="Enact logo" width="60%" height="60%"></img>
</p>
<p align="center">
<a href="https://travis-ci.com/enact-lang/enact"><img src="https://travis-ci.com/enact-lang/enact.svg?branch=master" alt="Build Status" /></a>
<a href="https://www.codefactor.io/repository/github/enact-lang/enact"><img src="https://www.codefactor.io/repository/github/enact-lang/enact/badge" alt="CodeFactor" /></a><br>
</p>
<p align="center">
Enact is a new compiled general-purpose programming language that's not designed to be unique or groundbreaking.
Instead, Enact aims to be familiar, taking advantage of already established techniques and paradigms and making them
<strong>nicer</strong>.
</p>
Example
// FizzBuzz in Enact
func fizzBuzz(n int) {
for i in 1...n {
switch (i % 3 == 0, i % 5 == 0) {
case (true, false) => print("Fizz");
case (false, true) => print("Buzz");
case (true, true) => print("FizzBuzz");
default => print(n);
}
}
}
Features
- Static types that help, not hinder
- Efficient compile-time memory management
- Easy-to-use generics, hygienic macros
- Pattern matching and tail-calls
- Clean and familiar syntax
- Built-in build system and package management
Goals
- Easy to pick up from other compiled languages like C, C++, Rust and Go
- More memory-safe than C, more approachable than Rust, more peformant than Go
- Small standard library with a strong ecosystem of external packages
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
