Elixir Blog Posts

Another blog post from the bitcrowd RAG series. This time you’ll find out how you can implement a local RAG system in Elixir.

1 Like

This post explains how to build Phoenix components that render graphs and trees.

1 Like

Postgrex now allows to add comments to your queries, it can be used for instrumentation:

The EEF security WG just published an article on Erlang Distribution / EPMD being exposed publicly:

EPMD, essential for Erlang and RabbitMQ clustering, is often exposed online—posing hidden security risks and requiring quick mitigation steps.

https://erlef.org/blog/eef/epmd-public-exposure

2 Likes

I created a mix task that helps with pseudolocalization in development to easily spot strings that are not marked for translation.

2 Likes

A deep dive into optimizing Elixir’s Calendar module, improving datetime serialization performance through iodata and improper lists

3 Likes

A blog post on how we utilized lcnt to identify system bottlenecks

Blog - Fine Tuning the Erlang Virtual Machine

3 Likes

For comprehensions you might want also check lazy_for, the lazy comprehensions on top of Elixir streams.

2 Likes

Hello folks,
I hope you all have been having a wonderful new year so far. I’ve set myself on a journey to finally build an AI product using Elixir/Phoenix. Along the way, I wish to document my journey, the libraries, frameworks I use and how I solved any challenges along the way. I want to also be careful to not appear as spammy and self-promotional here. So, please do give me a heads-up if you feel that way about my content at any point.

Here is my first article in this series for 2025. Hopefully, more to follow:
https://medium.com/@creativefoundry/i-tried-to-build-an-ai-product-with-langchain-vue-3-svelte-5-with-phoenix-liveview-so-you-dont-134930c78342

Feedback welcome as always. Thank you.
Neya

6 Likes

I find myself more and more reaching for other languages from elixir, but do not like microservicing everything. I’m exploring a few variations on that topic here :

  • Elixir code generating <X> code
  • Embedding <X> code in Elixir
  • Elixir code that generates instructions for a program in <X> to run

As often, my experiments are a bit far-fetched at first and find their way a few months or years later as a softer, more reasonable version in my work…

2 Likes
5 Likes

Here’s a few neat, under-documented (imo!) Ecto things that might be useful for people getting into writing complex queries with Ecto

1 Like

the data structure link is broken. At least in italy

I was recently reviewing a PR that adds a French translation to Keila and ended up deep-diving into how translations in Phoenix work and specifically how you can translate Ecto changeset errors without mixing context and web concerns. Enjoy!

6 Likes

Hey :wave:

I think no one shared this interesting article on gradual types and how potentially avoid breaking contracts downstream when introducing a new version of a type :nerd_face:

2 Likes

Inspired by Chris McCords demos on LLM code gen I am made a write-up on my self-hosted, self-coded Substack/Patreon clone built with Elixir Phoenix

First blog post is installation:

How to install Cursor, CodeGPT, Ollama GPU and Deepseek R1 on Ubuntu 24 Deskop with NVIDIA Containers

1 Like

I wrote a tiny blog post about a custom helper function I use in almost every project: assert_eventually. It makes it easy to wait for an async process to complete in your test suite without using Process.sleep!

4 Likes

Hey community :wave:
I wrote a quick post on how to create Credo check to raise a warning if a Logger call is used as last return statement. A logger call (e.g. logger.error/2) returns :ok, which might be unexpected to new comers in Elixir.

Cheers :v:

8 Likes

Great title :innocent:

1 Like

I bought the Ash Framework book, and made some notes on the dev lifecycle and include some thoughts and welcome comments.

Ash Framework approaches the TCO (Total Cost of Ownership) argument implicit in LLM AI prompt or vibe coding from a different direction. Ash Framework promises to reduce TCO, with installers, generators, declaration and derivation. Ash gives the TCO of code gen with the precision of SDLC. So lets use the Ash Framework tools!

@zachdaniel

3 Likes