<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>petersen.io</title>
    <description>Chris Petersen&apos;s blog</description>
    <link>https://petersen.io/</link>
    <atom:link href="https://petersen.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Thu, 16 Apr 2026 18:16:56 +0000</pubDate>
    <lastBuildDate>Thu, 16 Apr 2026 18:16:56 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Star Gazing with the Seestar S30</title>
        <description>&lt;p&gt;I got a &lt;a href=&quot;https://www.zwoastro.com/product/seestar-s30-smart-telescope/&quot;&gt;ZWO Seestar S30&lt;/a&gt; for my birthday. I’ve been bringing it when I camp with the kids. It’s been a lot of fun and it’s dead easy. You set it up, point it at the sky, it suggests targets that are likely to be good, tracks them and stacks the images. It’s a remarkable little telescope for how easy it is to use.&lt;/p&gt;

&lt;p&gt;Here are some of my favorite shots from recent camping trips.&lt;/p&gt;

&lt;h2 id=&quot;empire-ranch&quot;&gt;Empire Ranch&lt;/h2&gt;

&lt;p&gt;Our first outing with the Seestar was at Empire Ranch, down near the Mexico border. The skies out there are dark and the seeing was excellent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;M42 — The Orion Nebula&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first deep sky object most people point a telescope at, and for good reason. The detail in the nebula’s core and the wisps of gas trailing off are striking even with a relatively short imaging session. I actually left it out for nearly an hour, but the nebula was low in the sky, which throws off the tracking, so it only got a few minutes of usuable images.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/star-gazing/m42-large.png&quot; alt=&quot;M42 - The Orion Nebula&quot; style=&quot;border-radius: 6px; margin: 1.5rem 0;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;M45 — The Pleiades&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Seven Sisters. One of the most recognizable open star clusters in the night sky. You can just make out the faint blue reflection nebulosity around the brightest stars. I really want to do this one again, I think a longer integration time would really bring out the blues.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/star-gazing/m45-large.png&quot; alt=&quot;M45 - The Pleiades&quot; style=&quot;border-radius: 6px; margin: 1.5rem 0;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;joshua-tree&quot;&gt;Joshua Tree&lt;/h2&gt;

&lt;p&gt;The second trip was out to Joshua Tree. The desert skies are fantastic for this kind of thing, but the desert had a surprise in store for us.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;M81 — Bode’s Galaxy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A beautiful spiral galaxy about 12 million light-years away. You can also see its neighbor M82, the Cigar Galaxy, in the same frame.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/star-gazing/m81-large.png&quot; alt=&quot;M81 - Bode&apos;s Galaxy&quot; style=&quot;border-radius: 6px; margin: 1.5rem 0;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NGC 2175 — The Monkey Head Nebula&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An emission nebula in the constellation Gemini. The reddish hydrogen-alpha glow really comes through.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/star-gazing/ngc2175-large.png&quot; alt=&quot;NGC 2175 - The Monkey Head Nebula&quot; style=&quot;border-radius: 6px; margin: 1.5rem 0;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-scorpion-incident&quot;&gt;The Scorpion Incident&lt;/h2&gt;

&lt;p&gt;We were standing out in the dark fiddling with the telescope when another camper wandered over with a black light. I heard them saying “Oooh, scorpion!”, then “oooh scorpion!” again, and again… and again.&lt;/p&gt;

