数字世界的第一天:什么是 Code is Law? The First Day of the Digital World: What Does "Code is Law" Mean?
第一章:数字世界的第一天:什么是 Code is Law?
The First Day of the Digital World: What Does "Code is Law" Mean?
---
试想这样一个场景:你打开手机,准备发一条朋友圈分享今天发生的有趣事情。当你点击发送按钮的瞬间,背后发生了什么呢?你的文字、图片甚至位置信息,正在穿越无数看不见的数字高速公路,被各种各样的代码接收、处理、存储。在这条看不见的流水线中,有一段代码在决定你的这条朋友圈谁能看到,另一段代码在决定你的信息会不会被"过滤",还有一段代码在决定你的数据会不会被某个广告商看到并用来向你推送精准广告。
Now imagine this scenario: You open your phone and prepare to post a moment on social media to share something interesting that happened today. The moment you tap the send button, what happens behind the scenes? Your text, photos, and even location information are traveling through countless invisible digital highways, being received, processed, and stored by various codes. Along this invisible assembly line, one piece of code decides who can see your post, another piece of code determines whether your message will be "filtered," and yet another piece of code decides whether your data will be seen by some advertiser and used to push targeted ads to you.
这不是在讲科幻故事。这正是我们每天都在经历的现实。而这背后蕴含的原理,有一个简洁而深刻的表达:Code is Law,即"代码即法律"。
This is not a science fiction story. This is the reality we all experience every day. And the principle behind this has a concise yet profound expression: Code is Law, meaning "code is law."
什么是"代码即法律"?
What Does "Code is Law" Really Mean?
当我说"代码即法律"时,我并不是说程序员写的代码和我们国家颁布的法律条文具有完全相同的效力。在传统的认知里,法律是由立法机构制定的,由国家强制力保障实施的社会规范。而代码呢?代码是程序员用编程语言写成的指令,告诉计算机如何执行特定的任务。这两者看起来风马牛不相及。
When I say "code is law," I don't mean that the code written by programmers has exactly the same authority as the legal statutes enacted by our nation's legislative bodies. In traditional understanding, law is a social norm formulated by legislative bodies and enforced by the state's coercive power. And code? Code is instructions written by programmers in programming languages, telling computers how to execute specific tasks. These two seem entirely unrelated.
但是,让我们仔细思考一下"法律"这个词的本质含义。法律的核心功能是什么?是规范行为。法律告诉我们什么可以做,什么不可以做,违反规定会有什么后果。正是这种"规范行为"的功能,让法律成为了社会运转的基础设施。
But let's carefully consider the essential meaning of the word "law." What is the core function of law? It is to regulate behavior. Law tells us what we can and cannot do, and what consequences follow from violations. It is precisely this function of "regulating behavior" that makes law the infrastructure of social operation.
现在,让我们来看看代码做了什么。当你使用微信时,代码决定了你可以和谁聊天、群聊最多能容纳多少人、超过多大体积的文件无法发送。当你在电商平台购物时,代码决定了哪些商品会出现在搜索结果的前面、你看到的价格是原价还是"促销价"、结账时有没有优惠券可以使用。当你浏览新闻APP时,代码决定了什么样的内容会被推送给你、什么样的评论会被显示、什么样的帖子会被"折叠"。
Now, let's look at what code does. When you use WeChat, code determines who you can chat with, the maximum number of people in a group chat, and the file size limit for sending. When you shop on an e-commerce platform, code determines which products appear first in search results, whether you see the original price or a "discounted price," and whether you can use coupons at checkout. When you browse a news app, code determines what content gets pushed to you, which comments get displayed, and which posts get "collapsed."
看到了吗?代码正在规范你的行为。它就像一只看不见的手,在你使用数字服务的每一个环节,告诉你能做什么、不能做什么、做什么会有奖励、做什么会受到限制。这不正是法律的核心功能吗?
Do you see it? Code is regulating your behavior. It is like an invisible hand, at every step of your digital experience, telling you what you can do, what you cannot do, what actions are rewarded, and what actions are restricted. Isn't this precisely the core function of law?
这就是"代码即法律"这个概念的核心洞见:那些运行我们数字世界的代码,正在扮演着类似法律的规范角色。它们不是由立法机关制定的,却同样具有约束力;它们不需要法院来执行,却能立即对违规行为施加"惩罚"——比如让你的帖子无人问津,或者让你的账号功能受限。
This is the core insight behind the concept of "code is law": the code running our digital world is taking on a regulatory role similar to law. They are not made by legislative bodies, yet they are equally binding; they don't require courts to enforce them, yet they can immediately impose "punishments" for violations — such as making your posts invisible to others, or restricting your account's functionality.
这个概念从哪里来?
Where Did This Concept Come From?
"代码即法律"这个概念的广泛传播,在很大程度上要归功于一位名叫劳伦斯·莱斯格(Lawrence Lessig)的美国法学教授。1999年,他在《代码:塑造网络空间的法律》(Code and Other Laws of Cyberspace)一书中系统性地阐述了这一思想。
The widespread adoption of the concept "code is law" is largely due to Lawrence Lessig, an American law professor. In 1999, he systematically articulated this idea in his book *Code and Other Laws of Cyberspace*.
莱斯格教授的核心观点是:在网络空间中,代码就是法律。他指出,现实世界中有四种力量在规范人类行为:法律(law)、规范(norms,即社会习俗和道德压力)、市场(market,即经济激励和惩罚)以及架构(architecture,即物理世界的规则)。他认为,网络空间中的代码就是第四种力量——架构——的具体体现,而且是一种可以被设计、被修改的力量。
Professor Lessig's core argument was: in cyberspace, code is law. He pointed out that in the real world, four forces regulate human behavior: law, norms (social customs and moral pressure), market (economic incentives and penalties), and architecture (the rules of the physical world). He argued that code in cyberspace is the concrete manifestation of the fourth force — architecture — and one that can be designed and modified.
更重要的是,莱斯格提醒我们,这种"代码法律"的制定者不是民主选举产生的,也不是对任何人负责的。他们是那些创建平台和编写软件的公司和程序员。这意味着,在数字世界里,有一批隐形的"立法者",他们通过代码来决定数十亿人能够做什么、不能做什么——而这些决定,往往不受任何传统意义上的法律约束。
More importantly, Lessig warned us that the makers of this "code law" are not democratically elected and are not accountable to anyone. They are the companies and programmers who create platforms and write software. This means that in the digital world, there is a group of invisible "lawmakers" who decide what billions of people can and cannot do through code — and these decisions are often not subject to any traditional legal constraints.
这个观点在当时是革命性的。即使在2000年初,互联网还主要是少数人的工具时,莱斯格就已经预见到了代码将对我们的日常生活产生多么深远的影响。他把代码比作网络空间的"物理架构"——就像建筑物的结构决定了人们能在里面怎么移动一样,代码的结构决定了用户在数字空间里能怎么行动。
This perspective was revolutionary at the time. Even in the early 2000s, when the internet was still primarily a tool for a few, Lessig had already foreseen how profoundly code would affect our daily lives. He compared code to the "physical architecture" of cyberspace — just as a building's structure determines how people can move within it, code's structure determines how users can act in digital space.
为什么这很重要?——从三个真实故事说起
Why Does This Matter? — Three Real Stories
也许你会问:我为什么要关心代码怎么写?作为一个普通用户,我只需要会用app就行了。但是,让我给你讲三个真实的故事,你就会明白为什么理解"代码即法律"对每一个数字时代的公民都至关重要。
You might ask: Why should I care about how code is written? As an ordinary user, I just need to know how to use apps. But let me tell you three real stories, and you'll understand why understanding "code is law" is crucial for every citizen of the digital age.
故事一:Twitter的"时间线算法"改变了总统选举
Story One: Twitter's "Timeline Algorithm" Changed a Presidential Election
2016年,美国发生了一件让很多人震惊的事情。唐纳德·特朗普,一个当时看起来不可能赢得共和党初选的候选人,最终入主了白宫。许多政治分析家事后诸葛亮地分析原因,其中有一个因素被反复提及:社交媒体的算法。
In 2016, something shocking happened in the United States. Donald Trump, a candidate who seemed impossible to win the Republican primary at the time, ultimately moved into the White House. Many political analysts, in hindsight, analyzed the reasons, and one factor was repeatedly mentioned: the social media algorithm.
事情是这样的。Twitter(现在的X)在2016年之前,用户看到的时间线是按照时间顺序排列的——你关注的人发的最新推文会出现在最上面。但后来,Twitter改变了算法,开始使用一套复杂的排序系统,目的是让用户看到"最相关"的内容。
Here's what happened. Before 2016, Twitter users saw their timeline in reverse chronological order — the latest tweets from people you followed appeared at the top. But later, Twitter changed its algorithm and began using a complex ranking system designed to show users the "most relevant" content.
问题来了:什么样的内容被认为"最相关"?研究表明,能够引发强烈情绪反应的内容——尤其是愤怒和恐惧——更容易被算法认为是"相关的",因为这类内容往往能获得更多的点击、评论和转发,从而给平台带来更多的活跃度。
The problem is: what kind of content is considered "most relevant"? Research shows that content that triggers strong emotional reactions — especially anger and fear — is more likely to be deemed "relevant" by algorithms, because such content tends to get more clicks, comments, and shares, thereby bringing more engagement to the platform.
就这样,一条又一条充满愤怒、恐惧和极端观点的推文被算法推到了数百万用户