r/elixir • • Jun 04 '26

Elixir v1.20 released: now a gradually typed language

Thumbnail
elixir-lang.org
263 Upvotes

r/elixir • • Nov 03 '25

Who's hiring, November, 2025

92 Upvotes

This sub has long had a rule against job postings. But we're also aware that Elixir and Phoenix are beloved by developers and many people want jobs with them, which is why we don't regularly enforce the no-jobs rule.

Going forward, we're going to start enforcing the rule again. But we're also going to start a monthly "who's hiring?" post sort of like HN has and, you guessed it, this is the first such post.

So, if your company is hiring or you know of any Elixir-related jobs you'd like to share, please post them here.


r/elixir • • 5h ago

Macro Mayhem 010 - Inside the hex.pm Security Incident

12 Upvotes

Hey all,

First off - if you are a package maintainer and have an account on hex.pm (ie, not just occasionally pulling packages via mix deps.get, you publish one or more packages). Please rotate your password and 2FA codes ASAP due to the security incident.

Peter is involved with the incident response team, and in this week's Macro Mayhem podcast we did a deep dive into what happened and the implications coming out of this. We hope you give it a listen, links to all common podcast players and show notes are on our website: https://macromayhem.fm/10

- Peter and Gus


r/elixir • • 3h ago

Mishka CMS 0.0.3: publish-time checks in the page editor, redirect rules and Unicode slugs

Thumbnail
mishka.tools
4 Upvotes

Hi dear Elixir community 🙌
We released Mishka CMS 0.0.3, an open source CMS built on Phoenix LiveView and Ash, where pages, layouts and components live in the database and compile into LiveView modules while the app runs. The editor now checks a page before publish: an empty required field, a missing slot, markup that will not compile, markup the browser would rewrite (a form inside a <p>, reported with line and column), and CSS through a real parser. Other parts of the release: redirect rules (301, rewrite, 410, 404, query string matching) with a 301 written for you when a post moves, slugs that keep non-Latin scripts as written, version history with restore for docs pages, and CODE_SIGNING_KEY, so code written straight into the database never runs.

It is three releases old, so feedback is very welcome, especially on the editor checks and the upgrade from 0.0.2 (new tables, so run mix ash.codegen and mix ash.migrate first).

Please read the blog post and support this young project, it has so many changes! ❤️


r/elixir • • 9h ago

Malachi: an open source log broker in Elixir whose topics split and merge under their clients

Thumbnail
malachi-hq.github.io
9 Upvotes

I've been building Malachi, an open source log broker written in Elixir on OTP 28, and I just published a post introducing it. It is an independent implementation inspired by the public design of LinkedIn's NorthGuard, not affiliated with or endorsed by LinkedIn.

The parts that might interest this sub:

No fixed partitions for clients. A client deals in a topic, a key and a position. A topic is a set of ranges that an operator splits and merges while producers keep writing, and a consumer's position is an opaque token the new ranges accept after a split.

Acknowledged means on a majority of disks. A write is acknowledged once a majority of its segment's replicas has fsynced it. Metadata goes through Raft (`ra`), membership through SWIM.

Evidence per release. Every release runs chaos drills (killing nodes, breaking storage, bad config rollouts) and load tests on its exact code, and publishes the results with the hardware and the run-to-run noise.

It is in active development and not production-ready, so I'm mostly looking for feedback: on the client model (tokens instead of offsets), and on what you would need to see before trying something like this.

Post Introducing Malachi

Repo

Documentation


r/elixir • • 13h ago

I redid Gust's README page, and I'd like your feedback

Thumbnail
github.com
10 Upvotes

Hi there, this is Marcio, and a year ago I created Gust to gain resource efficiency (save money) on repetitive tasks, like high-volume scraping and a complex user processing pipeline that we perform at my startup.

The project is open source and has contributions from other's developers. However, I have the feeling that interested people are confused about what problem it solves and also how to set it up.

Finally, I redid the README, and I'd love to know your feedback on how easy it is to understand what this solution is and how to set it up.

Thanks


r/elixir • • 7h ago

ElixirConf EU 2027 (Lisbon & Virtual, 22-23 April): new website and Call for Talks open until 15 December

1 Upvotes

Hi everyone,

We have just launched a new website for ElixirConf EU 2027: https://www.elixirconf.eu

When and where: Lisbon & Virtual

- 21 April 2027: Training day

- 22-23 April 2027: Conference

