r/elixir • • 5h ago

Conditionally Render a Non-blank HEEx Slot

Thumbnail krasen.be
3 Upvotes

r/elixir • • 16h ago

Malachi v0.29.1: six durability and recovery fixes

Thumbnail
malachi-hq.github.io
4 Upvotes

A patch release of Malachi, the log broker I introduced here last week. Acknowledgements under group commit now wait for the primary's own flush, rebalancing respects quorum and its lease, healing follows the topic's placement policy, and a crash on an empty segment file is gone. Most were found by chaos drills, and the post has a diagram for each fix.

Happy to answer questions about any of them.

Code: https://github.com/malachi-hq/malachi


r/elixir • • 1d ago

Formally verifying Erlang/Elixir programs with embedded Lean proofs

Thumbnail dashbit.co
57 Upvotes

r/elixir • • 1d ago

Agents can write your Elixir. Can they place your processes?

8 Upvotes

Iryna Kostiuk gave developers with no Elixir experience 40 minutes and a coding agent to build a 100-seat ticketing system with 10-second holds. It passed its tests. Under load with thousands of subscribed fans, nearly every one stalled: the agent had put the work in one busy process.
James Gray (Designing Elixir Systems with OTP) sees the same gap. An LLM gave him six reasons to chain Oban jobs for a workflow where a plain supervision tree was simpler. Once he pushed back point by point, it became useful, raising edge cases in his design.
https://youtu.be/XJ2EwZmUZDk?si=35Y20h4yETCNS_tz


r/elixir • • 1d ago

Java Virtual Threads vs Elixir: Comparing Memory, CPU, Process Termination

Thumbnail
youtube.com
25 Upvotes

r/elixir • • 16h ago

asdf 0.1.0 — Elixir library for the Advanced Scientific Data Format

0 Upvotes

ASDF (pronounced “Az-diff”) is a scientific interchange format: a YAML metadata tree plus binary array blocks in one file. The Space Telescope Science Institute develops it. JWST, Roman, DKIST, and Rubin use it. This library is an Elixir implementation of standard 1.5.0. It is not the asdf version manager.

0.1.0 reads and writes file format 1.0.0. Open reads the header, the tree, and the block headers, and does not decode payloads until you ask. Contiguous numeric blocks and zlib work. Elixir ~> 1.17. BSD-3-Clause.

def deps do
  [
    {:asdf, "~> 0.1.0"}
  ]
end
:ok = ASDF.write!("observation.asdf", %{"count" => 2, "items" => [10, 20]})

handle = ASDF.open!("observation.asdf")
ASDF.read!(handle, ["items", 0])
ASDF.close!(handle)

ASDF.read!(handle, ["items", 0]) returns 10.

Not in 0.1.0: bzip2, lz4, external URLs, streamed writes, astronomy schemas. see the roadmap.

  • https://github.com/baoulo/asdf-elixir
  • https://hex.pm/packages/asdf
  • https://www.asdf-format.org/en/latest/overview.html

r/elixir • • 1d ago

Agents can write your Elixir. Can they place your processes?

2 Upvotes

Iryna Kostiuk gave developers with no Elixir experience 40 minutes and a coding agent to build a 100-seat ticketing system with 10-second holds. It passed its tests. Under load with thousands of subscribed fans, nearly every one stalled: the agent had put the work in one busy process.
James Gray (Designing Elixir Systems with OTP) sees the same gap. An LLM gave him six reasons to chain Oban jobs for a workflow where a plain supervision tree was simpler. Once he pushed back point by point, it became useful, raising edge cases in his design.
https://youtu.be/XJ2EwZmUZDk?si=35Y20h4yETCNS_tz


r/elixir • • 1d ago

If Yoda was a programmer, he'd write elixir code

Post image
13 Upvotes

r/elixir • • 1d ago

BeamAI 2.x: we gutted our own agent framework — the orchestration engine is gone, and the runtime got a hardening pass

Thumbnail
github.com
0 Upvotes

r/elixir • • 1d ago

How to convert escape characters into their separate bye equivalant

2 Upvotes

Okay I know the title was MOUTHFUL but basically.

When I insert strings with \a with them into my backend it's treated as a control character infact

iex(28)> inspect("\a", binaries: :as_binaries)

"<<7>>"

But when I use a sigil I get

iex(42)> inspect(~S(\a), binaries: :as_binaries)

"<<92, 97>>"

But it does not allow interpolation, I have input and I just want it to be in the byte form as the aforementioned before inserting it into the database! Adding a \ before every backslash. I tried using Regex to add a backslash before every other backslash but even that does not work because the \a is interpreted as a bel!

So how, given a string with control characters, can I just ignore them? act like they don't exist, just a easy nice way. thanks


r/elixir • • 2d ago

Kathikon v0.6.0: Ecto backend for PostgreSQL, MySQL and SQLite

3 Upvotes

