7-day edition

Nov 17, 2026 – Nov 23, 2026

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

Nov 24, 202612 reads · 953 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

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

Files changed →View PR ↗

fix: Fire Tabulator on_edit when its edit event arrives after the data patchPython · 51 + / 7 −

Introduces 4 new declarations in panel/widgets/tables.py.

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

panel/widgets/tables.py ↗ · 3 files

@@ -1879,17 +1912,28 @@ def _process_event(self, event) -> None:         for cb in self._on_click_callbacks.get(event_col, []):             state.execute(partial(cb, event), schedule=False) +    def _edit_applied(self, event: TableEditEvent, column: str, indexed: bool) -> bool:+        if _values_equal(event.old, event.value) or not (0 <= event.row < len(self.value)):+            return False+        if indexed:+            current = self.value[column].iloc[event.row]+        else:+            current = to_narwhals(self.value).item(event.row, column)+        return _values_equal(current, event.value)+     def _fire_pending_edits(self, column: str, index) -> None:         if not self._pending_edits:             return         for ind in index:             events = self._pending_edits.pop((column, ind), None)-            if not events:-                continue-            for event in events:-                for cb in self._on_edit_callbacks:-                    state.execute(partial(cb, event), schedule=False)-            self._update_style()+            if events:+                self._fire_edits(events)++    def _fire_edits(self, events: list[TableEditEvent]) -> None:+        for event in events:+            for cb in self._on_edit_callbacks:+                state.execute(partial(cb, event), schedule=False)+        self._update_style()      def _get_theme(self, theme, resources=None):

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

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)+

core implementation

numpy/numpy · #33417

Files changed →View PR ↗

TST: fix flaky memory growth testsPython · 47 + / 20 −

Introduces 5 new declarations in numpy/testing/_private/utils.py.

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

numpy/testing/_private/utils.py ↗ · 3 files

@@ -2924,24 +2924,42 @@ def run_subprocess(cmd, cwd=None, **kwargs):     return res  +def run_function_with_args_in_subprocess(func, *args):+    """Call ``func(*args)`` in a new Python subprocess, failing the test if+    it raises.++    ``func`` must be a module-level function and ``args`` must survive a+    round trip through `repr`.+    """+    import pytest++    if not HAS_SUBPROCESSES:+        pytest.skip("requires subprocesses")+    location = (func.__module__,+                getattr(sys.modules[func.__module__], "__file__", None),+                func.__qualname__)+    code = ("from numpy.testing._private.utils import _load_function; "+            f"_load_function(*{location!r})(*{args!r})")+    run_subprocess([sys.executable, "-c", code])++ def run_with_memory_limit(func, make_args, limit):     """Fail the test if any call needs more than ``limit`` bytes of address     space beyond what the process already uses.      ``make_args()`` returns a mapping of labels to argument tuples, and     ``func(*args)`` runs for each of them.  Both run in a fresh subprocess, so     they must be module-level functions, and each call runs in its own forked-    child of that subprocess.  Runs on Linux and on arm64 macOS 26 or later.+    child of that subprocess.  Runs on Linux only.     """     import pytest

language design

rust-lang/rust · #166259

Files changed →View PR ↗

fmt: Improve `Debug` for `FormattingOptions`Rust · 68 + / 1 −

Introduces 3 new declarations in library/core/src/fmt/mod.rs.

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

library/core/src/fmt/mod.rs ↗ · 2 files

@@ -535,6 +535,49 @@ impl FormattingOptions {     pub const fn create_formatter<'a>(self, write: &'a mut (dyn Write + 'a)) -> Formatter<'a> {         Formatter { options: self, buf: write }     }++    /// Recreate a format specifier like `-<04x` matching these options. Public only for testing.+    #[doc(hidden)]+    #[unstable(feature = "fmt_internals", issue = "none")]+    pub fn write_fmt_specifier(&self, f: &mut Formatter<'_>, str_escape: bool) -> Result {+        let fill = self.get_fill();+        if fill != ' ' {+            if str_escape {+                write!(f, "{}", fill.escape_debug())?;+            } else {+                write!(f, "{fill}")?;+            }+        }+        match self.get_align() {+            Some(Alignment::Left) => write!(f, "<")?,+            Some(Alignment::Right) => write!(f, ">")?,+            Some(Alignment::Center) => write!(f, "^")?,+            None => (),+        }+        match self.get_sign() {+            Some(Sign::Plus) => write!(f, "+")?,+            Some(Sign::Minus) => write!(f, "-")?,+            None => (),+        }+        if self.get_alternate() {+            write!(f, "#")?;+        }+        if self.get_sign_aware_zero_pad() {+            write!(f, "0")?;+        }

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,

language design

rust-lang/rust · #165618

Files changed →View PR ↗

Implement RangeIntersect on core::range typesRust · 450 + / 71 −

Introduces 60 new declarations in library/core/src/range.rs.

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

library/core/src/range.rs ↗ · 4 files

@@ -759,3 +760,452 @@ where         (OneSidedRangeBound::EndInclusive, self.last)     } }++/// Computes the intersection of two ranges, returning the most specific range type possible.+///+/// This trait is not implemented for all combinations, only the ones with a good+/// `Self::Intersection` type available.+///+/// However, because `(Bound<T>, Bound<T>): RangeIntersect`, you can always use+/// `a.into_bounds().intersect(b.into_bounds())` for any two [`IntoBounds`] types if needed.+///+/// # Examples+///+/// ```+/// #![feature(range_intersect)]+/// use core::range::{Range, RangeFrom, RangeInclusive, RangeIntersect};+///+/// assert_eq!(+///     Range::from(-12..387).intersect(Range::from(0..256)),+///     Range::from(0..256),+/// );+/// assert_eq!(+///     RangeFrom::from(3..).intersect(..5),+///     Range::from(3..5),+/// );+/// assert_eq!(+///     RangeInclusive::from(1..=9).intersect(RangeFrom::from(5..)),+///     RangeInclusive::from(5..=9),+/// );+/// ```+///+/// Combine with `is_empty` to determine if two ranges overlap:

