<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: fabiancook</title><link>https://news.ycombinator.com/user?id=fabiancook</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 19 Nov 2026 23:14:40 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=fabiancook" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by fabiancook in "Ask HN: What Are You Working On? (Nov 2025)"]]></title><description><![CDATA[
<p>On and off working on the Navigation API for Node, Bun, Deno, & as a browser polyfill.<p>Has 90% test coverage, makes use of web platform tests to verify compatibility, and is in use by some larger companies already with the Navigation API soon to become a baseline in evergreen browsers.<p>The Navigation API effectively is async state navigations. The likes of React has recently added Navigation API support to make use of the browser reload indicator.<p><a href="https://github.com/virtualstate/navigation" rel="nofollow">https://github.com/virtualstate/navigation</a><p>Along with working on a startup day to day :)</p>
]]></description><pubDate>Sun, 09 Nov 2025 21:52:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=45869553</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=45869553</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45869553</guid></item><item><title><![CDATA[New comment by fabiancook in "Ask HN: Should browsers natively support React-like UI patterns?"]]></title><description><![CDATA[
<p>Do you want just JSX in browsers?<p>Or do you want a "native virtual DOM".... that is the DOM we have today.<p>There is various new tools coming available that make working with a browser so much easier.<p>In the past for example there was no way to do a SPA transition between pages, this was one of the big things handled by the likes of react alongside of the vdoms, but by tooling like react-router for the likes of react. This made it pretty much that you needed to use the likes of react to make state based changes to the DOM.<p>Now... we have the navigation API where you can have an async change happen on navigate and prevent<p>Very soon you'll be able to do this:<p><pre><code>    navigation.addEventListener("navigate", event => {
      event.intercept({
        async handler() {
          const state = event.destination.getState();
          document.body.setHTML(`
      <div>
        <p>Paragraph to inject into shadow DOM.
          <button onclick="alert('You clicked the button with value ${state.key}!')">Click me</button>
        </p>
        <script src="path/to/a/module.js" type="module"><\/script>
        <p data-id="${state.key}">Para with <code>data-id</code> attribute with value <code>${state.key}</code></p>
      </div>
          `)
        }
      })
    });

