# The Diatom Programming Language


[![Crates.io][crates-badge]][crates-url]
[![license][license-badge]][crates-url]
[](https://deps.rs/repo/github/diatom-lang/diatom)



[crates-badge]: https://img.shields.io/crates/v/diatom.svg
[crates-url]: https://crates.io/crates/diatom
[license-badge]: https://img.shields.io/crates/l/diatom
A dynamic typed scripting language for embedded use in applications. This project is yet another attempt of being a "better" lua.
**Warning**: Project is still in experimental stage and API is considered as unstable.
## Features
- [x] High Performance: Runs as fast as lua
- [ ] Support for a tracing jit
- [x] No global variable
- [x] No `nil` value
- [x] Has real integer type
- [ ] Has real list type
- [ ] Support tuple for multiple return
- [ ] Support for gradual typing
- [ ] Support for macro system
## Try Diatom
You can try diatom at [the online playground](https://diatom-lang.github.io/diatom-playground/).
## Quick Start
Make sure you have [Rust and Cargo](https://doc.rust-lang.org/book/ch01-01-installation.html) installed.
```sh
cargo install diatom
diatom # Run interactive console
```
## Installing from source
Run the following script:
```sh
git clone https://github.com/diatom-lang/diatom.git
cd diatom
cargo run --release # Run interactive console
```
## Reference
The Diatom Reference is available at [here](https://diatom-lang.github.io/reference/).
## Embedding in Application
### Rust Application
Diatom is available at [crates.io](https://crates.io/crates/diatom).
To use latest build, add this repo to your `Cargo.toml`. Latest build documentation is available [here](https://diatom-lang.github.io/diatom).
### Use C bindings
Work in progress.