&lt;p&gt;Turns out they fluoresce under ultraviolet light, and the desert was full of them. It’s one of those things you’re kind of glad you didn’t know about five minutes earlier.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/star-gazing/scorpion-large.png&quot; alt=&quot;A scorpion glowing under UV light&quot; style=&quot;border-radius: 6px; margin: 1.5rem 0;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;After that revelation we decided to let the Seestar do its thing overnight and retreated to the camper. The NGC 2175 shot above was the result of that extended session. Not a bad trade, scorpion awareness for a few extra hours of integration time.&lt;/p&gt;
</description>
        <pubDate>Mon, 06 Apr 2026 19:00:00 +0000</pubDate>
        <link>https://petersen.io/life/technology/2026/04/06/star-gazing-with-the-seestar-s30.html</link>
        <guid isPermaLink="true">https://petersen.io/life/technology/2026/04/06/star-gazing-with-the-seestar-s30.html</guid>
        
        
        <category>Life</category>
        
        <category>Technology</category>
        
      </item>
    
      <item>
        <title>Apple Should Stop Shipping UI Updates and Start Building the Agent OS</title>
        <description>&lt;p&gt;Jake Quist recently wrote about &lt;a href=&quot;https://www.jakequist.com/thoughts/openclaw-is-what-apple-intelligence-should-have-been&quot;&gt;OpenClaw&lt;/a&gt;, the open-source framework people are using to run AI agents on Mac Minis. His argument is that OpenClaw is what Apple Intelligence should have been. I think he’s right, but the real takeaway isn’t that Apple missed the moment. It’s that they’re uniquely positioned to build something no one else can.&lt;/p&gt;

&lt;p&gt;Liquid Glass is fine. Make it the last UI overhaul for a while. macOS is already great for humans. The next OS release should focus on making it great for agents. That’s a totally new problem and no one has solved it yet.&lt;/p&gt;

&lt;h2 id=&quot;os-level-agent-permissions&quot;&gt;OS-Level Agent Permissions&lt;/h2&gt;

&lt;p&gt;Not “Siri can access your calendar.” I mean real, fine-grained, Unix-style controls. My agent can read this email account but only send to these addresses. It can see this directory but not that one. It can use this stored credential and nothing else. Enforced by the kernel, not by the chatbot.&lt;/p&gt;

&lt;h2 id=&quot;multi-user-multi-agent&quot;&gt;Multi-User, Multi-Agent&lt;/h2&gt;

&lt;p&gt;I want my account, my wife’s account, my agent’s account, and her agent’s account. All on one Mac Mini sitting in a closet. Headless by default, no HDMI dongle required.&lt;/p&gt;

&lt;h2 id=&quot;first-class-safari-support-for-agents&quot;&gt;First-Class Safari Support for Agents&lt;/h2&gt;

&lt;p&gt;Not a hacked-together Playwright session or a headless Chrome instance dodging bot detection. A real, sanctioned browser context that agents can drive natively, with the same permission model as everything else. If my agent needs to log into Southwest and book a flight, Safari should support that as a first-party workflow.&lt;/p&gt;

&lt;h2 id=&quot;a-threaded-conversational-interface&quot;&gt;A Threaded Conversational Interface&lt;/h2&gt;

&lt;p&gt;iMessage, maybe with some Slack-like enhancements. Different conversations, different contexts. Maybe a family channel with a shared agent that can check all our calendars and coordinate schedules.&lt;/p&gt;

&lt;h2 id=&quot;virtual-apple-card-numbers-with-agent-controls&quot;&gt;Virtual Apple Card Numbers with Agent Controls&lt;/h2&gt;

&lt;p&gt;Virtual Apple Card numbers that the agent can use with per-vendor spending controls. A $500 card locked to Southwest. A $5 card locked to Robux for the kids. Every transaction buzzes my phone for approval.&lt;/p&gt;

&lt;h2 id=&quot;the-iphone-as-remote-control&quot;&gt;The iPhone as Remote Control&lt;/h2&gt;

&lt;p&gt;My iPhone becomes a remote control. A window into a powerful agent running on hardware I own.&lt;/p&gt;

&lt;h2 id=&quot;apple-has-every-piece&quot;&gt;Apple Has Every Piece&lt;/h2&gt;

&lt;p&gt;Apple has every piece of this. Secure Enclave. Multi-user macOS. Apple Card. iMessage. Safari. The privacy brand. What they don’t have is the model. It’s a big vision, different than anything they’ve done before, but something I think Apple is uniquely positioned to do.&lt;/p&gt;