framework internals

vercel/next.js · #102016

Files changed →View PR ↗

Turbopack: diff server HMR pulls against a Rust-owned loaded-module setRust · 666 + / 505 −

Introduces 44 new declarations in crates/next-api/src/aggregate_hmr.rs.

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

crates/next-api/src/aggregate_hmr.rs ↗ · 27 files

@@ -199,321 +422,251 @@ impl CompilationEvent for ServerHmrChunkListDiffEvent {     } } -async fn diff_chunks_against(-    chunk_lists: &[ServerHmrChunkList],-    from: &ServerHmrChunkListVersion,-) -> Result<DiffResult> {-    let current_chunk_list_paths = chunk_lists-        .iter()-        .map(|chunk_list| &chunk_list.relative_path)-        .collect::<FxIndexSet<_>>();-    let has_removed_chunk_lists = from-        .versions_by_chunk_list_path-        .keys()-        .any(|path| !current_chunk_list_paths.contains(path));-    let mut has_new_chunk_lists = false;-    let chunk_updates = chunk_lists-        .iter()-        .filter_map(-            |ServerHmrChunkList {-                 relative_path,-                 versioned_content,-             }| {-                if *TRACE_DIFFING {-                    turbo_tasks().send_compilation_event(Arc::new(ServerHmrChunkListDiffEvent {-                        chunk_list_path: relative_path.clone(),-                    }));-                }-                let Some(prev) = from.versions_by_chunk_list_path.get(relative_path).cloned()-                else {-                    has_new_chunk_lists = true;-                    return None;-                };

core implementation

NVIDIA-NeMo/Speech · #16632

Files changed →View PR ↗

fix(asr): keep decoding after <EOU> on multi-utterance audioPython · 353 + / 27 −

Introduces 14 new declarations in nemo/collections/asr/parts/mixins/mixins.py.

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

nemo/collections/asr/parts/mixins/mixins.py ↗ · 6 files

@@ -778,6 +798,200 @@ def conformer_stream_step(          return tuple(result) +    def decode_chunk_with_restart(+        self,+        encoded: Tensor,+        encoded_len: Tensor,+        processed_signal: Tensor,+        processed_signal_length: Tensor,+        hypotheses: Optional[List[Optional[Hypothesis]]],+        caches: tuple,+        restart_token_ids: List[int],+        keep_all_outputs: Union[bool, List[bool]] = True,+        drop_extra_pre_encoded: int = 0,+    ) -> tuple:+        """+        Greedy-decode one cache-aware streaming chunk, restarting from a fresh state after each token from+        ``decoding.restart_after_tokens`` (e.g. ``<EOU>``). End-of-utterance models are trained on single utterances+        and stop emitting tokens after ``<EOU>`` otherwise.++        For a stream that emits a restart token at chunk frame ``t``, the frames up to ``t`` are re-decoded from the+        previous decoder state, then the decoder state is reset and the rest of the chunk is re-encoded with a fresh+        encoder cache (repeated as needed). A restart token on the last frame resets the state for the next chunk.+        The ``length`` of the returned hypotheses is the total number of encoder frames decoded for the stream.++        Args:+            encoded: encoder output of the chunk [B, D, T].+            encoded_len: number of valid encoder frames per stream [B].+            processed_signal: chunk features [B, F, T_feat] (including the pre-encode cache).+            processed_signal_length: number of valid features per stream [B].+            hypotheses: raw hypotheses carried from the previous chunk (updated in place), or None.+            caches: (cache_last_channel, cache_last_time, cache_last_channel_len) after encoding the chunk.+            restart_token_ids: ids of the restart tokens.

Read today’s edition →