sashaafm
I’m going to present an Elixir talk next week and I’m trying to gather a list of Elixir features that were inspired or modeled after other language features. Right now I’ve got the following list:
- Syntax (Ruby)
- Docstrings (Python)
- Polymorphism and Protocols (Clojure)
- Mix build tool (Clojure’s Leiningen and Ruby’s Rake)
- Lazy evaluation (Haskell) → I’m not 100% certain on this one?
- Pipeline operator (Clojure, but F# also has a similar one I believe)
I was thinking if ExUnit (aka built-in Unit Testing) also was inspired by any language? Probably by Ruby too, I guess.
Does anyone know of any other features that were inspired by other languages? ![]()
Trending in Discussions
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
Hi there! :wave:
@frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
I’ve been using Emacs as my main code editor for more than a two years. It’s a custom build version although I’ve tried doom emacs and sp...
New
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with.
But I don’t use it anymore.
Serverless was the promis...
New
Lately I’ve been thinking about how to organize components as a LiveView application grows. One of the pain points I’ve found (for myself...
New
What IDE or editor are you using for Elixir development?
Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #ai
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
AstonJ
I think this is a great topic for a talk!
Two notable omissions are Erlang (would be great to see where it has been most influential) and maybe mention pattern matching specifically as well?
sashaafm
Hey @AstonJ, I’m omitting Erlang since Elixir is built for the Erlang VM and it basically inherits all of Erlang’s features
Erlang also has Pattern Matching, although I’m not completely sure if Elixir expands it further than Erlang? From my limited Erlang experience I’d say they’re the same.
gregvaughn
I personally wouldn’t list lazy evaluation as an elixir feature. Yes, with the
Streammodule you can achieve it, but it is done by the module, not core to the language.If I recall, the pipeline operator comes most directly from F# which gets it from OCaml.
I think ExUnit comes most directly from Ruby, but really all the *Unit testing libraries go back to Smalltalk.
Macros were inspired by lisp in general, but you could name clojure specifically.
You could point out that hex is inspired by several dependency tools. I know ruby gems are one, but there are probably more.
If it were me giving the talk, I would want to mention erlang for the core concurrency model, though I understand your other comment that there’s so much elixir gets from erlang. You could point out that the pattern matching in both erlang and elixir comes from prolog.
josevalim
Also worth adding that I kept most of Erlang’s syntax for data structures purposedly, so Erlang plays a big role on the syntax side of things too.
Yup, docstrings and doctests come from Python.
And the
@derivefeature in protocols is inspired by a similar feature in Haskell’s type classes.I wouldn’t say Rake had a big influence on Mix. My experience with Bundler played a bigger role on Mix for sure.
If by lazy evaulation you mean streams, then citing Haskell is correct although I wouldn’t call it lazy evaluation.
There was a lot of Haskell research involved for implementing streams in a purely functional fashion. The original idea came from Jessica Kerr’s talk on scalaz though. More info here: Introducing reducees « Plataformatec Blog
Not Clojure. It was from one of the ML variants (SML I think?) and F#.
sashaafm
Thank you so much for you reply @josevalim it’s good to have you correct and confirm my info before the talk
About the macros and metaprogramming aspect of Elixir. It was inspired by Clojure, right? Or did you look at older Lisps directly?
josevalim
I remember looking at multiple Lisps. At least Common Lisp and Scheme to take an informed decision regarding hygiene and gensym. I cannot recall any special aspect from Clojure on this regard. Elixir ended-up having contextual hygiene (where variables belong to the modules that define them) which I don’t think I have seen elsewhere.