README.md
[](https://livebook.dev/run?url=https%3A%2F%2Fhexdocs.pm%2Fcharms%2F0.1.1%2Fprogramming-with-charms.livemd)
# Charms
[](https://hex.pm/packages/charms) [](https://hexdocs.pm/charms)
Elixir compiler to compile a subset of Elixir to native targets
- [x] `defm` to define native functions, some examples
- [quick sort](/bench/enif_quick_sort.ex)
- [vector add](/bench/vec_add_int_list.ex)
- [x] Multi-threaded compilation, built upon Elixir processes and MLIR's multi-threaded capabilities
- [ ] SIMD support
- [ ] SIMT support
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `charms` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:charms, "~> 0.1.0"}
]
end
```
## Development
To run the benchmarks:
```sh
mix run bench/sort_benchmark.exs
mix run bench/list_add_benchmark.exs
```