&lt;p&gt;So build the OS. Then pony up the better part of a trillion dollars and buy Anthropic. 😀&lt;/p&gt;
</description>
        <pubDate>Thu, 12 Mar 2026 15:00:00 +0000</pubDate>
        <link>https://petersen.io/ai/technology/2026/03/12/apple-should-build-the-agent-os.html</link>
        <guid isPermaLink="true">https://petersen.io/ai/technology/2026/03/12/apple-should-build-the-agent-os.html</guid>
        
        
        <category>AI</category>
        
        <category>Technology</category>
        
      </item>
    
      <item>
        <title>Predictive Models for Biological Experiments Patent</title>
        <description>&lt;p&gt;Our latest patent, &lt;em&gt;Predictive Models for Biological Experiments&lt;/em&gt;, just published through WIPO. I’m listed as a co-inventor alongside Micah Iriye and Daniel Drobnicki.&lt;/p&gt;

&lt;p&gt;The core problem we set out to solve is one that anyone running long-duration scientific experiments knows well: how do you accurately recognize revenue when the timeline, scope, and cost of an experiment are constantly shifting? Traditional approaches peg revenue to a fixed schedule, but scientific work rarely follows a fixed schedule. Supplier performance varies, change orders come in, delays happen.&lt;/p&gt;

&lt;p&gt;Our approach uses machine learning models trained on historical experiment data to continuously predict both the total invoice value and the expected duration of an experiment. Revenue is then recognized daily along that projected trajectory rather than on a rigid timeline. As real-world conditions evolve throughout the life of an experiment, the model recalibrates and the revenue curve adjusts accordingly.&lt;/p&gt;

&lt;p&gt;The system supports a range of model types including regression models, decision trees, random forests, and neural networks, and works across a broad set of assay types: cell-based, genomics, proteomics, imaging, clinical laboratory, drug discovery, metabolism and pharmacokinetics, and immunology.&lt;/p&gt;

&lt;p&gt;This isn’t a theoretical exercise. We built this because we needed it. It’s been running in production as part of our revenue recognition system at Scientist.com, keeping us accurate and compliant even as experiment outcomes shift under our feet.&lt;/p&gt;

&lt;p&gt;You can find the full publication on &lt;a href=&quot;https://patentscope.wipo.int/search/en/detail.jsf?docId=WO2026019843&quot;&gt;WIPO’s PATENTSCOPE&lt;/a&gt; and on &lt;a href=&quot;https://patents.google.com/patent/WO2026019843A1&quot;&gt;Google Patents&lt;/a&gt;.&lt;/p&gt;
</description>
        <pubDate>Fri, 23 Jan 2026 16:00:00 +0000</pubDate>
        <link>https://petersen.io/technology/scientist.com/2026/01/23/predictive-models-patent.html</link>
        <guid isPermaLink="true">https://petersen.io/technology/scientist.com/2026/01/23/predictive-models-patent.html</guid>
        
        
        <category>Technology</category>
        
        <category>Scientist.com</category>
        
      </item>
    
      <item>
        <title>The Bits in Bio Podcast</title>
        <description>&lt;p&gt;I recently joined Robbie Matthews and Vincent A. Alessi on &lt;a href=&quot;https://www.bitsinbio.org&quot;&gt;The Bits in Bio Podcast&lt;/a&gt; to talk about nearly 20 years of building Scientist.com—from running a CRO lab to creating a B2E marketplace that’s facilitated $2.5 billion in pharma R&amp;amp;D procurement.&lt;/p&gt;

&lt;p&gt;We covered a lot of ground: pivotal business and architecture decisions, deploying AI across workflows for nearly all top 30 pharma companies, our recent acquisition by GHO Capital Partners, and a few hard-earned lessons along the way.&lt;/p&gt;

&lt;p&gt;I also shared one of my favorite early stories—a legendary Paul Blart Mall Cop rescue that happened in the early days of the company. You’ll have to listen to get the full story.&lt;/p&gt;

&lt;p&gt;If you’re anywhere near the intersection of technology and biotech, give it a listen. Robbie and Vince host a great show.&lt;/p&gt;

