<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd" -->

---
title: Building a Phased Microkernel Compiler in Elixir: How We...
description: A custom Mix compiler task called Mix.Tasks.Compile.Phased is described for JusrisOS, an Elixir-based local-first microkernel system. It splits compilation...
canonical: https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building a Phased Microkernel Compiler in Elixir: How We Tamed Dependency Graphs in JusrisOS | daily.dev
og:description: A custom Mix compiler task called Mix.Tasks.Compile.Phased is described for JusrisOS, an Elixir-based local-first microkernel system. It splits compilation...
og:url: https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd
og:image: https://api.daily.dev/og/posts/5UuWCjeXd.png
og:image:alt: Building a Phased Microkernel Compiler in Elixir: How We Tamed Dependency Graphs in JusrisOS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building a Phased Microkernel Compiler in Elixir: How We Tamed Dependency Graphs in JusrisOS

**[ElixirStatus](https://daily.dev/sources/elixirstatus)** · 4 min read · 0 upvotes · 0 comments

## Summary

A custom Mix compiler task called Mix.Tasks.Compile.Phased is described for JusrisOS, an Elixir-based local-first microkernel system. It splits compilation into three phases: compiling the immutable Core with warnings suppressed, compiling shared-nothing plugins in parallel, and re-checking the Core against loaded plugin modules to catch broken references. Manifests from each phase are merged back into the canonical compile.elixir manifest to preserve compatibility with standard Mix tooling like mix xref, mix clean, and LiveView asset compilation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/matheuscamarques/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-37ob>

## Questions this post answers

### How can I prevent Elixir plugins from depending on each other in a shared-nothing microkernel architecture?

Write a custom Mix.Task.Compiler that partitions source files into core and plugin sets, compiling plugins via Kernel.ParallelCompiler while ensuring they only reference the Core module, never sibling plugins. This is enforced structurally at build time rather than through convention, using separate compile manifests for the core and plugins.

_daily.dev surfaces architecture patterns like this for teams enforcing strict module boundaries in Elixir._

### How do I stop Elixir from raising module is not available warnings when the Core references plugin modules dynamically?

Compile the Core first with no_warn_undefined set to :all and infer_signatures disabled, suppressing undefined-module warnings during that initial pass, then recompile plugins afterward and run a re-check phase on the Core with those options reverted to catch genuinely broken references. This avoids false warnings while still validating real errors.

_developers debugging Elixir compilation warnings can find similar deep dives via daily.dev._

## Similar posts on daily.dev

- [Elixir 1.19: Faster Builds, Smarter Types, and the Year of Interoperability](https://daily.dev/posts/elixir-1-19-faster-builds-smarter-types-and-the-year-of-interoperability-0z5phajqi) · ElixirStatus · 1 upvotes · 0 comments
- [Elixir v1.19.4 released](https://daily.dev/posts/elixir-v1-19-4-released-e6kgng6ga) · Elixir Forum · 4 upvotes · 0 comments
- [Bringing Tuist to Elixir](https://daily.dev/posts/bringing-tuist-to-elixir-ckdhzmzus) · 
      Tuist
     · 0 upvotes · 0 comments
- [Elixir v1.20 released: now a gradually typed language](https://daily.dev/posts/elixir-v1-20-released-now-a-gradually-typed-language-081x31cuq) · Elixir · 4 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#elixir](https://daily.dev/tags/elixir)

[View this post on daily.dev](https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building a Phased Microkernel Compiler in Elixir: How We Tamed Dependency Graphs in JusrisOS","url":"https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd"},"datePublished":"2026-09-03T15:55:37.893Z","dateModified":"2026-09-03T16:25:05.026Z","description":"A custom Mix compiler task called Mix.Tasks.Compile.Phased is described for JusrisOS, an Elixir-based local-first microkernel system. It splits compilation...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5ed702cf67be7f5521409d7ae8abf3a6?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5ed702cf67be7f5521409d7ae8abf3a6?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ElixirStatus","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ElixirStatus","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/22e4640538124187827caf8cc8e39190","url":"https://daily.dev/sources/elixirstatus"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,elixir","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ElixirStatus","item":"https://daily.dev/sources/elixirstatus"},{"@type":"ListItem","position":3,"name":"Building a Phased Microkernel Compiler in Elixir: How We Tamed Dependency Graphs in JusrisOS"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/building-a-phased-microkernel-compiler-in-elixir-how-we-tamed-dependency-graphs-in-jusrisos-5uuwcjexd#faq","mainEntity":[{"@type":"Question","name":"How can I prevent Elixir plugins from depending on each other in a shared-nothing microkernel architecture?","acceptedAnswer":{"@type":"Answer","text":"Write a custom Mix.Task.Compiler that partitions source files into core and plugin sets, compiling plugins via Kernel.ParallelCompiler while ensuring they only reference the Core module, never sibling plugins. This is enforced structurally at build time rather than through convention, using separate compile manifests for the core and plugins. daily.dev surfaces architecture patterns like this for teams enforcing strict module boundaries in Elixir."}},{"@type":"Question","name":"How do I stop Elixir from raising module is not available warnings when the Core references plugin modules dynamically?","acceptedAnswer":{"@type":"Answer","text":"Compile the Core first with no_warn_undefined set to :all and infer_signatures disabled, suppressing undefined-module warnings during that initial pass, then recompile plugins afterward and run a re-check phase on the Core with those options reverted to catch genuinely broken references. This avoids false warnings while still validating real errors. developers debugging Elixir compilation warnings can find similar deep dives via daily.dev."}}]}
```

