Daily edition

Nov 27, 2026

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

Nov 28, 20265 reads · 101 merged PRs screened

core implementation

huggingface/transformers · #50586

Files changed →View PR ↗

Add native loss support for JEV decision modelsPython · 131 + / 4 −

Introduces 4 new declarations in src/transformers/loss/loss_jev.py.

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

src/transformers/loss/loss_jev.py ↗ · 7 files

@@ -0,0 +1,86 @@+# Copyright 2026 The HuggingFace Team. All rights reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+#     http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+import torch+from torch.nn import functional as F+++def masked_log_softmax(scores: torch.Tensor, option_mask: torch.Tensor) -> torch.Tensor:+    """Compute stable log probabilities over the active options of each question."""+    scores = scores.float().masked_fill(~option_mask, -torch.inf)+    # Exclude the maximum before log1p to retain tiny losses and target gradients at confident predictions.+    maximum = scores.argmax(-1, keepdim=True)+    is_maximum = torch.arange(scores.shape[-1], device=scores.device) == maximum+    shifted = torch.where(is_maximum, 0.0, scores - scores.gather(-1, maximum))+    others = shifted.exp().masked_fill(is_maximum, 0.0).sum(-1, keepdim=True)+    return (shifted - torch.log1p(others)).masked_fill(~option_mask, 0.0)+++def ranked_probability_score(+    probabilities: torch.Tensor, targets: torch.Tensor, num_options: torch.Tensor+) -> torch.Tensor:+    """Average the squared CDF error over the gaps between adjacent ranks."""+    difference = probabilities.cumsum(-1) - targets.cumsum(-1)

language design

rust-lang/rust · #166586

Files changed →View PR ↗

abby test dsl: one binder to rule them allRust · 312 + / 210 −

Introduces 15 new declarations in compiler/rustc_hir_analysis/src/check/wfcheck.rs.

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

compiler/rustc_hir_analysis/src/check/wfcheck.rs ↗ · 23 files

@@ -2423,8 +2426,138 @@ impl<'tcx> WfCheckingCtxt<'_, 'tcx> {         }     } +    // The binder here is not a normal binder. Consider the following:+    //+    // core::test_binder_constraints! {+    //     impl {+    //         forall<'a> { exists<'b> { 'b: 'a } },+    //         forall<'c> { },+    //         'a: 'b,+    //     }+    // }+    //+    // To allow testing uses of leaked variables, this is lowered to something like the following:+    //+    // core::test_binder_constraints! {+    //     impl {+    //         for<'a, 'b, 'c> {+    //             forall { exists { 'b: 'a } },+    //             forall { },+    //             'a: 'b,+    //         }+    //     }+    // }+    //+    // but we remember where 'a, 'b, and 'c came from. This outer binder is then instantiated with a+    // bit of a cursed set of arguments, with potentially different universes used for each arg:+    //+    // 'a => placeholder in universe 1+    // 'b => existential in universe 1+    // 'c => placeholder in universe 2+    #[instrument(level = "debug", skip(self))]+    pub(super) fn check_test_binder_constraints(

framework internals

vercel/next.js · #102405

Files changed →View PR ↗

[image-optimizer] Add request cancellation support when using nsioTypeScript · 260 + / 66 −

Introduces 3 new declarations in packages/next/src/server/response-cache/index.ts.

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

packages/next/src/server/response-cache/index.ts ↗ · 13 files

@@ -493,24 +513,35 @@ export default class ResponseCache implements ResponseCacheBase {     responseGenerator: ResponseGenerator,     previousIncrementalCacheEntry: IncrementalResponseCacheEntry | null,     hasResolved: boolean,-    waitUntil?: (prom: Promise<any>) => void+    {+      waitUntil,+      signal,+    }: {+      waitUntil?: (prom: Promise<any>) => void+      signal?: AbortSignal+    } = {}   ) {-    return this.revalidateBatcher.batch(key, () => {-      const promise = this.handleRevalidate(-        key,-        incrementalCache,-        isRoutePPREnabled,-        isFallback,-        responseGenerator,-        previousIncrementalCacheEntry,-        hasResolved-      )+    return this.revalidateBatcher.batch(+      key,+      ({ signal: batchSignal }) => {+        const promise = this.handleRevalidate(+          key,+          incrementalCache,+          isRoutePPREnabled,+          isFallback,+          responseGenerator,+          previousIncrementalCacheEntry,+          hasResolved,

language design

denoland/deno · #37102

Files changed →View PR ↗

fix(install): correct skipped-script advice for global installsRust · 38 + / 4 −

Introduces 1 new declaration in libs/npm_installer/lifecycle_scripts.rs.

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

libs/npm_installer/lifecycle_scripts.rs ↗ · 11 files

@@ -118,6 +118,22 @@ pub trait LifecycleScriptsExecutor: Sync + Send {   ) -> Result<(), AnyError>; } +pub(crate) fn scripts_run_hint(is_global_install: bool) -> String {+  use deno_terminal::colors;++  if is_global_install {+    format!(+      "Re-run this installation with \"{}\" to run build scripts.",+      colors::bold("--allow-scripts --force")+    )+  } else {+    format!(+      "Run \"{}\" to run build scripts.",+      colors::bold("deno approve-scripts")+    )+  }+}+ pub trait LifecycleScriptsStrategy {   fn can_run_scripts(&self) -> bool {     true

runtime

nodejs/node · #67768

Files changed →View PR ↗

sqlite: fix abort on oversized SQL textC++ · 15 + / 7 −

Reworks 21 lines of existing logic in src/node_sqlite.cc.

Changes how existing runtime behaves. Tests changed with it, with code of their own.

src/node_sqlite.cc ↗ · 2 files

@@ -3386,10 +3386,15 @@ int Database::TraceCallback(unsigned int type,   Isolate* isolate = env->isolate();   HandleScope handle_scope(isolate); +  // With the default length of -1, V8 aborts on strings over kMaxLength.   char* expanded = sqlite3_expanded_sql(static_cast<sqlite3_stmt*>(p));   Local<Value> sql_string;   if (expanded != nullptr) {-    bool ok = String::NewFromUtf8(isolate, expanded).ToLocal(&sql_string);+    bool ok = String::NewFromUtf8(isolate,+                                  expanded,+                                  NewStringType::kNormal,+                                  static_cast<int>(strlen(expanded)))+                  .ToLocal(&sql_string);     sqlite3_free(expanded);     if (!ok) {       return 0;

Read today’s edition →