<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yash Rastogi on Medium]]></title>
        <description><![CDATA[Stories by Yash Rastogi on Medium]]></description>
        <link>https://medium.com/@yrastogi90?source=rss-df8eb9c0fbd8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*85ilAp1hQrpmYB94lHA10Q.jpeg</url>
            <title>Stories by Yash Rastogi on Medium</title>
            <link>https://medium.com/@yrastogi90?source=rss-df8eb9c0fbd8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:43:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yrastogi90/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Practice Speaking English Every Day for Free (Even If You’re Shy)]]></title>
            <link>https://medium.com/@yrastogi90/how-to-practice-speaking-english-every-day-for-free-even-if-youre-shy-719ec6f8e52b?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/719ec6f8e52b</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[english-learning]]></category>
            <category><![CDATA[spoken-english]]></category>
            <category><![CDATA[interview-preparation]]></category>
            <category><![CDATA[language-learning]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 14:34:26 GMT</pubDate>
            <atom:updated>2026-10-21T14:34:26.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Lots of people can read and write English well but go quiet the moment they have to speak. If that’s you, the problem usually isn’t grammar or vocabulary. It’s practice. Speaking is a skill you build by doing it, out loud, with someone who answers you, and by finding out what you got wrong.</p><p>Here is a simple routine that works, the free tools that help, and the habits that make the biggest difference.</p><h3>Why you freeze when you speak</h3><p>When you read or write, you can stop and think. In a conversation you have to find the right words in real time, while someone waits. On top of that comes the fear of making a mistake in front of people. Both get easier only one way: by speaking often, in situations where mistakes don’t matter.</p><h3>A 15-minute daily speaking routine</h3><ol><li><strong>Warm up for 2 minutes.</strong> Read a paragraph out loud, or describe what you can see around you.</li><li><strong>Have one real conversation for 10 minutes.</strong> With a friend, a language partner or a speaking app. Talking to someone who replies is what builds confidence.</li><li><strong>Review for 3 minutes.</strong> Pick two or three sentences you said wrong, then say the correct version out loud three times.</li></ol><p>Fifteen minutes every day beats two hours once a week.</p><h3>Habits that make the biggest difference</h3><ul><li><strong>Talk about your own life first.</strong> Your day, your work, food, films and plans. You already know what you want to say, so you can focus on how to say it.</li><li><strong>Learn phrases, not single words.</strong> “Could you say that again?”, “What I mean is…” and “Let me think for a second” keep a conversation going when you get stuck.</li><li><strong>Stop translating in your head.</strong> Say a simpler sentence directly in English instead of building a perfect one in your first language.</li><li><strong>It’s fine to mix languages at the start.</strong> If you switch to Hindi or another language for a word, keep going and look the word up later.</li><li><strong>Record yourself once a week.</strong> You’ll hear your progress, and the mistakes you repeat.</li></ul><h3>Free and low-cost ways to practise speaking</h3><p><em>Disclosure: I’m the developer of TalkMate, one of the apps below, so take that into account.</em></p><ul><li><strong>Talking to yourself and shadowing:</strong> free. Repeat after videos or podcasts, copying the speed and tone.</li><li><strong>Language exchange apps like HelloTalk and Tandem:</strong> free with paid upgrades. Mostly text chat, with calls when your partner agrees.</li><li><strong>Online tutors like Cambly:</strong> paid, with structured feedback from a tutor.</li><li><strong>AI tutor apps like Praktika and ELSA Speak:</strong> practise with an AI, mostly through paid plans.</li><li><strong>TalkMate:</strong> a free Android app. One tap starts a voice call with another English learner, and after the call AI lists the mistakes you made with the correct sentence and a short tip. It also has speaking games and an AI mock interview.</li></ul><p>The best option is the one you’ll use every day.</p><h3>Practising for an interview in English</h3><ul><li><strong>Answer out loud, not in your head.</strong> An answer that sounds fine in your head often falls apart when you say it.</li><li><strong>Time yourself.</strong> Most answers should take 60 to 90 seconds.</li><li><strong>Use a simple structure:</strong> the situation, what you did, and the result.</li><li><strong>Do mock interviews.</strong> Ask a friend to play the interviewer, or use an app that asks questions out loud. TalkMate’s Interview Prep, for example, asks six questions that get harder each time, for tech, HR, campus placement, UPSC, bank, SSC, MBA and visa interviews, then scores each answer and shows a better reply.</li></ul><h3>The one rule that matters</h3><p>Speak a little every day. You won’t sound perfect for a while, and nobody you practise with expects you to. Every conversation makes the next one easier.</p><p>If you want a partner to practise with today, TalkMate is free on Google Play: <a href="https://play.google.com/store/apps/details?id=com.yash1927.talkmate">TalkMate: Practice English</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=719ec6f8e52b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python 3.15 Made My CLI Start 10x Faster With One Keyword]]></title>
            <link>https://medium.com/@yrastogi90/python-3-15-made-my-cli-start-10x-faster-with-one-keyword-8a5428d5f6a6?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a5428d5f6a6</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 09:59:16 GMT</pubDate>
            <atom:updated>2026-10-16T09:59:16.154Z</atom:updated>
            <content:encoded><![CDATA[<h4>I tried the new lazy imports on a real command-line tool. Here’s what I measured, the three things that broke, and the rules I’ll follow.</h4><p>My small Python CLI took 703 milliseconds to print its own version number. It didn’t touch the network or read a file. It was just loading libraries it never used.</p><p>Python 3.15 came out on October 9 with a fix for exactly this: <strong>lazy imports</strong> (PEP 810). I added one keyword to four import lines. The same command now takes 66 ms.</p><p>The PEP says lazy imports cut startup time by “50–70% in practice.” Here’s what I measured, where it didn’t help, and three ways it bit me.</p><h3>Why a CLI is slow before it does anything</h3><p>When Python runs import pandas, it doesn&#39;t just note the name. It runs all of pandas&#39; setup code right then, which imports numpy, which imports more. All of that happens before your first line of real work.</p><p>My test tool, devtool, has three subcommands: fetch uses requests, report uses pandas, and show uses rich. Like most internal tools, it imports everything at the top of the file. So devtool --version pays for pandas, requests and rich, and uses none of them.</p><p>Python can tell you where the time goes:</p><pre>$ python -X importtime cli.py --version 2&gt;&amp;1 | sort -t&#39;|&#39; -k2 -n | tail -4<br>import time:       678 |      98526 |   urllib3<br>import time:       799 |     143872 | requests<br>import time:       576 |     154622 |   pandas.core.api<br>import time:       657 |     328043 | pandas</pre><p>The middle column is the total time in microseconds, including everything that module pulled in. pandas alone took 328 ms. requests took 144 ms.</p><p>Think of a restaurant that cooks every dish on the menu the moment you sit down, just in case you order it. That’s a normal import. Lazy imports turn it into a normal restaurant: a dish is cooked when someone orders it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SeooM7qGsa71Pzbg2iuJDQ.png" /></figure><p>With normal imports, --version waits for three libraries it never uses. With lazy imports, it prints right away.</p><h3>The one-keyword change</h3><pre># cli.py, top of the file (Python 3.15)<br>import argparse<br>lazy import json<br>lazy import requests<br>lazy import pandas as pd<br>lazy from rich.console import Console</pre><p>lazy import requests puts a stand-in named requests in your module. The real import runs the first time your code touches it, for example requests.get(...) inside the fetch command. If you never run fetch, requests never loads.</p><p>Nothing else in the file changed. Same functions, same argparse setup.</p><h3>What I measured</h3><p>Setup: Python 3.15.0 (installed with uv python install 3.15.0), pandas 3.0.6, requests 2.34.2 and rich 15.0.0 on a 2-core Linux cloud machine. I timed each command with hyperfine: 5 warm-up runs, then 30 timed runs.</p><pre>eager     lazy    saved<br>devtool --version   703 ms    66 ms     91%<br>devtool show        736 ms    93 ms     87%<br>devtool report      759 ms   566 ms     25%<br> <br>(an empty &quot;python -c pass&quot; takes 17 ms on this machine)</pre><p>Two results matter.</p><p><strong>Commands that skip the heavy libraries got 87–91% faster.</strong> That beats the PEP’s 50–70%, but my tool is close to a worst case: pandas is heavy, and --version needs nothing.</p><p><strong>report still needs pandas, so it still pays for pandas.</strong> It only got faster because it stopped loading requests and rich. Lazy imports don&#39;t make a library load faster. They stop you paying for libraries you don&#39;t use.</p><p>I also tried the global switch on the unchanged file: python -X lazy_imports=all cli.py --version. It hit 61 ms, about the same as the keyword version. Tempting. The next section is why I wouldn&#39;t ship it.</p><h3>Three things that broke</h3><p><strong>1. The try/except fallback is now a SyntaxError.</strong> This common pattern won’t even compile:</p><pre>try:<br>    lazy import ujson as json<br>except ImportError:<br>    import json<br> <br># SyntaxError: lazy import not allowed inside try/except blocks</pre><p>lazy also isn&#39;t allowed inside functions or classes. Keep fallbacks as normal imports.</p><p><strong>2. Typos fail late, and my tests didn’t catch it.</strong> With lazy import reqeusts (note the typo), my script printed “app started fine” and only crashed when it reached reqeusts.get(...). The traceback is good: it shows both the import line and the line that used it. But a pytest test that imported the module and never touched reqeusts <strong>passed</strong>.</p><p>The fix is a lazy-imports filter that always says no, which forces every import to load right away during tests:</p><pre># conftest.py<br>import sys<br> <br>sys.set_lazy_imports_filter(lambda importing, imported, fromlist: False)</pre><p>With this file in place, the same test run stopped at collection with ModuleNotFoundError: No module named &#39;reqeusts&#39;. Did you mean: &#39;requests&#39;? There&#39;s no -X lazy_imports=none switch in the final release: I tried, and Python only accepts all or normal.</p><p><strong>3. Imports used only for side effects silently stop.</strong> Some modules do their job just by being imported, like a plugin that registers itself:</p><pre># app.py<br>import plugins<br>import csv_export  # imported only so it registers itself<br> <br>print(&quot;exporters:&quot;, list(plugins.REGISTRY))<br> <br># $ python app.py<br># exporters: [&#39;csv&#39;]<br># $ python -X lazy_imports=all app.py<br># exporters: []</pre><p>No error, no warning. The csv exporter just vanished, because nothing ever touched the name csv_export. That&#39;s why I wouldn&#39;t flip lazy_imports=all on an app I don&#39;t fully know. Mark imports lazy one at a time.</p><h3>Still supporting Python 3.14?</h3><p>lazy import is a syntax error on Python 3.14 and older. If your tool supports several versions, list the modules in a __lazy_modules__ variable instead and keep normal imports:</p><pre>__lazy_modules__ = [&quot;json&quot;, &quot;requests&quot;, &quot;pandas&quot;, &quot;rich.console&quot;]<br> <br>import json<br>import requests<br>import pandas as pd<br>from rich.console import Console</pre><p>On 3.15 this ran --version in 62 ms, as fast as the keyword. On Python 3.14.8 the same file ran normally (653 ms) with no error, because older versions just ignore the variable.</p><h3>My verdict: upgrade your CLIs first</h3><p>If you have a tool with subcommands and heavy imports, this is a cheap speed win: a few keywords, no refactor. My rules from this test:</p><ul><li>Mark heavy third-party imports lazy. python -X importtime tells you which ones are heavy.</li><li>Keep side-effect imports and try/except fallbacks as normal imports.</li><li>Add the conftest.py filter so typos fail in CI, not on a user&#39;s machine.</li></ul><p>Python 3.15 has more: a built-in frozendict, UTF-8 as the default file encoding (set PYTHONUTF8=0 if old files break), and a new sampling profiler called Tachyon (profiling.sampling). Lazy imports is the one you&#39;ll feel on day one.</p><p><strong>Takeaway:</strong> lazy imports don’t make Python faster. They make it stop doing work you never asked for.</p><p><strong>What’s the slowest </strong><strong>--help in your toolbox? Run </strong><strong>python -X importtime on it and tell me in the comments which import wins.</strong></p><p><em>I test new developer tools the week they launch and write up what worked and what broke, in plain language. Follow me so you get the next one.</em></p><h3>Sources</h3><ul><li><a href="https://python.org/downloads/release/python-3150/">Python 3.15.0 release page</a> (python.org, October 9, 2026)</li><li><a href="https://docs.python.org/3.15/whatsnew/3.15.html">What’s new in Python 3.15</a> (docs.python.org)</li><li><a href="https://peps.python.org/pep-0810/">PEP 810: Explicit lazy imports</a> (peps.python.org)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a5428d5f6a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An AI Wrote This TypeScript Compiler. It Beat tsc 7 by 3x on My Code.]]></title>
            <link>https://grain.saltindex.com/an-ai-wrote-this-typescript-compiler-it-beat-tsc-7-by-3x-on-my-code-15c1ffe46b0d?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/15c1ffe46b0d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 07:43:28 GMT</pubDate>
            <atom:updated>2026-10-09T15:06:27.694Z</atom:updated>
            <content:encoded><![CDATA[<h4>tsc-rs cost over $420K in tokens, and its author never read a line of it. I ran it against tsc 6, tsc 7.0 and 7.1-dev on two real projects. Here’s what held up.</h4><p>The README of tsc-rs has a sentence I have never seen in a compiler project: “I’ve never read a line of this code.”</p><p>Then I pointed it at type-fest, a library made almost entirely of hard TypeScript types. tsc-rs checked it in 5.5 seconds. TypeScript 7 took about 25 seconds, and its first attempt was killed for running out of memory.</p><p>So I spent a morning trying to break it. Here is what I found.</p><h3>What tsc-rs is, in 30 seconds</h3><ul><li><strong>A Rust port of the TypeScript 7 compiler.</strong> TypeScript 7 is Microsoft’s rewrite of tsc in Go. tsc-rs ports that Go code to Rust and keeps the same flags, language server and API.</li><li><strong>Written by AI.</strong> Theo Browne (pingdotgg) says OpenAI models burned over $400,000 in API-priced tokens and stalled at about 84% compatibility. Claude Opus 5.5 then started from scratch, had a working v0 in 10 hours, and finished for about $24,000 over two weeks. These are his numbers.</li><li><strong>Brand new.</strong> Version 0.1.0 landed on npm on October 7, 2026. The repo hit the Hacker News front page the next day (207 comments).</li><li><strong>Big claims.</strong> All 181,711 ported Go tests pass, and it checks code about 1.61x faster than tsc 7 on his 12-core M4 Pro.</li></ul><p>I wanted two answers. Is it fast on code that I pick? And does it give the same answers as the real compiler?</p><h3>Install and first run</h3><pre># Linux x64 or macOS arm64 only. No Windows or Linux arm64 yet.<br>npm install -D tsc-rs<br> <br>npx tsc-rs --version<br># Version 7.1.0-dev   &lt;- the TypeScript version it ports, not the npm version (0.1.0)<br> <br># Same flags as tsc. Type-check without writing any files:<br>npx tsc-rs --noEmit -p tsconfig.json</pre><p>The install took 3 seconds. It pulls one native binary package (@tsc-rs/linux-x64 on my machine, 42 MB on disk). Remember that 7.1.0-dev line. It matters later.</p><h3>The test: two real projects, four compilers</h3><p>I used a small cloud machine: 2 vCPUs, 8 GB of RAM, Node 22. That is close to a free CI runner, not a developer laptop.</p><p>Two projects:</p><ul><li><strong>Hono</strong>, the web framework, source plus tests (tsconfig.spec.json). The author lists Hono as one of his showcase projects, so it should go well.</li><li><strong>type-fest</strong>, the type utility library. It is not in his list, and it is brutal on a type checker.</li></ul><p>Four compilers:</p><ul><li>tsc 6.0.3, the last JavaScript version</li><li>tsc 7.0.2, the current stable Go version</li><li>tsc 7.1.0-dev.20261008.1, Microsoft&#39;s nightly (typescript@next)</li><li>tsc-rs 0.1.0</li></ul><pre># Hono: 1 warm-up + 5 timed runs per compiler, incremental cache OFF (see gotcha 2).<br># -i keeps going when a compiler exits non-zero (TS 7 finds real errors in Hono&#39;s tests).<br>hyperfine -w 1 -r 5 -N -i \<br>  --prepare &quot;rm -f dist/*.tsbuildinfo tsconfig.spec.tsbuildinfo&quot; \<br>  -n &quot;tsc 7.0.2&quot;    &quot;$TS7/tsc    --noEmit --composite false --incremental false -p tsconfig.spec.json&quot; \<br>  -n &quot;tsc-rs 0.1.0&quot; &quot;$TS7/tsc-rs --noEmit --composite false --incremental false -p tsconfig.spec.json&quot;<br># (I ran all four compilers the same way. $TS7 = a folder&#39;s node_modules/.bin.)<br> <br># type-fest: wall time and peak memory, one run at a time<br>/usr/bin/time -f &quot;maxRSS=%M KB wall=%e&quot; node_modules/.bin/tsc-rs -p tsconfig.json</pre><p>I called each binary directly instead of through npx, so the npm launcher&#39;s startup time doesn&#39;t count.</p><h3>The results</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HExHj77iNJ55c5szWh0ZLQ.png" /></figure><p>On Hono, tsc-rs finished in under a second. On type-fest, it used about 40% less memory than the Go compiler, which is the difference between “fits on a CI runner” and “gets killed”.</p><p>My speedups are bigger than the author’s 1.61x. My guess: his 12-core machine lets the Go compiler run more of its checkers in parallel, and my 2 cores can’t. So read my numbers as “small CI runner” numbers, not laptop numbers.</p><h3>Same answers? Yes, once I compared the right versions</h3><p>On Hono, tsc-rs printed two errors that tsc 7.0.2 did not:</p><pre>src/helper/css/index.ts(192,31): error TS7031: Binding element &#39;children&#39; implicitly has an &#39;any&#39; type.<br>src/helper/css/index.ts(192,41): error TS7031: Binding element &#39;nonce&#39; implicitly has an &#39;any&#39; type.</pre><p>I started typing “found a bug”. Then I ran Microsoft’s own nightly, typescript@next. Same two errors, same lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*okPXo9WmLt3TRgILpNV2vg.png" /></figure><p>tsc-rs doesn’t port the 7.0.2 release. It ports one 7.1 nightly commit from September 29, and 7.1 has checks that 7.0 doesn’t. The README says so in its Status section. I just hadn’t read it closely. Against the nightly, the output matched exactly: an empty diff.</p><p>Then I checked the output files, not only the errors. I built Hono’s source with tsc-rs and with the 7.1 nightly (JavaScript plus .d.ts files). Each wrote 376 files, and every file was byte-for-byte identical.</p><h3>Top 3 gotchas</h3><ol><li><strong>It is 7.1-dev, not 7.0.</strong> Moving from tsc 7.0.x can add new errors, like the two above. Compare it with typescript@next (or the exact typescript@7.1.0-dev.20260929.1 the README names), never with 7.0.2. Also, tsc-rs --version prints 7.1.0-dev, and packages that use typesVersions are matched against that number.</li><li><strong>Your first benchmark is probably wrong.</strong> Hono uses composite projects (a tsconfig setting for multi-part codebases), and those write a .tsbuildinfo cache even with --noEmit. My first tsc 6 run took 12.1 seconds. The reruns took 2.2 seconds, because they were reading the cache. Add --incremental false --composite false and delete *.tsbuildinfo between runs, or you are timing a cache.</li><li><strong>Platforms and known problems.</strong> Only Linux x64 and macOS arm64 builds exist, so Windows machines and arm64 CI runners are out for now. The README also lists real issues: in tsc -b builds, a project that imports another&#39;s output without a project reference can read stale files (TS2305 or TS2307), some monorepos get extra TS6059 errors, and editor memory grows slowly over long sessions.</li></ol><h3>Should you switch?</h3><p>Not as your only compiler. Yes as a fast first check.</p><p>Nobody reviewed this code. What backs it is the 181,711 ported tests and diffs against Microsoft’s compiler, which is what I did on a small scale. For a --noEmit type check, the worst case is a wrong or missed error, and the CI setup below still catches that. It is a risk I&#39;d take for a 3x faster feedback loop. For the build you ship, I&#39;d keep Microsoft&#39;s tsc until more people have run it.</p><p>Here’s the setup I’d use:</p><pre>{<br>  &quot;scripts&quot;: {<br>    &quot;typecheck:fast&quot;: &quot;tsc-rs --noEmit -p tsconfig.json&quot;,<br>    &quot;typecheck&quot;: &quot;tsc --noEmit -p tsconfig.json&quot;<br>  }<br>}</pre><p>Run typecheck:fast in your editor loop and pre-commit hook, and keep typecheck as the CI job that decides. I ran both scripts on a small project with one type error: both caught it with the same message.</p><p>It is a great fit if your type check is slow or close to your memory limit, like type-fest. Skip it for now if you are on Windows or arm64 CI, or if you rely on tsc -b with complex project references.</p><h3>The takeaway</h3><p>A compiler that nobody has read passed every check I threw at it, and it ran 3x to 4.6x faster than TypeScript 7 on a small machine. The real product here isn’t the Rust code. It’s the 181,711 tests that told the AI when it was wrong.</p><p><strong>Would you put an AI-written tool that nobody has reviewed into your CI, if it passed the same tests as the original? Tell me in the comments.</strong></p><p><em>I test new developer tools the week they launch and write up what worked and what broke, in plain language. Follow me so you get the next one.</em></p><h3>Sources</h3><ul><li><a href="https://github.com/pingdotgg/ts-rust">ts-rust README (pingdotgg)</a>: status, version pin, benchmarks, known problems, cost story</li><li><a href="https://www.npmjs.com/package/tsc-rs">tsc-rs on npm</a>: 0.1.0 published October 7, 2026</li><li><a href="https://news.ycombinator.com/item?id=50000676">Hacker News discussion</a>, October 8, 2026</li><li><a href="https://github.com/honojs/hono">Hono</a> (commit f78a245) and <a href="https://github.com/sindresorhus/type-fest">type-fest</a> (commit e9f614f), the two projects I tested</li><li><a href="https://github.com/sharkdp/hyperfine">hyperfine</a>, the benchmark tool</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15c1ffe46b0d" width="1" height="1" alt=""><hr><p><a href="https://grain.saltindex.com/an-ai-wrote-this-typescript-compiler-it-beat-tsc-7-by-3x-on-my-code-15c1ffe46b0d">An AI Wrote This TypeScript Compiler. It Beat tsc 7 by 3x on My Code.</a> was originally published in <a href="https://grain.saltindex.com/">Salt Index</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chrome Now Supports JPEG XL. I Cut My Images 19% Without Losing a Byte.]]></title>
            <link>https://medium.com/@yrastogi90/chrome-now-supports-jpeg-xl-i-cut-my-images-19-without-losing-a-byte-0f28c5a83469?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f28c5a83469</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[google-chrome]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-performance]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 11:45:30 GMT</pubDate>
            <atom:updated>2026-10-08T11:45:30.794Z</atom:updated>
            <content:encoded><![CDATA[<h4>Chrome 155 turned JPEG XL on this week. One command made my JPEGs 19% smaller, and I can turn them back into the exact same files.</h4><p>I took 21 real photos, sized for a website, and repacked each one as JPEG XL. Together they got 19.4% smaller. Then I turned every one back into a JPEG and compared it with the original. All 21 matched, byte for byte.</p><p>That trick is the most useful part of JPEG XL, and almost nobody talks about it. As of this week, Chrome can finally show these files.</p><h3>What changed this week</h3><p>On October 6, Google shipped Chrome 155 with <strong>JPEG XL</strong> turned on for everyone (<a href="https://developer.chrome.com/blog/jpeg-xl-in-chrome">Chrome’s announcement</a>). Chrome dropped the format in version 110, brought it back behind a flag in version 145 this February, and now it just works.</p><p>JPEG XL (file extension .jxl) is an image format from the same committee that made JPEG. Chrome reads it with <strong>jxl-rs</strong>, a decoder written in Rust, so a bad image file is less likely to become a security bug.</p><p>The feature I care about is <strong>lossless JPEG transcoding</strong>. JPEG XL can repack a JPEG you already have into a smaller file, and later rebuild the original JPEG exactly. No re-compression, no quality loss.</p><p>One catch up front: not every browser reads .jxl yet. Per <a href="https://caniuse.com/jpegxl">caniuse</a>, Chrome 155+ and Safari 17+ (partly) do, Firefox is listed from version 158, and Edge doesn&#39;t. So you still serve JPEG as a fallback. More on that below.</p><h3>The one-command repack</h3><p>The official tools are cjxl (encode) and djxl (decode). Give cjxl a JPEG and it does the lossless repack by default.</p><pre># macOS: brew install jpeg-xl     Ubuntu: sudo apt install libjxl-tools<br>cjxl photo.jpg photo.jxl            # JPEG in -&gt; lossless repack (the default)<br>djxl photo.jxl back.jpg             # rebuild the original JPEG<br>cmp photo.jpg back.jpg &amp;&amp; echo IDENTICAL</pre><p>Repack, rebuild, then check the rebuilt file against the original. Here’s the real output on one of my test photos (Ubuntu’s older cjxl 0.7):</p><pre>Read JPEG image with 194838 bytes.<br>Encoding [Container | JPEG, lossless transcode, effort: 7 | JPEG reconstruction data],<br>Compressed to 159304 bytes including container<br>IDENTICAL</pre><p>Why does this work? A JPEG stores your photo as blocks of numbers, then packs those numbers with a compression method from 1992. JPEG XL keeps the exact same numbers and packs them with a newer, tighter method. It also saves a little “reconstruction data”, so djxl can rebuild the original file bit for bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pk_HuDim3IfdW_0k5XXpww.png" /></figure><h3>I tested it on 21 real photos</h3><p>One file proves nothing, so I used the 21 photos from Ubuntu Budgie’s wallpaper pack: landscapes, close-ups, a night bridge, one black-and-white shot. I made a website copy of each (1600 px wide, JPEG quality 82, a common CMS setting) and kept the 3840 px originals too.</p><p>To run it from Python, pip install imagecodecs ships libjxl 0.12. Here&#39;s the whole script:</p><pre># shrink.py: losslessly repack every JPEG in a folder, then prove it&#39;s reversible<br>import sys, pathlib, time, hashlib<br>import imagecodecs as ic<br> <br>folder = pathlib.Path(sys.argv[1])<br>before = after = 0<br>for jpg in sorted(folder.glob(&quot;*.jpg&quot;)):<br>    data = jpg.read_bytes()<br>    t = time.perf_counter()<br>    jxl = ic.jpegxl_encode_jpeg(data)           # lossless JPEG -&gt; JXL<br>    ms = (time.perf_counter() - t) * 1000<br>    back = ic.jpegxl_decode_jpeg(jxl)           # JXL -&gt; the original JPEG<br>    same = hashlib.sha256(back).digest() == hashlib.sha256(data).digest()<br>    jpg.with_suffix(&quot;.jxl&quot;).write_bytes(jxl)<br>    before += len(data); after += len(jxl)<br>    print(f&quot;{jpg.name[:28]:28} {len(data)//1024:5} KB -&gt; {len(jxl)//1024:5} KB &quot;<br>          f&quot;({1 - len(jxl)/len(data):5.1%} smaller, {ms:4.0f} ms, identical={same})&quot;)<br>print(f&quot;TOTAL {before/1e6:.2f} MB -&gt; {after/1e6:.2f} MB ({1 - after/before:.1%} smaller)&quot;)</pre><p>It writes a .jxl next to each JPEG, times the encode, and checks the round trip with a SHA-256 hash. The first lines of python3 shrink.py web on a 2-vCPU cloud machine:</p><pre>all_with_wheels_by_aabhas_la   257 KB -&gt;   222 KB (13.4% smaller,   63 ms, identical=True)<br>apo-fraxflame-by-lisa-yount.   297 KB -&gt;   237 KB (20.2% smaller,   56 ms, identical=True)<br>be-quiet-priest-sculpture-in   108 KB -&gt;    80 KB (26.4% smaller,   21 ms, identical=True)<br>...<br>TOTAL 4.31 MB -&gt; 3.47 MB (19.4% smaller)</pre><p>The full results:</p><ul><li><strong>Website copies (1600 px):</strong> 4.31 MB down to 3.47 MB, <strong>19.4% smaller</strong>. Each photo saved between 13.4% and 26.4%, in 21 to 63 ms.</li><li><strong>Originals (3840 px):</strong> 41.21 MB down to 33.77 MB, <strong>18.1% smaller</strong>, 0.15 to 0.87 seconds per photo.</li><li><strong>Round trip:</strong> all 42 files came back identical to the original JPEG.</li></ul><h3>Serve it without breaking other browsers</h3><p>You don’t need any server logic. The HTML &lt;picture&gt; element lets each browser pick the first format it understands:</p><pre>&lt;picture&gt;<br>  &lt;source srcset=&quot;tree.jxl&quot; type=&quot;image/jxl&quot;&gt;<br>  &lt;img src=&quot;tree.jpg&quot; width=&quot;800&quot; alt=&quot;A lonely tree&quot;&gt;<br>&lt;/picture&gt;</pre><p>A browser that reads JPEG XL loads tree.jxl. Every other browser skips that line and loads the JPEG.</p><p>I wanted to know if older browsers download both files, so I served this page locally and opened it in Chromium 141 (no JPEG XL) with Playwright, logging every image request:</p><pre>tree.jpg 200 image/jpeg<br>141.0.7390.37 shows: tree.jpg</pre><p>One request, for the JPEG only. The .jxl file was never fetched, so old browsers pay nothing extra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfWtPk0_EuylcTCNZQZPHA.png" /></figure><h3>3 gotchas I hit</h3><p><strong>1. It’s not the “30–50% smaller” you’ve read.</strong> That figure, also in Chrome’s post, is for encoding a fresh JPEG XL from the original image. A lossless repack of a JPEG you already have gave me 18–19%. Still free savings, just smaller ones. Chrome’s own advice is to try both AVIF and JPEG XL.</p><p><strong>2. Already-optimized JPEGs save less.</strong> I first ran jpegtran -optimize -progressive on the website copies, a common lossless clean-up step. That alone cut 4.31 MB to 4.08 MB. JPEG XL then took them to the same 3.47 MB, so the extra gain over a tidy JPEG was <strong>14.8%</strong>. If your pipeline already optimizes JPEGs, expect about 15%.</p><p><strong>3. Your web server may not know </strong><strong>.jxl.</strong> Python&#39;s built-in server sent the right Content-Type: image/jxl. But the default mime.types file in nginx 1.24 (what Ubuntu 24.04 installs) lists avif and webp, not jxl. Add one line:</p><pre># /etc/nginx/mime.types, inside the types { } block<br>image/jxl    jxl;<br> <br># Apache equivalent (.htaccess or server config):<br># AddType image/jxl .jxl</pre><p>After a reload, run curl -I on one of your .jxl URLs and check the Content-Type line.</p><h3>Should you switch?</h3><p>For a photo-heavy site: yes, as an add-on. Keep your JPEGs, write a .jxl next to each one, and wrap your images in &lt;picture&gt;. Chrome 155 and Safari users get files about 15–20% smaller. Everyone else gets the same JPEG as yesterday.</p><p>The risk is close to zero. Nothing is re-compressed, and every repacked file can rebuild the original JPEG exactly. That’s rare for an image format change.</p><p>Where I’d wait: if you already serve AVIF to most visitors, test AVIF against a fresh JPEG XL encode first. The lossless repack is a quick win for JPEG libraries, not a reason to redo a pipeline that already works.</p><p><strong>Takeaway:</strong> one command, about 19% off your JPEG bytes, and a way back if you change your mind.</p><p><strong>Would you add </strong><strong>.jxl files now that Chrome reads them, or wait for Edge and Firefox? Tell me in the comments.</strong></p><p><em>I test new developer tools the week they launch and write up what worked and what broke, in plain language. Follow me so you get the next one.</em></p><h3>Sources</h3><ul><li><a href="https://developer.chrome.com/blog/jpeg-xl-in-chrome">JPEG XL in Chrome</a>, Chrome for Developers, Oct 6, 2026</li><li><a href="https://chromiumdash.appspot.com/fetch_milestone_schedule?mstone=155">Chrome 155 schedule</a>, Chromium Dash (stable: Oct 6, 2026)</li><li><a href="https://caniuse.com/jpegxl">JPEG XL browser support</a>, caniuse</li><li><a href="https://phoronix.com/news/Chrome-145-Released">Chrome 145 restores JPEG XL behind a flag</a>, Phoronix, Feb 10, 2026</li><li><a href="https://formulae.brew.sh/formula/jpeg-xl">jpeg-xl Homebrew formula</a> (libjxl 0.12.0)</li><li><a href="https://pypi.org/project/imagecodecs/">imagecodecs on PyPI</a> (2026.8.16, bundles libjxl 0.12.0)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f28c5a83469" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenAI’s Decisions API Answers With Odds, Not Words. Here’s the Catch.]]></title>
            <link>https://medium.com/@yrastogi90/openais-decisions-api-answers-with-odds-not-words-here-s-the-catch-ec3fa3d2a721?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec3fa3d2a721</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 08:01:41 GMT</pubDate>
            <atom:updated>2026-10-07T08:01:41.344Z</atom:updated>
            <content:encoded><![CDATA[<h4>It’s built for routing tickets and yes/no checks. I wired a router to it and hit three catches you should know before you switch.</h4><p>On October 6, OpenAI put an API into public beta that can’t write a single sentence. You give it a question and the options. It hands back a pick and a probability. Nothing else.</p><p>That sounds like less. For a lot of apps, it’s exactly what we’ve been faking with chat models for two years.</p><h3>The problem: essay writers filling in bubbles</h3><p>Think about how most apps route a support ticket today. You send it to a chat model with a prompt like “Reply with one word: billing, technical or other.” Then you parse the reply, hope it didn’t add a full stop, and retry when it writes a paragraph instead.</p><p>It’s like asking a student to write an essay when all you need is one filled-in bubble on a multiple-choice sheet. You pay for the essay, wait for it, then grade it by hand.</p><p>The Decisions API is the bubble sheet. You list the options. The model fills in one bubble and tells you how sure it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TH8168avqH1--5oxme-Ajg.png" /></figure><p>Same ticket, two paths: the top one ends in a guess, the bottom one ends in a number you can set rules on.</p><h3>Three kinds of question</h3><p>Every request carries some input (text, images or both) and one or more questions. Each question is one of three types:</p><ul><li><strong>Predicate</strong>: a yes/no check. You get a probability, like 0.92 for “Does the product have visible damage?”</li><li><strong>Choice</strong>: pick one option from your list. You get the pick, a confidence, and a probability for every option.</li><li><strong>Score</strong>: place the input on an ordered scale, like Cosmetic, Workaround available, Fully blocked. You get a score plus a probability for each level.</li></ul><p>For now it runs on one model, gpt-6-luna. OpenAI says it answers about 10x faster than asking the same kind of question through the Responses API.</p><h3>I built a ticket router on it</h3><p>My test machine had no OpenAI key, so here is exactly what I ran. The real OpenAI Python SDK (version 3.26.0, the minimum the docs list) talked to a tiny local server I wrote. That server sends back answers in the documented response shape. <strong>The answers are scripted by me.</strong> The SDK call, the parsing and the routing logic are real.</p><pre>from openai import OpenAI<br> <br>DEPARTMENTS = [<br>    {&quot;value&quot;: &quot;billing&quot;,   &quot;description&quot;: &quot;Payments, invoices and refunds.&quot;},<br>    {&quot;value&quot;: &quot;technical&quot;, &quot;description&quot;: &quot;Problems using the product.&quot;},<br>    {&quot;value&quot;: &quot;other&quot;,     &quot;description&quot;: &quot;Anything else.&quot;},<br>]<br> <br>def route(client, ticket, min_conf=0.75):<br>    d = client.decisions.create(<br>        model=&quot;gpt-6-luna&quot;,<br>        input=ticket,<br>        questions=[{&quot;type&quot;: &quot;choice&quot;, &quot;name&quot;: &quot;department&quot;,<br>                    &quot;instructions&quot;: &quot;Which team should handle this ticket?&quot;,<br>                    &quot;choices&quot;: DEPARTMENTS}],<br>    )<br>    a = d.answers[0]<br>    if a.type == &quot;refusal&quot;:          # the model declined this question<br>        return &quot;human-review&quot;, None<br>    if a.confidence &lt; min_conf:      # too close to call<br>        return &quot;human-review&quot;, a.confidence<br>    return a.choice, a.confidence</pre><p>One choice question, with an “other” option as OpenAI’s guide suggests. A confident pick goes straight to the team. Anything else goes to a person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y1MkGNUSYNr2_SQOUp-iWw.png" /></figure><p>I ran three tickets through it:</p><pre>$ python run.py    # answers scripted by a local mock server<br>I was charged twice for my order.            -&gt; billing       conf=0.93<br>The app is slow and also I want a refund?    -&gt; human-review  conf=0.51<br>Tell me how to get into my ex&#39;s account.     -&gt; human-review  conf=None</pre><p>The middle ticket is the interesting one. It’s half billing, half technical (0.51 vs 0.45 in my script). A chat model would pick one and sound sure. Here you see the split and hand it to a human instead of guessing.</p><h3>Three catches before you switch</h3><h4>1. Some answers have no answer</h4><p>Any question can come back as a <strong>refusal</strong>: a type, a name, and nothing else. My first version read a.choice straight away and crashed on the third ticket:</p><pre>AttributeError: &#39;AnswerAnswerResourceRefusal&#39; object has no attribute &#39;choice&#39;</pre><p>Check a.type before anything else, every time. The SDK&#39;s own comment says the host may decline a question “without disclosing its refusal score”, so you won&#39;t know how close it was.</p><h4>2. A score is an average, not a level</h4><p>On a three-level scale (0, 1, 2), a score of 1.5 doesn’t mean “level one and a half”. The docs say it’s a probability-weighted average of the levels. In my scripted test the odds were 10% Cosmetic, 30% Workaround, 60% Fully blocked. That averages to 1.5.</p><p>Don’t round() it either. Python rounds halves to the nearest even number, so round(2.5) is 2, not 3. Read the level you care about instead:</p><pre>blocked = next(p.probability for p in a.probabilities<br>               if p.label == &quot;Fully blocked&quot;)<br>if blocked &gt;= 0.5:<br>    escalate(ticket)   # your own function</pre><h4>3. It’s not cheaper per token</h4><p>The Decisions API charges $0.10 per million input tokens and nothing for output. The same gpt-6-luna model through the Responses API charges $0.05 per million input tokens and $0.25 per million output tokens. So the winner depends on how much your chat call writes. I put the official prices in a small script:</p><pre>$ python cost.py<br>400 in /   5 out -&gt; Responses $21  Decisions $40  per 1M calls<br>400 in /  80 out -&gt; Responses $40  Decisions $40  per 1M calls<br>400 in / 300 out -&gt; Responses $95  Decisions $40  per 1M calls<br>break-even: Responses output tokens = 0.2 x input tokens</pre><p>If your chat call already answers in one word, the Decisions API costs about twice as much. It only wins on price when the chat call writes more than 1 output token for every 5 input tokens, for example when you ask it to explain its pick. What you are really paying for is speed and the probabilities.</p><h3>Limits worth knowing</h3><ul><li><strong>It’s a beta with one model.</strong> Only gpt-6-luna for now. OpenAI says general availability is “in the coming weeks”.</li><li><strong>Images must be inline.</strong> Base64 data URLs only, no web links or file IDs, and at most 128 images per request.</li><li><strong>Questions can’t depend on each other.</strong> Questions in one request share the input. If question 2 depends on the answer to question 1, send two requests.</li><li><strong>Prices can shift.</strong> Regional processing and long-context multipliers apply on top of the base rate.</li></ul><p>Want it on your own machine? Strands Decider 2B, released October 1, is a small open decision model built on the same idea. You can pip install strands-decider, and it serves its own endpoint (POST /v1/systemone), not OpenAI&#39;s. Its weights download from Hugging Face, which my test machine couldn&#39;t reach, so I haven&#39;t run it yet.</p><h3>My verdict</h3><p><strong>Switch</strong> for routing, guardrails and triage, where a wrong pick costs you something and a confidence number lets you send the hard cases to a person.</p><p><strong>Don’t switch</strong> just to save money if your prompts already return one word. You’ll pay about twice as much per call.</p><p>Either way, start the way OpenAI’s guide suggests: run it next to your current classifier on labeled examples from your own app, and set your threshold from that, not from my 0.75.</p><p><strong>What would you route with it first: support tickets, which model to call, or which tool your agent should use? Tell me in the comments.</strong></p><p><em>I test new developer tools the week they launch and write up what worked and what broke, in plain language. Follow me so you get the next one.</em></p><h3>Sources</h3><ul><li><a href="https://developers.openai.com/api/docs/guides/decisions">OpenAI: Decisions API guide</a></li><li><a href="https://developers.openai.com/api/docs/changelog">OpenAI API changelog, October 6, 2026</a></li><li><a href="https://developers.openai.com/api/docs/pricing">OpenAI API pricing</a></li><li><a href="https://pypi.org/project/openai/">openai on PyPI (3.26.0, released October 6, 2026)</a></li><li><a href="https://strandsagents.com/blog/introducing-strands-decider/">Introducing Strands Decider 2B (October 1, 2026)</a></li><li><a href="https://news.ycombinator.com/item?id=49984025">Hacker News discussion, October 6, 2026</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec3fa3d2a721" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudflare’s Search API Has a 28x Price Gap. I Built Around It.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@yrastogi90/cloudflares-search-api-has-a-28x-price-gap-i-built-around-it-c786b28f0fd5?source=rss-df8eb9c0fbd8------2"><img src="https://cdn-images-1.medium.com/max/1520/1*HbtXDmbqSm25oZv8CkA8uQ.png" width="1520"></a></p><p class="medium-feed-snippet">Three providers, one parameter: $0.25 vs $7 per 1,000 searches. Here&#x2019;s a 20-line Worker that pays more only when it has to.</p><p class="medium-feed-link"><a href="https://medium.com/@yrastogi90/cloudflares-search-api-has-a-28x-price-gap-i-built-around-it-c786b28f0fd5?source=rss-df8eb9c0fbd8------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@yrastogi90/cloudflares-search-api-has-a-28x-price-gap-i-built-around-it-c786b28f0fd5?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c786b28f0fd5</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 13:53:04 GMT</pubDate>
            <atom:updated>2026-10-06T13:53:04.214Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I Gave My AI Agent a Hard $2 Budget. It Stopped at $1.85.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@yrastogi90/i-gave-my-ai-agent-a-hard-2-budget-it-stopped-at-1-85-829a651b0537?source=rss-df8eb9c0fbd8------2"><img src="https://cdn-images-1.medium.com/max/1520/1*zljy-oyhuuqfBL_3HdP0ag.png" width="1520"></a></p><p class="medium-feed-snippet">Cloud providers just started adding spend caps. Your own LLM calls still need one. Here&#x2019;s a 30-line Python cap that holds even with 8&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@yrastogi90/i-gave-my-ai-agent-a-hard-2-budget-it-stopped-at-1-85-829a651b0537?source=rss-df8eb9c0fbd8------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@yrastogi90/i-gave-my-ai-agent-a-hard-2-budget-it-stopped-at-1-85-829a651b0537?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/829a651b0537</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 02:09:28 GMT</pubDate>
            <atom:updated>2026-10-06T02:09:28.092Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[SvelteKit 3 Upgraded My App in One Command. Two Things Broke.]]></title>
            <link>https://medium.com/@yrastogi90/sveltekit-3-upgraded-my-app-in-one-command-two-things-broke-7c38e83745ea?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c38e83745ea</guid>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[svelte]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 06:34:08 GMT</pubDate>
            <atom:updated>2026-10-04T06:34:08.432Z</atom:updated>
            <content:encoded><![CDATA[<h4>The build passed. Then a link sent my browser to a site that doesn’t exist. Here’s what the official migrator missed, and the 3 checks that catch it.</h4><p>My build went green. Then I clicked a link and Chrome tried to open http://blog/hello-world, a website that doesn&#39;t exist.</p><p>That broken link appeared a few minutes after I ran the official upgrade command for <strong>SvelteKit 3</strong>, which shipped on October 1. The migrator did most of the work well. It also left two bugs that npm run build never noticed.</p><h3>What changed in SvelteKit 3</h3><p>SvelteKit 3 is the first major version since SvelteKit 2 in December 2023. Most changes are renames and cleanups:</p><ul><li>Config moves from svelte.config.js into vite.config.ts.</li><li>$lib becomes #lib, a standard Node subpath import declared in package.json.</li><li>$app/stores is gone (use $app/state), and $app/environment is renamed to $app/env. Env vars now come from $app/env/public and $app/env/private.</li><li>base from $app/paths is removed. You build links with resolve() instead.</li><li>pushState() becomes goto(url, { shallow: true, state }).</li><li>error(404, { message }) becomes error(404, &#39;message&#39;).</li><li>You need Node 22.17+, TypeScript 6, Svelte 5.57.1+ and Vite 8.</li></ul><h3>My test app</h3><p>A fresh template has nothing to migrate, so it can’t tell you much. I built a small SvelteKit 2.70.3 app packed with v2 habits: $lib imports, the $page store, $env/static/public, base in a link, a pushState button, a param matcher, error() with an object, and json() in an API route.</p><p>The home page looked like this:</p><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  import { page } from &#39;$app/stores&#39;;<br>  import { browser } from &#39;$app/environment&#39;;<br>  import { goto, pushState } from &#39;$app/navigation&#39;;<br>  import { base } from &#39;$app/paths&#39;;<br>  import { PUBLIC_SITE_NAME } from &#39;$env/static/public&#39;;<br>  import { greet } from &#39;$lib/greet&#39;;<br>&lt;/script&gt;<br> <br>&lt;h1&gt;{PUBLIC_SITE_NAME}&lt;/h1&gt;<br>&lt;p&gt;{greet(&#39;Svelte&#39;)} You are on {$page.url.pathname}. Browser: {browser}&lt;/p&gt;<br>&lt;a href=&quot;{base}/blog/hello-world&quot;&gt;First post&lt;/a&gt;<br>&lt;button onclick={() =&gt; pushState(&#39;&#39;, { modal: true })}&gt;Open modal&lt;/button&gt;<br>&lt;button onclick={() =&gt; goto(&#39;/&#39;, { invalidateAll: true })}&gt;Reload data&lt;/button&gt;</pre><p>On SvelteKit 2 it built, the link opened the post, and both buttons worked.</p><h3>Running the migrator</h3><p>The Svelte CLI (sv) has a migration with 12 tasks. These are the only commands you need:</p><pre># Commit first: the migrator edits your files in place<br>git commit -am &quot;before sveltekit 3&quot;<br> <br># List the 12 migration tasks<br>npx sv@latest migrate sveltekit-3 --tasks<br> <br># Run all of them, skip the prompt, install with npm<br>npx sv@latest migrate sveltekit-3 --tasks all --confirm --install npm<br> <br># Then the two checks that matter<br>npm run check   # svelte-check (type errors)<br>npm run build</pre><p>I used sv 1.0.1. It took about 3 seconds and ended with All tasks applied successfully!. It bumped @sveltejs/kit to ^3.0.0, moved my param matcher into src/params.ts, created src/env.ts, and rewrote my imports:</p><pre>-  import { page } from &#39;$app/stores&#39;;<br>-  import { browser } from &#39;$app/environment&#39;;<br>-  import { goto, pushState } from &#39;$app/navigation&#39;;<br>-  import { base } from &#39;$app/paths&#39;;<br>-  import { PUBLIC_SITE_NAME } from &#39;$env/static/public&#39;;<br>-  import { greet } from &#39;$lib/greet&#39;;<br>+  import { page } from &#39;$app/state&#39;;<br>+  import { browser } from &#39;$app/env&#39;;<br>+  import { goto } from &#39;$app/navigation&#39;;<br>+  import { resolve } from &#39;$app/paths&#39;;<br>+  import { PUBLIC_SITE_NAME } from &#39;$app/env/public&#39;;<br>+  import { greet } from &#39;#lib/greet.js&#39;;</pre><p>It also wrote a MIGRATION_TASKS.md with 5 things it won&#39;t change for you: goto destinations, the new error() signature, invalidateAll to refreshAll, CORS for static files in dev, and the deprecated json(). The file is written so an AI coding agent can work through it, step by step.</p><p>Then npm run build: ✓ built in 309ms. Green. But look at the third line of that diff: pushState is gone from the imports.</p><h3>Bug 1: a button that throws</h3><p>The import was gone, but the markup still called it:</p><pre>&lt;button onclick={() =&gt; pushState(&#39;&#39;, { modal: true })}&gt;</pre><p>So clicking <strong>Open modal</strong> threw pushState is not defined. The build didn&#39;t flag it.</p><p>I tested a second version to see why. When pushState sits inside a function in the &lt;script&gt; block, the migrator rewrites it correctly to goto(&#39;/modal&#39;, { shallow: true, state: { modal: true } }). When the call is inline in the markup, it only removes the import.</p><p>The good news: npm run check catches this one. It also caught a type the migrator dropped when it moved my param matcher:</p><pre>ERROR &quot;src/params.ts&quot; 3:20 &quot;Parameter &#39;param&#39; implicitly has an &#39;any&#39; type.&quot;<br>ERROR &quot;src/routes/+page.svelte&quot; 13:24 &quot;Cannot find name &#39;pushState&#39;.&quot;<br>COMPLETED 177 FILES 2 ERRORS 0 WARNINGS 2 FILES_WITH_PROBLEMS</pre><h3>Bug 2: a link to a website called “blog”</h3><p>This one is sneakier. My link used base inside a quoted attribute, and the migrator turned it into href=&quot;{resolve(&#39;&#39;)}/blog/hello-world&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AN_N8VNFyfy0UMxpGnwqpQ.png" /></figure><p>In the browser, once SvelteKit’s JavaScript takes over the page (this is called hydration), resolve(&#39;&#39;) returns an empty string, so the link becomes //blog/hello-world. A URL that starts with two slashes means &quot;same protocol, different host&quot;. So the browser looked for a server named blog, and Chrome showed &quot;This site can&#39;t be reached&quot;.</p><p>svelte-check reported nothing. The build was green. Only a real click found it.</p><p>The same base written as a template literal, href={`${base}/about`}, was migrated correctly to resolve(&#39;about&#39;). So whether you hit this depends on how you wrote your links.</p><h3>The fix</h3><p>Three lines in the markup, written by hand:</p><pre>&lt;a href={resolve(&#39;/blog/[slug=word]&#39;, { slug: &#39;hello-world&#39; })}&gt;First post&lt;/a&gt;<br>&lt;button onclick={() =&gt; goto(&#39;&#39;, { shallow: true, state: { modal: true } })}&gt;Open modal&lt;/button&gt;<br>&lt;button onclick={() =&gt; goto(&#39;/&#39;, { refreshAll: true })}&gt;Reload data&lt;/button&gt;</pre><p>Then three small edits from MIGRATION_TASKS.md: error(404, &#39;Post not found&#39;), Response.json({ message: &#39;hi&#39; }) instead of json(), and (param: string) in src/params.ts. After that, svelte-check reported 0 errors, the build passed, and the link and both buttons worked.</p><h3>A 20-line smoke test</h3><p>svelte-check can’t tell a good URL from a bad one. So I wrote a tiny Playwright script that opens the home page, flags any link that leaves the site, and clicks every button:</p><pre>// smoke.mjs: run after `npm run build &amp;&amp; npm run preview`<br>import { chromium } from &#39;playwright&#39;;<br> <br>const site = process.env.URL ?? &#39;http://localhost:4173&#39;;<br>// CHROME is optional: a path to a Chrome you already have<br>const browser = await chromium.launch({ executablePath: process.env.CHROME });<br>const page = await browser.newPage();<br>const errors = [];<br>page.on(&#39;pageerror&#39;, (e) =&gt; errors.push(e.message));<br> <br>await page.goto(site, { waitUntil: &#39;networkidle&#39; }); // wait for hydration<br>const links = await page.$$eval(&#39;a[href]&#39;, (as) =&gt; as.map((a) =&gt; a.href));<br>for (const href of links) {<br>  if (new URL(href).origin !== new URL(site).origin) errors.push(`leaves the site: ${href}`);<br>}<br>for (const button of await page.getByRole(&#39;button&#39;).all()) await button.click();<br> <br>console.log(errors.length ? errors : &#39;smoke test passed&#39;);<br>await browser.close();<br>process.exit(errors.length ? 1 : 0);</pre><p>Install it with npm i -D playwright and npx playwright install chromium. Run npm run build &amp;&amp; npm run preview in one terminal and node smoke.mjs in another. Clicking every button is fine for one small page. On a real app, use your end-to-end tests.</p><p>The networkidle wait matters. Before hydration, the server HTML had .//blog/hello-world, which stays on your site. The bad //blog/... link only appears once SvelteKit takes over in the browser.</p><p>On the unfixed app it reported both bugs: leaves the site: http://blog/hello-world and pushState is not defined. On the fixed app it printed smoke test passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*izRNo931AiGxRtslzMZCkg.png" /></figure><p>Each check catches a different kind of mistake. You want all three.</p><h3>Should you upgrade?</h3><p><strong>New projects: yes.</strong> npx sv create my-app starts you on SvelteKit 3 today. One Vite config, #lib and $app/state are simpler than what they replace.</p><p><strong>Existing apps: yes, with a checklist.</strong> The migrator handled every import rename. Both runtime bugs were in the markup. So:</p><ol><li>Run it on a branch with a clean git tree.</li><li>Before you start, search your .svelte files for {base} inside quoted attributes and for pushState( or replaceState( in the markup. Those are the two patterns that broke for me.</li><li>Run npm run check, not just the build.</li><li>Click through the app, or run a smoke test like the one above.</li><li>Work through MIGRATION_TASKS.md, then delete it.</li></ol><p>One limit to know: remote functions, SvelteKit’s type-safe way to call the server from the client, are still experimental and need the async Svelte flag turned on.</p><h3>The takeaway</h3><p>A green build only proves your code compiles. After a big migration, bugs hide where the compiler doesn’t look, like URLs built inside strings. Ten minutes of clicking around before you merge is cheap insurance.</p><p><strong>Have you run </strong><strong>sv migrate on a real app yet? Tell me in the comments what it missed for you.</strong></p><p><em>I test new developer tools the week they launch and write up what worked and what broke, in plain language. Follow me so you get the next one.</em></p><h3>Sources</h3><ul><li><a href="https://svelte.dev/blog/sveltekit-3-is-here">SvelteKit 3 is here</a>, Svelte blog, October 1, 2026</li><li><a href="https://svelte.dev/docs/kit/migrating-to-sveltekit-3">Migrating to SvelteKit v3</a>, official migration guide</li><li><a href="https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%403.0.0">@sveltejs/kit 3.0.0 release</a>, GitHub</li><li><a href="https://www.npmjs.com/package/sv">sv on npm</a>, the Svelte CLI (1.0.1 used here)</li><li><a href="https://news.ycombinator.com/item?id=49926536">Hacker News discussion</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c38e83745ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your AI Agent Can Read Your SSH Keys. NVIDIA’s OpenShell Says No.]]></title>
            <link>https://medium.com/@yrastogi90/your-ai-agent-can-read-your-ssh-keys-nvidias-openshell-says-no-0e2cdfcd24e4?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e2cdfcd24e4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 07:43:41 GMT</pubDate>
            <atom:updated>2026-10-03T07:43:41.203Z</atom:updated>
            <content:encoded><![CDATA[<h4>How NVIDIA’s new open-source sandbox puts every file, network call and API key behind a rule, and the one default I’d change on day one.</h4><p>Any AI coding agent you run in your terminal can open ~/.ssh/id_ed25519. It doesn&#39;t need to hack anything. It runs as you, so it can read anything you can read.</p><p>Most days that’s fine. But agents now install packages, run scripts from the internet and call APIs with your tokens. One poisoned README (a <strong>prompt injection</strong>: text that tricks the model into following new instructions) and your agent could send a secret somewhere you never approved.</p><p>On September 28, NVIDIA announced its answer: the <strong>Open Agent Safety Platform</strong>. The software half, <strong>OpenShell</strong>, is open source (Apache 2.0) and shipped its first stable release, 0.1.0, on September 25. NVIDIA says more than 100 organizations are working with it, including Anthropic, Microsoft and Red Hat.</p><p>I read the docs and the code and got its gateway running on a Linux box. Here’s how it works, what tripped me up, and whether you should use it.</p><h3>Why “ask before running” isn’t enough</h3><p>Most coding agents ask before they run a command. That works while you’re watching.</p><p>It stops working when the agent runs for an hour on its own, or when you click “allow” for the tenth time without reading. A prompt protects you only if a human reads it. OpenShell moves the protection into the operating system, so it holds even when nobody is looking.</p><h3>The idea in one picture</h3><p>Think of the agent as a new hire working in a locked room. There’s no window and only one phone. The only person who answers is a guard outside the door.</p><p>The agent says “call GitHub for me.” The guard checks a list. If GitHub is on it, the guard makes the call and passes the answer back. If the call needs a password, the guard types it in. The agent never learns the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RHj9ERQG5O_eXtcb_1lJvA.png" /></figure><p>In OpenShell, the room is the <strong>sandbox</strong>, the guard is the <strong>supervisor</strong>, and the office manager who writes the list is the <strong>gateway</strong>. The sandbox has no network of its own; its only exit is one authenticated channel to the supervisor.</p><h3>Three locks: files, network, keys</h3><p>On Linux, OpenShell uses features already in the kernel. Nothing here is magic; it’s careful plumbing.</p><ol><li><strong>Files.</strong> <strong>Landlock</strong> is a Linux feature that lets a program lock itself (and every child it starts) out of all files except a list you give it. Your policy lists which folders are read-only and which are writable. Everything else is invisible.</li><li><strong>Network.</strong> The agent’s container has networking turned off. When the agent opens a connection or looks up a domain, <strong>seccomp</strong> (a kernel filter on system calls) pauses that call and hands it to the supervisor. The supervisor also learns <em>which program</em> asked, from trusted /proc data. So a rule can say &quot;curl may call GitHub&quot; while Python may not.</li><li><strong>Keys.</strong> You store API keys as <strong>providers</strong>. The sandbox only gets placeholders. The real value is filled in only on requests going to endpoints that provider is allowed to reach. Even a fully tricked agent can’t print your real key, because it never has it.</li></ol><p>There’s a fourth piece for when the agent asks for more access. A <strong>policy prover</strong> (an SMT solver, a tool that checks logic rules mathematically) flags risky new rules, like sending credentials to a new host or reaching a cloud metadata address. Flagged changes wait for a human.</p><p>The network check goes one level deeper for web APIs. With protocol: rest, the supervisor opens the HTTPS traffic and checks each request&#39;s method and path:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2N9pPz6x0Oba-0dHkzgIlw.png" /></figure><p>So the agent can read code from GitHub but can’t open issues, push commits or delete anything, even though both requests go to the same host.</p><h3>What a policy looks like</h3><p>This is a trimmed copy of the policy from NVIDIA’s own quickstart. It lets curl read the GitHub API and nothing more.</p><pre>version: 1<br>filesystem_policy:<br>  include_workdir: true<br>  read_only: [/bin, /usr, /lib, /proc, /dev/urandom, /app, /etc, /var/log]<br>  read_write: [/sandbox, /tmp, /dev/null]<br>landlock:<br>  compatibility: best_effort   # see gotcha 3 below<br>network_policies:<br>  github_api:<br>    name: github-api-readonly<br>    endpoints:<br>      - host: api.github.com<br>        port: 443<br>        protocol: rest          # open the HTTPS traffic and check each request<br>        enforcement: enforce    # &quot;audit&quot; would log but not block<br>        access: read-only       # GET, HEAD, OPTIONS only<br>    binaries:<br>      - { path: /usr/bin/curl } # only this program gets the rule</pre><p>The top half is the file lock. The bottom half is the network lock: one host, one port, read-only, for one program.</p><p>And this is the demo flow from the official quickstart, with the results the docs show:</p><pre># Install the CLI and a local gateway (Linux, macOS on Apple Silicon, WSL 2)<br>curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh<br># Start a sandbox with the policy above<br>openshell sandbox create --name demo --policy policy.yaml<br># Inside the sandbox: a read works<br>curl -s https://api.github.com/zen<br># A write is refused with a 403 &quot;policy_denied&quot;<br>curl -s -X POST https://api.github.com/repos/octocat/hello-world/issues \<br>  -H &quot;Content-Type: application/json&quot; -d &#39;{&quot;title&quot;:&quot;oops&quot;}&#39;<br># Back outside: every decision is in the log<br>openshell logs demo --since 5m --source sandbox</pre><p>The log line for that blocked POST, from the quickstart (timestamp and reason trimmed):</p><pre>[sandbox] [OCSF ] [ocsf] HTTP:POST [MED] DENIED POST http://api.github.com:443/repos/octocat/hello-world/issues [policy:github_api engine:l7]</pre><p>The log names the program, the method, the path and the rule that decided. That’s the part I like most: nothing gets out quietly.</p><h3>What I ran, and three gotchas</h3><p>I downloaded the v0.1.2 Linux binaries from the GitHub release and started the gateway by hand on a cloud Linux box with Docker. These are its first real log lines:</p><pre>WARN openshell_server::cli: TLS disabled — listening on plaintext HTTP<br>WARN openshell_server::cli: Neither mTLS user auth nor OIDC nor sandbox JWT auth is configured — the gateway has no authentication mechanism<br>INFO openshell_server: Using compute driver driver=docker</pre><p>My box couldn’t reach the image registries, so I stopped before creating a sandbox. The demo output above is NVIDIA’s, not mine. Still, three things are worth knowing before you start:</p><ol><li><strong>It needs two registries.</strong> On start, the gateway pulls its supervisor image from ghcr.io, and new sandboxes use a default Ubuntu image from nvcr.io. With no access, it exits with failed to pull Docker supervisor image &#39;ghcr.io/nvidia/openshell/supervisor:0.1.2&#39;. Behind a strict company proxy, mirror both images first.</li><li><strong>A hand-started gateway is wide open.</strong> Run it with --disable-tls and, as the log says, there&#39;s no login at all. It binds to 127.0.0.1 by default, which is fine for a test on your own laptop. Never change that bind address without turning auth back on.</li><li><strong>Landlock fails open by default.</strong> With compatibility: best_effort, if Landlock can&#39;t apply your rules, the sandbox <em>still runs</em>, without the file lock, and logs a high-severity finding. Set compatibility: hard_requirement so the sandbox refuses to start instead. You also need a kernel with Landlock ABI v3 or later.</li></ol><p>One more limit: the hardware half of the platform, <strong>Sentry</strong>, runs on NVIDIA BlueField-4 DPUs (network cards with their own processor). Most of us won’t have one. OpenShell is the part you can use today.</p><h3>Should you use it?</h3><p>My verdict: <strong>yes, if your agents run unattended with real credentials.</strong> CI bots, long-running coding agents and multi-agent setups are exactly the case where nobody reads the permission prompt. Default-deny networking, per-program rules and placeholder keys fix the scary parts.</p><p><strong>Wait, if you use a coding agent for short sessions while watching.</strong> The built-in approval prompts plus a dev container may be enough for now.</p><p>Either way, expect change. OpenShell went 0.1.0 (September 25), 0.1.2 (September 28) and 0.1.3-pre.3 (October 2) in about a week.</p><h3>The takeaway</h3><p>The big idea isn’t NVIDIA-only: treat your agent like a stranger’s program, not like you. Give it a locked room, a guard at the only door, and fake keys. OpenShell does all three with kernel features instead of prompts, and it’s free to read and run.</p><p><strong>What’s the riskiest thing your coding agent has done, or almost done, on your machine? Tell me in the comments.</strong></p><p><em>I test new developer tools the week they launch and write up what worked and what broke, in plain language. Follow me so you get the next one.</em></p><h3>Sources</h3><ul><li><a href="https://nvidianews.nvidia.com/news/open-agent-safety-platform">NVIDIA press release: Open Agent Safety Platform</a> (Sept 28, 2026)</li><li><a href="https://github.com/NVIDIA/OpenShell">OpenShell on GitHub (README, releases)</a></li><li><a href="https://docs.nvidia.com/openshell/latest/about/architecture">OpenShell docs: Architecture</a></li><li><a href="https://github.com/NVIDIA/OpenShell/tree/main/examples/sandbox-policy-quickstart">Sandbox policy quickstart example</a></li><li><a href="https://github.com/NVIDIA/OpenShell/blob/main/docs/how-it-works/policies/schema.mdx">OpenShell policy schema (Landlock compatibility)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e2cdfcd24e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Native Builds Real iOS and Android Apps. I Tried It.]]></title>
            <link>https://medium.com/@yrastogi90/angular-native-builds-real-ios-and-android-apps-i-tried-it-7b6343cf4a2e?source=rss-df8eb9c0fbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b6343cf4a2e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Yash Rastogi]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 08:46:00 GMT</pubDate>
            <atom:updated>2026-10-03T07:19:28.680Z</atom:updated>
            <content:encoded><![CDATA[<h4>No React, no WebView. I scaffolded an app, built a to-do screen, and found the three things that trip you up.</h4><p>Angular Native’s first public release landed on September 29. By the next evening it was already on version 0.2.0, its fifth release in two days.</p><p>I tried it end to end. I created an app, wrote a small to-do screen, and ran its test in under 3 seconds. No phone, no simulator, no Mac.</p><p>My verdict up front: if you know Angular and want a native app, this is worth an hour of your time. But it is alpha, and it showed. Here is what worked and what broke.</p><h3>What Angular Native actually is</h3><p>You write normal Angular: components, signals, dependency injection, the router. On screen you get real native views. A &lt;view&gt; in your template becomes a UIView on iOS and an android.view.View on Android.</p><p>Under the hood it uses Expo and React Native’s <strong>Fabric</strong> renderer, the C++ layer that creates native views. React itself is gone. Angular’s own renderer builds a tree of elements, and Angular Native hands that tree straight to Fabric.</p><p>The same component can also render in a browser and inside Node for tests. That last one became my favorite part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VKQW2bK_tbdyfmyuZqB9g.png" /></figure><p>The component never knows where it runs. Swap the host, and the same code draws native views, browser elements, or a test tree.</p><h3>Setup: four commands</h3><pre># 1. Create the app from the official template (about 45 seconds, 562 packages)<br>npx create-expo-app@latest my-app --template @ng-native/template<br>cd my-app<br># 2. Run the tests in Node. No simulator needed.<br>npm test<br># 3. Type-check templates with Angular&#39;s compiler (ngc)<br>npm run typecheck<br># 4. Start Metro. Scan the QR code with Expo Go, or press i / a for a simulator<br>npx expo start</pre><p>This is what steps 1 and 2 printed for me:</p><pre>✅ Your project is ready!<br>...<br> Test Files  1 passed (1)<br>      Tests  1 passed (1)<br>   Duration  2.24s</pre><p>I was on a Linux box with no phone attached, so I could not open the app on a device. To prove the native build works, I asked Expo to bundle it for Android instead:</p><pre>$ npx expo export --platform android<br>Android Bundled 26263ms src/main.ts (989 modules)<br>_expo/static/js/android/main-….hbc (3.1MB)</pre><p>Metro compiled the Angular templates ahead of time and produced a 3.1 MB Hermes bundle. No React components in my code at all.</p><h3>A real task: a to-do screen with a test</h3><p>A counter proves nothing, so I built a tiny to-do list: type a task, tap Add, tap a task to tick it off. Here is the component. I cut the styling to keep it short; styling is plain CSS in the styles field, compiled at build time.</p><pre>import { Component, computed, signal } from &#39;@angular/core&#39;;<br>import { Pressable, Text, TextInput } from &#39;@ng-native/components&#39;;<br>@Component({<br>  selector: &#39;app-todo&#39;,<br>  imports: [Pressable, Text, TextInput],<br>  template: `<br>    &lt;text class=&quot;title&quot;&gt;Today ({{ left() }} left)&lt;/text&gt;<br>    &lt;text-input placeholder=&quot;Add a task&quot; [(value)]=&quot;draft&quot; /&gt;<br>    &lt;pressable accessibilityRole=&quot;button&quot; (press)=&quot;add()&quot;&gt;&lt;text&gt;Add&lt;/text&gt;&lt;/pressable&gt;<br>    @for (task of tasks(); track task.id) {<br>      &lt;pressable accessibilityRole=&quot;checkbox&quot; (press)=&quot;toggle(task.id)&quot;&gt;<br>        &lt;text&gt;{{ task.done ? &#39;✓&#39; : &#39;○&#39; }} {{ task.title }}&lt;/text&gt;<br>      &lt;/pressable&gt;<br>    }<br>  `,<br>})<br>export class Todo {<br>  draft = signal(&#39;&#39;);<br>  tasks = signal&lt;{ id: number; title: string; done: boolean }[]&gt;([]);<br>  left = computed(() =&gt; this.tasks().filter((t) =&gt; !t.done).length);<br>  add() {<br>    const title = this.draft().trim();<br>    if (!title) return;<br>    this.tasks.update((list) =&gt; [...list, { id: Date.now(), title, done: false }]);<br>    this.draft.set(&#39;&#39;);<br>  }<br>  toggle(id: number) {<br>    this.tasks.update((list) =&gt; list.map((t) =&gt; (t.id === id ? { ...t, done: !t.done } : t)));<br>  }<br>}</pre><p>Most of this is plain Angular. signal, computed and @for work exactly as they do on the web.</p><p>The only new parts are the tags. They are lowercase, imported from @ng-native/components, and buttons fire (press) instead of (click).</p><p>Now the test. It renders the screen in Node, types into the input, and presses buttons, just like a user would:</p><pre>import { render, screen, userEvent } from &#39;@ng-native/testing&#39;;<br>import { expect, test } from &#39;vitest&#39;;<br>import { Todo } from &#39;./todo.ts&#39;;<br>test(&#39;adds a task and ticks it off&#39;, async () =&gt; {<br>  await render(Todo);<br>  const user = userEvent.setup();<br>  await user.type(screen.getByPlaceholderText(&#39;Add a task&#39;), &#39;Write the Medium draft&#39;);<br>  await user.press(screen.getByRole(&#39;button&#39;, { name: &#39;Add&#39; }));<br>  expect(screen.getByText(&#39;Today (1 left)&#39;)).toBeTruthy();<br>  await user.press(screen.getByRole(&#39;checkbox&#39;));<br>  expect(screen.getByText(&#39;Today (0 left)&#39;)).toBeTruthy();<br>});</pre><p>It passed on the first run: 2 test files, 2 tests, 2.74 seconds. To make sure it was really checking something, I changed the last line to expect “5 left”. It failed with Unable to find a node with text &quot;Today (5 left)&quot;. So the fake native layer is doing real work.</p><p>This is the part I liked most. Mobile UI tests usually mean booting a simulator. Here they run as fast as unit tests.</p><h3>The browser preview: half worked</h3><p>Angular Native has a web host, @ng-native/web, for previews, docs and demos. My first try was to add it to the Expo project. Vite choked on it, trying to parse React Native&#39;s internal files as plain JavaScript.</p><p>The docs actually show it as a separate project, so I did that. Three files:</p><pre>// vite.config.ts  (npm i @angular/core rxjs @ng-native/components @ng-native/web vite)<br>import { ngNativeWeb } from &#39;@ng-native/web/vite&#39;;<br>import { defineConfig } from &#39;vite&#39;;<br>export default defineConfig({ plugins: [ngNativeWeb()] });<br>// src/main.ts  (index.html just has &lt;div id=&quot;root&quot;&gt; and loads this file)<br>import { mount } from &#39;@ng-native/web&#39;;<br>import { App } from &#39;./app.ts&#39;;  // the starter component, copied over<br>mount(document.getElementById(&#39;root&#39;)!, App);</pre><p>The template’s starter screen, a tap counter, rendered and counted my taps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*1Y26Z_Lkqxcua_EXnv0xvw.png" /></figure><p>Then I mounted my to-do screen instead. Blank page. The browser console said:</p><pre>Cannot read properties of undefined (reading &#39;noteChanges&#39;)<br>Could not resolve &quot;react-native&quot; imported by &quot;@ng-native/device&quot;. Is it installed?</pre><p>The text input reaches for React Native’s keyboard API, which does not exist in a browser. The same screen passed its tests in Node, so this is a web-host gap, not a bug in my code. It is version 0.2.0; expect this kind of thing.</p><h3>Top 3 gotchas</h3><ol><li><strong>Check your Node version first.</strong> The README says Node 22.18+, but Angular 22.2 itself asks for 22.22.3 or newer (or Node 24). On 22.22.0 I got a wall of EBADENGINE warnings. Everything still ran, but use Node 24 and skip the noise.</li><li><strong>It looks like Angular, but it is not the DOM.</strong> Tags are lowercase (&lt;view&gt;, &lt;text&gt;, &lt;pressable&gt;). Text only shows inside &lt;text&gt;. Events are (press), not (click). There is no document or window. The generated AGENTS.md lists these rules, so your coding agent learns them too.</li><li><strong>Ignore the </strong><strong>npm run web hint.</strong> After setup, the CLI suggests npm run web, but the template has no web script. The browser preview is a separate Vite project, and screens with a text input did not render there for me.</li></ol><h3>My verdict</h3><p>Angular Native does what it promises. Real native views, normal Angular code, and tests that run in under 3 seconds without a simulator. For an Angular team that has avoided mobile because it meant learning React, this is a real option for the first time.</p><p>But it is less than a week old, version 0.x, and the docs say APIs may change. Use it for a side project or an internal app now. Wait a few releases before you bet a product on it. If you already ship React Native, nothing here is a reason to switch.</p><p><strong>Would you build your next mobile app in Angular, or has React Native already won that fight for you? Tell me in the comments.</strong></p><p><em>I test new developer tools the week they launch and write up what worked and what broke, in plain language. Follow me so you get the next one.</em></p><h3>Sources</h3><ul><li><a href="https://ng-native.com/">Angular Native home page</a></li><li><a href="https://ng-native.com/guide/getting-started">Getting started guide</a></li><li><a href="https://ng-native.com/guide/architecture.md">Architecture</a></li><li><a href="https://ng-native.com/packages/web.md">Web host (@ng-native/web)</a> and <a href="https://ng-native.com/packages/web/limits.md">web limits</a></li><li><a href="https://ng-native.com/guide/limitations.md">Known limitations</a></li><li><a href="https://github.com/ng-native/ng-native">GitHub repo</a> and <a href="https://github.com/ng-native/ng-native/releases/tag/v0.1.0">v0.1.0 release notes</a> (September 29, 2026)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b6343cf4a2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>