&lt;iframe data-testid=&quot;embed-iframe&quot; style=&quot;border-radius:12px&quot; src=&quot;https://open.spotify.com/embed/episode/54BsWz7W466Hd9VAQ0mgDq?utm_source=generator&quot; width=&quot;100%&quot; height=&quot;352&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot; allow=&quot;autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture&quot; loading=&quot;lazy&quot;&gt;&lt;/iframe&gt;
</description>
        <pubDate>Thu, 01 Jan 2026 17:00:00 +0000</pubDate>
        <link>https://petersen.io/ai/scientist.com/2026/01/01/bits-in-bio-podcast.html</link>
        <guid isPermaLink="true">https://petersen.io/ai/scientist.com/2026/01/01/bits-in-bio-podcast.html</guid>
        
        
        <category>AI</category>
        
        <category>Scientist.com</category>
        
      </item>
    
      <item>
        <title>7CTOs CTO of the Year 2025</title>
        <description>&lt;p&gt;I’m honored, humbled, and deeply grateful to share that I was named the &lt;a href=&quot;https://7ctos.com&quot;&gt;7CTOs&lt;/a&gt; CTO of the Year for 2025.&lt;/p&gt;

&lt;div class=&quot;media youtube&quot; data-animation=&quot;fadeInUp&quot;&gt;

	
		&lt;iframe src=&quot;https://www.youtube.com/embed/U6MdjrKI2dA&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
	

	
		&lt;div class=&quot;caption&quot; data-animation=&quot;fadeInUp&quot;&gt;
		  
		  
		  	&lt;h4&gt;CTO of the Year Acceptance Speech&lt;/h4&gt;
		  

		  

		  

		&lt;/div&gt;
	

&lt;/div&gt;

&lt;p&gt;A heartfelt thank you to Etienne de Bruin, Brittany Cotton, and the entire 7CTOs team and community for the recognition and for all that you do to support and inspire technology leaders.&lt;/p&gt;

&lt;p&gt;Full press release &lt;a href=&quot;https://www.prnewswire.com/news-releases/scientistcom-co-founder-chris-petersen-named-2025-cto-of-the-year-by-7ctos-302611198.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
</description>
        <pubDate>Tue, 11 Nov 2025 16:00:00 +0000</pubDate>
        <link>https://petersen.io/scientist.com/2025/11/11/7ctos-cto-of-the-year.html</link>
        <guid isPermaLink="true">https://petersen.io/scientist.com/2025/11/11/7ctos-cto-of-the-year.html</guid>
        
        
        <category>Scientist.com</category>
        
      </item>
    
      <item>
        <title>Scientist.com Acquired by GHO Capital</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/import/kevin-chris-surfboards.jpeg&quot; alt=&quot;Kevin and Chris with surfboards&quot; /&gt;&lt;/p&gt;

&lt;p&gt;23 years ago, I met Kevin Lustig and Andy Martin. In 2007—over 18 years ago—we founded Assay Depot, which has since grown into Scientist.com. From the very beginning, our vision was to make scientific research more efficient, transparent, and collaborative. What started as a small idea has become a platform trusted by the world’s largest pharmaceutical companies and hundreds of biotech firms.&lt;/p&gt;

&lt;p&gt;Today, I’m honored to share that Scientist.com has entered into an agreement to be acquired by &lt;a href=&quot;https://ghocapital.com&quot;&gt;GHO Capital Partners LLP&lt;/a&gt;. GHO is the ideal partner to help us accelerate our mission, expand globally, and continue transforming the way outsourced research is done.&lt;/p&gt;

&lt;p&gt;I am deeply grateful to everyone who has been part of this journey—Dan Kagan, Diana Rios Ourthiague, Rob Kaufman, our employees, whose dedication and talent made the impossible possible; our investors, who believed in us from the start; my cofounders, Kevin and Andy, with whom I’ve had the privilege of building this company for nearly two decades; and above all, my family. There are far too many people to name individually, but the constant love and encouragement of my wife, Dana, and our family have made everything we’ve achieved possible.&lt;/p&gt;

&lt;p&gt;This milestone is both a celebration of how far we’ve come and the beginning of an exciting new chapter. The future for Scientist.com is bright, and I couldn’t be more hopeful about what’s ahead.&lt;/p&gt;

&lt;p&gt;Full press release &lt;a href=&quot;https://app.scientist.com/blog/2025/09/16/scientist-com-announces-agreement-to-be-acquired-by-gho-capital-partners&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
</description>
        <pubDate>Tue, 16 Sep 2025 19:00:00 +0000</pubDate>
        <link>https://petersen.io/scientist.com/2025/09/16/scientist-acquired-by-gho.html</link>
        <guid isPermaLink="true">https://petersen.io/scientist.com/2025/09/16/scientist-acquired-by-gho.html</guid>
        
        
        <category>Scientist.com</category>
        
      </item>
    
      <item>
        <title>Web Development Then, LLMs Now: Forecasting LLM Best Practices by Looking Back – and Ahead</title>
        <description>&lt;p&gt;I gave a talk at the &lt;a href=&quot;https://7ctos.com&quot;&gt;7CTOs&lt;/a&gt; Colloquium in Austin on best practices for building Retrieval-Augmented Generation (RAG) pipelines—and how we’re starting to see a clear architecture emerge for serious LLM-based applications.&lt;/p&gt;

&lt;div class=&quot;media vimeo&quot; data-animation=&quot;fadeInUp&quot;&gt;

	
		
		
		
			&lt;iframe src=&quot;https://player.vimeo.com/video/1094530809?h=c245a921d6&amp;amp;title=0&amp;amp;byline=0&amp;amp;portrait=0&amp;amp;color=eb2344&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
		
	

	
		&lt;div class=&quot;caption&quot; data-animation=&quot;fadeInUp&quot;&gt;
		  
		  
		  	&lt;h4&gt;Web Development Then, LLMs Now: Forecasting LLM Best Practices by Looking Back – and Ahead&lt;/h4&gt;
		  

		  

		  

		&lt;/div&gt;
	

&lt;/div&gt;

&lt;p&gt;In this talk, I cover:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Chunking strategies (simple, structural, semantic)&lt;/li&gt;
  &lt;li&gt;Search and retrieval (BM25, vector search, RRF)&lt;/li&gt;
  &lt;li&gt;Query rewriting, decomposition, and HyDE&lt;/li&gt;
  &lt;li&gt;Reranking, repacking, and summarization&lt;/li&gt;
  &lt;li&gt;Tool calling and query classification&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also share prompts, techniques, and design tradeoffs we’ve discovered while building real-world LLM applications at &lt;a href=&quot;https://www.scientist.com&quot;&gt;Scientist.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks to 7CTOs for putting on the event and thank you to &lt;a href=&quot;https://howdy.com&quot;&gt;Howdy.com&lt;/a&gt; for hosting!&lt;/p&gt;
</description>
        <pubDate>Wed, 18 Jun 2025 19:00:00 +0000</pubDate>
        <link>https://petersen.io/llm/ai/video/2025/06/18/rag-pipeline-best-practices.html</link>
        <guid isPermaLink="true">https://petersen.io/llm/ai/video/2025/06/18/rag-pipeline-best-practices.html</guid>
        
        
        <category>LLM</category>
        
        <category>AI</category>
        
        <category>Video</category>
        
      </item>
    
      <item>
        <title>AI&apos;s Quiet Revolution in the Pharma Supply Chain</title>
        <description>&lt;p&gt;I joined the &lt;a href=&quot;https://www.mendelspod.com&quot;&gt;Mendelspod&lt;/a&gt; podcast to discuss how artificial intelligence is transforming the research services marketplace and pharmaceutical infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.mendelspod.com/p/ais-quiet-revolution-in-the-pharma&quot;&gt;Listen to the episode here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this episode, we cover:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;How AI is still in the “tinkering phase” compared to early web development&lt;/li&gt;
  &lt;li&gt;Productivity gains across software development, negotiations, and customer service&lt;/li&gt;
  &lt;li&gt;Elisa, our internal AI tool that functions like a fine-tuned ChatGPT within Slack&lt;/li&gt;
  &lt;li&gt;Risks of AI consolidation and data concentration among a few large models&lt;/li&gt;
  &lt;li&gt;Benchmate, our proprietary effort building internal LLMs using models like Mistral and DeepSeek&lt;/li&gt;
  &lt;li&gt;AI’s potential to reshape how science is organized and conducted&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are all of these problems that were impossible to solve a year and a half ago. And now you can solve them.&lt;/p&gt;
