<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://www.zackaryia.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.zackaryia.com/" rel="alternate" type="text/html" /><updated>2026-02-26T03:40:30+00:00</updated><id>https://www.zackaryia.com/feed.xml</id><title type="html">Zackaryia Shamsi</title><subtitle>Zackaryia Shamsi&apos;s personal website and blog.</subtitle><author><name>Zackaryia Shamsi</name></author><entry><title type="html">Code Is Cheap — Now What?</title><link href="https://www.zackaryia.com/blog/2026-02-25/code-is-cheap-now-what/" rel="alternate" type="text/html" title="Code Is Cheap — Now What?" /><published>2026-02-25T00:00:00+00:00</published><updated>2026-02-25T00:00:00+00:00</updated><id>https://www.zackaryia.com/blog/2026-02-25/code-is-cheap-now-what</id><content type="html" xml:base="https://www.zackaryia.com/blog/2026-02-25/code-is-cheap-now-what/"><![CDATA[<p><a href="https://simonwillison.net/guides/agentic-engineering-patterns/code-is-cheap/">Writing code is cheap now</a>. For a while, code has been expensive, it took an engineer a day to grind out a few hundred lines of code. But now that code is cheap, what should we do? There are now so many parts of our lives that could be automated or made easier with a prompt and ten minutes. These are use cases that do NOT require good code, just good-enough code. Good code is on sale, but not cheap yet.</p>

<h2 id="debugging-tools">Debugging Tools</h2>

<p>I hit an integration bug in an AWS Lambda pipeline at work recently. I was about to start manually tracing through the whole thing, but then I realized I could just let AI take the wheel and add the debugging statements, pull the results from S3, write a program to analyze them, and isolate the issue. Writing a one-off program just to analyze debug files was not worth until now. It ended up pinpointing the bug to a non-deterministic ML library causing inconsistencies in the output, something that would have taken me ages to verify otherwise.</p>

<h2 id="make-visualizations">Make Visualizations</h2>

<p>Visualizing a concept helps make something concrete and digestible, especially when it’s abstract. Making these demos can take ten minutes of prompting to get something good enough to get teach something intuitively.</p>

<p>A great example is <a href="https://youtu.be/HBluLfX2F_k?si=TxYnx82iaSirxso2&amp;t=1420">Veritasium’s explanation of power laws</a>, which had a few vibe-coded interactive demos to visualize the concepts behind demagnetization, forest fires, earthquakes, and sand piles.</p>

<h2 id="one-off-applications-for-tedious-tasks">One-off Applications for Tedious Tasks</h2>

<p>Write a script to edit your Kanban board with the 1000 different tags all in different drop down menus. Build an app to track your job applications instead of white-knuckling a spreadsheet. Make a tool to auto-configure a new Angular app repo.</p>

<p>Anything that is tedious and repetitive can probably be automated with a tool. This starts to creep into the world of OpenClaw, deterministic tools stomp AI in so many use-cases. If you don’t need AI to interpret or help with fuzzy boundaries code is better.</p>

<h2 id="prototyping">Prototyping</h2>

<p>Instead static Figma drawings you can spin up clickable interactive prototypes of different UI/UX flows. One trick to brainstorm new ideas is to ask Claude to <code class="language-plaintext highlighter-rouge">make 5 different versions of this UI</code>. This generally yields way better results because there are more options and there is a variety between them that you don’t get rerolling Claude.</p>

<h2 id="the-new-skill">The New Skill</h2>

<p>With this paradigm shift, you can make tools to eliminate bottlenecks and unlock abilities that weren’t worth the effort before. Coding quickly is nice, but the the real cash-money is building these one-off tools.</p>]]></content><author><name>Zackaryia Shamsi</name></author><category term="Agentic Engineering" /><category term="AI" /><category term="Productivity" /><summary type="html"><![CDATA[Code has become 100x cheaper with LLMs. This paradigm shift is something we need to wrap our heads around. What can you do with cheap code?]]></summary></entry><entry><title type="html">Why and How China will win AI</title><link href="https://www.zackaryia.com/blog/2025-12-11/why-and-how-china-will-win-ai/" rel="alternate" type="text/html" title="Why and How China will win AI" /><published>2025-12-11T00:00:00+00:00</published><updated>2025-12-11T00:00:00+00:00</updated><id>https://www.zackaryia.com/blog/2025-12-11/why-and-how-china-will-win-ai</id><content type="html" xml:base="https://www.zackaryia.com/blog/2025-12-11/why-and-how-china-will-win-ai/"><![CDATA[<p>I know next to nothing about China. I have been mostly uninformed on their culture, values, governance, and history. I don’t think this is very uncommon in the United States; I don’t know anyone that isn’t Chinese that knows much about China. This is despite China being the second largest superpower, and most dominant force in many industries like <a href="https://en.wikipedia.org/wiki/Textile_industry_in_China#cite_note-:0-3">textiles</a>, <a href="https://www.reuters.com/markets/commodities/china-steel-exports-surge-aluminium-shipments-slide-2025-12-09/">steel</a>, <a href="https://www.theasset.com/article-esg/55450/china-fast-becoming-world-s-first-electro-state-">solar panels</a>, <a href="https://www.wsj.com/economy/trade/chinas-exports-rebound-in-november-97f24e06">EVs</a>, <a href="https://www.reuters.com/world/asia-pacific/chinas-rare-earth-exports-jump-november-after-xi-trump-meeting-2025-12-08/">Rare Earth Minerals</a>, and <a href="https://www.wsj.com/economy/trade/chinas-exports-rebound-in-november-97f24e06">consumer electronics</a>. And now China has come after an industry close to me, technology and specifically AI. China is marshaling the full force of their entire nation to dominate AI.</p>

