Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
166443 stories
·
33 followers

I tried out Minecraft modding

1 Share

This is a very different topic from what I normally do, I know! But there are so many things in the modding scene that I was surprised about due to my background that I had to write about it. If anyone is following me due to the posts on performance, low-level coding, and algorithms, I think you might appreciate the change in perspective I approach this from.

Read the whole story
alvinashcraft
47 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Does Stop Reach the Model? Test Cancellation Through a Real Next.js Route

1 Share

A Stop button can freeze the text on screen while the server continues generating. From the user's perspective, the interaction has ended. From the provider's perspective, work may still be running.

That gap crosses several boundaries: the component, the HTTP connection, the Next.js request signal, the AI SDK, and the provider adapter. Testing only a callback or a route-shaped function leaves the runtime boundary untested.

The companion package starts a real local Next.js server and sends HTTP requests through an App Router route. A deterministic provider fixture makes completion, cancellation, and failure observable without a cloud API key.

Make the cancellation chain explicit

The client creates one AbortController for each generation. Stop aborts that controller. Starting another generation aborts the previous controller and increments a generation identifier, so a late result cannot update the new interaction.

The server forwards the request's signal into the model operation:

const result = streamText({
  model,
  prompt: "Generate a synthetic fixture.",
  maxRetries: 0,
  abortSignal: req.signal,
  onAbort: () => finish("aborted"),
  onError: () => finish("failed"),
  onEnd: () => finish(req.signal.aborted ? "aborted" : "completed"),
});

This excerpt targets the tested ai@7.0.177 contract. The registry has moved since that run, so keep the lockfile when reproducing it and re-check callback names before upgrading. Copying examples from another major or patch version can change the behavior under discussion.

AI SDK's stopping guide explains the signal path and runtime dependency. Forwarding req.signal matters only if the server runtime propagates the disconnected client into that signal.

Client abort travels through the HTTP request and route signal to the provider; completed, aborted, and failed remain distinct terminal records.

Use a provider that can expose the boundary

The fixture uses the SDK's testing utilities and MockLanguageModelV4. It emits a first text chunk immediately, then follows one of three modes.

In completion mode it finishes normally. In hold mode it waits, giving the client a deterministic opportunity to disconnect after receiving data. In error mode it emits a provider error through the model stream protocol.

The provider also observes the signal passed by the SDK and records provider-abort-observed. That record is the important addition. A client-side AbortError alone cannot prove the server or provider observed cancellation.

The fixture performs no external inference. Its purpose is to test signal propagation and terminal-state handling through the framework, not to measure a provider's billing or cancellation latency.

Keep one terminal state per operation

The route creates a server-generated run identifier and uses a small guard around terminal recording:

let terminal = false;
const finish = (event: string) => {
  if (!terminal) {
    terminal = true;
    record(id, event);
  }
};

Several lifecycle events can occur near one another. A provider error can be followed by response closure; an abort can race with final stream handling. The guard prevents a later callback from rewriting an operation that already has a terminal result.

The package keeps a bounded in-memory journal solely for the local experiment. A production implementation would use durable, access-controlled telemetry and a defined policy for partial output. The journal endpoint is not a production trace API.

Do not lose errors during stream conversion

The route returns a text stream using createTextStreamResponse() and toTextStream(). A plain text channel contains text; it does not automatically communicate every structured provider event to the client.

The example therefore checks the full stream for error parts before converting text deltas. An error terminates the response stream, allowing the client's read loop to enter its failure path. The server records the provider failure separately.

This detail emerged while testing the fixture. Simply throwing from the synthetic stream producer did not exercise the intended provider-error callback path. Emitting the model protocol's error part and testing the response boundary produced an inspectable failure case.

For a richer chat interface, use a protocol that carries structured lifecycle events and define how partial text is presented after failure. The small text fixture keeps the cancellation experiment readable.

Test over HTTP, after the first chunk

The test launches the pinned Next.js development server, waits for the route to become available, and exercises all three modes. It does not call the route handler directly.

For cancellation, it reads the first response chunk, aborts the client request, and waits for both the server's aborted record and the provider's abort observation. It asserts that the run was not also recorded as completed.

For normal completion, it consumes the response and checks the completed record. For provider failure, it checks the failed record and verifies that completion was not recorded.