</code></pre>
(where `setHTML` is the pending API here, the navigation API available in chrome, and polyfill available for firefox/safari)<p>Yes this use of just setting a string is not giving all the nice things like diffing and all... but, we have then a state API tied to the browser navigation, along with a way to know the navigation was successful:<p><pre><code>    await navigation.navigate("/somewhere", { state: { key: "value } }).finished;
</code></pre>
Flipping things around a bit gives the power back to the browser like it seems you're after, rather than reaching for every tool available... but, a standard JSX feels a while away... maybe expressing JSX just for pure DOM elements would be enough though, without any functional components, but I guess that is what makes JSX, JSX.</p>
]]></description><pubDate>Fri, 07 Nov 2025 09:29:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=45844838</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=45844838</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45844838</guid></item><item><title><![CDATA[New comment by fabiancook in "The Future of Routing with the Navigation API – Eduardo San Martin Morote [video]"]]></title><description><![CDATA[
<p>Awesome to see the Navigation API being talked about at DevFest.<p>The API is available in chrome today. Safari & Firefox are actively developing their implementations too.<p>MDN Documentation: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Navigation_...</a><p>JavaScript implementation usable as polyfill: <a href="https://github.com/virtualstate/navigation" rel="nofollow">https://github.com/virtualstate/navigation</a> (I am the author of this repository)</p>
]]></description><pubDate>Fri, 31 Oct 2025 22:33:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=45777430</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=45777430</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45777430</guid></item><item><title><![CDATA[The Future of Routing with the Navigation API – Eduardo San Martin Morote [video]]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.youtube.com/watch?v=2z2HMwAIc0o">https://www.youtube.com/watch?v=2z2HMwAIc0o</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=45777429">https://news.ycombinator.com/item?id=45777429</a></p>
<p>Points: 2</p>
<p># Comments: 1</p>
]]></description><pubDate>Fri, 31 Oct 2025 22:33:29 +0000</pubDate><link>https://www.youtube.com/watch?v=2z2HMwAIc0o</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=45777429</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45777429</guid></item><item><title><![CDATA[New comment by fabiancook in "JetBrains' unremovable AI assistant meets irresistible outcry"]]></title><description><![CDATA[
<p>I paid for the service. When it works for a specific bit of boilerplate code or section of obvious code, its handy.<p>It definitely doesn't know the whole context of my project, or that it should use xyz imports to achieve a specific task from the same project.<p>It will get better with time I am sure.<p>I read through the privacy policy and other policies ahead of time too, nothing concerning for what I am doing. Is backed by OpenAI.<p>* <a href="https://www.jetbrains.com/help/ai/data-collection-and-use-policy.html" rel="nofollow">https://www.jetbrains.com/help/ai/data-collection-and-use-po...</a><p>* <a href="https://www.jetbrains.com/legal/docs/terms/jetbrains-ai/service-providers/" rel="nofollow">https://www.jetbrains.com/legal/docs/terms/jetbrains-ai/serv...</a></p>
]]></description><pubDate>Sun, 04 Feb 2024 08:31:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=39248611</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=39248611</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39248611</guid></item><item><title><![CDATA[New comment by fabiancook in "UK to Ban Disposable Vapes"]]></title><description><![CDATA[
<p>The UK also sells CBD vapes, I wonder how this will change that.<p>I would imagine their wording of whatever they put in place will be broad enough to cover just anything disposable that produces vapour</p>
]]></description><pubDate>Tue, 30 Jan 2024 03:30:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=39186090</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=39186090</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39186090</guid></item><item><title><![CDATA[New comment by fabiancook in "Histotripsy – a technique that harnesses soundwaves to attack cancer"]]></title><description><![CDATA[
<p>Had just read this other article earlier today... lots of sound therapy for cancer coming about! <a href="https://www.science.org/doi/10.1126/sciadv.adg5964" rel="nofollow noreferrer">https://www.science.org/doi/10.1126/sciadv.adg5964</a></p>
]]></description><pubDate>Fri, 13 Oct 2023 21:24:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=37875802</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=37875802</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37875802</guid></item><item><title><![CDATA[New comment by fabiancook in "TypeScript cannot emit valid ES modules due to file extension issue (2020)"]]></title><description><![CDATA[
<p>To tackle this, I always needed to write a little script for my TypeScript projects that were all being published as ESM:<p><a href="https://github.com/virtualstate/promise/blob/main/scripts/correct-import-extensions.js">https://github.com/virtualstate/promise/blob/main/scripts/co...</a><p><a href="https://github.com/virtualstate/focus/blob/main/scripts/correct-import-extensions.js">https://github.com/virtualstate/focus/blob/main/scripts/corr...</a><p><a href="https://github.com/virtualstate/navigation/blob/main/scripts/correct-import-extensions.js">https://github.com/virtualstate/navigation/blob/main/scripts...</a><p>This same script was replicated to near every repository I have worked on, including making its way into a few different production services where Node.js + ESM was used for deployment<p>Eventually I had turned into a utility module that could be used wider, which starts to lean into import map generation<p><a href="https://github.com/virtualstate/impack#usage">https://github.com/virtualstate/impack#usage</a><p>You can see it being used here as a function, but can be used as a cli tool too:<p><a href="https://github.com/virtualstate/listen/blob/033bf8effcbde5c825851516bd651fdc1bd13680/scripts/post-build.js#L7-L14">https://github.com/virtualstate/listen/blob/033bf8effcbde5c8...</a></p>
]]></description><pubDate>Tue, 21 Mar 2023 00:29:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=35240891</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=35240891</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35240891</guid></item><item><title><![CDATA[New comment by fabiancook in "Ask HN: What good sources of information on ovarian cancer treatments?"]]></title><description><![CDATA[
<p>Publications like pubmed are generally a good source to read from, check the citations on the article  & check its review status.<p>If you have an article that you found with a helpful summary but it doesn't have the full source, take the "doi" link to sci-hub to get the full source.<p>Try to stay away from any article on any site that doesn't have a research article referenced that has a doi number.<p>Do checkout discussion around the endocannabinoid system in relation to recovery & chemotherapy support.<p>When you get the details on the specific chemotherapy being done, you'll have a specific couple of chemicals to be able to search through... for example Gemcitabine and Carboplatin. Different kinds of cancers have a different sets of chemotherapy chemicals related.<p>I'll mention that I have a close family member with terminal lung cancer. Following the above we've been successfully treating his symptoms and have also reduced the size of the primary tumour along the way (It was non operable & no radiation could be done)</p>
]]></description><pubDate>Mon, 09 Jan 2023 02:37:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=34306031</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=34306031</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34306031</guid></item><item><title><![CDATA[New comment by fabiancook in "Ask HN: What are some cool but obscure data structures you know about?"]]></title><description><![CDATA[
<p><a href="https://github.com/tc39/proposal-function-memo" rel="nofollow">https://github.com/tc39/proposal-function-memo</a><p>This might be relevant to this exact pattern<p><pre><code>  const getThing = (async function (arg1, arg2) {
    console.log({ arg1, arg2 });
    return arg1 + (arg2 || 0);
  }).memo();

  console.log(await getThing(1)); // New promise
  console.log(await getThing(2)); // New promise
  console.log(await getThing(1)); // Returns promise from earlier</code></pre></p>
]]></description><pubDate>Sat, 23 Jul 2022 05:09:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=32200582</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=32200582</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32200582</guid></item><item><title><![CDATA[New comment by fabiancook in "New proof reveals the hidden structure of common equations"]]></title><description><![CDATA[
<p>Direct paper link <a href="https://arxiv.org/abs/2111.06507" rel="nofollow">https://arxiv.org/abs/2111.06507</a></p>
]]></description><pubDate>Tue, 26 Apr 2022 12:22:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=31166589</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=31166589</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31166589</guid></item><item><title><![CDATA[New comment by fabiancook in "Okta Confirms Breach"]]></title><description><![CDATA[
<p>Discussed here too <a href="https://news.ycombinator.com/item?id=30775180" rel="nofollow">https://news.ycombinator.com/item?id=30775180</a></p>
]]></description><pubDate>Thu, 24 Mar 2022 09:58:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=30787860</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30787860</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30787860</guid></item><item><title><![CDATA[New comment by fabiancook in "Alcohol-related deaths spiked during the pandemic, a study shows"]]></title><description><![CDATA[
<p>No paywall: <a href="https://web.archive.org/web/20220324080026/https://www.nytimes.com/2022/03/22/health/alcohol-deaths-covid.html" rel="nofollow">https://web.archive.org/web/20220324080026/https://www.nytim...</a></p>
]]></description><pubDate>Thu, 24 Mar 2022 08:47:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=30787492</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30787492</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30787492</guid></item><item><title><![CDATA[Proposed App History API renamed Navigation API]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/WICG/navigation-api/issues/83">https://github.com/WICG/navigation-api/issues/83</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=30612278">https://news.ycombinator.com/item?id=30612278</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 09 Mar 2022 08:47:40 +0000</pubDate><link>https://github.com/WICG/navigation-api/issues/83</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30612278</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30612278</guid></item><item><title><![CDATA[New comment by fabiancook in "CSS as the back end – Cascading Server Sheets"]]></title><description><![CDATA[
<p>Pretty cool exercise to go through!</p>
]]></description><pubDate>Tue, 01 Mar 2022 23:48:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=30521650</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30521650</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30521650</guid></item><item><title><![CDATA[New comment by fabiancook in "A baby saved ‘Toy Story 2’ from near complete deletion (2021)"]]></title><description><![CDATA[
<p>TLDR birth causing WFM, producing a verified backup chain.</p>
]]></description><pubDate>Mon, 14 Feb 2022 20:42:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=30338013</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30338013</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30338013</guid></item><item><title><![CDATA[New comment by fabiancook in "Ask HN: How do you use email aliases?"]]></title><description><![CDATA[
<p>I have been using fastmail, my main email address is hi@, but I have set up a routing rule for *, anything that is going to produce obvious spam, for example if I wanted to get a discount code through email, I would use spam@ and have a rule set up for all of these emails to go to deleted, I can still check them for 10 days.<p>other things I have rules set up for too, to go to inboxes.<p>fastmail also lets you reply as the email that was sent to, so if someone emails me at test@ they will get a response from test@</p>
]]></description><pubDate>Sat, 12 Feb 2022 22:13:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=30317018</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30317018</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30317018</guid></item><item><title><![CDATA[New comment by fabiancook in "Ask HN: How do you use email aliases?"]]></title><description><![CDATA[
<p>I have been using fastmail, my main email address is hi@<domain>, but I have set up a routing rule for *@<domain>, anything that is going to produce obvious spam, for example if I wanted to get a discount code through email, I would use spam@<domain> and have a rule set up for all of these emails to go to deleted, I can still check them for 10 days.<p>other things I have rules set up for too, to go to inboxes.<p>fastmail also lets you reply as the email that was sent to, so if someone emails me at test@<domain> they will get a response from test@<domain></p>
]]></description><pubDate>Sat, 12 Feb 2022 22:12:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=30317013</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30317013</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30317013</guid></item><item><title><![CDATA[New comment by fabiancook in "On Folk Theorems (1980)"]]></title><description><![CDATA[
<p>Alternative full PDF link from scihub <a href="https://sci-hub.hkvisa.net/10.1145/358886.358892" rel="nofollow">https://sci-hub.hkvisa.net/10.1145/358886.358892</a></p>
]]></description><pubDate>Sat, 12 Feb 2022 21:37:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=30316771</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=30316771</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30316771</guid></item><item><title><![CDATA[New comment by fabiancook in "Show HN: Pdf.to"]]></title><description><![CDATA[
<p>I was hoping this was going to be a whitepaper version of dev.to... clicked so fast.</p>
]]></description><pubDate>Tue, 16 Nov 2021 09:27:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=29238577</link><dc:creator>fabiancook</dc:creator><comments>https://news.ycombinator.com/item?id=29238577</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29238577</guid></item></channel></rss>