<ul id="markdown-toc">
  <li><a href="#whats-this-analysis" id="markdown-toc-whats-this-analysis">What’s this Analysis</a></li>
  <li><a href="#why-does-china-care-about-ai" id="markdown-toc-why-does-china-care-about-ai">Why does China care about AI?</a>    <ul>
      <li><a href="#century-of-humiliation" id="markdown-toc-century-of-humiliation">Century of Humiliation</a></li>
      <li><a href="#ai-alignment" id="markdown-toc-ai-alignment">AI Alignment</a></li>
      <li><a href="#power" id="markdown-toc-power">Power</a></li>
    </ul>
  </li>
  <li><a href="#how-far-behind-is-china-and-what-are-they-doing" id="markdown-toc-how-far-behind-is-china-and-what-are-they-doing">How far behind is China and what are they doing?</a>    <ul>
      <li><a href="#deployment---0-months-behind" id="markdown-toc-deployment---0-months-behind">Deployment - 0 months behind</a></li>
      <li><a href="#llm-intelligence---6-months-behind" id="markdown-toc-llm-intelligence---6-months-behind">LLM Intelligence - 6 months behind</a></li>
      <li><a href="#data-centers---5-to-10-years-behind" id="markdown-toc-data-centers---5-to-10-years-behind">Data Centers - 5 to 10 years behind</a></li>
      <li><a href="#ai-chip-manufacturing---5-to-15-years-behind" id="markdown-toc-ai-chip-manufacturing---5-to-15-years-behind">AI Chip Manufacturing - 5 to 15 years behind</a></li>
    </ul>
  </li>
  <li><a href="#conclusion" id="markdown-toc-conclusion">Conclusion</a></li>
</ul>

<h1 id="whats-this-analysis">What’s this Analysis</h1>

<p>As a software engineer, I have developed a love of “systems thinking” or understanding things fundamentally and developing intuition of how interactions work. In that vein, I took this as an opportunity to develop a systems understanding of China and AI, going beyond headlines to examine cultural, technical, and geopolitical motivations driving the country. This analysis considers China’s current situation and it’s plans to dominate AI, focusing on understanding of the greater battlefield over a specific conflict. While there are details I am omitting, and this topic can easily fill a book, the goal is to grap the systems at play to help make sense of this war’s past, present, and predict it’s future.</p>

<h1 id="why-does-china-care-about-ai">Why does China care about AI?</h1>

<p>It’s important to understand why China cares about AI. Most analyses dive into what China is doing about AI but they don’t understand why, this cripples the full systems understanding of what is happening. It’s like a doctor prescribing medicines only reading WebMD and never understanding the chemical compounds and biological interactions that occur. If you understand the whys and the hows, then you can start to understand and predict the future; you can predict how China would react to a policy, or change course from new developments.</p>

<h2 id="century-of-humiliation">Century of Humiliation</h2>
<p>This is likely the most motivating factor in the AI wars and yet the least amount of Americans know about it. The Century of Humiliation is a “deep seated part of the Chinese psyche.”<sup id="fnref:3"><a href="#fn:3" class="footnote" rel="footnote" role="doc-noteref">1</a></sup> This makes the threats and power of AI become vivid, it upgrades the intensity of this battle from being an economic goal to an existential one. To put it very briefly, the Century of Humiliation is commonly summarized with the following 3 4-word idioms.<sup id="fnref:4"><a href="#fn:4" class="footnote" rel="footnote" role="doc-noteref">2</a></sup></p>

<ul>
  <li>Lü zhan lü bai (屡战屡败): “repeatedly fought and lost”</li>
  <li>Ge di pei kuan (割地赔款): “to cede territory and pay indemnities”</li>
  <li>Sang quan ru guo (丧权辱国): “to surrender sovereign rights and bring humiliation to the country”</li>
</ul>

<p>This is a century from ~1840 to ~1940 where China fought in the First Opium War, the Second Opium War, the Sino-Japanese War, and the Japanese invasion of Manchuria.<sup id="fnref:4:1"><a href="#fn:4" class="footnote" rel="footnote" role="doc-noteref">2</a></sup> In each of these wars China was defeated and was forced to pay huge reparations, to open up trade, to cede territory, or to make other concessions to foreign countries.<sup id="fnref:4:2"><a href="#fn:4" class="footnote" rel="footnote" role="doc-noteref">2</a></sup></p>

<p>This series of humiliating events, along with their burning into the Chinese psyche by retellings and “patriotic education,” has made China jaded. It is untrustworthy of foreign powers, and has become determined to never be in a position of weakness to risk that the trauma will repeat. Economic development and modernization were not goals for China but crises. It has always been life or death for China to dominate and this intensity makes all other reasons to gain AI dominance that much more important.</p>

<p>This makes the recent American hostilities toward China and extreme rhetoric ring even louder. The U.S. is threatening and attacking China over <a href="https://en.wikipedia.org/wiki/United_States_New_Export_Controls_on_Advanced_Computing_and_Semiconductors_to_China">AI</a>, <a href="https://www.forbes.com/sites/roberthart/2024/05/14/biden-escalates-china-us-trade-war-with-fresh-tariff-hikes-on-electric-vehicles-solar-cells-chips-and-steel/">manufacturing</a>, <a href="https://bidenwhitehouse.archives.gov/briefing-room/statements-releases/2024/05/14/fact-sheet-president-biden-takes-action-to-protect-american-workers-and-businesses-from-chinas-unfair-trade-practices/">EVs</a>, and <a href="https://bidenwhitehouse.archives.gov/briefing-room/statements-releases/2024/05/14/fact-sheet-president-biden-takes-action-to-protect-american-workers-and-businesses-from-chinas-unfair-trade-practices/">solar</a> along with <a href="https://www.britannica.com/money/US-China-trade-war">Trump escalating a huge trade war with China</a>, the government is scared. The trauma is ringing louder than ever, and is pushing China to act. China sees the writing on the wall and won’t let it repeat.</p>

<h2 id="ai-alignment">AI Alignment</h2>

