Her name is [Geksa]
Hexa is a high level, strictly typed programming language that compiles to JavaScript and native apps
- JavaScript-inspired syntax and behavior: Feel yourself right at home!
- With the bits of TypeScript, Swift and Go
- Native performance with static types and optimizing compiler
- Follows Node.js (and browser) API
- Fast compilation
- Compiles to JavaScript, WebAssembly, osdev, LLVM, C, C++, ObjC, ... you name it! (WIP)
- Transpilation to almost anything: Lua, AutoCAD Lisp, C#, PHP, etc (WIP)
- Simple API for custom third-party transpilers (WIP)
- Produces human-readable code for all targets
- Null safety, crash resistance, pattern matching, classes (WIP)
- Real multithreading, parallelism, async/await, no GC (WIP)
- Smart type inference makes programming clean and simple
- Friendly and helpful error messages
- Supports
#!shebang
and scripting (just callhexa script.hexa
) (WIP) - REPL (enable with just
hexa
command) (WIP) - Metaprogramming with syntax tree, generics and contracts (WIP)
- Completely cross-platform
- Stable long-term backward-compatible syntax (WIP)
- We are working on an optional memory ownership model (similar to borrow checker) and side effects system (WIP)
- Experimental C-to-Hexa and TypeScript-to-Hexa automatic conversion (WIP)
- JSX-style inline templating (WIP)
- And of course, IDE plugins with Language Server built right into Hexa!
WIP — Work in progress, coming soon
kawaii
is the development branch and accepts pull requestsartifacts
are built from each kawaii branch commit
Builds are made from the latest commit:
- Install with Arch Linux AUR (maintained by @expwez)
- If you're maintainer, make a Pull Request!
- Coming Soon!
- Visual Studio Code / VSCode — hexalang/hexa-vscode-bundle is the best supported IDE plugin right now!
- Sublime Text 3 — hexalang/hexa-sublime-bundle
- Atom — hexalang/hexa-atom-bundle
- Package manager — hexalang/packages
Install Codeium then open .hexa
file and confirm experimental Hexa support.
Copilot also works just fine! Seems to be activated for .hexa
files by default. Remember to login via Command Palette
.
- Follow progress
- Sources of inspiration
- Getting started guide for beginners
- Some code examples
- Comparison with other languages for experienced developers
- Why Hexa?
- Contribute your compilation target
You need to download latest long-term Node.js LTS. The Hexa Compiler is written in Hexa itself. Pre-built compiler (bootstrapper) already included in the repo.
git clone --recursive --depth 100 https://github.com/hexalang/Hexa.git
cd Hexa
node bootstrap.js hexa.json
node hexa-node.js hexa.json
# This results in a `hexa-node.js` file in the root of the repo
# Call `node hexa-node.js project.json` to build your projects
You may now add the folder into your PATH.
Learn more about compiler development
See LICENSE files for full license texts and headers of each file (files in same directory may use different licensing models). If license is not mentioned in header then LICENSE file in upper directory level to be considered.
Compiler and some tools are under Lesser GPL 3.0 (feel free to include as a library in closed source projects), standard libraries and examples are under MIT.