</description>
        <pubDate>Thu, 17 Apr 2025 19:00:00 +0000</pubDate>
        <link>https://petersen.io/ai/llm/scientist.com/2025/04/17/mendelspod-ai-pharma-supply-chain.html</link>
        <guid isPermaLink="true">https://petersen.io/ai/llm/scientist.com/2025/04/17/mendelspod-ai-pharma-supply-chain.html</guid>
        
        
        <category>AI</category>
        
        <category>LLM</category>
        
        <category>Scientist.com</category>
        
      </item>
    
      <item>
        <title>Water</title>
        <description>&lt;p&gt;There is an app that I’ve wanted to build for over 5 years. I wanted to use the &lt;a href=&quot;https://www.rust-lang.org&quot;&gt;Rust programming language&lt;/a&gt; to build a &lt;a href=&quot;https://webassembly.org&quot;&gt;WASM&lt;/a&gt; application so it can run in a browser. The application would implement the &lt;a href=&quot;https://en.wikipedia.org/wiki/Navier–Stokes_equations&quot;&gt;Navier Stokes equations&lt;/a&gt; that describe fluid dynamics. I always thought that be an interesting project that, while basically useless, would be fun to implement.&lt;/p&gt;

&lt;p&gt;However, it involved a number of technologies that I’d need to research and math I’d need to understand, so it was left on the shelf.&lt;/p&gt;

&lt;p&gt;Until now. With all the hype (and not insignificant hate) around vibe-coding, I thought it would be fun to try and build it using &lt;a href=&quot;https://github.com/anthropics/claude-code&quot;&gt;Claude Code&lt;/a&gt;. I was shocked at how well it worked. The results are below.&lt;/p&gt;

&lt;h2 id=&quot;click-and-drag-inside-the-black-box&quot;&gt;Click and drag inside the black box&lt;/h2&gt;
&lt;style&gt;
  #fluid-canvas {
    width: 100%;
    height: 400px;
    background-color: black;
  }
&lt;/style&gt;

&lt;canvas id=&quot;fluid-canvas&quot;&gt;&lt;/canvas&gt;
&lt;script&gt;
  // You can customize the fluid simulation by setting window.FLUID_CONFIG
  // These settings will override the defaults
  window.FLUID_CONFIG = {
    // Visual settings
    fluidColor: [0, 100, 255],     // RGB values for fluid color (blue)
    densityAmount: 5.0,            // How much fluid to add per interaction
    colorIntensity: 2.0,           // Intensity of the color (0-1)

    // Physics settings
    densityDecay: 0.999,           // How quickly fluid fades (1.0 = no fade)

    // Layout settings
    responsive: true,              // Auto-resize with window

    // Advanced settings - uncomment to modify
    // gridSize: 150,              // Higher = more detailed but slower
    // diffusion: 0.0001,          // How quickly the fluid spreads
    // viscosity: 0.0000001,       // How thick/sticky the fluid is
    // velocityScale: 0.05,        // How strongly mouse affects the fluid
    // velocityDecay: 0.99,        // How quickly motion slows down
    // backgroundColor: [0, 0, 0], // RGB values for background (black)
    // showVelocity: false,        // Show velocity vectors (for debugging)
    // frameSkip: 0,               // Skip frames for performance (0 = none)
    // timeStep: 0.2,              // Simulation speed
  };
&lt;/script&gt;

&lt;script src=&quot;/assets/water/js/index.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;I think the whole thing took me maybe 15 minutes of real time and about $2.85 of &lt;a href=&quot;https://www.anthropic.com&quot;&gt;Anthropic&lt;/a&gt; credits.&lt;/p&gt;

