<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>latency on S Anand</title>
    <link>https://www.s-anand.net/blog/tag/latency/</link>
    <description>Recent content in latency on S Anand</description>
    <generator>Hugo -- 0.156.0</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 14 Sep 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.s-anand.net/blog/tag/latency/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Things I Learned - 14 Sep 2025</title>
      <link>https://www.s-anand.net/blog/things-i-learned-14-sep-2025/</link>
      <pubDate>Sun, 14 Sep 2025 00:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/things-i-learned-14-sep-2025/</guid>
      <description>&lt;p&gt;This week, I learned:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Though I&amp;rsquo;m connected on LinkedIn with people I can&amp;rsquo;t remember (weak ties), pruning them shrinks serendipity. Weak ties, despite noise, are disproportionately valuable for opportunities, e.g. intros, jobs, and pruning reduces future upside. &lt;a href=&#34;https://www.science.org/doi/10.1126/science.abl4476&#34;&gt;Science&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Claude has a Python + Node code interpreter that can access GitHub, PyPi, npm and Google. &lt;a href=&#34;https://simonwillison.net/2025/Sep/9/claude-code-interpreter/&#34;&gt;Simon Willison&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/edent/SuperTinyIcons&#34;&gt;SuperTinyIcons&lt;/a&gt; has very small icons for many websites and is available via CDN. Sample: &lt;code&gt;http://cdn.jsdelivr.net/npm/super-tiny-icons/images/svg/github.svg&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://x.com/alek_safar/status/1964383077792141390?t=BzvyMoZH18jDBEop7XeZpA&#34;&gt;Clock bench&lt;/a&gt; is an LLM benchmark based on how well LLMs tell the time from an analog clock. Humans (89%) are &lt;em&gt;much&lt;/em&gt; better than the best model (Gemini 2.5 Pro - 13%).&lt;/li&gt;
