Daily edition

Nov 13, 2026

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

Nov 14, 20265 reads · 152 merged PRs screened

core implementation

pandas-dev/pandas · #72058

Files changed →View PR ↗

ENH: Series.interval accessor (GH#16401)Python · 113 + / 0 −

Introduces 6 new declarations in pandas/core/arrays/interval.py.

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

pandas/core/arrays/interval.py ↗ · 7 files

@@ -2003,3 +2013,102 @@ def _maybe_convert_platform_interval(values) -> ArrayLike:         if values.dtype.kind in "iu" and values.dtype != np.int64:             values = values.astype(np.int64)     return values+++# ---------------------------------------------------------------------+# The Series.interval accessor+++@delegate_names(+    delegate=IntervalArray,+    accessors=["left", "right", "mid", "length", "is_empty", "closed"],+    typ="property",+)+@delegate_names(+    delegate=IntervalArray,+    accessors=["overlaps", "contains", "set_closed"],+    typ="method",+)+class IntervalAccessor(PandasDelegate, PandasObject, NoNewAttributesMixin):+    """+    Accessor object for interval properties of the Series values.++    Provides the endpoints, midpoints and lengths of the intervals, and+    elementwise checks for containment and overlap, each returned as a+    Series aligned with the original. A categorical Series with interval+    categories, such as the result of :func:`cut`, is also supported.++    Parameters+    ----------+    data : Series+        The Series with interval or interval-categorical dtype to which the+        accessor is attached.

framework internals

vercel/next.js · #101514

Files changed →View PR ↗

turbo-tasks: capture effects on multiple workersRust · 185 + / 11 −

Introduces 11 new declarations in turbopack/crates/turbo-tasks/src/effect.rs.

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

turbopack/crates/turbo-tasks/src/effect.rs ↗ · 7 files

@@ -322,6 +332,120 @@ pub async fn take_effects(source: impl CollectiblesSource) -> Result<Effects> {     Ok(Effects::new(captured, unique_keys, invalidator)) } +/// [`capture_effects`] uses one worker per this many effects, so a few effects are captured on the+/// calling task's thread only.+const CAPTURE_EFFECTS_MIN_PER_WORKER: usize = 64;++/// The maximum number of workers [`capture_effects`] uses. Every capture records its reads as+/// dependencies of the one task calling [`take_effects`], which locks that task. With more workers+/// they mostly wait for that lock: on a warm build with ~200k effects, capturing took 4.3s with 1+/// worker, 1.4s with 4, 0.9s with 8, and still 0.9s with 16 or 32 workers, using 2-4x the CPU+/// time.+const CAPTURE_EFFECTS_MAX_WORKERS: usize = 8;++async fn capture_effect(effect: ResolvedVc<Box<dyn Effect>>) -> Result<Box<dyn CapturedEffect>> {+    effect.into_trait_ref().await?.capture().await+}++/// Captures `effects`, returning the captured effects in the same order.+///+/// Capturing reads every effect's cell and usually the content it writes. On a warm build that+/// data isn't in memory yet, so each read restores it from the persistent cache, synchronously on+/// the reading thread. Polling all captures in one future would do all of those restores one by+/// one on a single thread, so for many effects the captures are spread over several workers (up to+/// one per available CPU and at most [`CAPTURE_EFFECTS_MAX_WORKERS`]). The workers run as part of+/// the current task (see [`spawn_in_current_task`]), so their reads are tracked as the task's own+/// dependencies. Each worker takes the next uncaptured effect from a shared counter, which balances+/// the load when some captures are slower than others.+async fn capture_effects(+    effects: Vec<ResolvedVc<Box<dyn Effect>>>,+) -> Result<Vec<Box<dyn CapturedEffect>>> {+    let len = effects.len();+    let workers = available_parallelism()

systems design

kubernetes/kubernetes · #144073

Files changed →View PR ↗

DRA: Allocator skips capacity accounting for admin accessGo · 247 + / 48 −

Introduces 4 new declarations in staging/src/k8s.io/dynamic-resource-allocation/structured/internal/allocatortesting/allocator_testing.go.

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

staging/src/k8s.io/dynamic-resource-allocation/structured/internal/allocatortesting/allocator_testing.go ↗ · 10 files

@@ -7803,6 +7844,70 @@ func TestAllocator(t *testing.T, 				return expectResults, expectError, expectErrorIs 			}, 		},+		"consumable-capacity-admin-access-then-ordinary-claim-same-device-counters": {+			// The admin claim reserves the device's counters but creates no capacity entry.+			// The ordinary claim must still share the device without charging+			// the counters (total 1, cost 1) a second time.+			features: Features{ConsumableCapacity: true, AdminAccess: true, PartitionableDevices: true},+			claimsToAllocate: objects(+				claim(claim0).withRequests(deviceRequest(req0, classA, 1).withAdminAccess()),+				claim(claim1).withRequests(deviceRequest(req0, classA, 1).withCapacityRequest(capacity0, one)),+			),+			classes: objects(classWithAllowMultipleAllocations(classA, driverA, true)),+			slices: unwrapResourceSlices(+				sliceWithDevices(slice1, node1, resourcePool(pool1, 2), driverA,+					device(device1).withCapacity(capacity0, two).withAllowMultipleAllocations().withDeviceCounterConsumption(+						deviceCounterConsumption(counterSet1, map[string]resource.Quantity{counter0: one}),+					),+				),+				sliceWithCounterSets(slice2, node1, resourcePool(pool1, 2), driverA,+					counterSet(counterSet1, map[string]resource.Quantity{counter0: one}),+				),+			),+			node: node(node1, region1),+			expectResults: []any{+				matchAllocationResult(+					localNodeSelector(node1),+					deviceAllocationResult(req0, driverA, pool1, device1, true),+				),+				matchAllocationResult(+					localNodeSelector(node1),+					deviceRequestAllocationResult(req0, driverA, pool1, device1).withConsumedCapacity(&fixedShareID, map[resourceapi.QualifiedName]resource.Quantity{capacity0: one}),+				),

language design

rust-lang/rust · #164108

Files changed →View PR ↗

Add unstable `-Zllvm-tpde` flag to `rustc_codegen_llvm`Rust · 260 + / 15 −

Introduces 23 new declarations in compiler/rustc_codegen_llvm/src/llvm/tpde_ffi.rs.

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

compiler/rustc_codegen_llvm/src/llvm/tpde_ffi.rs ↗ · 33 files

@@ -0,0 +1,125 @@+use std::path::PathBuf;+use std::sync::OnceLock;++use rustc_session::config::{self, Sysroot, host_tuple};+use rustc_session::filesearch;++unsafe extern "C" {+    type LLVMPassPluginLibraryInfo;+}++type LLVMGetPassPluginInfoFn = unsafe extern "C" fn() -> LLVMPassPluginLibraryInfo;++/// LLVMRustTpdeMode+#[repr(C)]+#[derive(Clone)]+pub(crate) enum LLVMRustTpdeMode {+    None,+    Only,+    Try,+}++/// LLVMRustTpdeOptions+#[repr(C)]+#[derive(Clone)]+pub(crate) struct LLVMRustTpdeOptions {+    mode: LLVMRustTpdeMode,+    // `None` if mode is `LLVMRustTpdeMode::None`+    plugin: Option<LLVMGetPassPluginInfoFn>,+}++pub(crate) struct TpdeWrapper {+    options: LLVMRustTpdeOptions,+    // Keep the dynamic library loaded while the function pointers are used.

core implementation

huggingface/accelerate · #4524

Files changed →View PR ↗

Compile checkpointed blocks across graph breaks in `compile_regions`Python · 26 + / 4 −

Introduces 2 new declarations in src/accelerate/utils/other.py.

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

src/accelerate/utils/other.py ↗ · 2 files

@@ -141,17 +142,38 @@ def compile_regions(module: torch.nn.Module, **compile_kwargs) -> torch.nn.Modul     ```     """ +    def _rebind_module_methods(module, new_module):+        # Shallow copies keep methods and partials bound to the original module.+        # Rebind them so forwards and hooks use the copy's state, including its training flag.+        def rebind(value):+            if isinstance(value, MethodType) and value.__self__ is module:+                return MethodType(value.__func__, new_module)+            if isinstance(value, partial):+                args = tuple(new_module if arg is module else arg for arg in value.args)+                kwargs = {key: new_module if arg is module else arg for key, arg in value.keywords.items()}+                rebound = partial(rebind(value.func), *args, **kwargs)+                rebound.__dict__.update(value.__dict__)+                if hasattr(value, "__wrapped__"):+                    rebound.__wrapped__ = rebind(value.__wrapped__)+                return rebound+            return value++        # Includes the partial `forward` and bound `_old_forward` installed by Accelerate hooks.+        for name, value in list(new_module.__dict__.items()):+            new_module.__dict__[name] = rebind(value)+     def _compile_regions(module: torch.nn.Module, **compile_kwargs) -> torch.nn.Module:         if is_repeated_blocks(module):             new_module = torch.nn.ModuleList()             for submodule in module:-                new_module.append(torch.compile(submodule, **compile_kwargs))+                new_submodule = copy(submodule)+                _rebind_module_methods(submodule, new_submodule)+                new_submodule.compile(**compile_kwargs)+                new_module.append(torch.compile(new_submodule, **compile_kwargs))         elif has_repeated_blocks(module):

Read today’s edition →