<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rosemary Ledesma on Medium]]></title>
        <description><![CDATA[Stories by Rosemary Ledesma on Medium]]></description>
        <link>https://medium.com/@rosemaryledesma?source=rss-3b1c3914fcc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*o2zlMVA9otTPYm1b</url>
            <title>Stories by Rosemary Ledesma on Medium</title>
            <link>https://medium.com/@rosemaryledesma?source=rss-3b1c3914fcc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:38:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rosemaryledesma/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How can I tell what version of Erlang was used to compile an Elixir application?]]></title>
            <link>https://medium.com/code-for-rent/how-can-i-tell-what-version-of-erlang-was-used-to-compile-an-elixir-application-de1c133f7442?source=rss-3b1c3914fcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/de1c133f7442</guid>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[beam]]></category>
            <category><![CDATA[erlang]]></category>
            <category><![CDATA[compilation-process]]></category>
            <dc:creator><![CDATA[Rosemary Ledesma]]></dc:creator>
            <pubDate>Mon, 15 Mar 2021 18:39:34 GMT</pubDate>
            <atom:updated>2021-03-15T18:39:34.048Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s possible to learn more about the Erlang version by inspecting the *.beam files.</p><p>A compiled Elixir or Erlang application includes *.beam files, which are byte code to be executed in the BEAM (Erlang virtual machine).</p><p><a href="https://erlang.org/doc/man/beam_lib.html"><strong>beam_lib</strong></a> is an Erlang module that provides an interface for this kind of file. You can use it to inspect the data chunks of the file and learn more about it.</p><p>Using <strong>beam_lib</strong> you can determine the version of the Erlang compiler that was used to compile a given file by decoding the relevant chunk.</p><p>Using Elixir:</p><blockquote><strong>:beam_lib.chunks(‘</strong>&lt;path_to_file&gt;<strong>’, [:compile_info])</strong></blockquote><pre>iex(1)&gt; <strong>:beam_lib.chunks(‘/Users/my_user/source/my_project/foo.beam’, [:compile_info])</strong><br>{:ok,<br> {MyProject.Foo,<br> [<br> compile_info: [<br> version: ‘7.3.2’,<br> options: [:dialyzer, :no_spawn_compiler_process, :from_core,<br> :no_core_prepare, :no_auto_import],<br> source: ‘/Users/my_user/source/my_project/foo.ex’<br> ]<br> ]}}</pre><p>Using Erlang:</p><blockquote><strong>beam_lib:chunks(“</strong>&lt;path_to_file&gt;<strong>”, [compile_info]).</strong></blockquote><pre>1&gt; <strong>beam_lib:chunks(“/Users/my_user/source/my_project/foo.beam”, [compile_info]).</strong><br>{ok,{‘MyProject.Foo’,[{compile_info,[{version,”7.3.2&quot;},<br> {options,[dialyzer,no_spawn_compiler_process,from_core,<br> no_core_prepare,no_auto_import]},<br> {source,”/Users/my_user/source/my_project/foo.ex”}]}]}}</pre><p>The “version: ‘7.3.2’” part is the version of the Erlang compiler that was used to compile this file. You can examine the version history of the Erlang compiler <a href="https://github.com/erlang/otp/blob/master/lib/compiler/vsn.mk">here</a>.</p><p><em>Note that the *.beam file data includes the full path to the original source file, so it’s a good idea to avoid including any sensitive information in the path name!</em></p><h3>Acknowledgements</h3><p>Thanks to <a href="https://github.com/Stratus3D">Trevor Brown</a> for help and feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de1c133f7442" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-for-rent/how-can-i-tell-what-version-of-erlang-was-used-to-compile-an-elixir-application-de1c133f7442">How can I tell what version of Erlang was used to compile an Elixir application?</a> was originally published in <a href="https://medium.com/code-for-rent">Code for RentPath</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>