rvirding

rvirding

Creator of Erlang

Where can I find a proper Elixir language reference manual? Need it for courses. The web site is very much a tutorial, as are the books.

Showing Posts 1 to 10

minhajuddin

minhajuddin

These seem to have all the reference documentation:

http://elixir-lang.org/docs/stable/elixir/Kernel.html

NobbZ

NobbZ

From any page of the elixir documentation you can access the Pages section of the documentation, it has 5 or 6 subsections, which one can use as ref-man, also some modules do hide some ref-man style knowledge.

What is not available (but you probably ask for) is a refman as you are used to from erlang, which you could use as a formal spec as well.

rvirding

rvirding OP

Creator of Erlang

Yes, but these document the libraries but not really the language itself, either syntax or semantics.

rvirding

rvirding OP

Creator of Erlang

Yes, exactly. While the erlang documentation has its faults, it is very good as a reference manual, both for syntax and semantics. And not just the language but the OTP system and libraries as well.

gpb

gpb

From the IEx shell, it is possible to obtain a concise list of spec and type info per module, via the commands ‘t’ and ‘s’:

t Enum
@type t() :: Enumerable.t()
@type element() :: any()
@type index() :: non_neg_integer()
@type default() :: any()

s Stream
@spec chunk(Enumerable.t(), pos_integer(), pos_integer(), Enumerable.t() | nil) :: Enumerable.t()
@spec drop(Enumerable.t(), non_neg_integer()) :: Enumerable.t()
@spec flat_map(Enumerable.t(), (element() -> Enumerable.t())) :: Enumerable.t()
@spec map(Enumerable.t(), (element() -> any())) :: Enumerable.t()

---- although I am not sure if this is what you are asking for.

kelvinst

kelvinst

I guess @rvirding’s point is about syntax and semantics. There is no reference guide for it at all, just some tutorial guides.

alon

alon

I was wondering the same thing, for similar reasons that @rvirding mentioned.

When I began programming some years ago, I would use books, tutorials and fragments of information that often were either too verbose or not sufficiently to-the-point (when not flat-out misleading), when I wanted to gain some in-depth understand a specific point in the language.

Ever since I learned formal language and compiler design a couple of years ago, I tend to first search the formal spec of a language when I want to understand how a certain feature of the language works, as it is both fairly complete and fairly concise.

I am fairly new to Elixir, and having such reference could speed up my learning and understanding of specific features.

I also consider suggesting the professor who teaches distributed programming at my local university (currently taught with Erlang) to try using Elixir as an experiment for a semester. I heard that a lot of the students are struggling with the Erlang syntax and am hoping that by using Elixir they can spend more time studying the principles of distributed programming, since I, too, find its syntax and behavior much easier to understand.

rvirding

rvirding OP

Creator of Erlang

Sort of, it’s a start anyway. Though I personally don’t like reading it in the shell; same with module and function documentation. At least not long long long descriptions.

josevalim

josevalim

Creator of Elixir

@rvirding can you be more precise on what you want? I will be glad to write the missing pieces. If you have examples of other languages, that would help.

About syntax, there is no reference, and I could write one up.

About the language semantics, most of it is defined in Kernel.SpecialForms. As you know, the parser doesn’t know about def, case, receive, defmodule and friends. So the documentation for those will be in Kernel.SpecialForms and Kernel.

gpb

gpb

For learning purposes, awhile ago I tried to organize all the standard library modules and their functions into a spreadsheet. It is messy, but if it helps, it is up on Github:

https://github.com/gbih/elixir-functions

At the time, I thought it would be fantastic if there were a single command in Elixir that would automatically generate such a list and pull in user-contributed examples. Perhaps a nice side-project someday.

Where Next? Top

Trending in Questions Top

axelson
One of my LiveView view’s has a very heavy javascript dependency so I want to avoid loading it for every page on the site, while still us...
New
yasoob
Hi all! I know that quite a few people use Phoenix LiveView but it is hard to get a more up-to-date list of folks/companies using it. I ...
New
Hellowman
Hello everyone! I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++. Does anyone ...
New
yarrichar
I’m very new to Elixir, so sorry if this is a silly question: I am wondering what happens to the mailbox of a process when the machine i...
New
mandar1045
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
Liam_or
I don’t suppose you can lazy load a library depending on runtime data? For example if it’s a certain user they can lazy load ‘library A’ ...
New
RicoTrevisan
Hi all, I’m trying to get Pi working well as an external agent inside Tidewave.ai via ACP. Tidewave’s settings make it possible to add ...
New

Other Trending Topics Top

GenericJam
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...
261 13183 112
New
mudasobwa
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
PJUllrich
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews