# \#compiler

**URL:** https://erlangforums.com/tag/compiler/408.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [Specialised guard for checking of length of a list against a specified size ](https://erlangforums.com/t/specialised-guard-for-checking-of-length-of-a-list-against-a-specified-size/6149)

<div class="topic-metadata">

**Author:** [@Plasmablitz](https://erlangforums.com/u/Plasmablitz)\
**Replies:** 2\
**Last updated:** [November 20, 2026, 2:03pm UTC](https://erlangforums.com/t/specialised-guard-for-checking-of-length-of-a-list-against-a-specified-size/6149 "2026-11-20T14:03:39Z")

</div>

I wonder if it would be beneficial adding a guard along the line of length(list, n) which checks if a list has the length n without computing the entire length of the list if it happens to be bigger than n? My primary m…

---

## [On \`or\` and \`and\` operator deprecation](https://erlangforums.com/t/on-or-and-and-operator-deprecation/5665)

<div class="topic-metadata">

**Author:** [@ieQu1](https://erlangforums.com/u/ieQu1)\
**Replies:** 28\
**Last updated:** [June 6, 2026, 1:44pm UTC](https://erlangforums.com/t/on-or-and-and-operator-deprecation/5665 "2026-06-06T13:44:09Z")

</div>

Recently a PR deprecating and and or boolean operator made its way into OTP29. I would argue that these deprected operators have a legit (albeit limited) purpose, when one needs side effects of all function calls in a bo…

---

## [AsmJit needs funding - development suspended](https://erlangforums.com/t/asmjit-needs-funding-development-suspended/5423)

<div class="topic-metadata">

**Author:** [@michallepicki](https://erlangforums.com/u/michallepicki)\
**Replies:** 17\
**Last updated:** [May 14, 2026, 8:04am UTC](https://erlangforums.com/t/asmjit-needs-funding-development-suspended/5423 "2026-05-14T08:04:16Z")

</div>

I want to share the news, I just found out that AsmJit has suspended development because of lack of funding - github issue… Since the Erlang compiler leverages AsmJit for the JIT implementation, I wonder how this will af…

---

## [How much knowledge of C required to study the Erlang compiler and VM in depth?](https://erlangforums.com/t/how-much-knowledge-of-c-required-to-study-the-erlang-compiler-and-vm-in-depth/5626)

<div class="topic-metadata">

**Author:** [@MajestyZ](https://erlangforums.com/u/MajestyZ)\
**Replies:** 5\
**Last updated:** [May 12, 2026, 10:51am UTC](https://erlangforums.com/t/how-much-knowledge-of-c-required-to-study-the-erlang-compiler-and-vm-in-depth/5626 "2026-05-12T10:51:25Z")

</div>

Goal: I want to disect and study Erlang’s compiler and BEAM VM in depth. As I knew that its low level parts are written in C lang. I am a beginner to Erlang and as well beginner to C. My question: How much of C lang I…

---

## [Erlang compiler slow on beam\_ssa\_bool and beam\_ssa\_opt](https://erlangforums.com/t/erlang-compiler-slow-on-beam-ssa-bool-and-beam-ssa-opt/4952)

<div class="topic-metadata">

**Author:** [@Schultzer](https://erlangforums.com/u/Schultzer)\
**Replies:** 1\
**Last updated:** [August 5, 2025, 5:02am UTC](https://erlangforums.com/t/erlang-compiler-slow-on-beam-ssa-bool-and-beam-ssa-opt/4952 "2025-08-05T05:02:53Z")

</div>

Hi, I have a project GitHub - elixir-dbvisor/sql: Brings an extensible SQL parser and sigil to Elixir, confidently write SQL with automatic parameterized queries. that has recently gone slow efter a refactor, before I st…

---

## [Is there performance difference between using X and Y BEAM registers?](https://erlangforums.com/t/is-there-performance-difference-between-using-x-and-y-beam-registers/4468)

<div class="topic-metadata">

**Author:** [@Asd](https://erlangforums.com/u/Asd)\
**Replies:** 5\
**Last updated:** [February 10, 2025, 5:56am UTC](https://erlangforums.com/t/is-there-performance-difference-between-using-x-and-y-beam-registers/4468 "2025-02-10T05:56:39Z")

</div>

For example, if I call gc\_bif on X registers only and I call it on Y registers only, will there be any difference in performance?

---

## [What is the purpose of specific literal encoding in BEAM?](https://erlangforums.com/t/what-is-the-purpose-of-specific-literal-encoding-in-beam/4470)

<div class="topic-metadata">

**Author:** [@Asd](https://erlangforums.com/u/Asd)\
**Replies:** 2\
**Last updated:** [February 9, 2025, 6:28pm UTC](https://erlangforums.com/t/what-is-the-purpose-of-specific-literal-encoding-in-beam/4470 "2025-02-09T18:28:35Z")

</div>

If I have a function which returns atom hello , it’s body will look like {move, {atom, hello}, {x, 0}} return But for binary strings, it will look like {move, {literal, \<\<"hello"\>\>}, {x, 0}} And for floats, it will be…

---

## [What do Z and F registrers stand for? How to use them?](https://erlangforums.com/t/what-do-z-and-f-registrers-stand-for-how-to-use-them/4469)

<div class="topic-metadata">

**Author:** [@Asd](https://erlangforums.com/u/Asd)\
**Replies:** 2\
**Last updated:** [February 9, 2025, 4:31pm UTC](https://erlangforums.com/t/what-do-z-and-f-registrers-stand-for-how-to-use-them/4469 "2025-02-09T16:31:16Z")

</div>

Hi, while reading Erlang compiler code, I found that it performs “pre” pass on SSA which reserves z and f registers. What are these registers used for? What’s their purpose? UPD: I leaned that f registers are for floats…

---

## [Static NIFs without rebuilding OTP](https://erlangforums.com/t/static-nifs-without-rebuilding-otp/4038)

<div class="topic-metadata">

**Author:** [@wojtekmach](https://erlangforums.com/u/wojtekmach)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 1:39pm UTC](https://erlangforums.com/t/static-nifs-without-rebuilding-otp/4038 "2024-09-30T13:39:24Z")

</div>

Hey everyone, I am successfully statically linking NIFs to my OTP build using ./otp\_build configure —enable-static-nifs=/path/to/mynif.a. Is it possible to link without rebuilding OTP? I’m looking into deploying to iOS …

---

## [Have folks successfully built Erlang/OTP from source on Illumos recently?](https://erlangforums.com/t/have-folks-successfully-built-erlang-otp-from-source-on-illumos-recently/3380)

<div class="topic-metadata">

**Author:** [@taliaferro](https://erlangforums.com/u/taliaferro)\
**Replies:** 2\
**Last updated:** [September 15, 2024, 7:37pm UTC](https://erlangforums.com/t/have-folks-successfully-built-erlang-otp-from-source-on-illumos-recently/3380 "2024-09-15T19:37:24Z")

</div>

Hi folks; I’m trying to build the latest Erlang source code on an Illumos machine (OmniOS r151048). There isn’t an official binary release for Illumos, but the documentation makes reference to Solaris or SunOS as support…

---

## [New blog post about the optimizations in the upcoming Erlang/OTP 27](https://erlangforums.com/t/new-blog-post-about-the-optimizations-in-the-upcoming-erlang-otp-27/3514)

<div class="topic-metadata">

**Author:** [@bjorng](https://erlangforums.com/u/bjorng)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 12:55pm UTC](https://erlangforums.com/t/new-blog-post-about-the-optimizations-in-the-upcoming-erlang-otp-27/3514 "2024-04-24T12:55:43Z")

</div>

Time flies and Erlang/OTP 27 is almost here. As has become a tradition by now, there is a new blog post about The Optimizations in Erlang/OTP 27.

---

## [Disabling TCO selectively](https://erlangforums.com/t/disabling-tco-selectively/3091)

<div class="topic-metadata">

**Author:** [@Wondersye](https://erlangforums.com/u/Wondersye)\
**Replies:** 12\
**Last updated:** [December 12, 2023, 8:34pm UTC](https://erlangforums.com/t/disabling-tco-selectively/3091 "2023-12-12T20:34:45Z")

</div>

Hi, TCO (Tail-Call Optimization) shouldn’t (and cannot) be disabled as a whole, due to how central recursive functions are. That’s OK. However in some cases TCO leads to ellipses in the stacktraces that make debugging …

---

## [When exactly does the Erlang compiler inline code?](https://erlangforums.com/t/when-exactly-does-the-erlang-compiler-inline-code/1302)

<div class="topic-metadata">

**Author:** [@Qqwy](https://erlangforums.com/u/Qqwy)\
**Replies:** 7\
**Last updated:** [October 28, 2023, 1:54pm UTC](https://erlangforums.com/t/when-exactly-does-the-erlang-compiler-inline-code/1302 "2023-10-28T13:54:24Z")

</div>

Hi there! The compile documentation contains some information about inlining. However, it is a bit vague in one particular area of interest: Will the compiler ever inline functions from other modules (i.e. ‘remote’ fun…

---

## [Maybe a bug compiling with warn\_missing\_spec option](https://erlangforums.com/t/maybe-a-bug-compiling-with-warn-missing-spec-option/2623)

<div class="topic-metadata">

**Author:** [@williamthome](https://erlangforums.com/u/williamthome)\
**Replies:** 8\
**Last updated:** [May 22, 2023, 11:14am UTC](https://erlangforums.com/t/maybe-a-bug-compiling-with-warn-missing-spec-option/2623 "2023-05-22T11:14:07Z")

</div>

Hey all. I have a question about the warn\_missing\_spec compiler option. Compiling this module -module(maybe\_a\_bug). -compile(warn\_missing\_spec). -ifdef(TEST). -include\_lib("eunit/include/eunit.hrl"). maybe\_a\_bug\_te…

---

## [New blog post about the optimizations in the upcoming Erlang/OTP 26](https://erlangforums.com/t/new-blog-post-about-the-optimizations-in-the-upcoming-erlang-otp-26/2546)

<div class="topic-metadata">

**Author:** [@bjorng](https://erlangforums.com/u/bjorng)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 9:22pm UTC](https://erlangforums.com/t/new-blog-post-about-the-optimizations-in-the-upcoming-erlang-otp-26/2546 "2023-04-19T21:22:34Z")

</div>

We have just published a new blog post about the improvements in the compiler and JIT in the upcoming Erlang/OTP 26: More Optimizations in the Compiler and JIT

---

## [Compiler warning for infinite loops?](https://erlangforums.com/t/compiler-warning-for-infinite-loops/2484)

<div class="topic-metadata">

**Author:** [@eproxus](https://erlangforums.com/u/eproxus)\
**Replies:** 11\
**Last updated:** [April 6, 2023, 8:17am UTC](https://erlangforums.com/t/compiler-warning-for-infinite-loops/2484 "2023-04-06T08:17:41Z")

</div>

I just had a bug of the form: get(Path) -\> get(Path). get(Path, Headers) -\> request(\<\<"GET"\>\>, Path, Headers). This took a looong while to find, because the app didn’t start properly but no errors showed up in the log…

---

## [Compiler bug or feature? (Atoms in a literal not appearing in atoms section of beam file)](https://erlangforums.com/t/compiler-bug-or-feature-atoms-in-a-literal-not-appearing-in-atoms-section-of-beam-file/1479)

<div class="topic-metadata">

**Author:** [@fadushin](https://erlangforums.com/u/fadushin)\
**Replies:** 3\
**Last updated:** [June 18, 2022, 8:19pm UTC](https://erlangforums.com/t/compiler-bug-or-feature-atoms-in-a-literal-not-appearing-in-atoms-section-of-beam-file/1479 "2022-06-18T20:19:27Z")

</div>

I have found that if an atom occurs in a literal that can be fully known to the compiler (e.g., a map), then the atom does not appear in the atoms section of the beam file. Example: -module(test). -export\[test/0\]. te…

---

## [Unify builds for otp/erts/\* targets?](https://erlangforums.com/t/unify-builds-for-otp-erts-targets/1419)

<div class="topic-metadata">

**Author:** [@d1jang](https://erlangforums.com/u/d1jang)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 2:34pm UTC](https://erlangforums.com/t/unify-builds-for-otp-erts-targets/1419 "2022-05-11T14:34:19Z")

</div>

I’d like to build BEAM (at least erts) with a couple of C compiler flags (e.g., -fno-omit-frame-pointer) and want them to be consistently applied to all object files for erts. However, I noticed that otp/erts has 4 sub …

---

## [New blog post about type-based optimisations in Erlang/OTP 25](https://erlangforums.com/t/new-blog-post-about-type-based-optimisations-in-erlang-otp-25/1346)

<div class="topic-metadata">

**Author:** [@bjorng](https://erlangforums.com/u/bjorng)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 5:52am UTC](https://erlangforums.com/t/new-blog-post-about-type-based-optimisations-in-erlang-otp-25/1346 "2022-04-26T05:52:03Z")

</div>

We have just published a new blog post about the type-based optimisations in Erlang/OTP 25:
