# source generators

Compiler-integrated components that generate source code and add it to a program's compilation.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Compile Away Uncertainty: Self-Evolving Agent Skills via Programmatic Compilation

DevFeed: [Compile Away Uncertainty: Self-Evolving Agent Skills via Programmatic Compilation](<https://devfeed.tech/articles/compile-away-uncertainty-self-evolving-agent-skills-via-programmatic-compilation-108204.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.39508>)

Author: Chengyu Yang, Yunxiang Zheng, Zongzheng Li, Jiamei Li, Boxun Lan, Xiaoyu Liu, Xiaoyu Zhang, Xiaohong Chen, Ming Hu

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [Compilers and Linkers](<https://devfeed.tech/topics/compilers-and-linkers.md>), [source generators](<https://devfeed.tech/topics/source-generators.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-reasoning](<https://devfeed.tech/tags/llm-reasoning.md>), [performance](<https://devfeed.tech/tags/performance.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [uncertainty](<https://devfeed.tech/tags/uncertainty.md>)

### AI overview

SKillCompiler reduces repeated LLM interpretation of learned procedures by compiling well-specified skill operations into validated programs, while leaving context-dependent operations to LLM reasoning. It decomposes skills, assesses which operations are executable, and builds hybrid skill skeletons. A reuse mechanism stores validated programs as assets, retrieves applicable implementations, and synthesizes and verifies new ones when needed. The abstract reports experiments across five benchmarks and six model families, with consistent outperformance of state-of-the-art methods and up to 32.33% improvement in task performance.

### Source excerpt

arXiv:2610.39508v1 Announce Type: new Abstract: Self-evolving agent skills enable AI agents to accumulate and refine reusable procedural knowledge from interaction experience without updating model parameters. However, since such skills are typically represented as textual documents and executed through LLM reasoning, even previously learned procedures must be repeatedly interpreted and regenerated, introducing avoidable uncertainty into every execution. In contrast, program execution is deterministic and independently verifiable. Intuitively, transforming well-specified operations into executable programs can reduce reliance on LLM reasoning and, consequently, reduce execution uncertainty. Motivated by this intuition, we introduce SKillCompiler, a self-evolving skill framework that integrates programmatic compilation into the skill evolution process. Specifically, SkillCompiler adopts an executability-aware skill compilation strategy that decomposes skills into fine-grained operations, analyzes their executability, and constructs hybrid skill skeletons that retain LLM reasoning for context-dependent operations while compiling well-specified ones into validated programs. To avoid redundant program synthesis and enable executable knowledge to accumulate across evolving skills, we further design a program asset reuse mechanism that organizes validated programs as reusable assets, retrieves existing implementations whenever applicable, and synthesizes and verifies new programs only when necessary. Extensive experiments on five benchmarks and six model families demonstrate that SkillCompiler consistently outperforms state-of-the-art methods, achieving up to 32.33\% improvement in task performance.

## Splitting the NetEscapades.EnumGenerators packages: the road to a stable release

DevFeed: [Splitting the NetEscapades.EnumGenerators packages: the road to a stable release](<https://devfeed.tech/articles/splitting-the-netescapades-enumgenerators-packages-the-road-to-a-stable-release-51487.md>)

Original publisher: [Read original article](<https://andrewlock.net/splitting-the-netescapades-enumgenerators-packages-the-road-to-a-stable-release/>)

Author: Andrew Lock

Published: 2026-03-10T09:00:00Z

Content type: article

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [source generators](<https://devfeed.tech/topics/source-generators.md>), [.NET](<https://devfeed.tech/topics/net.md>), [enum](<https://devfeed.tech/topics/enum.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>)

Tags: [changes](<https://devfeed.tech/tags/changes.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-roslyn-source-generators](<https://devfeed.tech/tags/net-core-roslyn-source-generators.md>), [packages](<https://devfeed.tech/tags/packages.md>), [performance](<https://devfeed.tech/tags/performance.md>), [release](<https://devfeed.tech/tags/release.md>), [roslyn](<https://devfeed.tech/tags/roslyn.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>)

### AI overview

This post explains the restructuring of the NetEscapades.EnumGenerators source generator NuGet package into three packages ahead of a stable release. It also describes how the generator creates fast enum-handling implementations and compares their performance with built-in approaches across .NET versions.

### Source excerpt

In this post I describe the recent architectural changes to the NetEscapades.EnumGenerators package, which is now a metapackage, to support more scenarios

## Using Microsoft.Extensions.Telemetry.Abstractions Source Generators for Strongly Typed .NET Metrics

DevFeed: [Using Microsoft.Extensions.Telemetry.Abstractions Source Generators for Strongly Typed .NET Metrics](<https://devfeed.tech/articles/exploring-the-underwhelming-system-diagnostics-metrics-source-generators-system-diagnostics-metrics-apis-part-2-51472.md>)

Original publisher: [Read original article](<https://andrewlock.net/creating-strongly-typed-metics-with-a-source-generator/>)

Author: Andrew Lock

Published: 2026-02-03T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [source generators](<https://devfeed.tech/topics/source-generators.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Code](<https://devfeed.tech/topics/code.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>)

Tags: [boilerplate](<https://devfeed.tech/tags/boilerplate.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [observability](<https://devfeed.tech/tags/observability.md>), [observability-net-core](<https://devfeed.tech/tags/observability-net-core.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>), [telemetry](<https://devfeed.tech/tags/telemetry.md>)

### AI overview

This tutorial explores the source generators in Microsoft.Extensions.Telemetry.Abstractions for creating .NET metrics. It compares the generated approach with manual boilerplate, examines the generated code, and shows how strongly typed tag objects add type safety.

### Source excerpt

In this post I explore the source generators shipped in Microsoft.Extensions.Telemetry.Abstractions, explore the code, and discuss whether I would use them

## Using Scala.js with React and GraphQL

DevFeed: [Using Scala.js with React and GraphQL](<https://devfeed.tech/articles/using-scala-js-with-react-and-graphql-23502.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/scala-js-and-apollo-better-together-b066c6b09af4>)

Author: Shadaj Laddad

Published: 2017-08-08T18:08:00Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Scala](<https://devfeed.tech/topics/scala.md>), [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [React](<https://devfeed.tech/topics/react.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [source generators](<https://devfeed.tech/topics/source-generators.md>)

Tags: [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [functional-programming](<https://devfeed.tech/tags/functional-programming.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>), [scala](<https://devfeed.tech/tags/scala.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

### AI overview

This tutorial explains how to build Scala.js applications that use GraphQL and React. It introduces react-apollo-scalajs, a library that provides Scala facades and idiomatic Scala access to Apollo Client, then outlines project setup, query type generation, and a React UI example.

### Source excerpt

Scala is an excellent language for writing GraphQL apps, especially with the awesome Sangria library for writing GraphQL servers by Oleg Ilyenko. Scala is a powerful language, combining object oriented and functional programming concepts to make writing complex applications easy. The functional programming aspects of Scala are especially helpful when writing GraphQL schemas, allowing you to declare resolvers without any boilerplate.

## Code generating beans - mutable and immutable

DevFeed: [Code generating beans - mutable and immutable](<https://devfeed.tech/articles/code-generating-beans-mutable-and-immutable-21991.md>)

Original publisher: [Read original article](<http://blog.joda.org/2016/09/code-generating-beans.html>)

Author: Stephen Colebourne (noreply@blogger.com)

Published: 2016-09-26T01:36:00Z

Content type: comparison

Language: en

Sources: [Stephen Colebourne](<https://devfeed.tech/sources/stephen-colebourne.md>)

Topics: [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>), [annotation-processor](<https://devfeed.tech/topics/annotation-processor.md>), [source generators](<https://devfeed.tech/topics/source-generators.md>), [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>), [Maven](<https://devfeed.tech/topics/maven.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>)

Tags: [2016](<https://devfeed.tech/tags/2016.md>), [abstract-class](<https://devfeed.tech/tags/abstract-class.md>), [annotation](<https://devfeed.tech/tags/annotation.md>), [code](<https://devfeed.tech/tags/code.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [data](<https://devfeed.tech/tags/data.md>), [data-structure](<https://devfeed.tech/tags/data-structure.md>), [equals](<https://devfeed.tech/tags/equals.md>), [has](<https://devfeed.tech/tags/has.md>), [hashcode](<https://devfeed.tech/tags/hashcode.md>), [hibernate](<https://devfeed.tech/tags/hibernate.md>), [interface](<https://devfeed.tech/tags/interface.md>), [jackson](<https://devfeed.tech/tags/jackson.md>), [java](<https://devfeed.tech/tags/java.md>), [javaone](<https://devfeed.tech/tags/javaone.md>), [jodabeans](<https://devfeed.tech/tags/jodabeans.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [pain](<https://devfeed.tech/tags/pain.md>), [projects](<https://devfeed.tech/tags/projects.md>), [properties](<https://devfeed.tech/tags/properties.md>), [serialization](<https://devfeed.tech/tags/serialization.md>)

### AI overview

The article argues that immutable beans are practical when generated, since manually maintaining bean methods and builders is tedious and error-prone. IDE generation can become stale as classes change. AutoValue, Immutables, and VALJOGen generate implementations at compile time from abstract methods; they focus on immutable beans, with Immutables offering the most options and AutoValue requiring a builder outline. Lombok lets developers use fields and generates within the class by hooking into compiler and Eclipse internals, but brings IDE limitations and prevents debugging generated code. Joda-Beans regenerates code in the source file, so it compiles without IDE setup, and adds runtime property support and serialization; that support requires a runtime dependency. The author recommends Joda-Beans when its properties are useful, otherwise Immutables. The article also points to a comparison project for trying the tools.

### Source excerpt

Java has long suffered from the pain of beans. To declare a simple data class takes far too much code. At JavaOne 2016, I talked about code generation options - see the slides. Code generation of mutable and immutable beans The Java ecosystem is massive. So many libraries releasd as open source and beyond, which naturally leads to the question as to how those libraries communicate. And it is the basic concept of beans that is the essential glue, despite the ancient specification. How do ORMs (Hibernate etc.), Serialization (Jackson etc.) and Bean Mappers (Dozer etc.) communicate? Via getters and setters. The essential features of beans have moved beyond the JavaBeans spec, and are sometimes referred to as POJOs. The features are: Mutable No-args constructor Getters and Setters equals() / hashCode() / toString() But writing these manually is slow, tedious and error-prone. Code generation should be able to help us here. But should we be using mutable beans in 2016? No, no, no! It is time to be writing immutable data structure (immutable beans). But the only practical way to do so is code generation, especially if you want to have builders. In my talk at JavaOne 2016, I considered various code generation approaches: IDE code generation This is fine as far as it goes, but while the code is likely to be correct immediately after generation, there is still no guarantee that the generated code will stay correct as the class is maintained over time. AutoValue, Immutables and VALJOGen These three projects - AutoValue, Immutables, VALJOGen - use annotation processors to generate code during compilation. The idea is simple - the developer writes an abstract class or interface, and the tool code generates the implementation at compile time. However, these tool all focus on immutable beans, not mutable (Immutables can generate a modifiable bean, but it doesn't match the JavaBeans spec, so many tools will reject it). On the up side, there is no chance to mess up the equals / hash