<p>China has writen a set of rules regulating and governing AI services, in these rules it <a href="https://digichina.stanford.edu/work/translation-measures-for-the-management-of-generative-artificial-intelligence-services-draft-for-comment-april-2023/#:~:text=Article%204%3A,or%20social%20order.">states</a>:</p>

<blockquote>
  <p>“Content generated through the use of generative AI shall reflect the Socialist Core Values, and may not contain: subversion of state power; overturning of the socialist system; incitement of separatism… as well as content that may upset economic order or social order.”</p>
</blockquote>

<p>China is completely different from the U.S. in many ways, but morality and ethics are among chief. The enlightenment ideals of free speech, information democratization, and democracy are extremely western. The Chinese government <a href="https://futurism.com/deepseek-ai-answer-tiananmen-square-massacre">wants control of these powerful AI models</a> in the same way that they control information, press, media, social media, and more. This censorship follows in line with the Confucianist values of Harmony (Ren) and Ritual / Proper Conduct (Li), to prevent disorder, maintain moral unity and moderate speech China employs these tactics. To achieve these moral values AI must be in China’s direct control, outsourcing is not possible.</p>

<h3 id="ai-training-embeds-bias">AI training embeds bias</h3>

<p>AIs are fundamentally tools, but unlike hammers and rulers they are inherently biased. Based on how they are trained, what data they are given, and how they are instructed to act, they will embed those biases into every word they output. One key example is RLHF or Reinforcement Learning with Human Feedback. RLHF is a step in the training process where humans rank or score how good an AI’s response is, there is a core understanding built in on what is correct, true, moral, right, etc. In every step of training an AI model you fundamentally embed biases, morality, culture, etc. It is not possible to just tell an American model to act Chinese, these biases are built in its core.</p>

<h2 id="power">Power</h2>

<h3 id="agi">AGI</h3>

<p>It is <a href="https://www.nytimes.com/2025/02/08/technology/sam-altman-elon-musk-trump.html">claimed</a> <a href="https://www.axios.com/2025/05/21/google-sergey-brin-demis-hassabis-agi-2030">by</a> <a href="https://www.youtube.com/watch?v=Xywqm0vlUxk">many</a> that an era of AGI, or AI on par with human intelligence in nearly all tasks, is right around the corner. This would be the most significant and powerful technological advancement of the entirety of human history. It would be stupid to not build AGI, and not try to be the first. It’s like asking why do you want to build an atomic bomb, or invent guns, or create the internet. But I can hear readers screaming that AGI is all hype and will never happen. <a href="https://aaai.org/wp-content/uploads/2025/03/AAAI-2025-PresPanel-Report-Digital-3.7.25.pdf">76%</a> of AI researchers think that with current techniques, AGI is not happening, but politicians and leaders are still afraid of it and legislate on it’s possibility even if its not likely. You don’t want to be caught with your pants down saying atomic bombs are impossible. Oftentimes, fears are stronger motivators than truth. But even if AGI does not come true there are other reasons to care about AI.</p>

<h3 id="economic-benefits">Economic Benefits</h3>

<p>Economic development is expected to be ushered in by AI. An <a href="https://markets.financialcontent.com/wral/article/marketminute-2025-9-4-ais-unstoppable-rise-powering-corporate-earnings-and-driving-market-optimism#:~:text=This%20momentum%20has%20led%20analysts%20to%20project%20AI%20to%20inject%20an%20astonishing%20%2413%20trillion%20to%20%2416%20trillion%20in%20value%20into%20the%20stock%20market.">estimated</a> $13-16 trillion dollars of value are expected to be injected into the stock market with an <a href="https://www.oecd.org/en/publications/the-impact-of-artificial-intelligence-on-productivity-distribution-and-growth_8d900037-en.html">expected increase</a> in productivity, innovation, growth, and more. Most people that rally AI as a bubble still agree that in the long term AI is going to impact the way the world functions significantly in the same way that the Internet has even after the dot-com bubble. And even if AI was to never develop beyond its current capabilities, it still has taken over <a href="https://www.allaboutai.com/resources/ai-statistics/ai-in-software-development/">software engineering</a>, <a href="https://www.weforum.org/stories/2025/08/ai-transforming-global-health/">healthcare</a>, <a href="https://www.microsoft.com/en-us/education/blog/2025/08/ai-in-education-report-insights-to-support-teaching-and-learning/">education</a>, and more in the short few years it’s been out.</p>

<h3 id="censorship-and-surveillance">Censorship And Surveillance</h3>

<p>The Chinese government can also level up its ability to censor and surveil, in its already extensive and repressive systems. With LLMs China is deploying mass censorship of social media, before China relied on keyword systems and an army of human censors, <a href="https://www.cnn.com/2025/12/04/china/china-ai-censorship-surveillance-report-intl-hnk#:~:text=key%20enablers%20and%20enforcers%20of%20the%20CCP%E2%80%99s%20online%20content%20censorship%20policies.">now with LLMs</a> that can understand context, subtext, and coded language it can mass deploy more accurate and targeted censorship. Nathan Attrill, a report co-author and senior China analyst at ASPI <a href="https://www.cnn.com/2025/12/04/china/china-ai-censorship-surveillance-report-intl-hnk#:~:text=China%20is%20harnessing%20AI%20to%20make%20its%20existing%20systems%20of%20control%20far%20more%20efficient%20and%20intrusive.%20AI%20lets%20the%20CCP%20(Chinese%20Communist%20Party)%20monitor%20more%20people%2C%20more%20closely%2C%20with%20less%20effort">said</a> “China is harnessing AI to make its existing systems of control far more efficient and intrusive. AI lets the CCP (Chinese Communist Party) monitor more people, more closely, with less effort.”</p>

<h1 id="how-far-behind-is-china-and-what-are-they-doing">How far behind is China and what are they doing?</h1>

<p>At every layer of the stack, China has major impediments. It’s important to understand that no one thing can propel or stop China, but instead understand the whole system and what China’s doing.</p>