Call for Talks is open until 15 December. Got something to share with the Elixir and BEAM community? Submit your talk here: https://sessionize.com/elixirconf-eu-2027/ (tips on speaking: https://www.elixirconf.eu/speak)

Super Early Bird waiting list. Join to be the first to hear when tickets go on sale: https://www.elixirconf.eu/#waiting-list

We would love to hear what you think of the new design. There are also a few easter eggs hidden on the site, so we are curious whether you will find them! GL&HF


r/elixir • • 1d ago

bitcask: More Than a Key-Value Store, An Embedded Data Engine with Full-Text Search, Vector Retrieval, and Graph Database Capabilities

Thumbnail
github.com
7 Upvotes

Bitcask — An Introduction

Bitcask is a high-performance, log-structured hash table for fast key/value storage, written in C++23 with an Erlang NIF interface. It goes well beyond a simple KV store: on top of the classic bitcask design it adds BM25 full-text search, approximate nearest-neighbor vector retrieval, RRF hybrid search, transactions with isolation, and even a graph database layer — making it a versatile embedded data engine for Erlang/OTP applications.

Architecture

The implementation is a single C++23 NIF (apps/bitcask/cpp/) behind a thin Erlang facade (bitcask.erl), organized as a rebar3 umbrella project. The on-disk format uses typed records with per-write ordinal numbers and optional DocValue encoding (text + vector + metadata). A separate application, apps/bitcask_cypher/, provides an openCypher graph query language built purely on the core's public API.

Key Capabilities

  • Core KV storage — binary keys and values with put/get/delete/sync, snapshot-consistent iteration via fold, and merge management for reclaiming space.
  • Ordered range queries (v6.0.0) — lexicographic scans over [Lo, Hi) at O(range) cost, ideal for prefix scans.
  • Atomic batches & multi-key transactions — put_batch_atomic and txn_commit guarantee that after a crash or power loss a batch either fully applies or not at all, with optional preconditions (absent | {ord, N}) for optimistic concurrency control.
  • Isolated transactions (bitcask_txn, v6.5.1) — a pure-OTP layer adding pessimistic two-phase locking, deadlock detection, automatic restart, prefix locks (phantom-free scans), and idempotency keys that make mid-commit crashes safely retryable — a single-node analogue of Mnesia's model.
  • BM25 full-text search — pluggable analyzers (whitespace, CJK n-gram, jieba Chinese segmentation), plus phrase, fuzzy (edit-distance), wildcard, proximity, and field-boosted search, with synonym dictionaries and highlight support.
  • Vector search — three selectable engines: hnsw (in-memory graph, up to a few million vectors), ivfrq (IVF-RaBitQ disk tier, recommended for 10M–100M), and diskann (experimental Vamana graph). Embeddings can be fetched automatically from OpenAI-compatible HTTP endpoints or computed in-process via an optional llama.cpp backend (with CUDA/Vulkan GPU support), including Matryoshka (MRL) dimension truncation.
  • Hybrid search — RRF fusion of BM25 and vector ranking signals in a single query.
  • Graph layer (graphdb) — vertices and packed adjacency lists stored as KVs, with conditional writes so concurrent edge writers lose no edges, plus transactional graph operations, BFS/shortest-path traversal, and analytics (PageRank, connected components, SSSP).
  • Structured query DSL (bitcask_query) — combines key conditions, full-text conditions, and meta filters in one query, with a planner that picks the driving index, plus secondary indexes.

Performance Highlights

Recent releases show aggressive optimization: point-read hits through the NIF dropped from 1.3–2.0 µs to 0.26–0.73 µs; graph one-hop reads went from 110 ms to 0.078 ms; put_edge on a 200k-degree hub improved from 255 µs to 20 µs; and del_vertex on a hub went from O(degree²) to linear (450 s → 2.1 s). The engine also offers a disk-resident keydir option cutting resident memory by ~90% at 100M keys.

Getting Started

The project builds with rebar3 compile (Erlang ≥ 22, plus the ICU development package), and can be used as a git_subdir dependency from any rebar3 project. C++ tests (400+ GoogleTests), sanitizers, and benchmarks are driven by CMake.

License

Apache 2.0.


r/elixir • • 1d ago

Security incident on hex.pm

Thumbnail
hex.pm
123 Upvotes

r/elixir • • 10h ago

I built an open-source library to monitor Oban jobs with external heartbeat monitoring

Post image
0 Upvotes

Hey everyone!

