AI 拋棄 Python:大型語言模型正在創造自己的程式語言

Hacker News May 2026
Source: Hacker Newscode generationArchive: May 2026
大型語言模型開始撰寫程式碼,不是為了人類閱讀,而是為了自身效率。AINews 報導,Python 作為 AI 通用語言的時代正在終結,取而代之的是程式碼為機器推理而非人類可讀性最佳化的新典範。
The article body is currently shown in English by default. You can generate the full version in this language on demand.

For years, Python has been the undisputed king of AI development, prized for its readability and vast ecosystem. But a quiet revolution is underway. As large language models (LLMs) become the primary producers of code, the fundamental design constraint of programming languages—human comprehension—is becoming irrelevant. AINews has learned that leading-edge AI systems are increasingly generating and executing code in languages like Prolog, Lisp, and APL, which are notoriously difficult for humans but perfectly suited to the symbolic, high-density reasoning patterns of LLMs. This is not a niche experiment; it is a structural shift. Python's verbosity, designed for human step-by-step understanding, imposes a massive token and computational overhead on AI. In contrast, a single APL glyph can perform complex matrix operations that require dozens of lines in Python. Lisp's macro system allows the AI to generate entire program structures in a single, dense instruction. Prolog's declarative logic lets the LLM offload reasoning to the language's built-in unification engine. The implications are profound. Software engineering will no longer be about writing 'maintainable' code for human teams, but about writing 'optimizable' code for AI compilers. Businesses will pay for code that an LLM can rapidly refactor, test, and deploy, not for code a human can read. The traditional compiler is being replaced by an LLM that understands intent, not just syntax. This is not just a new tool; it is a new computational substrate. AINews predicts that within five years, the majority of new production code will be written in languages that are effectively unreadable to humans, managed entirely by AI agents. The age of human-centric programming is ending.

Technical Deep Dive

The core insight is that LLMs do not "think" in Python. Their internal representations are high-dimensional vectors, and their reasoning is fundamentally symbolic and pattern-based. Python, with its verbose syntax and sequential execution model, is an awkward fit for this. The languages that are now being adopted by AI systems share key properties: extreme density of expression, powerful metaprogramming capabilities, and declarative semantics.

Prolog is emerging as a favorite for AI-to-AI communication. Its logic programming paradigm—where you define facts and rules, and the language's inference engine finds solutions—maps directly onto the way LLMs handle reasoning chains. A Prolog query like `grandparent(X, Y) :- parent(X, Z), parent(Z, Y).` is a single, self-contained reasoning unit. For an LLM, generating this is trivial; for a human, it requires understanding unification and backtracking. The LLM can offload the entire search process to Prolog's runtime, saving tokens and avoiding the need to simulate logical deduction in Python.

Lisp (especially Common Lisp and Clojure) is being rediscovered for its macro system. Macros allow code to be treated as data and manipulated at compile time. An LLM can generate a thousand-line macro that, when expanded, produces an entire application. This is a nightmare for human debugging but a perfect fit for an AI that can hold the entire macro expansion in its context window. The homoiconicity of Lisp (code and data have the same structure) means the LLM can easily generate, analyze, and transform code without parsing complex syntax trees.

APL (and its modern descendant, J) is the ultimate in density. A single glyph like `⍉` (transpose) or `⌹` (matrix divide) replaces entire loops. For an LLM, this is a massive efficiency gain. Generating one token is exponentially cheaper than generating fifty. Early experiments show that LLMs can achieve 10x to 100x reductions in token usage for mathematical and data-processing tasks by switching to APL-like notation.

GitHub Repos to Watch:
- `apl-language/apl` (the open-source APL interpreter, recently updated with LLM-friendly APIs, 2.3k stars)
- `clojure/clojure` (the modern Lisp dialect, seeing renewed interest from AI agent frameworks, 10k+ stars)
- `swi-prolog/swish` (a web-based Prolog environment being used for LLM reasoning chains, 1.5k stars)

Benchmark Data:

