{"id":21077453,"url":"https://github.com/beaver-lodge/charms","last_synced_at":"2025-07-27T13:13:03.492Z","repository":{"id":241262318,"uuid":"802038999","full_name":"beaver-lodge/charms","owner":"beaver-lodge","description":"NIF, in Elixir, for Elixir","archived":false,"fork":false,"pushed_at":"2025-07-26T06:08:14.000Z","size":857,"stargazers_count":32,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T12:09:06.248Z","etag":null,"topics":["compiler","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beaver-lodge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-17T11:59:37.000Z","updated_at":"2025-07-26T06:08:17.000Z","dependencies_parsed_at":"2024-05-23T07:34:21.014Z","dependency_job_id":"b895a408-4fc5-422d-a53f-b372655735d2","html_url":"https://github.com/beaver-lodge/charms","commit_stats":null,"previous_names":["beaver-lodge/charms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beaver-lodge/charms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaver-lodge%2Fcharms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaver-lodge%2Fcharms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaver-lodge%2Fcharms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaver-lodge%2Fcharms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beaver-lodge","download_url":"https://codeload.github.com/beaver-lodge/charms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaver-lodge%2Fcharms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267194537,"owners_count":24050882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","elixir"],"created_at":"2024-11-19T19:36:47.888Z","updated_at":"2025-07-27T13:13:03.488Z","avatar_url":"https://github.com/beaver-lodge.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Run in Livebook](https://livebook.dev/badge/v1/pink.svg)](https://livebook.dev/run?url=https%3A%2F%2Fhexdocs.pm%2Fcharms%2F0.1.1%2Fprogramming-with-charms.livemd)\n\n# Charms\n[![Package](https://img.shields.io/badge/-Package-important)](https://hex.pm/packages/charms) [![Documentation](https://img.shields.io/badge/-Documentation-blueviolet)](https://hexdocs.pm/charms)\n\nCharms is an Elixir compiler that compiles a subset of Elixir to optimized native code using MLIR. It enables writing performance-critical Elixir code that gets compiled to efficient native binaries while maintaining Elixir's syntax and development workflow.\n\n## Features\n- [x] `defm` to define native functions, some examples\n  - [quick sort](/bench/enif_quick_sort.ex)\n  - [vector add](/bench/vec_add_int_list.ex)\n- [x] Multi-threaded compilation, built upon Elixir processes and MLIR's multi-threaded capabilities\n- [ ] SIMD support\n\n- [ ] SIMT support\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `charms` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:charms, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Development\n\nTo run the benchmarks:\n```sh\nmix run bench/sort_benchmark.exs\nmix run bench/list_add_benchmark.exs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaver-lodge%2Fcharms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeaver-lodge%2Fcharms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaver-lodge%2Fcharms/lists"}