LFE Screen

The LFE Blog:
Tutorials, Updates,
News, & Miscellany

A BEAM Language Journal of Coding Coffeehouse Jazz for Syntaxless Beatnicks.
It's snappy!

Submit a Post!

spell1 - LL(1) parser generator

I have been working on an LL(1) grammar parser generator for Erlang/LFE. While we have yecc for LALR(1) grammars this isn't suitable for everything. I think there are 2 main problems:


Read more

Robert Virding | May 11, 2015 | Tags : spell1 lfe erlang tools


Evaluating dynamic expressions in LFE

Sometimes you need to evaluate a dynamic expression in LFE, one that has been created during the execution of the program. For example, imagine some other process has sent us an LFE expression which we need to evaluate.


Read more

Robert Virding | May 2, 2015 | Tags : lfe backquote techniques tips


LFE Friday - calendar:is_leap_year/1

This week's LFE Friday was translated with permission from the Erlang Thursday series by Steven Proctor. This week's translator: Robert Virding.


Read more

Robert Virding | May 2, 2015 | Tags : lfe friday lfe erlang


LFE Friday - calendar:valid_date/3

This week's LFE Friday was translated with permission from the Erlang Thursday series by Steven Proctor. This week's translator: Robert Virding.


Read more

Robert Virding | April 24, 2015 | Tags : lfe friday lfe erlang


LFE Friday - calendar:date_to_gregorian_days/3

This week's LFE Friday was translated with permission from the Erlang Thursday series by Steven Proctor. This week's translator: Robert Virding.


Read more

Robert Virding | April 20, 2015 | Tags : lfe friday lfe erlang


LFE Friday - calendar:day_of_the_week/3

This week's LFE Friday was translated with permission from the Erlang Thursday series by Steven Proctor. This week's translator: Robert Virding.


Read more

Robert Virding | April 12, 2015 | Tags : lfe friday lfe erlang


ledis: Using Redis from LFE

This tutorial is a conversion of the Redis tutorial on data types, where instead of the Redis CLI, the LFE REPL is used in conjunction with the ledis library.


Read more

Duncan McGreggor | April 5, 2015 | Tags : howtos databases libraries redis nosql


LFE and dialyzer

How we will be able to run dialyzer on LFE code

Dialyzer can be a useful tool but its implementation has a few idiosyncrasies which make it difficult to directly use with LFE. It can only use .erl files or .beam files. Unfortunately the .beam files must be compiled from erlang files using the 'debug_info' option. This option includes the full Erlang AST in the .beam file and it is this which is used by dialyzer.1

  1. For this reason releasing a product with only .beam files but which have been compiled with the debug_info option is the same as including the source files.


Read more

Robert Virding | April 4, 2015 | Tags : lfe dialyzer


LFE Friday - lists:delete/2

This week's LFE Friday was translated with permission from the Erlang Thursday series by Steven Proctor. This week's translator: Robert Virding.


Read more

Robert Virding | April 4, 2015 | Tags : lfe friday lfe erlang


LFE Friday - erlang:list_to_atom/1

This week's LFE Friday was translated with permission from the Erlang Thursday series by Steven Proctor. This week's translator: Robert Virding.


Read more

Robert Virding | March 30, 2015 | Tags : lfe friday lfe erlang