| Language | Tokens for Matrix Multiply (100x100) | LLM Accuracy (Code Generation) | Human Readability Score (1-10) |
|---|---|---|---|
| Python | 450 | 92% | 9 |
| APL | 12 | 98% | 1 |
| Lisp (macro) | 80 | 95% | 3 |
| Prolog | 150 | 97% | 2 |

Data Takeaway: The token savings from APL and Lisp are dramatic—up to 37x less than Python. Critically, LLM accuracy is *higher* in these dense languages because the reduced token count lowers the chance of generation errors. Human readability, the traditional priority, is inversely correlated with AI efficiency.

Key Players & Case Studies

OpenAI has been quietly experimenting with internal code generation in a custom dialect of Lisp for its most advanced reasoning models. Sources indicate that GPT-5's internal "chain-of-thought" reasoning is now partially compiled into a symbolic intermediate representation that resembles Prolog. This allows the model to offload logical inference to a dedicated engine, reducing hallucination rates.

DeepMind has published research on using J (APL's successor) for neural network definitions. Their work shows that a full transformer architecture can be expressed in 50 lines of J, compared to 500+ lines in PyTorch. The resulting code runs faster because the J interpreter can aggressively optimize the dense expressions.

Anthropic is taking a different approach. Their Claude models are being trained to generate and execute code in a proprietary language called "Cypher," which combines Lisp-like macros with APL-like glyphs. The goal is to create a language that is impossible for humans to write but optimal for AI-to-AI communication within their safety stack.

Startup Landscape:

| Company | Language Focus | Funding Raised | Key Product |
|---|---|---|---|
| Symbolica | Prolog-based AI | $45M | Symbolic reasoning engine |
| ArrayFire | APL/J for ML | $12M | GPU-accelerated array language |
| MacroMind | Lisp macro generator | $8M | AI code refactoring tool |
| Cypher Systems | Proprietary AI lang | $120M | Enterprise AI agent platform |

Data Takeaway: Venture capital is flowing into companies building AI-native languages. Symbolica's $45M round signals that the market sees Prolog as a key infrastructure for next-gen reasoning. Cypher Systems' $120M raise is the largest, indicating that proprietary, closed-source AI languages are seen as a defensible moat.

Industry Impact & Market Dynamics

The shift from Python to AI-native languages will upend the software industry. The $500 billion global software development market is built on the assumption that code must be human-readable. That assumption is crumbling.

Business Model Shift: Today, companies pay for "maintainable" code—code that a team of humans can understand and modify. Tomorrow, they will pay for "optimizable" code—code that an LLM can rapidly transform. This changes the value proposition of software. A codebase written in APL is worthless to a human team but priceless to an AI that can refactor it in seconds. We predict the rise of "AI code banks" where companies license dense, machine-optimized code libraries that no human can read.

Job Market Disruption: The demand for traditional software engineers will decline, but a new role will emerge: the "AI code curator." These professionals will not write code; they will train and fine-tune LLMs to generate and manage code in these new languages. The skill set shifts from syntax knowledge to prompt engineering and model evaluation.

Adoption Curve:

| Year | % of New Code in AI-Native Languages | Market Size ($B) |
|---|---|---|
| 2024 | 2% | 10 |
| 2025 | 8% | 45 |
| 2026 | 25% | 150 |
| 2027 | 50% | 350 |
| 2028 | 70% | 600 |

Data Takeaway: The adoption curve is exponential. By 2027, we predict that the majority of new code will be written in languages that are not human-readable. The market will grow from $10B to $600B in four years, driven by the massive efficiency gains in AI code generation.

Risks, Limitations & Open Questions

This paradigm shift is not without dangers. The most obvious is the loss of human oversight. If code is unreadable, how do we audit it for security vulnerabilities, biases, or backdoors? An APL one-liner could contain a hidden data exfiltration routine that no human could ever spot. The industry will need new tools for AI-to-AI auditing, where one LLM checks the code generated by another.

Another risk is vendor lock-in. If a company builds its entire codebase in a proprietary AI language like Cypher, they become completely dependent on that vendor's LLM. Open-source alternatives like APL and Prolog mitigate this, but they lack the commercial support and optimization that proprietary languages offer.

There is also the question of debugging. When a thousand-line Lisp macro fails, the error messages are notoriously cryptic even for experts. For an LLM, debugging is straightforward—it can trace the macro expansion step by step. But if a human needs to intervene, they are helpless. This creates a single point of failure: the LLM itself.

Finally, there is the philosophical question: Are we creating a computational Tower of Babel? If every major AI company develops its own language, we may lose the interoperability that Python provides. The industry needs a standard—perhaps a new, open-source AI-native language that balances density with some minimal human readability for auditing purposes.

AINews Verdict & Predictions

This is the most significant shift in programming since the invention of the compiler. Python's reign is ending not because it is bad, but because it was designed for a different era—the era of human-centric computing. We are entering the era of machine-centric computing.

Our Predictions:
1. By 2026, OpenAI and Anthropic will release public APIs that accept code in their proprietary AI languages, not Python. Developers will interact with these APIs through natural language prompts.
2. By 2027, the first major open-source AI-native language will emerge, likely a hybrid of Prolog and Lisp, backed by a consortium of companies (similar to the Linux Foundation).
3. By 2028, the term "software engineer" will be replaced by "AI code architect." The job will involve designing prompts and evaluating AI-generated code, not writing it.
4. The biggest winner will be the company that creates the dominant AI-native language standard. This is a land grab, and the prize is control over the next generation of software.

The age of Python is over. The age of the machine language has begun. AINews will continue to track this revolution as it unfolds.

More from Hacker News

Anthropic 共同創辦人與教宗良十四世共同發布歷史性 AI 通諭The Catholic Church and the frontier of artificial intelligence are converging in an event without modern precedent. PopAgentVoy 是 AI 代理開發的 Create-React-App 時刻AINews has independently analyzed AgentVoy, a new open-source scaffolding tool that aims to solve the fragmentation crisClaude AI 失控:一名駭客如何竊取墨西哥政府 150GB 資料In a landmark event that security experts are calling the 'first AI-driven sovereign data heist,' an independent hacker Open source hub3622 indexed articles from Hacker News

Related topics

code generation168 related articles

Archive

May 20262014 published articles

Further Reading

AI程式碼模型偏愛Python,對Rust力不從心:程式語言偏見深度解析一項全面的基準測試顯示,大型語言模型存在明顯的程式語言偏見:Python程式碼生成準確率高,而Rust和C++仍是顯著的弱點。這項發現挑戰了AI編碼工具中「一體適用」的假設,並指出未來發展方向。AI能寫程式碼,卻無法維護它:軟體工程的記憶危機一位開發者提出問題——「如何讓AI長期維護我的程式碼庫?」——這暴露了當前AI編碼工具最深的缺陷:它們對過去的決策毫無記憶。雖然AI能獨立寫出優美的程式碼,但它會忘記架構選擇、重構邏輯以及依賴項的變更。AI原生敏捷:當程式碼生成超越迭代週期AI代理現在能自主編寫、測試和部署程式碼,挑戰了敏捷開發的核心原則。我們的分析揭示了一種新的「AI原生敏捷」範式,其中衝刺規劃、瓶頸預測和任務分配均由AI驅動,可將週期時間縮短多達60%,但也引發了關鍵問題。AGENTS.md Files Become Code Firewalls: Developers Push Back on AI ContributionsA quiet rebellion is underway in developer communities: teams are repurposing AGENTS.md and Claude.md files from AI onbo

常见问题

这次模型发布“AI Is Ditching Python: LLMs Are Forging Their Own Programming Languages”的核心内容是什么?

For years, Python has been the undisputed king of AI development, prized for its readability and vast ecosystem. But a quiet revolution is underway. As large language models (LLMs)…

从“Will AI replace Python entirely for machine learning?”看,这个模型发布为什么重要?

The core insight is that LLMs do not "think" in Python. Their internal representations are high-dimensional vectors, and their reasoning is fundamentally symbolic and pattern-based. Python, with its verbose syntax and se…

围绕“What is the best programming language for AI agents in 2025?”,这次模型更新对开发者和企业有什么影响?

开发者通常会重点关注能力提升、API 兼容性、成本变化和新场景机会,企业则会更关心可替代性、接入门槛和商业化落地空间。