Tagged articles
macro
14 articles · Page 1 of 1
This article reviews the CN‑Buzz2Portfolio benchmark, which maps daily Chinese hot‑news streams to macro‑ and industry‑level ETF allocations, introduces a three‑stage CPA pipeline for evaluating large language models as autonomous financial agents, and reports extensive experiments on nine state‑of‑the‑art LLMs across two rolling market periods.
BenchmarkCN-Buzz2PortfolioCPA framework
0 likes · 18 min read

The article walks through a seemingly simple C file‑creation snippet that fails on Windows because Microsoft's tmpfile() uses C:\, then reveals a hidden bug where a stray backslash in a comment and a missing space in an expression silently turn code into comments, illustrating how tiny syntax errors can break cross‑platform programs.
C++DebuggingEmbedded
0 likes · 7 min read

This article explains the C preprocessor's macro‑expansion rules, detailing when macro arguments are expanded, how replacement‑list macros behave, special cases involving the # and ## operators, and provides step‑by‑step examples and techniques for controlling expansion.
C languageC++Macro Expansion
0 likes · 7 min read

Swift 5.9’s new macro system lets developers generate type‑safe code at compile time via external plug‑ins, using role‑based declarations such as @attached and @freestanding to create properties, extensions, or warnings, thereby reducing repetitive boiler‑plate and improving safety in large‑scale architectures like MVVP modules and exposure frameworks.
Compiler PluginSWIFTcode generation
0 likes · 20 min read

This article explains how the Rust cfg_if crate simplifies conditional compilation by providing a macro that replaces nested #[cfg] attributes with clear if‑else or match structures, shows step‑by‑step usage, advanced patterns, and compares cfg_if to raw #[cfg] for readability and maintainability.
BackendConditional CompilationRust
0 likes · 8 min read

This article explains key GNU C extensions used in the Linux kernel—including typeof, zero‑length (flexible) arrays, case ranges, labeled initializers, variadic macros, function and variable attributes, built‑in functions, asmlinkage, and UL suffixes—showing why they exist, how to use them safely, and providing concrete code examples.
GNU CLinux kernelTypeOf
0 likes · 13 min read

This article explains the latest updates to a table‑driven parameter management library for MCU devices, covering unified parameter definitions, macro‑based registration, key‑value and non‑key‑value storage options, configurable trimming, macro and function interfaces, and provides detailed C code examples and serialization demos.
MCUSerializationembedded C
0 likes · 11 min read

This article explains essential GNU C extensions used in the Linux kernel—including typeof, zero‑length (flexible) arrays, case range labels, designated initializers, variadic macros, function and variable attributes, built‑in functions, asmlinkage, and UL suffixes—showing why they matter and how to apply them safely.
C extensionsGNU CLinux kernel
0 likes · 13 min read

This tutorial walks through adding Q‑Expression support to a Lisp‑style interpreter written in C, covering syntax definition, parser updates, implementation of head, tail, join, list, and eval functions, macro‑based assertions, and a complete source listing with compilation instructions.
C++Lisp interpreterParser
0 likes · 25 min read

The Linux kernel community announced an upgrade from the decades‑old C89 standard to C11 after a subtle bug in the list_for_each_entry macro, exposed by a speculative‑execution vulnerability study, convinced Linus Torvalds to modernize the kernel’s C language version.
C languageC11Linux
0 likes · 6 min read

This article explains a Scala‑based DSL that uses macros and implicit parameters to generate type‑safe, boiler‑plate‑free conversion code between protobuf‑java messages and Scala case classes, showing examples, builder customisation, and upcoming Scala 3 support.
DSLProtobufScala
0 likes · 11 min read

This article introduces JDTuple, an Objective‑C tuple library that uses variadic functions, type encodings, and macro tricks to pack arbitrary values, provide key‑based and sequential unpacking, and simplify multi‑parameter passing and return values in iOS development.
DataStructureObjective-C++iOS
0 likes · 18 min read

This tutorial presents a complete enterprise‑level Makefile example, detailing version numbering, dynamic library integration, macro definitions, include paths, compilation flags, output directory handling, and clean targets, while also showing the associated source code layout and how to retrieve the full project from the public account.
C++Dynamic LibraryMakefile
0 likes · 6 min read

Over the course of a week, the author explores Elixir’s design and features—covering its pipe operator, sigils, macro quoting, version handling, and differences from Erlang—while reflecting on language ergonomics, code readability, and functional programming concepts illustrated with concrete code examples.
ElixirPipe OperatorSigil
0 likes · 21 min read