<p>Let’s go down the stack and see where China is at and its plans in each layer.</p>

<h2 id="deployment---0-months-behind">Deployment - 0 months behind</h2>

<p>The end of the pipeline is AI deployment, how is it actually being used and where the value is being created. Using it as a personal tutor, to act as a consultant, to cheat on exams, or to replace employees. This is the most important part of the stack, if you are able to use AI more effectively and more productively then you will get huge advantages. Effective deployment requires smart underlying LLMs, cutting through red tape, and getting smart engineers to integrate AI into a product, or industry. The world is still trying to figure out how to effectively deploy AI, there is no great consensus or rulebook on how to do it best.</p>

<h3 id="current-state">Current State</h3>

<p>China is at the forefront of deployment. They have nearly no gap with western markets. They are deploying AI very aggressively, in all industries and enterprises there is a heavy and aggressive move to implement AI. From government to private to consumer, AI is being embedded in everything.</p>

<ul>
  <li>The Chinese Army is using it to help their hospitals to help doctors make treatment plans. <a href="https://economictimes.indiatimes.com/tech/artificial-intelligence/chinas-pla-deploys-ai-tool-deepseek-in-military-hospitals-non-combat-functions/articleshow/119376440.cms">link</a></li>
  <li>Many State-owned enterprises (SOEs) in telecommunications and energy have already deployed AI to help improve operations and innovate. All SOEs are working to deploy LLMs including transportation, logistics and finance. <a href="https://regional.chinadaily.com.cn/wic/2025-03/03/c_1075991.htm">link</a></li>
  <li>Kingsoft Office released a suite of AI powered office tools. <a href="https://www2.yicaiglobal.com/news/chinas-kingsoft-releases-all-in-one-ai-office-suite-to-raise-the-bar-in-workplace-software">link</a></li>
</ul>

<h3 id="ai-initative">AI+ Initative</h3>

<p>In China’s <a href="https://cset.georgetown.edu/wp-content/uploads/t0652_AI_plus_opinions_EN.pdf">AI+ initiative</a>, a war plan for China’s governance strategy in AI, the government hopes to achieve 70% AI integration by 2027, 90% by 2030, and 100% by 2035, whatever that means. A large part of this initiative is a push to government, private, and other sectors to do whatever is possible to accelerate AI adoption and integration. With legislative changes, policy changes, and investments in development of products. China is headstrong on integrating AI to make the best use of it.</p>

<h3 id="rushed-ai-will-cause-damage">Rushed AI Will Cause Damage</h3>

<p>I am worried that an overly aggressive approach to AI integration will lead to a lot of unintentional harms. Any rushed deployment will have issues, and especially when AI is still such a new technology with so many unknowns. We have already seen countless cases of an AI being malicous, or otherwise harmful. <a href="https://www.techradar.com/pro/security/prompt-injection-attacks-might-never-be-properly-mitigated-uk-ncsc-warns">Prompt injections</a>, <a href="https://www.tomsguide.com/computing/online-security/meta-ai-was-leaking-chatbot-prompts-and-answers-to-unauthorized-users">leaks</a>, <a href="https://arxiv.org/abs/2511.11020">data poisoning</a>, <a href="https://www.wired.com/story/here-come-the-ai-worms/">AI worms</a>, and <a href="https://www.euronews.com/next/2024/03/09/ai-models-found-to-show-language-bias-by-recommending-black-defendents-be-sentenced-to-dea">racial bias</a> are all known critical AI flaws, and we dont know how to properly mitigate any of these. Also a lot of AI implementations that are forced wont be useful, or productive. I think it will take a lot of time for us to consistantly develop useful AI tools rather than just adding a chat window to everything.</p>

<h2 id="llm-intelligence---6-months-behind">LLM Intelligence - 6 months behind</h2>

<p>LLMs or Large Language Models are the actual source of the “intelligence” in AI products. They are trained on vast sets of data, with large arrays of GPUs to get them to understand language, reasoning, and the world. The ability to create the best models relies on having smart engineers to finely tune and develop these models, large amounts of data to train them on, and most importantly a gluttonous amount of compute to train with. If you aren’t able to create a “smart” LLM that can think, reason, and understand the world then any AI product will fail.</p>

<h3 id="current-state-1">Current State</h3>

<p>China is playing catch-up, LLMs were invented in the U.S., and all the highly skilled researchers created the technology are here. The U.S. has a head start, the Transformer (the underlying structure behind LLMs) was discovered by Google. OpenAI, the world’s leading AI company, is from the U.S. NVIDIA is also a U.S. compamny that creates all major AI GPUs that AI is trained and run on. Additionally, the United State’s frontier AI companies have <a href="https://www.aol.com/sam-altman-explains-openais-shift-160102278.html">stopped sharing information</a> on how their models are trained or developed, meaning that China has to rediscover and reinvent all the technological leaps that these AI companies are creating and can’t ride on American coat tails.</p>

<p>Artificial Analysis is a well respected bench-marking organization that rates how intelligence AI models are assigning them an “Intelligence Index.” The first major AI model released to get traction was the LLM that powered ChatGPT, GPT-3.5-Turbo and it took 1 year for China to release a model of similar intelligence.<sup id="fnref:1"><a href="#fn:1" class="footnote" rel="footnote" role="doc-noteref">3</a></sup> Now the frontier Chinese model is Kimi K2 Thinking which is on equal footing with OpenAI’s o3 model released 7 months prior.<sup id="fnref:2"><a href="#fn:2" class="footnote" rel="footnote" role="doc-noteref">4</a></sup> The gap is closing but China is behind.</p>

<figure>
    <img src="/uploads/2025-12-11-why-and-how-china-will-win-ai-figure-1.png" alt="Graph showing comparison of frontier U.S. and frontier Chinese model intelligence." style="width:100%" />
    <figcaption><i>Graph showing frontier U.S. and Chinese AI model intelligence index according to Artificial Analysis over time. In blue is the U.S., and in orange is China.</i></figcaption>
