LFE OTP: Creating Servers with the gen_server Behaviour

Creating a generic OTP server in LFE

As mentioned in the previous post, one of the most common patterns that was identified in Erlang was the need to create a generic, long running process. This pattern has been codified in the gen_server behaviour, and it is now time that we got our hands dirty by creating a few :-)


Read more

Duncan McGreggor | May 26, 2015 | Tags : otp erlang


Prelude to OTP

A look at some examples which motivate the use of OTP

In this post we take a look at some non-OTP code examples discussed in Casting SPELs in Lisp (LFE Edition), examine their differences and similarities, and then briefly descirbe what they are missing which OTP might be able to provide.


Read more

Duncan McGreggor | May 25, 2015 | Tags : otp erlang closures scheme


What is OTP?

A quick examination of OTP

This post is a prelude to the LFE OTP tutorial series which attempts to clarify the role of OTP as something above and beyond a programming language, a set of libraries, or a framework.


Read more

Duncan McGreggor | May 24, 2015 | Tags : otp erlang


New Series: LFE OTP Tutorials

Kicking off a series of OTP tutorials for LFE hackers

This post introduces an new series of tutorials on the LFE blog which will step LFE users through OTP in the style of Lisp Flavoured Erlang.


Read more

Duncan McGreggor | May 23, 2015 | Tags : otp erlang


LFE T-shirts: The Great Unboxing

The LFE community's latest T-shirt bonanza is drawing to a close, the conclusion of which will result in the perfect summer-wear for the discerning hacker. This is a fun little post that shares a bit of the T-shirt's unboxing :-)


Read more

Duncan McGreggor | May 23, 2015 | Tags : community hackersuits t-shirts clothing


LFE Friday - queue:cons/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 | May 22, 2015 | Tags : lfe friday lfe erlang


LFE Friday - filelib:is_file/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 15, 2015 | Tags : lfe friday lfe erlang


LFE Friday - calendar:iso_week_number/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 11, 2015 | Tags : lfe friday lfe erlang


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 : 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