<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Paul Chan on Medium]]></title>
        <description><![CDATA[Stories by Paul Chan on Medium]]></description>
        <link>https://medium.com/@paul.plays.a.pun?source=rss-2971581c22b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tdsAlBILGcT2UzbQ</url>
            <title>Stories by Paul Chan on Medium</title>
            <link>https://medium.com/@paul.plays.a.pun?source=rss-2971581c22b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:37:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paul.plays.a.pun/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The ML Native Language: Mojo]]></title>
            <link>https://medium.com/nyu-ds-review/the-ml-native-language-mojo-b5ec95f85ad9?source=rss-2971581c22b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5ec95f85ad9</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[mojo]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Paul Chan]]></dc:creator>
            <pubDate>Fri, 10 Nov 2023 13:02:02 GMT</pubDate>
            <atom:updated>2023-11-10T13:02:02.656Z</atom:updated>
            <content:encoded><![CDATA[<h4>A language for a world of infinite machine learning but finite compute</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wz8vDyQy9ip8YnD09KGnHA.png" /><figcaption>[5]</figcaption></figure><p>With the advent of chatGPT, large language models and machine learning have come to dominate the tech sphere, yet the underlying technologies which have enabled this boom all rest on a language with much to be desired, namely Python. Whether it’s dynamic typing, slow runtime, or the global interpreter lock preventing true multithreading, Python’s limitations are hamstringing AI development. Of course, Python is still dominant in this field because of its incredible developer ecosystem with libraries that have become essential to modern ML, whether it’s scikit-learn, NumPy, or PyTorch. But what if developers didn’t have to trade performance for necessary libraries- what if they could have the performance of a systems level language like C while using the libraries of Python? Well that would be incredible, and that also happens to be exactly what Mojo is.</p><p>Mojo is an entirely new language developed by Modular AI, a startup which recently raised 100 million from Google Ventures and Greylock. <a href="https://techcrunch.com/2023/08/24/modular-raises-100m-for-ai-dev-tools/">Founded in 2022</a> by Chris Lattner, the creator of the Clang compiler and the chief architect of Swift, and Tim Davis from Google Brain, Modular AI is developing Mojo along with an<a href="https://www.modular.com/engine"> AI inference engine</a> with the grand goal of accelerating AI development [2].</p><p>Though Mojo is an entirely new language, it is a superset of Python. Essentially, Python syntax, libraries, and projects are <strong>FULLY</strong> compatible with Mojo. To make the switch, simply download <a href="https://docs.modular.com/mojo/manual/get-started/">Mojo</a> and change your Python files and paths to .mojo or .🔥(yes the fire emoji is a valid Mojo file extension). I should note that Mojo is currently only available on Linux Ubuntu and macOS with M1 or M2 silicon, but there is a free Mojo jupyter notebook <a href="https://playground.modular.com/">playground</a> for testing. The incredible performance of Mojo is made apparent when comparing it against CPython and even C++. In terms of execution speed, Mojo is <a href="https://www.modular.com/blog/mojo-a-journey-to-68-000x-speedup-over-python-part-3">68,000 times faster</a> than CPython, and even 6.6 times faster than C++.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bMAb3ry5froXVAV7" /><figcaption>Mojo Internal Evaluations (https://docs.modular.com/mojo/)</figcaption></figure><p>This performance increase can significantly expand the scale of projects that <a href="https://news.ycombinator.com/item?id=37324683">GPU-poor engineers</a> [3] develop, especially for compute-intensive tasks like training LLMs. In a similar vein, at a time of rising GPU scarcity and AI regulation, maximizing the capabilities of current computing resources through performance optimization is becoming increasingly necessary. Even if you have access to thousands of H100 GPUs, you’ll still want to use Mojo to achieve the highest possible training performance. In terms of how Mojo is able to achieve this boost, Mojo utilizes automatic parallelization of tasks whereby the compiler divides computations into tasks that can be executed across multiple GPU cores.</p><p>Despite being a superset of Python, Mojo’s features make it far more than just a new variation of Python. One crucial feature is optional typing, which allows developers to choose whether or not to enforce type safety in their programs. This added flexibility, which is key to interoperability with Python, is a further advantage for developing production level programs given the dynamic nature of user input.</p><p>Another key feature of Mojo is its integration with MLIR, which provides direct access to low-level primitives for optimization [1]. This significantly enhances development versatility. As users can utilize high-level abstractions for rapid development while also being able to leverage zero-cost abstractions to increase performance, an ability which is often confined to low-level languages.</p><p>Overall, the multifaceted nature of Mojo, along with its interoperability with Python, makes it an ideal choice for the modern machine learning engineer.</p><p>See you at compile time!</p><p><strong>References:</strong></p><ol><li>“Modular: Inference Engine.” <em>Modularcom RSS</em>, <a href="http://www.modular.com/engine.">www.modular.com/engine.</a> Accessed 31 Oct. 2023.</li><li>Wiggers, Kyle. “Modular Secures $100M to Build Tools to Optimize and Create AI Models.” <em>TechCrunch</em>, 24 Aug. 2023, techcrunch.com/2023/08/24/modular-raises-100m-for-ai-dev-tools/.</li><li>Barr, Alistair. “The Tech World Is Being Divided into ‘GPU Rich’ and ‘GPU Poor.’ Here Are the Companies in Each Group.” <em>Business Insider</em>, Business Insider, 28 Aug. 2023, <a href="http://www.businessinsider.com/gpu-rich-vs-gpu-poor-tech-companies-in-each-group-2023-8.">www.businessinsider.com/gpu-rich-vs-gpu-poor-tech-companies-in-each-group-2023-8.</a></li><li><a href="https://news.ycombinator.com/item?id=37324683">https://news.ycombinator.com/item?id=37324683</a></li><li>Fertman, Kim, et al. “You May Now Kiss the… Uh… Guy Who Receives.” Family Guy. Season 4, Episode 25. Fox Broadcasting Company, 30 April 2006. Television</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5ec95f85ad9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nyu-ds-review/the-ml-native-language-mojo-b5ec95f85ad9">The ML Native Language: Mojo</a> was originally published in <a href="https://medium.com/nyu-ds-review">NYU Data Science Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The End of the Future]]></title>
            <link>https://medium.com/nyu-ds-review/the-end-of-the-future-8113789ab82a?source=rss-2971581c22b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8113789ab82a</guid>
            <category><![CDATA[nuclear]]></category>
            <category><![CDATA[war]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[regulation]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Paul Chan]]></dc:creator>
            <pubDate>Tue, 07 Mar 2023 19:01:27 GMT</pubDate>
            <atom:updated>2023-04-07T15:13:13.262Z</atom:updated>
            <content:encoded><![CDATA[<h3>Opinion Piece: The End of the Future</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7kvJvGou8UlL8qxi" /></figure><h4><strong>We wanted flying cars, we got 140 Characters — Peter Thiel</strong></h4><p>What is innovation in technology? To anyone born after 2000, technological advancement has been condemned to incremental improvements in largely software-based products. The incremental progress of thirty-minute delivery to Uber Eats’ fifteen-minute version and the optimization of social media algorithms into dopamine on-call machines, represents a staggering decline in the rate of innovation from the Cold War era. With the current trends of our world, be it climate change or geo-political crises, we will almost certainly need that era to return.</p><h4><strong>The Great Stagnation</strong></h4><p>The last 40 years have been characterized by unparalleled economic growth, yet they’ve also coincided with a marked stagnation in innovation. One lens through which to understand the severity of the situation is through the productivity metrics of developed countries following World War 2. There is a strong inverse correlation between price trends and productivity gains in a given sector, which makes logical sense as if you can make a good or service more efficiently, then you should be able to sell it for incrementally lower prices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DdRgFm3rD7q5e4s5" /></figure><p>What is evident from the figure above is that the price trends for goods and services have sharply diverged from one another since 1950; with services becoming increasingly expensive and goods becoming cheaper. From this, we can infer that the production of goods has benefited most from automation, though globalization and the accompanying decrease in labor costs are also responsible, while productivity in services has stayed stagnant. Overall, technological advances have not been equally distributed and the stagnating fields have become massive capital sinks.</p><p>By and large, the most jarring evidence for this comes in the form of the lost half-century of revolutions. In the field of energy, we have had to settle for incremental improvements in the energy efficiency of solar panels while letting nuclear energy languish at the hands of sadistic regulators. Or take medicine, how much capital and talent have we poured into projects like cancer research with little to no actual yield from them? Why is it that in the year 2022, our passenger planes fly slower than they did in 1970 when we put a man on the goddamn moon in 1969? Even when there are breakthroughs, they’re canceled and discontinued for incredibly moronic reasons. Take the Concorde supersonic jet, a jet that could fly from New York to London in under three hours: it was retired due to “noise” complaints and one accident. Imagine for a moment, if the Wright brothers ceased their experimentation and trials after their first crash, what kind of a world would we be living in?</p><p>This isn’t to say that innovative and transformative software and hard tech companies haven’t been created. After all, I’m typing this (and I’m sure that you’re reading this) on a machine that was created by one such company. Nonetheless, they don’t come close to the radical advances of the past.</p><p>One such advance is the Haber Process, created by Fritz Haber in 1909, it allowed nitrogen to be synthesized from the air to create fertilizer. If it wasn’t for the Haber process, the enormous population growth of 1.6 billion in 1909 to today’s 8 billion would’ve never been possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mZYdYB63FSVZqn5g" /></figure><p>To put this in perspective: the Haber process has facilitated the creation of more people (4 billion) than there are users on Facebook (2.9 billion). Even to the most diehard and addicted Facebook users, the creation of human life is far greater than any social network. This is a baffling statistic considering the notoriety of the respective creations, with Facebook being a global name and the Haber process being largely confined to chemistry textbooks. Still, it is also a symptom of a larger issue: our current technological malaise and the death of the dynamism that once powered it. No other program better illustrates this stark decline than Meta’s reality labs. Reality labs is Meta’s virtual reality division and are more akin to a black hole than Xerox PARC. It is largely representative of the immense spending of big tech companies and illustrates the stark decline in the purchasing power of capital for innovation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vSBQ4fNnNxWU5lMm" /></figure><p>In the 1950s, 20 billion dollars (inflation-adjusted) got you the Manhattan Project — the United States program to produce the first nuclear weapon — whose creation vanquished the empire of Japan and ended World War Two; in 2022 it gets you virtual reality characters with legs.</p><h4><strong>The Unspoken Bond between Innovation and Warfare</strong></h4><p>Though innovation is often romanticized as occurring in a Silicon Valley garage or a college research lab, in truth there is a common thread throughout all of history’s greatest achievements: Military backing. Whether it be through just funding or providing the entire operational framework, the quest for ever more destructive weapons has driven the creation of humanity’s greatest technologies. Perhaps, there’s something in humanity’s existential struggle that focuses the mind, nonetheless, the result is the same. This phenomenon has occurred to create such technologies as nuclear energy, computers, and satellites. In the case of computers, it was the need to break Nazi codes that drove them to create a machine capable of processing information faster than any human.</p><p>In spite of this storied history of innovation and defense, for the most part, in the modern day, large technology companies and startups alike have both largely shunned working with the department of defense. With the severing of this link, there was an inevitable decline in technological innovation.</p><p>While I absolutely understand the perspective that many companies don’t want to see their creations cause harm, that is ultimately a naive notion. Let’s take the example of weaponized drones and autonomous weapons. If your issue is that drone swarms with offensive capabilities shouldn’t exist, fine, but this research isn’t just taking place in the US, it’s taking place across the globe. Even if you applied the most stringent and aggressive regulations towards this sector, all you would be doing is handicap your own military, thereby handing the technological high ground to your adversaries. That is unless you have a way to verifiable halt this research globally in a multilateral way, good luck with that. Though it may seem counterintuitive, the best way to prevent these technologies from being used offensively, be they drones or humanoid robots, is to accelerate their development. After all, deterrence is capability times will, and we can use our status as the sole wielder of this capability to dictate the terms, and thus restrict its use. Think nuclear nonproliferation, would any other major power really have made that their doctrine?</p><h4><strong>Changing Tides</strong></h4><p>The radical decline in our capacity to generate new technologies and implement them has also been mirrored in the public view of new technologies and the behavior of venture capitalists. Nowhere is this more apparent than with the areas in which investment has largely flowed, food delivery and crypto, and where it has not gone to, biotech and nuclear energy.</p><p>Nuclear is a curious case as it’s a breakthrough technology that sits at the intersection of energy production, warfare, and startups. Though it’s often conflated with nuclear weapons and nuclear war, its ability to function as an energy source is simply incredible. Nuclear power plants can operate regardless of external weather conditions and generate immense electricity relative to their physical footprint. Most importantly, the amount of carbon they emit, rounded to a whole number, and expressed as a percentage of global emissions, is zero. With all of these attributes, you might think that there’d be a nuclear reactor in every major city, or hell, every backyard, but sadly the reality is anything but the case. Since the nuclear “disasters” of Fukushima and Three Mile Island, there has been a persistent global aversion to nuclear energy. It should be noted that these incidents were hardly earth-shattering events, as the UN’s own investigations into the Fukushima incident in 2014 and 2022 found no increase in physical or mental disorders in babies following the accident.</p><p>This anti-nuclear fervor spawned the single most draconian regulatory body in the US: the US Nuclear Regulatory Commission. Since its inception in 1975, not a single new nuclear power plant has been approved to be constructed, which is ludicrous considering how safe and clean nuclear is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yAb_F_VRWQlcwEZ3" /></figure><p>Relative to other forms of energy, nuclear energy is among the safest forms given that the actual risk of a dangerous event occurring is minuscule. Even with this in mind, this once vibrant sector, which was delivering cheap and emission-free energy throughout the world, has been strangled and caged up by onerous regulations.</p><p>The stagnation in nuclear power plant construction is among the 20th century’s greatest tragedies if you account for the increased carbon dioxide emissions from their closures and the openings of coal and other fossil fuel plants.</p><p>With this tragedy in mind, you might think that VCs with such illustrious mission statements of accelerating the future would be attempting to bring nuclear power back. Though you would be wrong, because why work on reviving a source of carbon-free energy when you could invest in the 89th slightly faster delivery company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PQOuSunQmhN8rLtx" /></figure><p>Despite the enormous resources that have been poured into delivery, accompanied by the legions of engineers working on it, for the most part, their efforts have been met with minimal success outside of a few large companies. There are really only a few almost profitable food delivery companies, followed by a trail of startups burning VC dollars and Saudi money.</p><p>This also ties into the issue of talent, as tech companies (fueled by VC bucks) have utilized their cash hoards to hoover up as many engineers as possible. The resulting dearth of engineers has deprived other essential fields, be they electrical engineering or biotech, of essential talent which would otherwise fuel their development. It would be misguided to lay the fault with the individual engineers, as it has been the technology industry, driven by the historic misallocation of VC capital (on par with the dot-com bubble given the crypto debacle). On a broader level of technology fields, software has an innate advantage given its incredible operational margins. There is also the innate business model of software being build once and sell forever, as opposed to material companies in which the marginal cost of a new product is always non-zero.</p><h4><strong>The Future</strong></h4><p>Though I might be making it out to seem fairly doom and gloom, there are still some incredible bright spots. The current brightest is SpaceX. SpaceX represents the highest possible state of a tech company; whether it’s with its work with NASA on lunar missions, helping the DOD (department of defense) launch satellites, or delivering Starlink (providing underserved rural communities with high-speed internet), SpaceX truly embodies the ethos of innovation.</p><p>By and large, SpaceX’s crowning achievement is the sheer scale of its launches. SpaceX’s launches are of course not comparable to that of an entire nation-state, they’re so much better. Though number of launches is often used as a proxy for space capabilities, it often shrouds the true scale of a given program, after all that metric would count the launch of an aircraft carrier as equivalent to a small fishing boat. Therefore total spacecraft upmass (which is the mass of things brought into orbit) is the better indicator of stellar capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*VAVebMlEVf82Wikt" /></figure><p>What makes SpaceX even more impressive is that it not only worked with NASA but revived the US space program from a dilapidated carcass with minimal plans to go to the moon, forget mars, to a force gearing up to build a permanent lunar base and land on the red planet. SpaceX epitomizes everything that tech companies could be and is leading the vanguard in restoring the bond between innovation and defense.</p><h4><strong>The Future is Now</strong></h4><p>Ultimately, with the cascading crises of climate change and great power conflict on our shores and looming over our skies, we need more tech revolutions, not regulations.</p><h4><strong>Works Cited</strong></h4><p>“Fukushima Nuclear Disaster.” <em>Wikipedia</em>, Wikimedia Foundation, 28 Jan. 2023, <a href="https://en.wikipedia.org/wiki/Fukushima_nuclear_disaster.">https://en.wikipedia.org/wiki/Fukushima_nuclear_disaster.</a></p><p>Benaich, Nathan. “Meta Reality Labs Is Gonna Cost as Much as the Apollo Space Program, or about 10 Manhattan Projects. Pic.twitter.com/f5aqhaztnw.” <em>Twitter</em>, Twitter, 29 Oct. 2022, <a href="https://twitter.com/nathanbenaich/status/1586400993381687298.">https://twitter.com/nathanbenaich/status/1586400993381687298.</a></p><p>Parsonson, Andrew. “SpaceX Rules the Ultimate Roost in Q1.” <em>Payload</em>, 3 Aug. 2022, <a href="https://payloadspace.com/spacex-rules-the-ultimate-roost-in-q1/">https://payloadspace.com/spacex-rules-the-ultimate-roost-in-q1/.</a></p><p>Ritchie, Hannah. “What Are the Safest and Cleanest Sources of Energy?” <em>Our World in Data</em>, 10 Feb. 2020, <a href="https://ourworldindata.org/safest-sources-of-energy.">https://ourworldindata.org/safest-sources-of-energy.</a></p><p>Teare, Gené. “Global Venture Funding and Unicorn Creation in 2021 Shattered All Records .” <em>Crunchbase News</em>, 21 Jan. 2022, <a href="https://news.crunchbase.com/business/global-vc-funding-unicorns-2021-monthly-recap/">https://news.crunchbase.com/business/global-vc-funding-unicorns-2021-monthly-recap/.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8113789ab82a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nyu-ds-review/the-end-of-the-future-8113789ab82a">The End of the Future</a> was originally published in <a href="https://medium.com/nyu-ds-review">NYU Data Science Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>