</figure>

<h3 id="ai-initative-1">AI+ Initative</h3>

<p>The Chinese government and tech companies both are responding to the challenges set forth. For the governance strategy, China is focused on developing in-house talent and research to catch up to the U.S. In the <a href="https://cset.georgetown.edu/wp-content/uploads/t0652_AI_plus_opinions_EN.pdf">AI+ initiative</a> China is looking to “Strengthen talent cadre construction” in academics, and in industry with industry-education collaboration to drive talent growth. Also China wants to “Drive research and development (R&amp;D) model innovation and efficiency improvement,” to catch up to the U.S.’s position. The government is doing all the right things to promote AI development in talent and promote research.</p>

<h3 id="chinese-tech-copies-american-tech">Chinese Tech Copies American Tech</h3>

<p>Chinese tech companies do have one critical advantage. American tech companies have already created smart models. This allows Chinese companies <a href="https://www.newsday.co.zw/theindependent/international/article/200037585/chinese-firms-distilling-us-ai-models-to-create-rival-products-warns-openai">to train their models on American AI output</a> with nearly as high utility and knowledge. Also this has the advantage of being more efficient with compute because distilling American models short-cuts a lot of difficult and expensive compute getting your model from 0 to 1. This, however, is not a method to achieve AI supremacy; it will always keep you one step behind, as you can’t surpass another model’s abilities by just copying its abilities. Unless China can eventually start training their own models, without American crutches, it will be unable to close the gap. But, I believe that this is a good strategy to train up Chinese talent, and develop good (albeit not cutting edge)  models.</p>

<h3 id="open-source-chinese-ai">Open-source Chinese AI</h3>
<p>Also the Chinese government is <a href="https://cset.georgetown.edu/wp-content/uploads/t0652_AI_plus_opinions_EN.pdf">pushing companies to open-sourcing</a> their AI models. When I first heard about this I was deeply confused, it is counterintuitive that a country seeking an AI edge would open-source its hard fought research and most profits from the sale of the model. But this strategy makes sense when you recognize China is behind. China wants to do two things by open-sourcing their tech.</p>
<ol>
  <li>Open-source <a href="https://www.chinastrategy.org/2025/12/08/chinas-open-source-ai-is-a-national-advantage/#:~:text=As%20more%20Chinese,their%20US%20peers.">pools innovation</a> between Chinese companies reducing the mistakes repeated, and sharing new insights. This massively accelerates the catch-up process essentially merging 10 Chinese R&amp;D departments together.</li>
  <li>China now <a href="https://dev.to/ndmckay/unbelievable-china-dominates-top-10-open-source-models-on-huggingface-4774">dominates</a> the open-source market for AI. You can self-host and tinker with only open-source AI models. This is important to hobbiest that want to tinker with local AI, and large corperations that want to protect trade secrets.</li>
</ol>

<h2 id="data-centers---5-to-10-years-behind">Data Centers - 5 to 10 years behind</h2>

<p>Data Centers are the core of AI developments. It is critical to have vast sums of advanced computers that can train and run these models. Training these AI models requires more computation than anything else in history. Also to run these AI models after they have been trained requires lots of powerful data centers, especially considering the exponential growth in the usage of AI.</p>

<h3 id="current-state-2">Current State</h3>

<p>The United States has always been at the frontier of Data Center deployment with nearly <a href="https://epoch.ai/data-insights/ai-supercomputers-performance-share-by-country">75% of the AI computing power</a>. With <a href="https://www.networkworld.com/article/3820973/data-center-spending-to-top-1-trillion-by-2029-as-ai-transforms-infrastructure.html">over a trillion dollars</a> in investments to make American AI datacenters it’s hard to imagine how China is going to catch up soon. But building new datacenters dosen’t just require funds, it also requires GPUs to run the AI and energy to power those machines.</p>

<h3 id="chinas-energy-advantage">China’s Energy Advantage</h3>

<p>AI compute is extremely energy intensive, <a href="https://seo.goover.ai/report/202508/go-public-report-en-1f37fda0-c31a-4f87-8719-65857d68f992-0-0.html">GPT-5 is estimated to use ~2 Gigawatts of power continuously</a>, similar usage to the entire nation of <a href="https://en.wikipedia.org/wiki/List_of_countries_by_electricity_consumption">Ethiopia</a>. This makes China’s energy investments and production its greatest advantage. China has been outpacing the U.S. in energy massively with huge investments in solar, nuclear, wind, and more. <a href="https://www.csis.org/analysis/assessing-united-states-solar-power-play">80% of solar panel</a> production is in China, and <a href="https://nnsa.mee.gov.cn/ywdt/hyzx/202501/t20250107_1100142.html">for the past 18 years, China has ranked first in new nuclear production</a> showing its commitment to growing a diverse energy sector. To put it plainly, <a href="https://www.visualcapitalist.com/ranked-top-countries-by-annual-electricity-production-1985-2024/">from 2014 to 2024</a> China has nearly doubled its energy production while the U.S. only increased by 7.1%. This ability to grow energy production is critical for China to feed hungry datacenters and fuel its AI engine.</p>

<h3 id="gpu-bans-to-china">GPU Bans to China.</h3>

<p><a href="https://www.usatoday.com/story/news/politics/2025/01/13/biden-ai-chip-sale-curbs/77663159007/">China is banned from importing high end GPUs</a> that are used to train and run AI. This ban has made training competitive LLMs extremely difficult. And because China’s inhouse AI chip manufacturing is behind American and Taiwanese capabilities (as seen in the next section) they can’t just run AI models on their own chips. However, despite <a href="https://www.youtube.com/watch?v=1H3xQaf7BFI">AI chips being banned in China does not mean they are not in China</a>. In 3 months <a href="https://finance.yahoo.com/news/chinese-companies-allegedly-smuggled-1bn-161304315.html">an estimated</a> one billion dollars in GPUs have been smuggled into China. The best example of this is DeepSeek AI, which originally had lots of hype because it didn’t use advanced AI chips to train, but <a href="https://the-decoder.com/deepseek-reportedly-using-thousands-of-smuggled-nvidia-chips-for-ai-training/">this has been debunked</a>. This is not to say that this AI ban has been useless, it still significantly hampers the ability to buy huge amounts of AI chips.</p>

