Daily edition

Nov 28, 2026

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

Nov 29, 20265 reads · 66 merged PRs screened

framework internals

vercel/next.js · #102505

Files changed →View PR ↗

[CC] Allow scheduling sequential tasks via setImmediateTypeScript · 229 + / 1 −

Introduces 3 new declarations in packages/next/src/server/app-render/app-render-scheduling/immediate-scheduler.ts.

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-scheduling/immediate-scheduler.ts ↗ · 20 files

@@ -0,0 +1,165 @@+import { InvariantError } from '../../../shared/lib/invariant-error'+import { unpatchedSetImmediate } from '../../node-environment-extensions/fast-set-immediate.external'+import type { SequentialTaskScheduler } from './types'++let hasBadSetImmediate = false++function warnAboutSetImmediate() {+  console.warn(+    "Next.js cannot guarantee that Cache Components will run as expected due to the current runtime's implementation of `setImmediate()`.\nPlease report a github issue here: https://github.com/vercel/next.js/issues/new/"+  )+}++const enum ExecutionState {+  Before = 1,+  ScheduledTasks = 2,+  ExecutingTasks = 3,+  Finished = 4,+}++type Execution = {+  state: ExecutionState+  pendingTimeout: NodeJS.Timeout | null+}++/**+ * Allows scheduling multiple tasks that are guaranteed to run in the same iteration of the event loop.+ * Conceptually equivalent to calling `setImmediate(cb)` for each callback.+ *+ * @param tasks - the callbacks to run. NOTE: the array is cleared after tasks are executed or aborted.+ * */+export const scheduleSequentialTasks: SequentialTaskScheduler = (+  tasks,+  signal

runtime

ggml-org/llama.cpp · #33164

Files changed →View PR ↗

unicode : speed up tokenizationC++ · 37 + / 50 −

Reworks 79 lines of existing logic in src/unicode.cpp.

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

src/unicode.cpp ↗ · 3 files

@@ -1439,33 +1429,30 @@ static std::vector<size_t> unicode_regex_split_custom(const std::string & text, // interface // -std::string unicode_cpt_to_utf8(uint32_t cpt) {-    std::string result;-+static void unicode_cpt_to_utf8(uint32_t cpt, std::string & out) {     if (/* 0x00 <= cpt && */ cpt <= 0x7f) {-        result.push_back(cpt);-        return result;-    }-    if (0x80 <= cpt && cpt <= 0x7ff) {-        result.push_back(0xc0 | ((cpt >> 6) & 0x1f));-        result.push_back(0x80 | (cpt & 0x3f));-        return result;-    }-    if (0x800 <= cpt && cpt <= 0xffff) {-        result.push_back(0xe0 | ((cpt >> 12) & 0x0f));-        result.push_back(0x80 | ((cpt >> 6) & 0x3f));-        result.push_back(0x80 | (cpt & 0x3f));-        return result;-    }-    if (0x10000 <= cpt && cpt <= 0x10ffff) {-        result.push_back(0xf0 | ((cpt >> 18) & 0x07));-        result.push_back(0x80 | ((cpt >> 12) & 0x3f));-        result.push_back(0x80 | ((cpt >> 6) & 0x3f));-        result.push_back(0x80 | (cpt & 0x3f));-        return result;+        out.push_back(cpt);+    } else if (cpt <= 0x7ff) {+        out.push_back(0xc0 | ((cpt >> 6) & 0x1f));+        out.push_back(0x80 | (cpt & 0x3f));+    } else if (cpt <= 0xffff) {

language design

rust-lang/rust · #166693

Files changed →View PR ↗

Make function signatures a separate type in `rustc_codegen_llvm`Rust · 105 + / 72 −

Introduces 22 new declarations in compiler/rustc_codegen_llvm/src/builder.rs.

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

compiler/rustc_codegen_llvm/src/builder.rs ↗ · 11 files

@@ -1804,16 +1804,10 @@ impl<'a, 'll, CX: Borrow<SCx<'ll>>> GenericBuilder<'a, 'll, CX> {      pub(crate) fn check_call<'b>(         &mut self,-        typ: &str,-        fn_ty: Type<'ll>,+        fn_ty: FunctionSignature<'ll>,         llfn: Value<'ll>,         args: &'b [Value<'ll>],     ) -> Cow<'b, [Value<'ll>]> {-        assert!(-            self.cx.type_kind(fn_ty) == TypeKind::Function,-            "builder::{typ} not passed a function, but {fn_ty:?}"-        );-         let param_tys = self.cx.func_params_types(fn_ty);          let all_args_match = iter::zip(&param_tys, args.iter().map(|&v| self.cx.val_ty(v)))

runtime

nodejs/node · #67626

Files changed →View PR ↗

v8: add heap profiling setSampleIntervalC++ · 243 + / 9 −

Reworks 83 lines of existing logic in src/node_worker.cc.

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

src/node_worker.cc ↗ · 14 files

@@ -1058,6 +1058,84 @@ class WorkerHeapProfileTaker final : public AsyncWrap {   SET_SELF_SIZE(WorkerHeapProfileTaker) }; +void Worker::SetHeapProfileSampleInterval(+    const FunctionCallbackInfo<Value>& args) {+  Worker* w;+  ASSIGN_OR_RETURN_UNWRAP(&w, args.This());+  Environment* env = w->env();+  CHECK_EQ(args.Length(), 1);+  CHECK(args[0]->IsNumber());+  double interval = args[0].As<Number>()->Value();+  CHECK_GE(interval, 1);+  CHECK_LE(interval, kMaxSafeJsInteger);++  AsyncHooks::DefaultTriggerAsyncIdScope trigger_id_scope(w);+  Local<Object> wrap;+  if (!env->worker_heap_profile_taker_template()+           ->NewInstance(env->context())+           .ToLocal(&wrap)) {+    return;+  }+  BaseObjectPtr<WorkerHeapProfileTaker> taker =+      MakeDetachedBaseObject<WorkerHeapProfileTaker>(env, wrap);+  bool queued = w->RequestInterrupt([taker = std::move(taker), env, interval](+                                        Environment* worker_env) mutable {+    auto* profiler = worker_env->isolate()->GetHeapProfiler();+    profiler->SetSamplingHeapProfilerInterval(static_cast<uint64_t>(interval));+    env->SetImmediateThreadsafe(+        [taker = std::move(taker)](Environment* env) mutable {+          Isolate* isolate = env->isolate();+          HandleScope handle_scope(isolate);+          Context::Scope context_scope(env->context());+          AsyncHooks::DefaultTriggerAsyncIdScope trigger_id_scope(taker.get());

language design

denoland/deno · #37241

Files changed →View PR ↗

fix(cli): accept --unstable-tsgo againRust · 40 + / 8 −

Introduces 1 new declaration in runtime/features/gen.rs.

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

runtime/features/gen.rs ↗ · 8 files

@@ -183,36 +183,44 @@ pub static UNSTABLE_FEATURES: &[UnstableFeatureDefinition] = &[     id: 21,     kind: UnstableFeatureKind::Runtime,   },+  UnstableFeatureDefinition {+    name: "tsgo",+    flag_name: "unstable-tsgo",+    help_text: "Enable unstable TypeScript Go integration",+    show_in_help: true,+    id: 22,+    kind: UnstableFeatureKind::Cli,+  },   UnstableFeatureDefinition {     name: "unsafe-proto",     flag_name: "unstable-unsafe-proto",     help_text: "Enable unsafe __proto__ support. This is a security risk.",     show_in_help: true,-    id: 22,+    id: 23,     kind: UnstableFeatureKind::Runtime,   },   UnstableFeatureDefinition {     name: "vsock",     flag_name: "unstable-vsock",     help_text: "Enable unstable VSOCK APIs",     show_in_help: false,-    id: 23,+    id: 24,     kind: UnstableFeatureKind::Runtime,   },   UnstableFeatureDefinition {     name: "webgpu",     flag_name: "unstable-webgpu",     help_text: "Enable unstable WebGPU APIs",

Read today’s edition →