&lt;li&gt;Veo 3 is now available via API. Veo 3 fast is 15s/second. &lt;a href=&#34;https://developers.googleblog.com/en/veo-3-and-veo-3-fast-new-pricing-new-configurations-and-better-resolution/&#34;&gt;Google&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;ChatGPT has full support for MCPs via Developer mode in Plus and Pro accounts, via &amp;ldquo;Developer mode&amp;rdquo;. &lt;a href=&#34;https://platform.openai.com/docs/guides/developer-mode&#34;&gt;OpenAI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;In Pyodide, you can use &lt;code&gt;from js import document&lt;/code&gt; and then &lt;code&gt;document.querySelector&lt;/code&gt; to manipulate the DOM directly from Python. &lt;code&gt;from pyodide.http import pyfetch&lt;/code&gt; lets you use fetch.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://pypi.org/project/gtrending&#34;&gt;&lt;code&gt;gtrending&lt;/code&gt;&lt;/a&gt; is a Python package that fetches trending GitHub repos, users, etc. &lt;code&gt;uvx gtrending repos --language rust --since weekly&lt;/code&gt; fetches trending Rust repos of the week.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://ast-grep.github.io/&#34;&gt;&lt;code&gt;astgrep&lt;/code&gt;&lt;/a&gt; lets you search in code (across languages) using AST patterns. Like &lt;a href=&#34;https://github.com/semgrep/semgrep&#34;&gt;semgrep&lt;/a&gt; but &lt;a href=&#34;https://ast-grep.github.io/advanced/tool-comparison.html&#34;&gt;more&lt;/a&gt; about code search than security. &lt;code&gt;uvx --from ast-grep-cli ast-grep&lt;/code&gt; runs from the CLI. Useful for &lt;a href=&#34;https://ast-grep.github.io/guide/rewrite/transform.html&#34;&gt;code rewriting&lt;/a&gt;, fast &lt;a href=&#34;https://ast-grep.github.io/guide/project/lint-rule.html&#34;&gt;linting&lt;/a&gt;, &lt;a href=&#34;https://ast-grep.github.io/guide/pattern-syntax.html&#34;&gt;code search&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/Orange-OpenSource/hurl&#34;&gt;&lt;code&gt;hurl&lt;/code&gt;&lt;/a&gt; is a CLI config-based HTTP automation tool. Useful for tests, bulk (templatized) HTTP requests, etc.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://rustdesk.com/&#34;&gt;&lt;code&gt;rustdesk&lt;/code&gt;&lt;/a&gt; is an open-source remote desktop software. TeamViewer alternative. Self-hostable.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/j178/prek&#34;&gt;&lt;code&gt;prek&lt;/code&gt;&lt;/a&gt; is a much faster version of &lt;a href=&#34;https://pre-commit.com/&#34;&gt;&lt;code&gt;pre-commit&lt;/code&gt;&lt;/a&gt; - a cross-language pre-commit hook manager.&lt;/li&gt;
&lt;li&gt;⭐ &lt;a href=&#34;https://mise.jdx.dev/&#34;&gt;&lt;code&gt;mise&lt;/code&gt;&lt;/a&gt; is a tool version manager. Combines nvm/fnm, pipx, etc. Supports running &lt;a href=&#34;https://mise.jdx.dev/registry.html&#34;&gt;several tools&lt;/a&gt; with a smooth installation.&lt;/li&gt;
&lt;li&gt;The &lt;a href=&#34;https://xeiaso.net/notes/2025/we-dodged-a-bullet/&#34;&gt;npm phishing email was a great one&lt;/a&gt;. It &lt;a href=&#34;https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised&#34;&gt;compromised chalk&lt;/a&gt; which is used in most npm packages. This may be one of the best supply chain attacks in recent times and makes me want to pin versions instead of using &lt;code&gt;npx -y&lt;/code&gt;. Also makes me glad that I&amp;rsquo;m sponsoring &lt;a href=&#34;https://github.com/isaacs&#34;&gt;@isaacs&lt;/a&gt; and &lt;a href=&#34;https://github.com/sindresorhus&#34;&gt;@sindresorhus&lt;/a&gt; - two &lt;em&gt;critical&lt;/em&gt; open source maintainers.&lt;/li&gt;
&lt;li&gt;&amp;ldquo;I pay for YouTube Premium. For my money, it’s the best bang-for-the-buck subscription service on the market&amp;rdquo;. - &lt;a href=&#34;https://anderegg.ca/2025/09/08/youtube-is-a-mysterious-monopoly&#34;&gt;Gavin Andregg&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;LLMs are non deterministic because GPUs add floating point numbers concurrently and FP addition is non associative - order matters. &lt;a href=&#34;https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/&#34;&gt;Thinking Machines&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Claude.ai can &lt;a href=&#34;https://www.anthropic.com/news/create-files&#34;&gt;natively work with Excel, PPTX, DOCX, and PDF files now&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;With embeddings, atomic labels + hierarchy beat instruction-heavy prompts. Prefer short, concrete sub-labels (e.g., “promotion,” “job security,” “flexibility”) that roll up to a parent &amp;ldquo;career&amp;rdquo; rather than a composite instruction like “Total Rewards and Career Growth”. Embedding similarity is not smart enough to figure this out.&lt;/li&gt;
&lt;li&gt;Today, RPA is cheaper than LLMs in some areas. But it&amp;rsquo;s a moving target. LLM costs are fall fast: 70–90% declines across major providers in 1.5 years. Therefore, waiting has option value. But classic IT compares static quotes, not declining curves, and hence is likely to under-procure LLM solutions.&lt;/li&gt;
&lt;li&gt;⭐ The biggest near-term ROI for LLMs in data science is like ‘boring’ data work: PII tagging, data dictionaries, ER/joins, SDTM mapping, etc.. People expect flashy GenAI, but LLMs can bootstrap schema matching and data-cleaning, speeding engineer verification, which is more useful at scale.&lt;/li&gt;
&lt;li&gt;You can create an &lt;a href=&#34;https://github.com/seezatnap/nano-banana-infinimap&#34;&gt;infinite leaflet map with nano banana&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/openai/codex&#34;&gt;Codex CLI&lt;/a&gt; with high reasoning effort seems far more comprehensive than &lt;a href=&#34;https://chatgpt.com/codex&#34;&gt;Codex online&lt;/a&gt;. I asked both to identify the system requirements (URLs to access, software to install, ports to open) for my &lt;a href=&#34;https://tds.s-anand.net/&#34;&gt;Tools in Data Science course&lt;/a&gt;. Codex CLI got it right one shot (after 10 minutes of thinking). Codex online missed several items even after 4 attempts.&lt;/li&gt;
&lt;li&gt;The &lt;a href=&#34;https://coppermind.net/wiki/Reod&#34;&gt;Reod&lt;/a&gt; on &lt;a href=&#34;https://coppermind.net/wiki/Elantris_(city)&#34;&gt;Elantris&lt;/a&gt; might have been triggered by &lt;a href=&#34;https://coppermind.net/wiki/Jaddeth&#34;&gt;Jaddeth&lt;/a&gt; who might be an &lt;a href=&#34;https://coppermind.net/wiki/Autonomy&#34;&gt;Autonomy&lt;/a&gt; avatar. &lt;a href=&#34;https://chatgpt.com/share/68be4c74-afa8-800c-b004-7a1565cb2487&#34;&gt;ChatGPT&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Output tokens dominate latency. Decoding is sequential (one token depends on all prior tokens), so long completions are the main throttle. Shrinking &lt;em&gt;returned&lt;/em&gt; text (e.g., send spans/tags instead of echoing paragraphs) yields a far bigger win on latency than shrinking inputs.&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    <item>
      <title>Hosting options</title>
      <link>https://www.s-anand.net/blog/hosting-options/</link>
      <pubDate>Sat, 01 Jun 2013 05:48:55 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/hosting-options/</guid>
      <description>&lt;p&gt;I&#39;ve been trying out a number of options for hosting recently, and have settled on &lt;a href=&#34;http://aws.amazon.com/ec2/spot-instances/&#34;&gt;Amazon spot instances&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Here were my options:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Application hosting, like &lt;a href=&#34;http://appengine.google.com/&#34;&gt;Google AppEngine&lt;/a&gt;. I used this a lot until 2 years ago. Then they changed their pricing, and I realised what “lock-in” means. I can’t just take that code and move it to another server. Besides, I’m a bit wary of &lt;a href=&#34;https://www.s-anand.net/blog/goodbye-google/&#34;&gt;Google pulling the plug&lt;/a&gt;. &lt;a href=&#34;https://www.heroku.com/&#34;&gt;Heroku&lt;/a&gt;? Same problem. I just want to take the code elsewhere and run it.  &lt;/li&gt;&lt;li&gt;Shared hosting, like &lt;a href=&#34;http://www.hostgator.com/&#34;&gt;Hostgator&lt;/a&gt;. &lt;a href=&#34;http://www.s-anand.net/&#34;&gt;This blog&lt;/a&gt; is run on Hostgator and I’m extremely happy with them. But the trouble is, with shared hosting, I don’t get to run long-running processes on any ports I like.  &lt;/li&gt;&lt;li&gt;Run you own servers. The problem here is quite simple: power cuts in India.  &lt;/li&gt;&lt;li&gt;Dedicated hosting, like &lt;a href=&#34;http://aws.amazon.com/ec2/&#34;&gt;Amazon EC2&lt;/a&gt;, &lt;a href=&#34;http://www.windowsazure.com/en-us/&#34;&gt;Azure&lt;/a&gt;, &lt;a href=&#34;https://cloud.google.com/products/compute-engine&#34;&gt;GCE&lt;/a&gt;, etc. This remains as pretty much the main hosting option&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;I’m a price optimisation freak. So I ran the numbers for a year’s worth of usage. I was looking at the CPU cost of a large machine with 7-8GB RAM. Bandwidth and storage are negligible. The cost per hour worked out to:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Amazon: $0.32 / hr in Singapore, $0.24 in Virginia  &lt;/li&gt;&lt;li&gt;Google: $0.29 / hr in Europe  &lt;/li&gt;&lt;li&gt;Microsoft: $0.32 / hr in US&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The price is not all that different, but I need &lt;a href=&#34;http://cloudharmony.com/speedtest&#34;&gt;low latency&lt;/a&gt;, so Singapore it what it’ll have to be.&lt;/p&gt; &lt;table class=&#34;numbers lines&#34; style=&#34;color: #444&#34;&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;EC2 location&lt;/th&gt; &lt;th&gt;Latency (ms)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Singapore&lt;/td&gt; &lt;td&gt;139&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Oregon, US&lt;/td&gt; &lt;td&gt;334&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Japan&lt;/td&gt; &lt;td&gt;517&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Ireland&lt;/td&gt; &lt;td&gt;618&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Australia&lt;/td&gt; &lt;td&gt;620&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;California, US&lt;/td&gt; &lt;td&gt;677&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Virginia, US&lt;/td&gt; &lt;td&gt;710&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Now comes the choice of the right model. At $0.32 per hour, that’s $230 a month.&lt;/p&gt; &lt;p&gt;Amazon offers some ways of getting this down. Instead of &lt;a href=&#34;http://aws.amazon.com/ec2/pricing/#on-demand&#34;&gt;on-demand instances&lt;/a&gt;, I could go for &lt;a href=&#34;http://aws.amazon.com/ec2/pricing/#reserved&#34;&gt;reserved instances&lt;/a&gt;. For a year of usage, that’d get the price down to about $131 a month, nearly halving it. ($739 upfront for a heavy utilisation large reserved instance, with $0.095 * 24 * 365.25 for the year.)&lt;/p&gt; &lt;p&gt;In this case, I know I’ll need the servers for a year. Probably more, but then, I might want to switch later. So this isn’t a bad move. But we can do better. Amazon also offers &lt;a href=&#34;http://aws.amazon.com/ec2/pricing/#spot&#34;&gt;spot instances&lt;/a&gt;. Spot instances might get shut down any time – but in reality, so can on-demand instances. I need to plan for it anyway. I’m not going to host anything that’s so sensitive that if it’s down for a few hours, I’ll have a problem.&lt;/p&gt; &lt;p&gt;But what’s attractive is the pricing. Typically, it’s $0.04 per hour, making it about $29 per month. Even if it shoots up to twice that, at $58, it’s less than a fourth of the on-demand price and less than half the reserved instance price.&lt;/p&gt; &lt;p&gt;I’ve managed to script the entire setup up sequence as shell scripts, and it takes less than an hour to get a new server up and running the software I need. I need to work out a decent backup mechanism. Plus, I could use more reliable storage like like &lt;a href=&#34;http://aws.amazon.com/ebs/&#34;&gt;Amazon’s EBS&lt;/a&gt; to preserve the data. But on the whole, the pricing is far too attractive and makes the risks worthwhile.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments&lt;/h2&gt;