That real HTTP test passed locally with Next.js 16.4.6 and AI SDK 7.0.177 on Node 24. It establishes behavior for the tested local runtime and synthetic provider. It does not establish behavior behind a deployed proxy or with an external provider.

Check the deployment boundary separately

Next.js Route Handlers use web request and response APIs, but hosting behavior still matters. The AI SDK guidance calls out cancellation support for the relevant Vercel function configuration; the package includes supportsCancellation: true in its deployment example.

No deployment was performed for this article. Repeat the same first-chunk cancellation test against the intended hosting environment and provider before claiming that Stop halts production generation.

Also decide whether the product needs resumable streams. The SDK documents constraints between abort-based stopping and resumable streaming; they should not be enabled as independent conveniences without considering their interaction.

Make Stop a verified behavior

The client also aborts on unmount and ignores stale generations. Those measures keep the UI coherent. The HTTP test establishes the deeper claim: in the tested setup, the cancellation request reaches the provider boundary.

That is the useful standard for an AI interface. A button label describes an intention; an observed signal chain shows what the application actually stops.

Read the whole story
alvinashcraft
47 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

The Last Human Release of SQLite

1 Share
"SQLite version 3.54.1, which is the last public release, was 100% human written," D. Richard Hipp tells HackerNoon. But "That will be the last release like that." The bug reports come in all day now. They come in constantly, he says, and they keep coming while a man in his sixties sits in Charlotte, North Carolina, reading them one by one. Some days there are ten, some days twenty. On a couple of days this autumn there were more than forty. On the morning I talk to him, December 3, 2026, thirteen had already come in. Most of them weren't written by a person. "Something happened in the middle of October, and I don't know what," D. Richard Hipp tells me over a video call. "Suddenly we just got this huge onslaught." Most of the reports are "trivial little things that a human would never hit." Many aren't bugs at all; the machine has misread the documentation. "But regardless of whether they're true or false, they still have to be analyzed and classified and dealt with, and it takes time." His team used to handle three or four bugs a day. He hasn't been away from the screen much since. "I feel like the past few months I've been at battle," he says. "... Bugs are coming in constantly, and the orc hordes are at the gate; I have to hold the line." It's a beautiful 5,000-word profile written by systems engineer Bruce Li. "Look at Hipp's tools and you start to see the shape of the man. His parser generator: he wrote it. His bug tracker: he wrote it. His web server, which serves sqlite.org: he wrote it. His version control system, Fossil: he wrote it, because he found Git 'a perfectly atrocious version control system for working for SQLite'..." But the profile also conveys the responsibility of maintaining SQLite, the most widely deployed database engine in the world, running in every iPhone and Android phone, in Chrome, Firefox and Safari, and in the flight software of the Airbus A350. In the ballad, John Henry beats the steam drill and dies with his hammer in his hand. Hipp has made a different choice. He has started using the machine himself. The tests can tell him whether a fix is safe. They can't write the fix. To keep up, Hipp and his team now hand bug reports to AI agents. "I say, 'Hey, look at this bug report. Tell me what you think.' And it'll propose a patch and some test cases. But then I'll push back. I say, 'Well, is that the right way to do it? What about this other way?' And 'Oh, I didn't think of that.'" He usually goes back and forth several times before it's right. A typical patch is one or two lines of code, with thirty or forty lines of new tests, and the agents, he says, "are very good at writing that test code...." And the public-domain promise, guarded for twenty-five years with signed affidavits in a fire-safe, now has a new chapter. "We are operating under the assumption that agentic code is public domain," Hipp says. "That's untested legal ground; that's what we're going with." His standard for the code itself is strict: "You cannot tell which part is written by us and which part is written by the agents. If you can tell, then we have not done it right...." In the mornings he searches Twitter for "SQLite," just to get a sense of what people are saying. He has told [his wife] Ginger that the current pace is unsustainable. But the reports are slowing, and they're getting stranger, which he takes as a good sign. "Knock on wood," he says. Later in our conversation, he sounds more confident: "Lately I'm beginning to think the lines will hold, and that we will be able to prevail against the onslaught. That's not completely settled, but it's looking hopeful."

Read more of this story at Slashdot.