I've been working on a monitoring and alerting service called HawkEye, and I recently released an open-source Elixir library called hawk_eye.

The goal was to make monitoring scheduled Oban jobs as simple as possible.

One thing that concerns me about background job monitoring is that sometimes a job doesn't just fail—it stops running entirely.

For example:

  • A node goes down.
  • An Oban queue gets paused.
  • The scheduler stops running.
  • A scheduled job simply never executes.

If you're relying entirely on your application to report its own failures, you can miss these situations.

That's what this library is designed to address.

It connects Oban jobs to HawkEye heartbeat monitors. Here's what it offers:

  • Listens to Oban telemetry events. No changes to your existing workers.
  • Reports successful executions and their duration.
  • Alerts on final job failures rather than every retry.
  • Detects missed heartbeats when scheduled jobs stop running.
  • Sends reporting requests in the background without blocking jobs or application startup.
  • Also supports other scheduled work through HawkEye.track/2.

Installation is straightforward:

def deps do
  [
    {:hawk_eye, "~> 0.1"}
  ]
end

The library is MIT-licensed, and HawkEye has a free plan that includes five monitors.

Links:

I'm the founder and lead developer behind HawkEye, so I'm obviously a little biased, but I'd genuinely appreciate feedback from other Elixir developers.

I'd especially love to hear what integrations or improvements you'd find useful. Thanks!


r/elixir • • 2d ago

briskd: An IRCv3 server in Erlang/OTP with audio/video calls, files, E2EE and WebIRC

Thumbnail
github.com
8 Upvotes

r/elixir • • 2d ago

Last week to take part in the Elixir Survey 2026!

5 Upvotes

Quick reminder that the Elixir Survey 2026 closes on November 30.

This year it covers where Elixir is heading, the state of the ecosystem, the job market, and, for the first time, how AI is changing the way you write code.

It takes about 10 minutes, and every answer makes the results more reliable for the whole community.

https://elixir-hub.com/surveys/2026/take


r/elixir • • 3d ago

would phoenix be good for ecommerce?

22 Upvotes

i'm trying to open up a beat store and i want to make it myself. how is elixir's ecosystem when it comes to ecommerce stuff?


r/elixir • • 5d ago

Continuum v0.9.3 — durable workflows for Elixir, now with SQLite, transactional scheduling, and interval backfills

24 Upvotes

Last time I posted about Continuum here, it was at v0.8.5. Since then I’ve added a SQLite backend and a couple of scheduling features for situations that come up in real apps: saving a record that needs work later, and catching up after downtime.

Quick recap: Continuum is an OTP-native durable execution engine for Elixir. You write a workflow as ordinary Elixir and put external side effects in activities. Continuum records their results, so if the process dies or the node restarts, it can replay the workflow and pick up where it left off.

SQLite support landed in v0.9.0. You can now run durable workflows, activities, timers, signals, and recurring schedules in a single-node app without running a Postgres server. Observer and the replay tools work with SQLite too. Postgres is still the backend for clustered deployments.

Transactional scheduling builds on Continuum.Multi.enqueue/5 from the last release. Say you’re creating an invoice and want to send a reminder three days later. With Continuum.Multi.schedule_at/6, the invoice and its reminder go in the same Ecto.Multi. If the invoice rolls back, the reminder rolls back too. If the transaction commits and your app crashes on the next line, the schedule is already there for the runner to pick up.

Interval backfills solve a different problem. Suppose your nightly reconciliation uses missed: :skip. After a few days of downtime, you decide you actually need Tuesday’s and Wednesday’s runs. Continuum.Schedules.backfill/4 lets you preview that range, see which slots already exist, and pass execute: true to queue the missing ones. It respects the overlap policy, retrying the request won’t create duplicate runs, and tonight’s schedule stays where it was.

A couple of smaller changes: you can filter runs by parent or continuation chain, and pass an expected namespace when inspecting, cancelling, or pausing schedules. Both scheduling features work on Postgres and SQLite. If you’re already on v0.9.x, there’s no database migration.

Feedback is welcome, especially from anyone trying it on an existing workflow.


r/elixir • • 4d ago

Web development with Nova, Kura, Shigoto and Arizona

Thumbnail novaframework.github.io
2 Upvotes

r/elixir • • 5d ago

BEAM FOSDEM Devroom CFP until 3 DEC

2 Upvotes

The BEAM FOSDEM Devroom needs you! CFP is open until 3 DEC. See https://beam-fosdem.dev/call-for-talks/ for all the details.


r/elixir • • 6d ago

How do you blink an LED faster than the BEAM can time it?

19 Upvotes

Blinking an LED in Nerves takes one call, Circuits.GPIO.write. Soft real time is fine at 1 Hz, but it stops being enough once you're dimming, sending Morse code or driving NeoPixels. Frank Hunleth went through the options that don't need a separate chip:

  • Circuits.GPIO timestamps inputs when the interrupt reaches the kernel
  • The 900-LED Yggdrasil tree at Goatmire encoded NeoPixel pulse widths into an SPI stream
  • Hardware PWM through Linux drivers
  • Delux compiles LED patterns that a kernel driver then plays back

Once you reach those limits, a companion microcontroller takes over, and you supervise it with a GenServer like any other process.

https://youtu.be/Wfl9Vp-jdN8


r/elixir • • 6d ago

Announcing Tune: evals, evolutionary search, and prompt optimization for Elixir

22 Upvotes

I'm excited to share my newest package in the ReqLLM family: Tune

Tune measures and improves Elixir code, including LLM prompts. You give it a function or an LLM program, some labeled examples, and a score. It runs your code, searches for a better setting or prompt, and then checks the winner against your current version on examples the search didn’t see.

The same small API covers three jobs:

  • Evals: score live code, saved answers, tool calls, or transcripts, and gate a release on a paired comparison.
  • Evolution: grid or genetic search over any Elixir value.
  • Prompt optimization: strategies modeled on DSPy and GEPA, in native Elixir with no Python.

Model calls go through ReqLLM. Learned values export as plain JSON you can load at runtime.

Tune.new(%{review_at: 50}, run: &MyApp.Router.route/2)
|> Tune.data(validation: validation, test: test)
|> Tune.score(:accuracy, fn row, out -> if out == row.expected, do: 1, else: 0 end)
|> Tune.vary(review_at: [50, 60, 70])
|> Tune.search(:grid)
|> Tune.tune()

I will be deprecating `jido_eval` and `jido_evolve`, with guidance that they will be replaced with Tune. While Tune will be part of my Jido Ecosystem, it doesn't require Jido at all and sits closer to ReqLLM and LLM DB.

Appreciate any feedback!


r/elixir • • 7d ago

Potential tutorials on how to implement Video Chat with Phoenix Backend and React Frontend

14 Upvotes

Hello, I was wondering if there are any good tutorials online that talk about how to implement webRTC voice chat with Phoenix as the backend signalling server, and React as the frontend UI.

This is oddly specific, but I would like a tutorial with at least one of the components listed above if that's possible

Any help would be appreciated !


r/elixir • • 7d ago

VulnCheck — Function-level reachability vulnerability scanner for Elixir, Erlang & Gleam (govulncheck for the BEAM, zero runtime deps)

5 Upvotes

Hi everyone,

I’ve released VulnCheck (v1.0.1), an open-source vulnerability scanner for Elixir (mix.lock / Umbrella), Erlang (rebar.lock), and Gleam (manifest.toml) that pairs OSV.dev + EEF CNA CVE 5.1 programRoutines with post-macro .beam call graphs and OTP supervision semantics.

  • GitHub: https://github.com/Voskan/vulncheck
  • Hex.pm: https://hex.pm/packages/vulncheck
  • HexDocs: https://vulncheck.hexdocs.pm/readme.html

Motivation

With the EEF CNA publishing structured CVE 5.1 advisories for Hex packages, most advisories now include exact programRoutines MFAs (e.g. 'Elixir.Plug.Conn.Query':decode/4 or 'Elixir.Ash.Actions.Aggregate':run/4). Package-level scanners flag the entire dependency regardless of whether your release ever loads that module or calls that function.

However, building govulncheck for the BEAM requires modeling OTP execution semantics so we never produce silent false negatives:

  1. Post-macro .beam :abstract_code walking — inspects code after use Phoenix.Router, plug Plug.Parsers, parsers: [:json], Ash, and Oban.Worker expand, keeping exact file:line call sites.
  2. OTP supervision & framework entrypoints — models .app boot trees, active network daemons (Bandit, :cowboy, :ranch, ThousandIsland, Phoenix.PubSub), protocol client receive paths (Mint, :gun, Finch), consolidated protocols, and configured adapters (Tesla, Swoosh, Ecto).
  3. Sound three-tier verdicts:
    • REACHABLE — shortest concrete file:line call trace from an entrypoint or active daemon handler (call_chain_proven / daemon_call_chain).
    • POTENTIALLY_REACHABLE — active daemon stack without static path, unresolved apply/3, stripped .beam without debug info, or advisory without symbol granularity.
    • UNREACHABLE — proven function_not_called, module_not_loaded, adapter_not_configured, otp_app_not_started, non_prod_dependency (including runtime: false), or otp_version_unaffected.