<h2 id="ai-chip-manufacturing---5-to-15-years-behind">AI Chip Manufacturing - 5 to 15 years behind</h2>

<p>AI chips use the most advanced manufacturing processes in the world. It uses a process called lithography where machines fabricate Silicon chips by shining lasers onto a surface with curtain patterns to create circuits. Each layer is etched, deposited, and polished with nanometer-scale precision until billions of transistors are built up. Then these chips are packaged and put into electronic devices to power their computers. These Advanced EUV lithography machines can cost <a href="https://help.gadgetmates.com/how-much-do-euv-machines-cost">upwards of $150 million dollars</a> each. A fabrication plant typically has dozens or several dozen of these machines.</p>

<h3 id="export-restrictions">Export Restrictions</h3>

<p>The company that manufactures AI chips for NVIDIA, AMD, and Google, the leading AI chip designers, is TSMC. TSMC or Taiwan Semiconductor Manufacturing Company has <a href="https://ontechbyq.substack.com/p/tsmcs-90-monopoly-on-advanced-chipshow">90% of global advanced chip manufacturing</a> with the most advanced processes and capabilities. And <a href="https://www.ft.com/content/a736beeb-b38a-484e-bbe9-98e92ecb66d9">because of U.S. restrictions</a>, TSMC can not manufacture the most advanced chips for China. There is a bit of irony from the fact that TSMC is in Taiwan, but a big reason that Taiwan has not been invaded by China to reunite is because of its “<a href="https://en.wikipedia.org/wiki/Silicon_shield">Silicon Shield</a>.” The idea is that if China invades Taiwan, Taiwan will <a href="https://www.tomshardware.com/tech-industry/tsmcs-euv-machines-are-equipped-with-a-remote-self-destruct-in-case-of-an-invasion">self-destruct</a> all of its manufacturing plants, hurting China so badly it will avoid this fate, or at least being so harmful to the U.S. that it will defend Taiwan to avoid this outcome.</p>

<p>However, the biggest disadvantage China has is their lack of ability to buy or produce advanced lithography machines. Just like TSMC is restricted from selling chips to China, ASML, the company that makes all advanced lithography machines, <a href="https://www.cnbc.com/2024/01/02/asml-blocked-from-exporting-some-critical-chipmaking-tools-to-china.html">is barred from selling these machines to China</a>. ASML’s CEO estimated <a href="https://www.tomshardware.com/tech-industry/asml-ceo-says-china-is-10-to-15-years-behind-in-chipmaking-capabilities">that China is 10-15 years behind</a> on this front.</p>

<h3 id="lagging-chinese-manufacturing">Lagging Chinese Manufacturing</h3>

<p>China is currently many years behind in chip manufacturing. The generations of chip manufacturing processes, in order from least to most advanced are 5nm, 3nm, and 2nm. Currently China is <a href="https://www.gizmochina.com/2025/04/24/china-quietly-cracks-5nm-without-euv/">about to start producing 5 nanometer chips</a> using a slower, more expensive, and more error-prone method, while TSMC has already launched mass production of 3nm, and is about to start mass production of 2nm. TSMC started mass production of 5nm <a href="https://www.electronicsweekly.com/news/business/730010-2020-03/">over 5 years ago</a>, so China is at least 5 years behind in terms of manufacturing.</p>

<h3 id="chinas-investments">China’s Investments</h3>

<p>But the tides are changing. China is investing heavily into it’s chip manufacturing industry with a <a href="https://fundfa.com/mag/china-50-power-discount-local-ai-chips/">50% discount to AI companies using Chinese chips</a>. This lulls a lot of concerns with Chinese chips being less efficent, and also boosts demand for Chinese chips helping develop the industry. On top of this there is a ton of direct investment from China into the chip manufacturing industry with over <a href="https://edition.cnn.com/2024/05/27/tech/china-semiconductor-investment-fund-intl-hnk/index.html">$47 billion dollars in direct investment</a>. China is being very aggressive, it knows that this is the bedrock of AI. It is also investing in the industry as a whole, promoting competition and boosting demand rather than picking a winner that eventually gets lazy and bloated.</p>

<h3 id="my-thoughts">My Thoughts</h3>

<p>I believe that chip manufacturing capability is the area where China lags the most. Historically China has been able to just buy chips from the west, the investments into this industry weren’t as aggressive as was needed to catch up. This is also the scariest place for China to catch up. If China can manufacture the most advanced AI chips and especially the machines to make these chips then everything above in the stack, China can gain the advantage quickly.</p>

<h1 id="conclusion">Conclusion</h1>

<p>Before taking the time to research and learn about China’s AI efforts, I always assumed that China was not a legitimate player in the AI space. The open-source models they release have been fun to play with and great for tinkerers, but not frontier by any means. I now understand the passion and conviction with which China approaches AI. This contrasts sharply with the U.S. talks of a <a href="https://prospect.org/2025/11/07/openai-maneuvering-for-government-bailout/">government bailout</a> for OpenAI and its hesitant and fragmented approach to AI strategy. While American discourse often gridlocks on regulation, ethics, or short-term competitive advantage, China’s approach is aggressive, comprehensive, state-backed, and relentlessly goal-oriented.</p>

<h3 id="how-the-us-will-fall-behind">How the U.S. Will Fall Behind</h3>

