gorenje

gorenje

Erlang-Red - Erlang interpreter for Node-RED (visual flow based programming) now has initial Elixir support

Hi There,

Some of you might have heard of my Erlang-Red project that I’ve been playing around with.

If not, Erlang-Red is just Node-Red but with an Erlang backend. Why? Because flow based programming (FBP) is done better on the BEAM. Why better? Because FBP is all about message passing of immutable data between concurrent processes. Hm? :thinking:

Why am I posting here?

Because many have asked why I didn’t use Elixir. Not because I don’t like Elixir its a matter of what is more niche - Node-RED is niche, Erlang is niche and therefore Erlang-Red is niche times niche equals more-niche and Elixir doesn’t fit that equation! (That’s a semi-true joke of course!)

Anyway I have included Elixir from the start via a helpers library but since yesterday, I’ve also added direct support for Elixir modules by creating a Elixir module node. Elixir code can be added there (as a module at this stage) and then used in the flow via the function node (which is Erlang code). The prefix for Elixir modules then also becomes the Elixir. - which is the norm (as I understand) when adding Elixir to Erlang code.

Thanks to @mwmiller, the Elixir node can also be viewed/tested over at fly.io.

Any feedback on how I can better handle Elixir code much welcome - currently I’m very naively doing Elixir.Code.compile_file(...) - because that’s the first thing I found :wink:

Cheers!

https://github.com/gorenje/erlang-red

Where Next?

Popular in Announcing Top

sasajuric
I’d like to announce a small library called boundaries. This is an experimental project which explores the idea of enforcing boundaries ...
New
tfwright
After working on it for a couple of months and using it in production for most of that time, today I’ve released LiveAdmin, a LiveView ba...
New
bryanjos
Hi, I wanted share a small library we at Revelry Labs made for rendering react components from the server side. There are instructions fo...
New
blatyo
The best overview for how things are tied together is this presentation. Modules and functions are pretty well documented at this point, ...
New
mindok
What is ContEx? A pure Elixir server-side data plotting/charting library outputting SVG. It has nice barcharts in particular and works g...
New
versilov
Could not wait for the missing Elixir ML libraries to appear, so, I wrote one myself, taking https://github.com/sdwolfz/exlearn as a foun...
New
markmark206
simple_feature_flags is a tiny package that lets you turn features on or off based on which environment (e.g. localhost, staging, product...
New
marcuslankenau
I feel kind of stuck with the absence of a proper xml library for Elixir. Currently I use SweetXML which was ok for me more or less to pa...
New
zoltanszogyenyi
Hey everyone :waving_hand: Excited to join this forum - I am one of the founders and current project maintainers of a popular and open-s...
New
mattludwigs
Grizzly is a library for working with Z-Wave devices. Z-Wave is a low-frequency radio protocol for controlling smart home devices on a me...
New

Other popular topics Top

TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41539 114
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52341 488
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement