{"id":19655003,"url":"https://github.com/zeam-vm/pelemay","last_synced_at":"2025-04-06T05:16:50.367Z","repository":{"id":54505799,"uuid":"205204672","full_name":"zeam-vm/pelemay","owner":"zeam-vm","description":"Pelemay is a native compiler for Elixir, which generates SIMD instructions. It has a plan to generate for GPU code.","archived":false,"fork":false,"pushed_at":"2021-02-15T04:14:25.000Z","size":420,"stargazers_count":185,"open_issues_count":41,"forks_count":14,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-15T23:01:29.195Z","etag":null,"topics":["elixir","gpu-computing","simd-parallelism"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeam-vm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-29T16:23:54.000Z","updated_at":"2024-03-14T18:49:28.000Z","dependencies_parsed_at":"2022-08-13T18:10:10.080Z","dependency_job_id":null,"html_url":"https://github.com/zeam-vm/pelemay","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeam-vm%2Fpelemay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeam-vm%2Fpelemay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeam-vm%2Fpelemay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeam-vm%2Fpelemay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeam-vm","download_url":"https://codeload.github.com/zeam-vm/pelemay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436286,"owners_count":20938533,"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","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":["elixir","gpu-computing","simd-parallelism"],"created_at":"2024-11-11T15:19:04.372Z","updated_at":"2025-04-06T05:16:50.013Z","avatar_url":"https://github.com/zeam-vm.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pelemay\n**Pelemay = The Penta (Five) “Elemental Way”: Freedom, Insight, Beauty, Efficiency and Robustness**\n\nFor example, the following code of the function `map_square` will be compiled to native code using SIMD instructions by Pelemay.\n\n```elixir\ndefmodule M do\n  require Pelemay\n  import Pelemay\n\n  defpelemay do\n    def map_square (list) do\n      list\n      |\u003e Enum.map(\u0026 \u00261 * \u00261)\n    end\n\n    def string_replace(list) do\n      list\n      |\u003e Enum.map(\u0026 String.replace(\u00261, \"Fizz\", \"Buzz\"))\n    end\n  end\nend\n```\n\n## Supported Platforms\n\nPotentially, Pelemay may support any architectures that both Erlang and Clang or GCC are supported.\n\nWe've tested it well on the following processor architectures:\n\n* x86_64\n* ARM\n\nWe've tested it well on the following OS:\n\n* macOS (64bit, including Apple Silicon M1 Mac on ARM native mode (unfortunately, not works on Rosetta 2))\n* Linux (64bit)\n* Nerves (Raspberry Pi 3)\n\nI'm so sorry but Windows isn't be supported because of changing the builder of Pelemay.\n\nWe've tested it on the following Elixir versions:\n\n* 1.9\n* 1.11\n\nWe've tested it on the following OTP versions:\n\n* 23\n* 22\n* 21\n* 20\n\nWe've tested it on Clang 6 or later and GCC 7 or later.\nPotentially, Clang and GCC that supports auto-vectorization can generate native code with SIMD instructions by Pelemay.\n\nPelemay also supports Nerves.\n\n## Pre-installation\n\nPelemay requires Clang or GCC and make.\n\nEnvironment Variable `CC` is recommended being set the path of the C compiler you want to use.\n\n## Installation\n\nAdd `pelemay` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:pelemay, \"~\u003e 0.0.15\"},\n  ]\nend\n```\n\nDocumentation is generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). The docs will\nbe found at [https://hexdocs.pm/pelemay](https://hexdocs.pm/pelemay).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeam-vm%2Fpelemay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeam-vm%2Fpelemay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeam-vm%2Fpelemay/lists"}