<p>The United States is riding on a lot of institutional and structural advantages. Being at the heart of the tech world and home of AI development, the U.S. can easily coast on that success. But China is doing everything possible to catch up, and that coasting cannot continue. The U.S. needs to legislate toward AI innovation, not select individual winners to bailout killing innovation and killing the capitalistic engine of competition. The U.S. is not hurt if OpenAI fails if it is able to breed 10 more frontier AI companies next in line. To keep its lead, the U.S. must invest in AI, foster more AI companies, increase public research, and invest in talent, just as China is doing.</p>

<p>At the current rates of innovation and change, China will win the AI wars, it is not a question of if, but when. I could see that after a U.S. AI bubble pop, during that contraction China pulls out ahead with smarter LLMs, or it could take 20 years before China develops advanced lithography machines, catches up in research, and starts developing better AI models. China is eroding the structural advantages and the U.S. is asleep at the wheel.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:3">
      <p>Halbwachs, On Collective Memory, 224. <a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:4">
      <p>Zheng Wang, Never Forget National Humiliation, 48-49. <a href="#fnref:4" class="reversefootnote" role="doc-backlink">&#8617;</a> <a href="#fnref:4:1" class="reversefootnote" role="doc-backlink">&#8617;<sup>2</sup></a> <a href="#fnref:4:2" class="reversefootnote" role="doc-backlink">&#8617;<sup>3</sup></a></p>
    </li>
    <li id="fn:1">
      <p>OpenAI released GPT-3.5 Turbo in Nov. 2022 with a score of 8.7, comparable to Aliababa’s Qwen Chat 72B released in Nov. 2023 with a score of 7.6. <a href="https://artificialanalysis.ai/">artificialanalysis.ai</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:2">
      <p>Kimi K2 Thinking was released in Nov. 2025 with a score of 67, comparable to OpenAI’s o3 released in Apr. 2025 with a score of 65.5. <a href="https://artificialanalysis.ai/">artificialanalysis.ai</a> <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Zackaryia Shamsi</name></author><category term="AI" /><category term="China" /><category term="Analysis" /><category term="Future" /><summary type="html"><![CDATA[A Systems Understanding of China’s AI Playbook, its History, Values, and Obstacles]]></summary></entry><entry><title type="html">CyberCanary</title><link href="https://www.zackaryia.com/blog/2025-02-23/cyber-canary/" rel="alternate" type="text/html" title="CyberCanary" /><published>2025-02-23T00:00:00+00:00</published><updated>2025-02-23T00:00:00+00:00</updated><id>https://www.zackaryia.com/blog/2025-02-23/cyber-canary</id><content type="html" xml:base="https://www.zackaryia.com/blog/2025-02-23/cyber-canary/"><![CDATA[<blockquote>
  <p>⚠️ <strong>Warning:</strong> This blog post was originally written for a Hackathon and was done with a partner.</p>
</blockquote>

<h1 id="video">Video</h1>
<div style="position: relative; padding-top: 56.25%; height: 0; overflow: hidden;">
    <iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube.com/embed/0oESDJFRivE" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
</div>

<h1 id="inspiration">Inspiration</h1>
<p>60% of cybersecurity incidents exploit known vulnerabilities (<a href="https://www.comparitech.com/blog/information-security/cybersecurity-vulnerability-statistics/#:~:text=27.,organizations'%20vulnerabilities%20before%20a%20breach.">1</a>), and the average vulnerability does not get patched until over 200 days after it is discovered (<a href="https://www.statista.com/statistics/1363099/average-age-of-cyber-vulnerability-by-severity/">2</a>). The cybersecurity war is not over our ability to combat exploits, but the speed at which we can discover and take preventive measure against vulnerabilities. However, with over 560,000 cyber threats being discovered daily (<a href="https://www.getastra.com/blog/security-audit/malware-statistics/#:~:text=Search%20for:,for%20businesses%20of%20all%20sizes.">3</a>), it’s near impossible to keep up to date with the specific vulnerabilities that affect your stack. CyberCanary aims to close the gap between when a threat is first discovered to when it is patched. Using a stream of intel from social media, articles, websites, and more, we can actively filter for the most useful insights to protect a company based on its unique technical stack, vulnerability surface, and structure. Using AI analysis, we can pinpoint relevant threats, eliminating time waste on irrelevant vulnerabilities that would be spent in a typical newsfeed scan of cyber threats, and significantly improve our cyber space’s safety.</p>

<h1 id="what-it-does">What it does</h1>
<p>CyberCanary gets streams of new articles, social media posts, and websites and identifies cybersecurity-related news. Then, through the use of AI, cybersecurity threats are extracted from these sources, curating a list of new and potentially dangerous vulnerabilities. Clients can create any number of projects on the CyberCanary website, where a simple title and description of the project’s stack will be processed and compared using AI against new threats. If the AI determines that a new threat is relevant to the client’s project, then we generate a report, and the client will be notified that there is a new cybersecurity threat to their systems, along with next steps, and resources to tackle the problem.</p>

<h1 id="how-we-built-it">How we built it</h1>
<p>The website was largely built through Python and HTML, using Flask for the web framework. On the backend side we used a combination of multithreaded python code to process incoming threats, using Llama 3.3 70b as our AI model, and PostgreSQL as our database. In order to gather sources of new threats we utilized RSS feeds for several large news sources, and a stream of every post from BlueSky a popular social media platform used by many cybersecurity researchers.</p>

<h1 id="challenges-we-ran-into">Challenges we ran into</h1>
<p>Some challenges we faced were with getting the database onto both of our computers, so we could both work on implementing our functionalities. Sharing the same database of social media, website, and article information on both of our computers, such that changes to one could be reflected in the other, took time and effort to figure out. One other specific challenge we ran into was when the initial databases (filled with dummy data) were created on the frontend side using SQLite3, but the database filled with real data was created on the backend side in PostgreSQL. As a result, we had to convert all of our tables to PostgreSQL to match, a process that went overall smoothly but definitely was not a foreseen complication. Also hosting the AI model was a challenge due to restricted permissions on our GPU server, and issues with frequent resets of the server. Long story short the only way for us to connect to the llama server is via a reverse SSH port forward from the server into our laptop exposing SSH to the public internet.</p>

