7-day edition

Nov 13, 2026 – Nov 19, 2026

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

Nov 20, 202612 reads · 1077 merged PRs screened

language design

NVIDIA-NeMo/Speech · #16505

Files changed →View PR ↗

fix(speechlm2): find vLLM 0.33's chat parser for the prompt contractPython · 37 + / 8 −

Introduces 3 new declarations in nemo/collections/speechlm2/vllm/salm/runtime_compat.py.

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

nemo/collections/speechlm2/vllm/salm/runtime_compat.py ↗ · 2 files

@@ -176,14 +184,35 @@ def _parse_chat_message_content_parts(         )      _parse_chat_message_content_parts._nemo_speechlm_exact_training_prompt = True-    chat_utils._parse_chat_message_content_parts = _parse_chat_message_content_parts+    setattr(chat_utils, parser_name, _parse_chat_message_content_parts)  -def install_prompt_contract() -> None:-    """Install the SpeechLM-only vLLM chat rendering adapter."""+def _locate_chat_parser() -> tuple[Any, str]:+    """Return the module and attribute through which vLLM's chat path finds the content-part parser.++    The parser keeps its signature across releases but has moved twice:++    * vLLM 0.33 split ``vllm.renderers.chat_utils`` into a package and made the+      parser public as ``chat_message.parse_chat_message_content_parts``;+      ``parse_chat_message_content`` calls it as a global of ``chat_message``, so+      that module is the one to patch (the package re-export is a separate name).+    * vLLM 0.32 has ``vllm.renderers.chat_utils._parse_chat_message_content_parts``.+    * Earlier releases have ``vllm.entrypoints.chat_utils._parse_chat_message_content_parts``.+    """+    try:+        from vllm.renderers.chat_utils import chat_message  # vLLM >= 0.33+    except ImportError:+        chat_message = None+    if callable(getattr(chat_message, _PUBLIC_PARSER_NAME, None)):+        return chat_message, _PUBLIC_PARSER_NAME+     try:         from vllm.renderers import chat_utils  # vLLM 0.32     except ImportError:         from vllm.entrypoints import chat_utils+    return chat_utils, _LEGACY_PARSER_NAME

core implementation

holoviz/panel · #9107

Files changed →View PR ↗

fix: Keep unlocked writes streaming while a busy callback holds the lockPython · 111 + / 25 −

Introduces 4 new declarations in panel/io/document.py.

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

panel/io/document.py ↗ · 2 files

