
Metaprogramming Elixir
Chris McCord · 2015
Programming and computer science › Functional programming languages
#8,877 most recommended
Hacker News
4
mentions by 4 people · top 54% of 15,732 books
Open Library
4.00★★★★★★★★★★
2 ratings · 3 want to read
Wikipedia
—
No article yet
About the book
Covers Elixir's macro system and compile-time metaprogramming: how Elixir code is represented as quoted AST, how macros transform that AST, and how to use them to extend the language. It is aimed at developers who already know Elixir and want to write their own macros and domain-specific languages. Its central claim is that Elixir's syntax, which is itself data, makes metaprogramming a practical tool rather than a hazard, as long as it is used with attention to hygiene, the boundary between compile time and runtime, and readability. The book works through quote and unquote, variable hygiene, and code injection, then shows how macros can generate functions and modules and build DSLs that remove repetition and express intent. It also presents macros as a last resort where ordinary functions would do.
Written by Claude from what it knows of this book.
What Hacker News says 75% recommend · 0% critical
In the commenters’ own words
> Thanks, that's a really helpful answer. I really like this language, I've met Jose Valim and he's a super nice, super smart guy, as is Chris McCord. So I…
I don't know of any new constructs to support recursive anonymous functions in Elixir, but I don't know everything about Elixir either, so that isn't saying…
What Open Library readers say 4.00 from 2 ratings
- 50
- 42
- 30
- 20
- 10
- 3 want to read
- 0 reading
- 2 have read
Only 2 ratings: treat the average as a hint.
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
Details
- First published
- 2015
- ISBN
- 9781680500417
- Editions known
- 2 at Open Library
- Open Library
- OL19547074W
Computer programmingComputer programsElixir (Computer program language)
Read next: its neighbours on the mosaic
Functional Web Development with Elixir, OTP, and PhoenixLance Halvorsen · 2018 · recommended by 4 people · similar by subject and what people say about it
Designing Elixir Systems With OTPII James Edward Gray · 2019 · recommended by 7 people · 2 people recommended both
Elixir in actionSas̄a Jurić · 2015 · recommended by 48 people · 2 people recommended both
Programming ElixirDave Thomas · 2014 · recommended by 40 people · similar by subject and what people say about it
The Little Elixir & OTP GuidebookBenjamin Tan Wei Hao · 2016 · recommended by 9 people · similar by subject and what people say about it
Programming PhoenixChris McCord · 2016 · recommended by 32 people · similar by subject and what people say about it
Introducing ElixirSimon St Laurent · 2014 · recommended by 4 people · similar by subject and what people say about it
Property-Based Testing with PropEr, Erlang, and ElixirFred Hebert · 2019 · recommended by 3 people · similar by subject and what people say about it
How to Design ProgramsMatthias Felleisen · 2001 · recommended by 277 people · similar by subject and what people say about it
Metaprogramming RubyPaolo Perrotta · 2010 · recommended by 33 people · similar by subject and what people say about it
On LISPPaul Graham · 1993 · recommended by 192 people · similar by subject and what people say about it
Programming RubyDave Thomas · 2004 · recommended by 6 people · similar by subject and what people say about it
Essentials of programming languagesDaniel P. Friedman · 1992 · recommended by 43 people · similar by subject and what people say about it
Learn You Some Erlang For Great Good!Fred Hebert · 2012 · recommended by 89 people · similar by subject and what people say about it
Programming Phoenix LiveViewBruce Tate · 2022 · recommended by 4 people · similar by subject and what people say about it
Let Over LambdaDoug Hoyte · 2008 · recommended by 66 people · similar by subject and what people say about it
Elixir in Action, Third EditionSasa Juric · 2023 · recommended by 6 people · similar by subject and what people say about it
An Introduction to Programming in Emacs LispRobert J. Chassell · 2001 · recommended by 16 people · similar by subject and what people say about it
Programming Language PragmaticsMichael L. Scott · 1999 · recommended by 31 people · similar by subject and what people say about it
Functional programmingHenderson, Peter · 1980 · recommended by 5 people · similar by subject and what people say about it
The seasoned schemerDaniel P. Friedman · 1995 · recommended by 33 people · similar by subject and what people say about it
Programming ErlangJoe Armstrong · 2008 · recommended by 69 people · similar by subject and what people say about it
The Little SchemerDaniel P. Friedman · 1995 · recommended by 288 people · similar by subject and what people say about it
Programming Language ConceptsPeter Sestoft · 2012 · recommended by 4 people · similar by subject and what people say about it