Engineering properties

  • 0 runtime dependencies (pure Elixir 1.18+ & OTP stdlib, including a full CVSS v4.0 + v3.x calculator).
  • 0 dynamic atoms created from advisories, lockfiles, or config files (binary_to_term with :safe on a SHA-256 beam-v4 summary cache; ~120 ms warm scan on an 80-package project).
  • CI & compliance outputs: Terminal, JSON, Markdown, SARIF 2.1.0 (codeFlows), GitHub Actions (Voskan/vulncheck@v1.0.1), GitLab Code Quality, CycloneDX 1.6 SBOM, OpenVEX v0.2.0, time-bounded .vulncheck.ignore with --forbid-new-suppressions, and offline air-gapped --bundle archives.

Quick try

{:vulncheck, "~> 1.0", only: [:dev, :test], runtime: false}
MIX_ENV=prod mix compile
mix vulncheck

We also published our ground-truth validation harness and current false-positive boundaries in docs/VALIDATION.md. Would love feedback from teams running large Phoenix / Ash / Umbrella monorepos!


r/elixir • • 8d ago

Fuzz testing for Elixir is here

Post image
75 Upvotes

ExFuzz is a coverage-guided fuzzer for Elixir, and I just launched v0.1.0!

It is well-integrated with ExUnit, so your fuzz tests can run alongside your regular tests and use the seed corpus as an ever-growing regression suite. It is built on top of LibAFL as the underlying mutation engine.

Given the amount of critical software infrastructure built on Elixir, I really wanted to focus on an out-of-the-box Go-like developer experience to reduce adoption friction (would really appreciate feedback here).

I have many plans for v0.2.0:

  • Typed generators.
  • More Elixir-aware coverage analysis.
  • Concurrent and continuous fuzzing.
  • Improved performance (execs per second).

Looking for early feedback from the community. I am planning to take it for a test drive around the ecosystem and will let you all know how that goes!


r/elixir • • 9d ago

Cloud SDKs

2 Upvotes

I’m planning on building a tool for mapping cloud environments. I’ll be working with a lot of graphs and trees as well as spinning off many async tasks. I previously built a (failed) startup in elixir and I really like the language but everything points me to using something like Go because it has the most cloud provider sdks. Can anyone let me know how the libraries for interacting with AWS, Azure, GCP and k8s are for elixir?


r/elixir • • 9d ago

I published a Twilio SDK for Elixir, generated from Twilio's OpenAPI spec

7 Upvotes

I've been building Infusion, a generator that turns OpenAPI specs into Elixir SDKs, and the first SDK I've published with it is for Twilio's core REST API: https://hex.pm/packages/twilio

```elixir

{:ok, message} =

Twilio.Messages.create(to: "+15558675310", from: "+15017122661", body: "Hello from Elixir")

```

Why: Twilio has no official Elixir SDK. ex_twilio has served the community for years, but its last release was in April 2024, and since it's written by hand, new endpoints arrive only when someone adds them. This one is generated, so it covers all 197 operations of the 2010-04-01 API, and a GitHub Action regenerates it from Twilio's spec every day and opens a PR when the API changes.

What's in it:

- Docs and typespecs on every function, structs for every response

- The account SID from config, and `account_sid:` on any call for subaccounts

- `list_all` functions that stream every page lazily

- Typed errors with Twilio's error code; retries on connection errors, 429 and 5xx

- `Twilio.Webhook.valid?/4` for `X-Twilio-Signature`, checked against twilio-python on 2,000 random requests and on real webhooks

- `Twilio.AccessToken` for the Voice, Video and Conversations client SDKs

- Built on Req, so `Req.Test` works for stubbing

Not covered yet: Verify, Conversations, Messaging Services and Twilio's other product APIs, which are separate specs. If you use Twilio from Elixir, which one would you want next?

Bug reports and naming complaints welcome: https://github.com/mandar1045/twilio


r/elixir • • 10d ago

Built a low-level systems programming language from scratch to crush concurrency bottlenecks—benchmarks inside.

Post image
7 Upvotes