&lt;p&gt;Here is a log of every prompt I sent to Claude to generate the app:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-txt&quot; data-lang=&quot;txt&quot;&gt; &amp;gt; You are in an empty directory. I want to create a Rust project that will ultimately render in a browser using WASM. I want to create a fluid visualization based on the Navier Stokes equations. What do you need to get started?

 &amp;gt; It compiled great, but I&apos;m getting this error when I open it in the browser: Compiled with problems:

 │   ×
 │   ERROR in ./src/web/index.js 1:0-30
 │   Module not found: Error: Can&apos;t resolve &apos;../..&apos; in &apos;/Users/cpetersen/src/cpetersen/water/src/web&apos;

 &amp;gt; Now I&apos;m getting: warning: unexpected `cfg` condition value: `wee_alloc`

 │    --&amp;gt; src/lib.rs:6:7
 │     |
 │   6 | #[cfg(feature = &quot;wee_alloc&quot;)]
 │     |       ^^^^^^^^^^^^^^^^^^^^^
 │     |
 │     = note: expected values for `feature` are: `console_error_panic_hook` and `default`
 │     = help: consider adding `wee_alloc` as a feature in `Cargo.toml`
 │     = note: see &amp;lt;https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html&amp;gt; for more information about checking conditional configuration
 │     = note: `#[warn(unexpected_cfgs)]` on by default
 │
 │   warning: unused import: `nalgebra as na`
 │    --&amp;gt; src/lib.rs:3:5
 │     |
 │   3 | use nalgebra as na;
 │     |     ^^^^^^^^^^^^^^
 │     |
 │     = note: `#[warn(unused_imports)]` on by default
 │
 │   warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style`
 │     --&amp;gt; src/lib.rs:69:21
 │      |
 │   69 |                 ctx.set_fill_style(&amp;amp;JsValue::from_str(&amp;amp;color));
 │      |                     ^^^^^^^^^^^^^^
 │      |
 │      = note: `#[warn(deprecated)]` on by default
 │
 │   warning: unused variable: `n`
 │     --&amp;gt; src/lib.rs:89:13
 │      |
 │   89 |         let n = self.width;
 │      |             ^ help: if this is intentional, prefix it with an underscore: `_n`
 │      |
 │      = note: `#[warn(unused_variables)]` on by default
 │
 │   error[E0502]: cannot borrow `self.velocity_x` as mutable because it is also borrowed as immutable
 │      --&amp;gt; src/lib.rs:102:24
 │       |
 │   102 |         self.advect(1, &amp;amp;mut self.velocity_x, &amp;amp;velocity_x0, &amp;amp;velocity_x0, &amp;amp;velocity_y0);
 │       |         ---- ------    ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
 │       |         |    |
 │       |         |    immutable borrow[Pasted text +45 lines]

 &amp;gt; Now I get

 │   &amp;gt; water@0.1.0 start
 │   &amp;gt; npm run wasm-pack &amp;amp;&amp;amp; webpack serve --open
 │
 │
 │   &amp;gt; water@0.1.0 wasm-pack
 │   &amp;gt; wasm-pack build --target web
 │
 │   [INFO]: 🎯  Checking for the Wasm target...
 │   [INFO]: 🌀  Compiling to Wasm...
 │      Compiling water v0.1.0 (/Users/cpetersen/src/cpetersen/water)
 │   error[E0599]: no method named `set` found for struct `JsValue` in the current scope
 │     --&amp;gt; src/lib.rs:69:34
 │      |
 │   69 |                 ctx.fill_style().set(&amp;amp;JsValue::from_str(&amp;amp;color));
 │      |                                  ^^^ method not found in `JsValue`
 │      |
 │   help: consider pinning the expression
 │      |
 │   69 ~                 let mut pinned = std::pin::pin!(ctx.fill_style());
 │   70 ~                 pinned.as_mut().set(&amp;amp;JsValue::from_str(&amp;amp;color));
 │      |
 │
 │   error[E0502]: cannot borrow `self.velocity_x` as mutable because it is also borrowed as immutable
 │      --&amp;gt; src/lib.rs:114:22
 │       |
 │   114 |         self.project(&amp;amp;mut self.velocity_x, &amp;amp;mut self.velocity_y);
 │       |         ---- ------- ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
 │       |         |    |
 │       |         |    immutable borrow later used by call
 │       |         immutable borrow occurs here
 │
 │   error[E0502]: cannot borrow `self.velocity_y` as mutable because it is also borrowed as immutable
 │      --&amp;gt; src/lib.rs:114:44
 │       |
 │   114 |         self.project(&amp;amp;mut self.velocity_x, &amp;amp;mut self.velocity_y);
 │       |         ---- -------                       ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
 │       |         |    |
 │       |         |    immutable borrow later used by call
 │       |         immutable borrow occurs here
 │
 │   Some errors have detailed explanations: E0502, E0599.
 │   For more information about an error, try `rustc --explain E0502`.
 │   error: could not compile `water` (lib) due to 3 previous errors
 │   Error: Compiling your crate to WebAssembly failed
 │   Caused by: Compiling your crate to WebAssembly failed
 │   Caused by: failed to execute `cargo build`: exited with exit status: 101
 │     full command: cd &quot;/Users/cpetersen/src/cpetersen/water&quot; &amp;amp;&amp;amp; &quot;cargo&quot; &quot;build&quot; &quot;--lib&quot; &quot;--release&quot; &quot;--target&quot; &quot;wasm32-unknown-unknown&quot;

 &amp;gt; Please check this into git, please init a git repo and do that. Skip any directories that normally

 &amp;gt; It looks awesome. I&apos;m getting the following error occasionally: Uncaught runtime errors:

 │   ×
 │   ERROR
 │   Bad value
 │   decode@[native code]
 │   @
 │   &amp;lt;?&amp;gt;.wasm-function[66]@[wasm code]
 │   render@
 │   animate@

 &amp;gt; Seems more robust, but the color got really dim, please lighten back to where it was

 &amp;gt; Please update the README to include instructions on how to add the compiled version to a static

 &amp;gt; What variables can be made configurable? Color? Intensity? Duration?

 &amp;gt; Nothing is showing up, is there a bug or does the CONFIG file need updating?

 &amp;gt; Look good

 &amp;gt; Looking great, however I embedded it in a webpage and in doing so I made it smaller, so it only takes up a portion of the webpage rather than the entire screen. It seems that messed up the movement. Now when I click and move my mouse, it starts in the right spot, but as I move it drifts further from the actual movement on the screen. Please look at that

 &amp;gt; Looking great. The CONFIG object currently seems buried in a big long single line in index.js. Is there a better way to edit it? Is it something I can do on the html page that includes the script?&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</description>
        <pubDate>Sun, 06 Apr 2025 10:54:00 +0000</pubDate>
        <link>https://petersen.io/llm/programming/ai/2025/04/06/water.html</link>
        <guid isPermaLink="true">https://petersen.io/llm/programming/ai/2025/04/06/water.html</guid>
        
        
        <category>LLM</category>
        
        <category>Programming</category>
        
        <category>AI</category>
        
      </item>
    
      <item>
        <title>Life&apos;s Juxtapositions</title>
        <description>&lt;p&gt;I love life’s little juxtapositions. Like working with a language model on my MacBook, then cooking on my cast iron skillet. It’s the modern and the old.&lt;/p&gt;

&lt;p&gt;I was reminded of this a few weeks back. I was camping with my son in Jamul. We were in the desert, in a valley, with absolutely no cell service. It was a beautiful place. I left there, drove home, unpacked, showered, repacked and immediately got on a plane to San Francisco where I took a driverless Waymo to my meetings. It’s kind of whiplash inducing, but it’s also a wonderful juxtaposition.&lt;/p&gt;
</description>
        <pubDate>Mon, 03 Mar 2025 19:37:00 +0000</pubDate>
        <link>https://petersen.io/life/2025/03/03/lifes-juxtapositions.html</link>
        <guid isPermaLink="true">https://petersen.io/life/2025/03/03/lifes-juxtapositions.html</guid>
        
        
        <category>Life</category>
        
      </item>
    
  </channel>
</rss>