@@ -483,32 +521,39 @@ def _split_unknown_to_client(     defines, and changes to a property the unwritten changes also set,     whose older value would otherwise overwrite the newer one.     """+    # Only membership is tested below, so the key sets the other contexts+    # add to are not copied, keeping each flush independent of how many+    # changes are already waiting.     with _WRITE_LOCK:         records = list(_UNWRITTEN.get(doc, []))-        deferred = list(_DEFERRED_EVENTS.get(doc, []))-    pending = session._pending_writes or []-    if not (records or deferred or pending or _is_locked_elsewhere(session)):+        deferred = _DEFERRED_KEYS.get(doc, set())+        pending = _pending_keys(session)+        waiting = doc in _DEFERRED_EVENTS+    if not (records or waiting or pending or _is_locked_elsewhere(session)):         return events, []-    unsent = {model.id for model in _unsent_models(doc)}-    unwritten = set().union(*(record.models for record in records))-    changes = set().union(*(record.changes for record in records))-    changes |= {key for event in deferred if (key := _change_key(event))}-    changes |= {key for patch in list(pending) if (key := _change_key(patch.event))}+    unsent = getattr(doc.models, '_new_models', None) or set()+    held_keys: set[tuple[str, str]] = set()     immediate, held = [], []     for event in events:         model = _event_target(event)+        key = _change_key(event)         if isinstance(event, ModelChangedEvent):             value = event.new         elif isinstance(event, MessageSentEvent):             value = event.msg_data         else:             value = None

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 · #101727

Files changed →View PR ↗

Turbopack: detect top-level `this` as CommonJS exportsRust · 101 + / 4 −

Introduces 10 new declarations in turbopack/crates/turbopack-ecmascript/src/references/exports.rs.

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

turbopack/crates/turbopack-ecmascript/src/references/exports.rs ↗ · 12 files

@@ -378,3 +418,60 @@ pub fn is_turbopack_helper_import(import: &ImportDecl) -> bool { pub fn is_swc_helper_import(import: &ImportDecl) -> bool {     import.src.value.starts_with("@swc/helpers/") }++#[cfg(test)]+mod tests {+    use swc_core::{+        common::{FileName, SourceMap, sync::Lrc},+        ecma::{+            ast::EsVersion,+            parser::{Syntax, parse_file_as_program},+        },+    };++    use super::{DetectedDynamicExportType, detect_dynamic_export};++    fn is_cjs(code: &str, top_level_this_is_exports: bool) -> bool {+        let cm = Lrc::new(SourceMap::default());+        let fm = cm.new_source_file(Lrc::new(FileName::Anon), code.to_string());+        let program = parse_file_as_program(+            &fm,+            Syntax::Es(Default::default()),+            EsVersion::latest(),+            None,+            &mut vec![],+        )+        .expect("Failed to parse");+        matches!(+            detect_dynamic_export(&program, top_level_this_is_exports),+            DetectedDynamicExportType::CommonJs+        )+    }+

core implementation

holoviz/panel · #9105

Files changed →View PR ↗

fix: Order unlocked writes after the changes of the document lock holderPython · 259 + / 13 −

Introduces 21 new declarations in panel/io/document.py.

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

panel/io/document.py ↗ · 3 files

@@ -354,9 +370,185 @@ def _track_task(doc: Document, task: asyncio.Task) -> None:     _write_tasks.setdefault(doc, []).append(task)     task.add_done_callback(partial(_cleanup_task, doc)) +@contextmanager+def _owning_document_lock(session: ServerSession) -> Iterator[None]:+    """+    Marks the calling context as holding the session's document lock and+    first writes the events other contexts held back while it was taken+    by someone else, so they precede the changes made under this lock.+    """+    with state._own_document_lock(session):+        if session.document in _DEFERRED_EVENTS:+            try:+                _dispatch_deferred_events(session.document)+            except Exception:+                logger.exception('Failed to dispatch deferred events')+        yield++def _run_owning_document_lock(session: ServerSession, func: Callable[..., t.Any], *args, **kwargs) -> t.Any:+    with _owning_document_lock(session):+        result = func(*args, **kwargs)+    if inspect.isawaitable(result):+        awaiting = _await_owning_document_lock(session, result)+        if inspect.iscoroutine(result):+            # Bokeh closes the callback's coroutine if it is cancelled+            # before awaiting it, which only reaches ours.+            weakref.finalize(awaiting, result.close)+        return awaiting+    return result++async def _await_owning_document_lock(session: ServerSession, awaitable: t.Awaitable) -> t.Any:+    with state._own_document_lock(session):+        return await awaitable

core implementation

holoviz/panel · #9101

Files changed →View PR ↗

fix: Do not echo frontend changes released by a hold back to their clientPython · 48 + / 6 −

Introduces 4 new declarations in panel/io/server.py.

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

panel/io/server.py ↗ · 3 files

@@ -796,17 +796,58 @@ def wrapper(self, *args, **kwargs):     wrapper._panel_tracks_lock = True  # type: ignore[attr-defined]     return wrapper ++def _tag_held_patch_events(func):+    """+    Records the connection a patch was received on on the frontend+    changes it leaves held on the Document. Bokeh only skips the+    originating connection while the patch is being applied, so when a+    hold dispatches the change later it would otherwise be echoed back+    to the client and revert anything changed there since.+    """+    @wraps(func)+    async def wrapper(self, message, connection):+        try:+            return await func(self, message, connection)+        finally:+            for event in list(self.document.callbacks._held_events):+                if getattr(event, 'setter', None) is self and getattr(event, '_panel_patch_connection', None) is None:+                    event._panel_patch_connection = connection+    return wrapper+++def _skip_patch_connection(document_patched):+    @wraps(document_patched)+    def wrapper(self, event):+        connection = getattr(event, '_panel_patch_connection', None)+        if connection is None:+            return document_patched(self, event)+        current = self._current_patch_connection+        self._current_patch_connection = connection+        try:+            return document_patched(self, event)

core implementation

huggingface/accelerate · #4573

Files changed →View PR ↗

Exit cleanly when using launcherPython · 100 + / 51 −

Introduces 7 new declarations in src/accelerate/commands/launch.py.

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

src/accelerate/commands/launch.py ↗ · 3 files

@@ -981,19 +986,65 @@ def launch_command_parser(subparsers=None):     return parser  -def simple_launcher(args):-    cmd, current_env = prepare_simple_launcher_cmd_env(args)+def _terminate_process_tree(process):+    processes = [process]+    # Capture descendants before stopping their parent, including workers in separate sessions.+    with suppress(psutil.NoSuchProcess):+        processes.extend(process.children(recursive=True))+    alive = processes+    try:+        for child in processes:+            with suppress(psutil.NoSuchProcess):+                child.terminate()+        _, alive = psutil.wait_procs(processes, timeout=5)+    except (KeyboardInterrupt, SystemExit):+        pass+    finally:+        for child in alive:+            with suppress(psutil.NoSuchProcess):+                child.kill()+        psutil.wait_procs(alive, timeout=5)+        process.wait()+ +def _run_subprocess(cmd, current_env, quiet):     # Tee the child's stderr: write it through as it arrives so output stays live, and keep the tail for the error.-    process = subprocess.Popen(cmd, env=current_env, stderr=subprocess.PIPE)+    process = psutil.Popen(cmd, env=current_env, stderr=subprocess.PIPE)     tail = deque(maxlen=CHILD_STDERR_TAIL_CHUNKS)-    while chunk := process.stderr.read1(CHILD_STDERR_CHUNK_SIZE):-        sys.stderr.buffer.write(chunk)

language design

huggingface/transformers · #50619

Files changed →View PR ↗

[Chat Parsing] Add `python-call-list` content parserPython · 153 + / 3 −

Introduces 13 new declarations in src/transformers/utils/chat_parsing/content_parsers.py.

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

src/transformers/utils/chat_parsing/content_parsers.py ↗ · 5 files

@@ -137,6 +139,153 @@ def _kv_lines(text: str, args: dict) -> dict:     return out  +_CALL_LIST_WHITESPACE = re.compile(r"[ \t\n\r]*")+_CALL_LIST_NAME = re.compile(r"[A-Za-z_][A-Za-z0-9_]*(?:[-.][A-Za-z0-9_]+)*")+_CALL_LIST_NUMBER = re.compile(r"-?(?:0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?")+_CALL_LIST_STRING = re.compile(r"""'((?:[^'\\\n\r]|\\.)*)'|"((?:[^"\\\n\r]|\\.)*)\"""", flags=re.DOTALL)+_CALL_LIST_UNICODE_ESCAPE = re.compile(r"u([0-9a-fA-F]{4})")+_CALL_LIST_SURROGATE = re.compile(r"[\ud800-\udfff]")+_CALL_LIST_LOW_SURROGATE = re.compile(r"\\u([dD][c-fC-F][0-9a-fA-F]{2})")+_CALL_LIST_ESCAPES = {"\\": "\\", "'": "'", '"': '"', "/": "/", "b": "\b", "f": "\f", "n": "\n", "r": "\r", "t": "\t"}+_CALL_LIST_CONSTANTS = {"True": True, "true": True, "False": False, "false": False, "None": None, "null": None}+_CALL_LIST_MAX_INTEGER = 2**53 - 1+_CALL_LIST_MAX_DEPTH = 100+++def _python_call_list(text: str, args: dict) -> list[dict]:+    """Parse a list of keyword-argument calls, e.g. `[get_weather(city="Paris")]`, into+    `[{"name": ..., "arguments": {...}}]`. The grammar is specified in `docs/source/en/chat_response_parsing.md`+    and is deliberately strict, so that implementations in other languages can match it exactly."""+    position = 0++    def fail(message: str) -> NoReturn:+        raise ValueError(f"python-call-list: {message} at position {position}.\nContent: {text!r}")++    def skip_whitespace() -> None:+        nonlocal position+        position = _CALL_LIST_WHITESPACE.match(text, position).end()++    def at(char: str) -> bool:+        skip_whitespace()+        return text.startswith(char, position)+

framework internals

vercel/next.js · #100690

Files changed →View PR ↗

Run the dev Cache Components validation in an OTel trace of its ownTypeScript · 190 + / 147 −

Introduces 3 new declarations in packages/next/src/server/app-render/app-render.tsx.

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

packages/next/src/server/app-render/app-render.tsx ↗ · 4 files

@@ -4848,167 +4851,173 @@ function runDevValidationInBackground(         return       } -      return runInstantInsightsWithTracing(ctx, async (runSpan) => {-        // Read whether the streamed render errored only now that it has fully-        // settled.-        const devRenderDidError = getDevRenderDidError()--        const [instantInputs, staticInputs] = await runSpan(-          AppRenderSpan.instantInsightsPrepareValidation,-          'Prepare validation inputs',-          async () => {-            const lazyInputs = await prepareValidationInputs(-              prefetchMode,-              navigationKind,-              result,-              requestStore,-              validationDebugChannel,-              ctx,-              prerenderResumeDataCache,-              createRequestStore,-              getPayload,-              onError,-              validationAbortSignal-            )+      return runInDevValidationTrace(ctx, renderSpanContext, () =>+        runInstantInsightsWithTracing(ctx, async (runSpan) => {+          // Read whether the streamed render errored only now that it has fully+          // settled.+          const devRenderDidError = getDevRenderDidError()++          const [instantInputs, staticInputs] = await runSpan(+            AppRenderSpan.instantInsightsPrepareValidation,

systems design

kubernetes/kubernetes · #143958

Files changed →View PR ↗

Resync watchers as they catch upGo · 89 + / 17 −

Introduces 5 new declarations in staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go.

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

staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go ↗ · 3 files

@@ -620,21 +654,32 @@ func (c *Cacher) resyncWatchers() { 			c.stopWatcherLocked(watcher, true) 			continue 		}-		if stalledWatchers.empty() {-			stalledWatchers = indexedWatchers{-				scopeWatchers: make(map[namespacedName]watchersMap),-				indexWatchers: make(map[string]watchersMap),-			}-			minResourceVersion = watcher.dispatchedResourceVersion-		} else if watcher.dispatchedResourceVersion < minResourceVersion {-			minResourceVersion = watcher.dispatchedResourceVersion-		}-		stalledWatchers.addWatcher(watcher)+		stalled = append(stalled, watcher) 	}+	return stalled+} -	if !stalledWatchers.empty() {-		c.resyncStalledWatchersLocked(&stalledWatchers, minResourceVersion)+func rsyncMinResourceVersion(candidates []*cacheWatcher, cursorRV uint64) uint64 {+	if minRV, ok := minDispatchedResourceVersion(candidates, cursorRV); ok {+		return minRV+	}+	minRV, _ := minDispatchedResourceVersion(candidates, 0)+	return minRV+}++func minDispatchedResourceVersion(watchers []*cacheWatcher, floorRV uint64) (uint64, bool) {+	var minRV uint64+	found := false+	for _, watcher := range watchers {+		if watcher.dispatchedResourceVersion < floorRV {

language design

rust-lang/rust · #165406

Files changed →View PR ↗

Do not suggest `as_deref` for a slice pattern on `Err`Rust · 84 + / 5 −

Introduces 6 new declarations in compiler/rustc_hir_typeck/src/pat.rs.

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

compiler/rustc_hir_typeck/src/pat.rs ↗ · 3 files

@@ -3309,6 +3317,77 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {         })     } +    fn slice_pattern_is_direct_payload(+        &self,+        top_pat_id: HirId,+        slice_id: HirId,+        is_option: bool,+    ) -> bool {+        let Some(ctor_id) = self.next_significant_pat(slice_id, top_pat_id) else {+            return false;+        };+        self.hir_pat_is_some_or_ok(ctor_id, is_option)+            && self.only_transparent_pats_until(ctor_id, top_pat_id)+    }++    /// First ancestor pattern that is not `&`, a guard, a binding, or an or-pattern.+    /// `None` when that walk reaches `top_pat_id` or leaves the pattern without one.+    fn next_significant_pat(&self, start: HirId, top_pat_id: HirId) -> Option<HirId> {+        for (id, node) in self.tcx.hir_parent_iter(start) {+            let hir::Node::Pat(pat) = node else { return None };+            if self.pat_is_transparent(pat) {+                if id == top_pat_id {+                    return None;+                }+                continue;+            }+            return Some(id);+        }+        None+    }++    /// `start` is `top_pat_id`, or every pattern from `start` up through `top_pat_id`

framework internals

vercel/next.js · #101748

Files changed →View PR ↗

turbo-tasks-backend: delay collectible propagation until tasks are cleanRust · 596 + / 21 −

Introduces 28 new declarations in turbopack/crates/turbo-tasks-backend/src/backend/operation/aggregation_update.rs.

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

turbopack/crates/turbo-tasks-backend/src/backend/operation/aggregation_update.rs ↗ · 20 files

@@ -5536,6 +5657,363 @@ mod follower_debt_tests {     } } +/// Deterministic tests of delayed collectible propagation (see `stage_outgoing_collectibles`).+#[cfg(test)]+mod delayed_collectibles_tests {+    use smallvec::smallvec;+    use turbo_tasks::{TaskPriority, TurboTasks};++    use super::{+        AggregatedDataUpdate, AggregationUpdateQueue, check_pending_collectibles_invariant,+        follower_debt_tests::{+            FOLLOWER, INNER, UPPER, add, aggregated, balance, collectible, id, remove, run,+            setup_with_data, uppers,+        },+        stage_outgoing_collectibles,+    };+    use crate::{+        backend::{+            TaskDataCategory, TurboTasksBackend,+            operation::{ExecuteContext, UpdateCollectibleOperation},+            storage_schema::TaskStorageAccessors,+        },+        data::{AggregationNumber, CellRef, CollectibleRef, Dirtyness},+    };++    fn set_dirty(tt: &TurboTasks<TurboTasksBackend>, task: u32, dirty: bool) {+        let mut ctx = ExecuteContext::new(tt);+        let job = {+            let mut task = ctx.task(id(task), TaskDataCategory::All);+            task.update_dirty_state(dirty.then_some(Dirtyness::Dirty {+                parent_priority: TaskPriority::leaf(),+                #[cfg(feature = "task_dirty_cause")]

Read today’s edition →