&lt;!-- wp-comments-start --&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://anandology.com/&#34;&gt;Anand Chitipothu&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;2 Jun 2013 3:36 pm&lt;/em&gt;:
Did you look at Linode? I&amp;rsquo;ve been using Linode for couple of years and pretty happy with it. The 8GB RAM model costs about $160 per month. Sadly, they don&amp;rsquo;t have a data center in Singapore. You can test the download speeds and latency of their data centers from &lt;a href=&#34;https://www.linode.com/speedtest/&#34;&gt;https://www.linode.com/speedtest/&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://www.bestdoorlocksets.com&#34;&gt;jouko&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;7 Jul 2013 4:21 pm&lt;/em&gt;:
I am using Inmotion hosting for my blog. May be i should also shift to amazon cloud.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://www.s-anand.net/&#34;&gt;S Anand&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;3 Jun 2013 7:30 am&lt;/em&gt;:
I did try Linode early on, and it&amp;rsquo;s a fairly decent option. It&amp;rsquo;s just that for my needs, the $29/month that I can get with Amazon is too attractive.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Amit Chakradeo&lt;/strong&gt; &lt;em&gt;3 Jun 2013 8:33 pm&lt;/em&gt;:
If you don&amp;rsquo;t mind occasional downtimes and occasional ummm complete loss of data :-), you can consider low end VPS boxes. (&lt;a href=&#34;http://lowendbox.com/&#34;&gt;http://lowendbox.com/&lt;/a&gt;) You can find some decent deals if you check out the posts there&amp;hellip;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sriram&lt;/strong&gt; &lt;em&gt;15 Jan 2014 4:18 pm&lt;/em&gt;:
have u tried openshift ?&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- wp-comments-end --&gt;
</description>
    </item>
    <item>
      <title>Windows Live Local</title>
      <link>https://www.s-anand.net/blog/windows-live-local/</link>
      <pubDate>Thu, 08 Dec 2005 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/windows-live-local/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://local.live.com/&#34;&gt;Windows Live Local&lt;/a&gt; tries to match Google Maps. But Google Maps is just too fast. As I mentioned earlier (&lt;a href=&#34;https://www.s-anand.net/blog/why-google-reader/&#34;&gt;Why Google Reader&lt;/a&gt;): the reason I like Google is largely speed.&amp;gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>500 mile e-mail</title>
      <link>https://www.s-anand.net/blog/500-mile-e-mail/</link>
      <pubDate>Wed, 07 Dec 2005 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/500-mile-e-mail/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://www.ibiblio.org/harris/500milemail.html&#34;&gt;500 mile e-mail&lt;/a&gt;: the story of a server that would not send e-mail beyond 500 miles.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