Read the whole story
alvinashcraft
48 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Tidal Is Building a Safe Haven From AI Music Slop

1 Share
Tidal is about to scrub 29 million AI-generated songs from its platform and will ban any future uploads. It’s part of an effort to appease artists and listeners.
Read the whole story
alvinashcraft
48 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

WinGet’s COM API Can Crash Its Server Process: Proposed Fix Adds Input Validation

1 Share

Insufficient input validation in WinGet’s COM API can cause its server process to crash in a specific Windows 11 environment. A proposed fix checks inputs so the server can return an error and continue processing requests.

Key points

  • What happened: A WinGet COM API crash was reported on a specific Windows 11 setup, and a proposed fix addresses insufficient input validation.
  • Proposed fix: The patch validates input for operations such as package searches and returns errors such as E_INVALIDARG for invalid arguments.

Read the full article on Joho no Todai · Japanese original

Read the whole story
alvinashcraft
49 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Inside tech’s fastest-growing role: Why everyone is hiring forward deployed engineers | Jack Gaul (Founding Deployed SWE @ Serval)

1 Share

Forward deployed engineering is the fastest-growing role in tech, with job postings up 400% in the past year, yet few people understand what an FDE actually does. Jack Gaul is the Lead Deployed Software Engineer at Serval, the AI-native ServiceNow challenger now valued at over $3 billion. He joined as employee number eight and helped build the FDE org. Interestingly, Serval has never hired a product manager.

We discuss:

1. What a forward deployed engineer actually does

2. Why FDE is the fastest-growing role in tech right now

3. The three core skills every great FDE needs

4. How to say no

5. Why moving into deployment may be the best career move for PMs right now

—

Brought to you by:

WorkOS—Make your app enterprise-ready, with SSO, SCIM, RBAC, and more

DX—Engineering intelligence for the AI era

—

Episode recorded on November 19th, 2026

—

Episode transcript: https://www.lennysnewsletter.com/p/inside-techs-fastest-growing-role

MCP of all Lenny’s Podcast transcripts: https://lennysdata.com/

Highlights: https://lennyspodcast.com/mostreplayedmoments

—

Where to find Jack Gaul:

• LinkedIn: https://www.linkedin.com/in/jack-tone-gaul

• X: https://x.com/tone_it_downn

—

Where to find Lenny:

• Newsletter: https://www.lennysnewsletter.com

• X: https://twitter.com/lennysan

• LinkedIn: https://www.linkedin.com/in/lennyrachitsky/

—

In this episode, we cover:

(00:00) Teaser

(01:17) The fastest-growing role in tech

(03:53) What a forward deployed engineer is

(07:41) Why demand for FDEs is exploding

(14:02) Easy to build, hard to build the right thing

(17:01) What it takes to be a great FDE

(20:14) Inside Serval’s deployment org

(22:32) Deployment strategists vs. PMs

(27:09) Engineering through the AI shift

(30:13) Which companies this model fits

(31:58) Are PMs cooked?

(37:29) How to break into the role

(40:45) A day in the life

(44:02) Building with no central PM

(53:33) Who this model is right for

(56:47) Jake Stauch’s question: build or push back?

(01:04:49) The hardest part to hire for

(01:10:06) Counter-excavation

(01:13:31) Pilots as proof

(01:16:36) Match the rigor to the work

(01:23:35) The future of jobs

(01:25:16) Lightning round and final thoughts

—

References: https://www.lennysnewsletter.com/p/inside-techs-fastest-growing-role

—

Recommended books:

• The Mythical Man-Month: Essays on Software Engineering: https://www.amazon.com/Mythical-Man-Month-Software-Engineering-Anniversary/dp/0201835959

• Sapiens: A Brief History of Humankind: https://www.amazon.com/dp/B0741F3M7C

• The Mathematical Theory of Communication: https://www.amazon.com/dp/0252725484

—

Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email podcast@lennyrachitsky.com.

—

Lenny may be an investor in the companies discussed.



To hear more, visit www.lennysnewsletter.com



Download audio: https://pscrb.fm/rss/p/api.substack.com/feed/podcast/225823589/297e90c7ab707445f816611b1ebb93ab.mp3
Read the whole story
alvinashcraft
49 minutes ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories