r/elixir • u/OkNothing7293 • 5h ago
r/elixir • u/Shoddy_One4465 • 16h ago
asdf 0.1.0 — Elixir library for the Advanced Scientific Data Format
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 • u/hectorcardoso • 16h ago
Malachi v0.29.1: six durability and recovery fixes
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.
BeamAI 2.x: we gutted our own agent framework — the orchestration engine is gone, and the runtime got a hardening pass
r/elixir • u/ancatrusca0 • 1d ago
Agents can write your Elixir. Can they place your processes?
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 • u/ancatrusca0 • 1d ago
Agents can write your Elixir. Can they place your processes?
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 • u/vlatheimpaler • 1d ago
Formally verifying Erlang/Elixir programs with embedded Lean proofs
dashbit.cor/elixir • u/BrotherManAndrew • 1d ago
How to convert escape characters into their separate bye equivalant
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 • u/iloveafternoonnaps • 1d ago
Java Virtual Threads vs Elixir: Comparing Memory, CPU, Process Termination
r/elixir • u/Shoddy_One4465 • 2d ago
Kathikon v0.6.0: Ecto backend for PostgreSQL, MySQL and SQLite
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 • u/vkatsuba • 2d ago
OpenAI Erlang SDK (0.1.0) – Another AI integration option for the BEAM ecosystem

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:
- GitHub: https://github.com/scalicon/openai-erlang
- Documentation: https://scalicon.github.io/openai-erlang/sdk/0.1.0/
- Hex: https://hex.pm/packages/openai_erlang
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 • u/Sensitive-Training22 • 2d ago
Speed Demon II: an online optimisation race where Elixir is one of 26 languages, JIT off (29 Jan to 1 Feb 2027)
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 • u/Zealousideal-Nail251 • 3d ago
What is best way to learn Elixir now days?
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 • u/MagnusSedlacek • 3d ago
Bringing Static Types to Elixir - Giuseppe Castagna & Guillaume Duboc at Func Prog Conf
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 • u/Shoddy_One4465 • 3d ago
BAM 0.1.0 — streaming SAM and BAM for Elixir
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 • u/Friendly-Intern2839 • 4d ago
Reading errors in Elixir are like reading JSON
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 • u/Shoddy_One4465 • 4d ago
Oratos 0.4.0: audit your Phoenix site's rendered HTML (SEO, a11y, JSON-LD) from mix, now with page timing
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 • u/mikehostetler • 4d ago
Show Elixir: Hozen, a tool for maintaining Hex and NPM packages (paid)
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.
Notes on Finding an Elixir Job
✏️ I captured some notes and suggestions from my own job hunt this summer to help others looking for an #ElixirLang job.
r/elixir • u/SamLowery1047 • 5d ago
Ankusa: open source webhook ingestion framework in Elixir (fsync before 201, DLQ + replay, claim checks, per-tenant quotas)
[vibecode] Built a pocket / readlater / instapaper platform for my kobo libra 2
I'm sorry this isn't a pure elixir post, but the server is elixir :)
... in a few hours, with fly.io free tier running a Wallabag compatible API that kobo libra 2 can interface with (KOReader on libra 2). The server is Elixir.
I've also had claude create a chrome extension that speaks to the server, and a way to share in the phone by using the HTTP Shortcut and having it share articles via API key to the server.
Man the world we live in is crazy. I've always loved Pocket and going to some day work up a confidence to try to hack it into KOReader (which is done in lua).
But the server was always the problem. But now my sandbox do-everything elixir vm has a new router endpoint that speaks Wallabag API! Which is a php service.
Now I have my personal article saving platform that works across chromium, firefox, phone, and ebook.
It's so simple with Opus 5.5 (running subagents and different models to save time), and with superpower skill that if you want to build one for yourself, I think above is all you need.