ProductPromotion
Logo

Elixir

made by https://0x3d.site

GitHub - christhekeele/matcha: 🍵 First-class Elixir match specifications.
🍵 First-class Elixir match specifications. Contribute to christhekeele/matcha development by creating an account on GitHub.
Visit Site

GitHub - christhekeele/matcha: 🍵 First-class Elixir match specifications.

GitHub - christhekeele/matcha: 🍵 First-class Elixir match specifications.

🍵 Matcha

First-class match specifications for Elixir.

Version Documentation License Benchmarks Dependencies Contributors

👍 Test Suite Test Coverage
Release Build Status Coverage Status
Latest Build Status Coverage Status

Usage

Installation

Matcha is distributed via hex.pm, you can install it with your dependency manager of choice using the config provided on its hex.pm package listing.

Synopsis

Matcha offers tight integration with Elixir and match specifications.

Match specifications are a BEAM VM feature that can execute de-structuring, pattern matching, and re-structring operations very close-to-the-metal. They can be used to efficiently:

However, they are notoriously difficult to compose and use. Matcha makes this intuitive with ergonomic macros to compose them, and a high-level API with which to use them.

Examples

# Turn Elixir code into a match specification,
#  then use it to filter/map some data
iex> require Matcha
...> Matcha.spec do
...>   {x, y, z} -> x + y + z
...> end
...> |> Matcha.Spec.run!([
...>   {1, 2, 3},
...>   {1, 2},
...>   {1, 2, 3, 4},
...>   {4, 5, 6}
...> ])
[6, 15]

This is one way to run test and develop match specifications, but they truly shine in table and tracing applications!

Guides

Check out the interactive usage guides, including using Matcha for:

Documentation

Complete documentation, including guides, are hosted online on hexdocs.pm.

Contributing

Contributions are welcome! Check out the contributing guide for more information, and suggestions on where to start.

Supported Versions

Matcha strives to support the most recent three versions of Elixir and the Erlang/OTPs they support. The canonical list of supported combinations is available by checking the latest successful test matrix run, but boils down to:

  • Elixir 1.14.x
    • OTP 23.x
    • OTP 24.x
    • OTP 25.x
  • Elixir 1.15.x
    • OTP 24.x
    • OTP 25.x
    • OTP 26.x

Earlier versions of Elixir tend to work well, provided you polyfill Elixir 1.14.0's PartitionSupervisor, back to Elixir 1.10, but the test suite often uses newer syntax that is complicated to circumvent when testing on older versions (ex. range step literals), so we don't officially commit to being compatible with them since they are not a part of the suite. Versions that may work include:

  • Elixir 1.10.x
    • OTP 21.x
    • OTP 22.x
    • OTP 23.x
  • Elixir 1.11.x
    • OTP 21.x
    • OTP 22.x
    • OTP 23.x
    • OTP 24.x
  • Elixir 1.12.x
    • OTP 22.x
    • OTP 23.x
    • OTP 24.x
  • Elixir 1.13.x
    • OTP 22.x
    • OTP 23.x
    • OTP 24.x
    • OTP 25.x

Since Matcha pokes around in compiler internals, it is important to get ahead of upcoming changes to the language. This is accomplished with nightly builds against the latest versions of Elixir, Erlang/OTP, and dependencies; which catches issues like internal compiler function signature changes well in advance of release.

Articles
to learn more about the elixir concepts.

Resources
which are currently available to browse on.

mail [email protected] to add your project or resources here 🔥.

FAQ's
to know more about the topic.

mail [email protected] to add your project or resources here 🔥.

Queries
or most google FAQ's about Elixir.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory