Daily edition

Sep 21, 2026

The edition exactly as it was published. Nothing here is re-selected on a later reading.

Sep 22, 20265 reads · 193 merged PRs screened

language design

rust-lang/rust · #160679

Files changed →View PR ↗

Staticlib rename internal symbols: add COFF supportRust · 183 + / 17

Introduces 3 new declarations in compiler/rustc_codegen_ssa/src/back/symbol_edit.rs.

Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.

compiler/rustc_codegen_ssa/src/back/symbol_edit.rs · 4 files

@@ -441,6 +476,125 @@ fn macho_rebuild_strtab(     Some(result) } +// ---------------------------------------------------------------------------+// COFF: single-pass collection + apply+// ---------------------------------------------------------------------------++fn coff_collect_impl<'data, Coff: CoffHeader>(+    data: &'data [u8],+    header: &'data Coff,+    exported: &FxHashSet<String>,+    out: &mut FxHashSet<String>,+    strip_underscore: bool,+) {+    let Ok(symbols) = header.symbols(data) else { return };+    let strings = symbols.strings();++    for (_index, sym) in symbols.iter() {+        let sclass = sym.storage_class();+        if sclass != pe::IMAGE_SYM_CLASS_EXTERNAL && sclass != pe::IMAGE_SYM_CLASS_WEAK_EXTERNAL {+            continue;+        }+        if sym.section_number() <= 0 {+            continue;+        }+        let Ok(name_bytes) = sym.name(strings) else { continue };+        let Ok(mut name) = str::from_utf8(name_bytes).map(String::from) else { continue };+        if strip_underscore {+            name = name.strip_prefix('_').unwrap_or(&name).to_string();+        }+        if !exported.contains(&name) {+            out.insert(name);+        }

framework internals

vercel/next.js · #98993

Files changed →View PR ↗

Split revalidation errors by execution contextTypeScript · 33 + / 10

Introduces 3 new declarations in packages/next/src/server/use-cache/use-cache-messages.ts.

Adds new framework internals rather than adjusting what was there. Tests changed with it, with code of their own.

packages/next/src/server/use-cache/use-cache-messages.ts · 8 files

@@ -122,12 +124,30 @@ export function createDraftModeMutationInUnstableCacheError( }  export function createRevalidateDuringRenderError(+  route: string,+  expression: string+): Error {+  return new Error(+    `Route "${route}": \`${expression}\` can't be called during render. Call it from a Server Action or Route Handler instead.\nLearn more: ${REVALIDATE_IN_USE_CACHE}`+  )+}++export function createRevalidateInCachedFunctionError(+  route: string,+  expression: string+): Error {+  return new Error(+    `Route "${route}": \`${expression}\` can't be called inside a cached function. Call it from a Server Action or Route Handler instead.\nLearn more: ${REVALIDATE_IN_USE_CACHE}`+  )+}++export function createRevalidateInBuildTimeGeneratorError(   route: string,   expression: string,-  generatorName?: string+  generatorName: BuildTimeGeneratorName ): Error {   return new Error(-    `Route "${route}": \`${expression}\` can't be called during render, inside a cached function, or inside \`${generatorName ?? 'generateStaticParams'}\`. Call it from a Server Action or Route Handler instead.\nLearn more: ${REVALIDATE_IN_USE_CACHE}`+    `Route "${route}": \`${expression}\` can't be called inside \`${generatorName}\`. Call it from a Server Action or Route Handler instead.\nLearn more: ${REVALIDATE_IN_USE_CACHE}`   ) } 

systems design

huggingface/transformers · #47199

Files changed →View PR ↗

Add pose estimation keypoint preprocessing to Sapiens2ImageProcessorPython · 380 + / 26

Introduces 3 new declarations in src/transformers/models/sapiens2/modular_sapiens2.py.

Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.

src/transformers/models/sapiens2/modular_sapiens2.py · 4 files

@@ -407,8 +406,125 @@ def post_dark_unbiased_data_processing(     return keypoints - torch.cat([offset_x, offset_y], dim=-1)  +def generate_udp_gaussian_heatmaps(+    boxes: list[list[list[float]]],+    keypoints: list[list[list[list[float]]]],+    output_size: tuple[int, int],+    downscale_factor: int,+    sigma: float,+    device: Union[str, "torch.device"] | None = None,+) -> tuple[list[torch.Tensor], list[torch.Tensor]]:+    """Generates UDP Gaussian heatmaps and visibility weights from raw keypoint coordinates.++    Args:+        boxes (`list[list[list[float]]]`):+            List of bounding boxes for each image in COCO format `(top_left_x, top_left_y, width, height)`.+        keypoints (`list[list[list[list[float]]]]`):+            List of keypoints for each person in each image. Expected format is COCO-style `[x, y, visibility]`.+        output_size (`tuple[int, int]`):+            The target size `(height, width)` of the cropped images.+        downscale_factor (`int`, *optional*, defaults to 4):+            The downscale factor for the target heatmap size relative to the output size.+        sigma (`float`, *optional*, defaults to 6.0):+            The standard deviation (sigma) for the 2D Gaussian distributions.+        device (`str` or `torch.device`, *optional*):+            The device to put the resulting tensors on.++    Returns:+        tuple:+        - heatmaps_list (list[torch.Tensor]): The generated heatmaps. Each tensor has shape+          `(num_persons, num_keypoints, heatmap_height, heatmap_width)`.+        - weights_list (list[torch.Tensor]): The target weights. Each tensor has shape+          `(num_persons, num_keypoints)`.

systems design

kubernetes/kubernetes · #142061

Files changed →View PR ↗

IngressClassSpec.Controller DV MigrationGo · 76 + / 6

Introduces 4 new declarations in pkg/apis/networking/v1/zz_generated.validations.go.

Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.

pkg/apis/networking/v1/zz_generated.validations.go · 10 files

@@ -423,7 +423,38 @@ func Validate_IngressClassSpec( 	ctx context.Context, op operation.Operation, fldPath *field.Path, 	obj, oldObj *networkingv1.IngressClassSpec) (errs field.ErrorList) { -	// field networkingv1.IngressClassSpec.Controller has no validation+	{ // field networkingv1.IngressClassSpec.Controller+		fn := func(+			fldPath *field.Path,+			obj, oldObj *string,+			oldValueCorrelated bool) (errs field.ErrorList) {+			// don't revalidate unchanged data+			if oldValueCorrelated && op.Type == operation.Update {+				if obj == oldObj || (obj != nil && oldObj != nil && *obj == *oldObj) {+					return nil+				}+			}+			// call field-attached validations+			earlyReturn := false+			if e := validate.RequiredValue(ctx, op, fldPath, obj, oldObj).MarkAlpha().MarkShortCircuit(); len(e) != 0 {+				errs = append(errs, e...)+				earlyReturn = true+			}+			if e := validate.Immutable(ctx, op, fldPath, obj, oldObj).MarkAlpha().MarkShortCircuit(); len(e) != 0 {+				errs = append(errs, e...)+				earlyReturn = true+			}+			if earlyReturn {+				return // do not proceed+			}+			return+		}+		oldVal := safe.Field(oldObj,+			func(oldObj *networkingv1.IngressClassSpec) *string {+				return &oldObj.Controller

core implementation

TheAlgorithms/Python · #11228

Files changed →View PR ↗

add genetic_algorithm/travelling_salesman_problem.pyPython · 364 + / 0

Introduces 9 new declarations in genetic_algorithm/travelling_salesman_problem.py.

Adds new core implementation rather than adjusting what was there. Read the linked PR for the surrounding test context.

genetic_algorithm/travelling_salesman_problem.py · 2 files

@@ -0,0 +1,364 @@+"""+Use a genetic algorithm to solve the travelling salesman problem (TSP)+which asks the following question:+"Given a list of cities and the distances between each pair of cities, what is the+ shortest possible route that visits each city exactly once and returns to the origin+ city?"++https://en.wikipedia.org/wiki/Genetic_algorithm+https://en.wikipedia.org/wiki/Travelling_salesman_problem++Author: Clark+"""++import copy+import random++cities = {+    0: [0, 0],+    1: [0, 5],+    2: [3, 8],+    3: [8, 10],+    4: [12, 8],+    5: [12, 4],+    6: [8, 0],+    7: [6, 2],+}+++def main(+    cities: dict[int, list[int]],+    population_size: int,+    iterations_num: int,+    crossover_probability: float,

Read today’s edition →