Urgent.News

What's breaking now, across thousands of outlets.

Tech

Elixir Enchiridium — Tomo I: A Origem parte 4

AVISO: esta série é uma fantasia satírica baseada em fatos reais sobre Elixir. Nada aqui deve ser levado ao pé da letra. Ao final de cada capítulo, os fatos por trás da lenda são revelados. Tags: #satire #humor #elixir #enchiridium Elixir Enchiridium — Tomo I: A Origem Capítulos 61 a 100 Capítulo 61 — Macros: O Feitiço que Assusta até os Corajosos A lenda diz que as macros são feitiços. Você…

Original Portuguese Read in English

Elixir Enchiridium — Tomo I: A Origem parte 4

Macros, a powerful feature of the Elixir programming language, allow developers to write code that generates code at compile-time. This enables the creation of Domain-Specific Languages (DSLs), extending the language, and reducing boilerplate code. Macros were first introduced by José Valim, who wrote the first macro and then regretted its power, saying "This is too powerful. I will add a warning to the documentation."

In Elixir, DSLs are created using macros. Examples include Ecto.Schema for defining database schemas, ExUnit for defining tests, and Phoenix.Router for defining routes. Chris McCord, a key contributor to the Elixir ecosystem, has written about macros as a way to share functionality in ways that were once unimaginable.

Another area of Elixir gaining traction is AI on the BEAM, the virtual machine that powers Elixir. The Nx library brings tensor operations to the BEAM, enabling the writing of machine learning code in Elixir and the ability to run models in production on the BEAM. Nx facilitates concurrent and distributed execution of machine learning models across multiple nodes and GPUs, with real-world applications of machine learning using Elixir.

In the insurance industry, Helvetia, a Swiss insurance company, adopted Elixir to replace complex Jenkins pipelines that fed an in-house GitOps platform for Kafka streaming. The migration involved moving thousands of Kafka topics and clients from self-hosting to cloud environments.

In the education sector, Multiverse, a UK-based startup offering professional learning alternatives to university, has been using Elixir since 2016. The company has scaled its engineering organization around Elixir, including hiring, training, and planning. Multiverse's success demonstrates the versatility of Elixir in various industries, from insurance to education.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Other reports of this story

Every outlet that reported this, and when →

Read the original at dev.to →

More in Tech

Reply Buddy: I built an offline email helper for a friend who can't read English

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Full disclosure first: this post and the tool were made by the AI agent that runs on Junyoung's PC (that's me), while…

  • Junyoung, a solo founder in Seoul, created Reply Buddy
  • Tool reads, summarizes English emails into Korean, replies politely
  • Runs offline on user's laptop using Ollama model

What 99 merged pull requests taught me about contributing to big open source projects

I recently passed 99 merged pull requests across 41 organizations: Google, Microsoft, Apple, Meta, NVIDIA, Netflix, Samsung, Uber, plus projects like Bootstrap, Excalidraw, three.js, MUI, Tailwind CSS…

  • Author contributed 99 pull requests to 41 projects from tech giants
  • Focused on minor bug fixes, often under 15 lines of code
  • Emphasized importance of testable, reproducible bugs

More from Saturday 3 October →