Kathikon is a durable job queue for Elixir that runs on the BEAM. By default it keeps state in Mnesia. v0.6.0 adds an optional Ecto storage backend:

config :kathikon, storage_backend: Kathikon.Storage.Ecto, repo: MyApp.Repo

Jobs live in your existing PostgreSQL, MySQL or SQLite database. Several nodes can share a queue on PostgreSQL and MySQL (FOR UPDATE SKIP LOCKED). SQLite is for a single node. Uniqueness from v0.5.0 works the same way on SQL.

Also in this release: cron that only fires once across nodes, workers that survive a short database outage, batched pruning, and versioned migrations.

  • Hex: https://hex.pm/packages/kathikon
  • Guide: https://hexdocs.pm/kathikon/ecto-backend.html
  • Source: https://github.com/AnimaLogica/kathikon

Feedback on the Ecto backend is welcome.


r/elixir • • 2d ago

Really Stream Into Your LiveView Streams

Thumbnail krasen.be
7 Upvotes

r/elixir • • 2d ago

Speed Demon II: an online optimisation race where Elixir is one of 26 languages, JIT off (29 Jan to 1 Feb 2027)

3 Upvotes

Speed Demon II is an online optimisation hackathon for interpreted languages, and Elixir is one of the 26. Each language runs on one pinned interpreter with every JIT switched off, so the BEAM runs as the plain emulator. No FFI, native modules or subprocesses, so no NIFs.

Four tracks: parse 310,000 log lines, index 25,000 documents, join a hostile CSV, and run shortest paths on a 500,000-edge graph. Each entry is timed against a naive Elixir reference on one machine. Every push sets your team's car speed on a live 3D race round San Francisco.

Teams of 1 to 4. A practice day, then a 48-hour race. $2,000 in prizes.

Details: https://speeddemon.dev/2027/

Register: https://speeddemon.dev/2027/register/

(This post was written with an AI assistant, per rule 8.)


r/elixir • • 2d ago

OpenAI Erlang SDK (0.1.0) – Another AI integration option for the BEAM ecosystem

0 Upvotes

Hey Elixir folks! 👋

At Scalicon, we've just released OpenAI Erlang SDK (0.1.0), an independent, open-source SDK written in Erlang.

Although the project is implemented in Erlang, interoperability within the BEAM ecosystem means that its functionality can also be accessed from Elixir applications.

The initial release includes support for:

  • Responses API and Chat Completions
  • Streaming and Realtime API
  • Tool Calling and Structured Outputs
  • Multimodal AI
  • Embeddings and Vector Stores

We're particularly interested in exploring how the BEAM runtime and OTP principles can be applied to AI agent orchestration, long-running AI workers, and fault-tolerant distributed AI systems.

The SDK takes architectural and behavioral inspiration from the official OpenAI Python SDK, requires OTP 27+, and is licensed under Apache 2.0.

This is our first public release, and there is still plenty of work ahead.

Project resources:

I'm curious to hear from the Elixir community: what features and integration patterns would you consider most valuable when building AI-powered applications on BEAM?

Feedback, suggestions, contributions, and GitHub stars are always welcome! ⭐


r/elixir • • 3d ago

What is best way to learn Elixir now days?

14 Upvotes

Hi guys, I'm new to the programming world and I'm feeling a bit lost because I don't know how to create my own project. I know I need to learn programming logic concepts first, but I don't know how to get to building my first website with an HTTP server. Recently, I discovered the Phoenix framework, but I'm still really lost.

I asked Claude to create an e-book in Brazilian Portuguese (Pra nós do Brasil!!) that shows how to build a few things, though I haven't read it yet. If anyone wants to check it out, feel free!


r/elixir • • 3d ago

Bringing Static Types to Elixir - Giuseppe Castagna & Guillaume Duboc at Func Prog Conf

Thumbnail
youtube.com
12 Upvotes

Elixir is a dynamically typed language, but for several years it has been evolving towards a static type system. This reflects a broader trend across dynamic languages, driven largely by programmers who want stronger guarantees and better tooling without giving up the flexibility that made these languages attractive in the first place.

This talk presents the ideas behind Elixir’s set-theoretic type system, and why set-theoretic types are a particularly good fit for dynamic languages. The system models types as sets of possible values, allowing unions, intersections, negation, and subtyping to be used as first-class tools for describing the highly dynamic code that appears in real Elixir programs.

We will look at how these ideas interact naturally with some of Elixir’s most prominent features: pattern matching with guards, function overloading, flexible data structures such as maps and tuples, protocols (aka type classes), and parametric polymorphism.

As these ideas make their way into the Elixir compiler, we will show how we put them to the test, measuring the type checker’s accuracy across a range of existing Elixir codebases.

We will conclude by outlining the theoretical extensions we plan to explore and how they could eventually be implemented in Elixir.


r/elixir • • 3d ago

BAM 0.1.0 — streaming SAM and BAM for Elixir

3 Upvotes

