---
title: "#macros articles | Hashnode"
description: "Explore 39 articles tagged #macros on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/macros"
---

Tag

# #macros

39 posts · 5 followers

[Alex Acebo](https://hashnode.com/@aacebo) · [Sep 28](https://hashnode.com/posts/building-rust-procedural-macros-without-syn-quote-or-proc-macro2-moxy/6ab9bbd791737af703f72830)

### [🦀 Building Rust Procedural Macros Without syn, quote, or proc\_macro2: Moxy](https://aacebo.hashnode.dev/building-rust-procedural-macros-without-syn-quote-or-proc-macro2-moxy?utm_source=hashnode&utm_medium=feed)

Build a Rust builder attribute macro with moxy using typed syntax trees, templates, diagnostics, and formatting—without syn or quote.

5 min read · [aacebo.hashnode.dev](https://aacebo.hashnode.dev/building-rust-procedural-macros-without-syn-quote-or-proc-macro2-moxy?utm_source=hashnode&utm_medium=feed)

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim) · [Apr 7](https://hashnode.com/posts/macros-patterns-the-metaprogramming-magic/69d4e00e921773ca906bdaea)

### [Macros & Patterns: The "Metaprogramming Magic"](https://yafi.hashnode.dev/macros-patterns-the-metaprogramming-magic?utm_source=hashnode&utm_medium=feed)

If you've reached this part of Rust, you're looking at the tools that power the libraries you've been using (like vec!, println!, or serde). These are the Power User tools. Think of Macros as Code that Writes Code. Imagine if you could write a Babel ...

2 min read · [yafi.hashnode.dev](https://yafi.hashnode.dev/macros-patterns-the-metaprogramming-magic?utm_source=hashnode&utm_medium=feed)

[Gyeongtae Kim](https://hashnode.com/@dasae) · [Mar 17](https://hashnode.com/posts/zero-cost-defer-in-c/69ccbc80b504c4ed0a2a2e9a)

### [Zero-Cost defer in C: A Compiler Optimization Odyssey](https://dasae-scenic-route.hashnode.dev/zero-cost-defer-in-c?utm_source=hashnode&utm_medium=feed)

Shows how a Duff's device, two compilers, and a hidden LLVM flag turned a C macro 'defer' into a zero-cost abstraction, with benchmarks.

62 min read · [dasae-scenic-route.hashnode.dev](https://dasae-scenic-route.hashnode.dev/zero-cost-defer-in-c?utm_source=hashnode&utm_medium=feed)

[Alex Acebo](https://hashnode.com/@aacebo) · [Mar 12](https://hashnode.com/posts/building-rust-procedural-macros-without-quote-introducing-zyn/69b30fb993256dfc53032773)

### [🦀Building Rust Procedural Macros Without quote!: Introducing zyn](https://aacebo.hashnode.dev/building-rust-procedural-macros-without-quote-introducing-zyn?utm_source=hashnode&utm_medium=feed)

zyn is a Rust procedural macro framework with template syntax, composable elements, diagnostics, and testing tools—no quote! required.

9 min read · [aacebo.hashnode.dev](https://aacebo.hashnode.dev/building-rust-procedural-macros-without-quote-introducing-zyn?utm_source=hashnode&utm_medium=feed)

[Daniil Shuraev](https://hashnode.com/@dshuraev) · [Dec 14, 2025](https://hashnode.com/posts/behaviour-dispatch-patterns-in-elixir/693f2ad4d129e9cf48f13c9a)

### [Behaviour Dispatch Patterns in Elixir](https://shuraev.hashnode.dev/behaviour-dispatch-patterns-in-elixir?utm_source=hashnode&utm_medium=feed)

DX Trade-offs and Design Space

9 min read · [shuraev.hashnode.dev](https://shuraev.hashnode.dev/behaviour-dispatch-patterns-in-elixir?utm_source=hashnode&utm_medium=feed)

[Tony Vi](https://hashnode.com/@tonyvi) · [Aug 4, 2025](https://hashnode.com/posts/macro-define/6890bb15c9e79fc2ff1ce86e)

### [Macro #define](https://thanhexp.hashnode.dev/macro-define?utm_source=hashnode&utm_medium=feed)

Trong ngôn ngữ C (và C++), lệnh #define là một chỉ thị tiền xử lý (preprocessor directive) dùng để định nghĩa macro — đoạn mã sẽ được thay thế trực tiếp trước khi biên dịch. Dưới đây là danh sách đầy đủ các dạng sử dụng #define trong C, kèm ví dụ min...

3 min read · [thanhexp.hashnode.dev](https://thanhexp.hashnode.dev/macro-define?utm_source=hashnode&utm_medium=feed)

[Garvit Dadheech](https://hashnode.com/@GarvitDadheech) · [Jul 16, 2025](https://hashnode.com/posts/macros-in-rust-a-deep-dive/687801f53351cc9baf638b00)

### [Macros in Rust - A Deep Dive](https://garvitdadheech.hashnode.dev/macros-in-rust-a-deep-dive?utm_source=hashnode&utm_medium=feed)

Declarative macros

16 min read · [garvitdadheech.hashnode.dev](https://garvitdadheech.hashnode.dev/macros-in-rust-a-deep-dive?utm_source=hashnode&utm_medium=feed)

[Sriram Krishnan](https://hashnode.com/@sriramkrishnan) · [Jul 8, 2025](https://hashnode.com/posts/writing-your-first-macro-in-dbt-practical-templates/686cbb9ea495b0dee53748b6)

### [Writing Your First Macro in dbt – Practical Templates](https://moderndataarchitect.hashnode.dev/writing-your-first-macro-in-dbt-practical-templates?utm_source=hashnode&utm_medium=feed)

Once you’ve got your models, snapshots, and seeds up and running, you might start noticing some repeated SQL patterns in your dbt project. Maybe you’re calculating currency-converted revenue in multiple models. Or doing the same timestamp casting aga...

3 min read · [moderndataarchitect.hashnode.dev](https://moderndataarchitect.hashnode.dev/writing-your-first-macro-in-dbt-practical-templates?utm_source=hashnode&utm_medium=feed)

[Matthew Harwood](https://hashnode.com/@Matty0187) · [Jun 1, 2025](https://hashnode.com/posts/how-to-create-a-jsx-like-rust-macro-step-by-step-guide-part-1/683bd9e09890ccdce5c01ccb)

### [How to Create a JSX-Like Rust Macro: Step-by-Step Guide - Part 1](https://auteur.hashnode.dev/how-to-create-a-jsx-like-rust-macro-step-by-step-guide-part-1?utm_source=hashnode&utm_medium=feed)

Learn how to create a JSX-like Rust macro with this step-by-step guide, including scaffold and test setups. Perfect for beginners!

3 min read · [auteur.hashnode.dev](https://auteur.hashnode.dev/how-to-create-a-jsx-like-rust-macro-step-by-step-guide-part-1?utm_source=hashnode&utm_medium=feed)

[Sergey Shishkin](https://hashnode.com/@Serj-Aleks) · [May 29, 2025](https://hashnode.com/posts/read-macros/6838188ce4534099a88bc077)

### [Read-Macros](https://serj-aleks.hashnode.dev/read-macros?utm_source=hashnode&utm_medium=feed)

В документации целых три классификатора, которые можно позиционировать как группы функций базы данных, собственно, база данных, система запросов типа SQL-Prolog (Pilog) и предикаты, а если считать, что реализованная система управления базой данных, с...

2 min read · [serj-aleks.hashnode.dev](https://serj-aleks.hashnode.dev/read-macros?utm_source=hashnode&utm_medium=feed)