<h1 id="accomplishments-that-were-proud-of">Accomplishments that we’re proud of</h1>
<p>As a whole, this project is an accomplishment we’re very proud of. Not only did CyberCanary reach or exceed every goal we set at the start of the project, but the learning process was definitely something that we’re both proud to have done. Some specific accomplishments include the integration of an AI model into our project, the creation and use of a database, and the development of the website’s UI and appearance. All of these are tasks that one or both of us were new to, and consequentially accomplishments that we learned the most from.</p>

<h1 id="what-we-learned">What we learned</h1>
<p>We’ve both learned a lot from this project. Going into this, our frontend developer had never worked with Flask or any database at all, and our backend developer had never attempted to use AI in a project. We’ve come leaps and bounds from even the first day of hacking, and it’s been a transformative experience for us as both coders and people. We’re learning how to create user authentication systems, and simultaneously how to schedule our breaks to save the most time. We’re limit-testing our ability to crunch tasks under time and pressure, and also what the human limit of caffeine-powered productivity is. We definitely came away from this Hackathon with a lot more than either of us expected, and we’re proud of what we’ve learned and accomplished in these 3 days.</p>

<h1 id="whats-next-for-cybercanary">What’s next for CyberCanary</h1>
<p>CyberCanary is definitely a project that we both see having a bright future. There’s a practical market, and there’s so much room for CyberCanary to grow, and so many incredible features we brainstormed without the time or means to implement. As amazing as CyberCanary is, it can be so much greater, and that high ceiling is what makes us both so optimistic about its future. Some specific features you might look forward to seeing: scraping more social medias, websites, and articles, a much more secure multi-factor authentication system for client log-in, a system to classify threats and group them for easier assignment to relevant projects, and a way to anonymize clients in our system entirely, such that CyberCanary does not keep any sensitive information at all.</p>]]></content><author><name>Zackaryia Shamsi</name></author><category term="AI" /><category term="Cyber Security" /><category term="Hackathon" /><category term="Project" /><summary type="html"><![CDATA[Using AI analysis, we can pinpoint relevant threats to your tech stack eliminating exploit reuse. Instantly react to new cybersecurity developments before threat actors use threats against you.]]></summary></entry><entry><title type="html">Draft-O-Matic</title><link href="https://www.zackaryia.com/blog/2023-01-29/draft-o-matic/" rel="alternate" type="text/html" title="Draft-O-Matic" /><published>2023-01-29T00:00:00+00:00</published><updated>2023-01-29T00:00:00+00:00</updated><id>https://www.zackaryia.com/blog/2023-01-29/draft-o-matic</id><content type="html" xml:base="https://www.zackaryia.com/blog/2023-01-29/draft-o-matic/"><![CDATA[<blockquote>
  <p>⚠️ <strong>Warning:</strong> This blog post was originally written for a Hackathon.</p>
</blockquote>

<h1 id="video">Video</h1>
<div style="position: relative; padding-top: 56.25%; height: 0; overflow: hidden;">
    <iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube.com/embed/Ym5FtqrchxU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
</div>

<h1 id="inspiration">Inspiration</h1>
<p>I am on my high school’s esports team and I often have to analyze drafts because that is one of the most important parts about a game. It determines the dynamics of a game, the play styles, the lane states, and so much more. I looked around for any good websites that could analyze drafts and tell you what the best champions to pick are but they all were very rudimentary in their analysis. So I decided to build an AI to automatically do this.</p>

<h1 id="what-it-does">What it does</h1>
<p>This AI will take in a current state and give you back what the best next possible picks are along with value ratings for those picks. It does this by analyzing every possible “game state” in the decision tree using a mini-max algorithm of elo-based game state heuristics. Now as you could imagine this is a very computationally challenging process which is why I had to implement several optimizations including:</p>
<ul>
  <li>Alpha Beta pruning</li>
  <li>Transposition tables</li>
  <li>Iterative deepening</li>
  <li>Action ordering</li>
  <li>Bit wise hacking</li>
  <li>Optimized heuristic calculations
 and much more</li>
</ul>

<h1 id="how-we-built-it">How we built it</h1>
<p>I utilized Rust as the back-end for all of the analysis and deep introspection into the game state, and a python flask server as an intermediary between the client and the rust back-end. All of the code was done from scratch including the mini-max algorithm and all optimizations creating a lot of overhead for this project.</p>

<h1 id="challenges-we-ran-into">Challenges we ran into</h1>
<p>I have only ever dabbled in rust before and this project was the equivalent of driving in a NASCAR after getting your permit, I was not prepared. Rust is a very different language to python (which is my bread and butter) so I was thrown for a spin. Through out the whole process of developing this I had issues and bugs all over the place and I was barely able to finish this project in time throwing out some extra sugar that I wished I could have kept in.</p>

<h1 id="accomplishments-that-were-proud-of">Accomplishments that we’re proud of</h1>
<p>I am proud that I was able to complete this, and I am proud that I actually now understand Rust as a language. Before I had always felt too intimidated by it but now I know I can accomplish a lot with it and it is a very fun language to use. I am also proud of the progress in knowledge I have in Mini-max algorithms, AI, Elo, and much more that this project forced me to learn.</p>

<h1 id="whats-next-for-draft-o-matic">What’s next for Draft-O-Matic</h1>
<p>I hope to turn Draft-O-Matic into a full fledged desktop application with much more features and use cases as well as a much more optimized set of heuristics in the future with an optimized mini-max AI, it is definitely a useful project that will have a big impact on at least my esports team.</p>]]></content><author><name>Zackaryia Shamsi</name></author><category term="AI" /><category term="Games" /><category term="Hackathon" /><category term="Project" /><summary type="html"><![CDATA[An AI to automatically search every possible game state in League of Legends to get you the easiest wins.]]></summary></entry></feed>