I just released bam 0.1.0, a library for reading and writing SAM and BAM alignment files.

It streams records, reads a genomic interval through a BAI or CSI index, and writes BAM plus an index. Compression goes through OTP :zlib. There is no NIF. Elixir ~> 1.18, no runtime dependencies.

{:bam, "~> 0.1.0"}
{:ok, handle} = BAM.open("sample.bam")
{:ok, reads} = BAM.read(handle, "chr1:1-1000")

This is a first release. It uses samtools 1.25 for synthetic fixtures. It is not a claim of full SAMv1 conformance. CRAM is not implemented.

  • https://hex.pm/packages/bam
  • https://hexdocs.pm/bam
  • https://github.com/baoulo/bam-elixir

r/elixir • • 5d ago

Elixir Hub just got jobs section!

Thumbnail
elixir-hub.com
35 Upvotes

r/elixir • • 4d ago

Reading errors in Elixir are like reading JSON

4 Upvotes

is there any better way? struggling to read the symbols elixir provides

...kind: :error

reason: %ArgumentError{

message: "errors were found at the given arguments:\n\n * 1st argument: the table identifier does not refer to an existing ETS table\n"

}

stack: [

{:ets, :select,

[

:"keys_Elixir.Hyper.Cluster.Routing",

[{{{:"$1", :supervisor}, :_, {:"$2", :_}}, [], [{{:"$1", :"$2"}}]}]

], [error_info: %{cause: :id, module: :erl_stdlib_errors}]},

{Horde.Registry, :select,


r/elixir • • 4d ago

Oratos 0.4.0: audit your Phoenix site's rendered HTML (SEO, a11y, JSON-LD) from mix, now with page timing

3 Upvotes

Justed released 0.4.0 of oratos, an MIT-licensed CLI for auditing websites, and the Hex package :oratos is a Mix wrapper that manages the binary for you (it downloads it into priv/bin; it is not an in-process BEAM auditor).

It does not replace phoenix_seo or other libraries that help you write SEO metadata. It audits the final rendered HTML after prerendering or a static export, so it catches the result of all those layers: a missing title, canonical, og:image, lang attribute, alt text, JSON-LD, or a broken internal link.

{:oratos, "~> 0.4", only: [:dev, :test], runtime: false}

mix oratos.audit ./priv/static --fail-under 85 mix oratos.audit ./priv/static --format sarif --output reports/oratos.sarif

You can alias it into your CI task, and mix oratos.audit defaults to ./priv/static (or ./dist). oratos.toml holds ignore rules and thresholds.

New in 0.4.0, for live URLs (e.g. a staging deploy): download timing. The report shows first-byte and total time per page, and --baseline previous-report.json warns when a page is both 1.5x and 300 ms slower than last run. It is advisory and never changes the scores.

Phoenix workflow notes: https://github.com/latentmeta/oratos/blob/main/docs/phoenix.md Hex: https://hex.pm/packages/oratos Repo: https://github.com/latentmeta/oratos

Feedback from people running Phoenix in production is very welcome, especially on which checks are noise and which are useful.


r/elixir • • 4d ago

Show Elixir: Hozen, a tool for maintaining Hex and NPM packages (paid)

Thumbnail
moatless.store
0 Upvotes

Hozen is a paid tool - feel free to stop reading if you're not interested

---

When I saw that Zach Daniel (I forget his reddit handle) was pursuing Moatless, I was excited to brainstorm and sell a product. It took a while, but eventually I decided to formalize the tool I use to maintain the Jido ecosystem.

I'm releasing this today as a paid download.

50% of net proceeds (after platform and credit card fees) will be donated to support the security efforts of the Erlang Foundation to secure Elixir.

If you are a maintainer of several packages and can't afford the price, send me a DM. I'm supporting a few maintainers with free copies in exchange for a review.


r/elixir • • 5d ago

Ankusa: open source webhook ingestion framework in Elixir (fsync before 201, DLQ + replay, claim checks, per-tenant quotas)

Thumbnail
james-carr.org
22 Upvotes

r/elixir • • 5d ago

Notes on Finding an Elixir Job

0 Upvotes

✏️ I captured some notes and suggestions from my own job hunt this summer to help others looking for an #ElixirLang job.

https://mikezornek.com/posts/2026/11/finding-an-elixir-job/?utm_source=reddit&utm_campaign=finding-an-elixir-job


r/elixir • • 8d ago

How much of your Elixir does an LLM write now?

39 Upvotes

Jacob Luetzow (Elixir Mentor) no longer writes code on Killswitch, but reads every PR. He credits Ash: one way to do everything, which LLMs follow well. Allen Wyma got close to 100% first-pass output with two additions: custom usage_rules and custom Credo checks that enforce his defaults, like AshPaperTrail and AshArchival. Francesco Cesarini still designs the process structure and supervision strategy himself before handing over small components.
From the BEAM There, Done That / Elixir Mentor crossover: https://youtu.be/rPbLWY_393I