The World Brain
In 1936 and 1937, English author Herbert George Wells gave a series of public lectures on a rather peculiar topic. By this time, H. G. Wells was in his early seventies. His famous science fictions novels— The Time Machine , The Island of Doctor Moreau , The Invisible Man , and The War of the Worlds —had been published in the 1890s and made him famous. But Wells had evolved into a public intellectual who thought deeply about social and political issues and shared these thoughts with the public.
The lectures that Wells delivered in 1936 and 1937 were published in book form in 1938 under the title World Brain . In these talks, Wells proposed a type of encyclopedia, but not one that would be created for commercial purposes and sold door-to-door. This World Encyclopedia would encapsulate global knowledge in a way that had not been done before.
These were precarious times in Europe: Memories of the Great War just two decades earlier were still fresh, and yet Europe seemed to be hurtling toward another continent-engulfing conflict. As an optimist and utopianist, Wells believed that science, rationality, and knowledge were the best tools to guide the world to its future. The World Encyclopedia that he proposed would contain
- … the ruling concepts of our social order, the outlines and main particulars in all fields of knowledge, an exact and reasonably detailed picture of our universe, a general history of the world, and … a trustworthy and complete system of reference to primary sources of knowledge.
In short, it would present “a common interpretation of reality” and a “mental unification.”
Such an encyclopedia would need to be continually updated with our expanding knowledge of the world, but in the process of its development, it would become
- … a sort of mental clearing house for the mind, a depot where knowledge and ideas are received, sorted, summarized, digested, clarified, and compared… . It would constitute the material beginning of a real World Brain.
The first embryonic digital computers were just being built in the 1930s, and it is unlikely that Wells had any knowledge of them, so he really had no choice but to conceive of this encyclopedia in the form of books: “twenty or thirty or forty volumes.” But he was familiar with the emerging technology of microfilm:
- It seems possible that in the near future, we shall have microscopic libraries of record, in which a photograph of every important book and document in the world will be stowed away and made easily available for the inspection of the student… . The time is close at hand when any student, in any part of the world, will be able to sit with his projector in his own study at his or her convenience to examine any book, any document, in an exact replica.
What a vision of the future!
Less than a decade later, in 1945, the engineer and inventor Vannevar Bush had a similar vision, but slightly more advanced.
Bush had already made his mark in the history of computing. Beginning in 1927, Bush and his students in the department of electrical engineering at the Massachusetts Institute of Technology constructed a differential analyzer, a seminal analog computer that solved differential equations. By the early 1930s, he was dean of engineering and a vice president at MIT.
Bush’s obituary in 1974 in the New York Times called him “the paradigm of the engineer—a man who got things done,” whether that be solving technical problems or cutting through government bureaucracy. During the Second World War, Bush was in charge of coordinating over 30,000 scientists and engineers in the war effort, including overseeing the Manhattan Project, which created the first atom bomb. For several decades, Bush was a major advocate for the involvement of scientists and engineers in public policy.
Toward the end of WWII, Bush wrote a now famous article for the July 1945 issue of the Atlantic Monthly . Entitled “As We May Think,” it in retrospect seems quite prophetic. An abridged version of the article was published in a September issue of Life magazine and accompanied by some fanciful illustrations.
Like Wells, Bush focused on information and the difficulty of keeping up with it:
- There is a growing mountain of research. But there is increased evidence that we are being bogged down today as specialization extends. The investigator is staggered by the findings and conclusions of thousands of other workers—conclusions which he cannot find time to grasp, much less to remember, as they appear… . The difficulty seems to be, not so much that we publish unduly in view of the extent and variety of present day interests, but rather that publication has been extended far beyond our present ability to make real use of the record. The summation of human experience is being expanded at a prodigious rate, and the means we use for threading through the consequent maze to the momentarily important item is the same as was used in the days of square-rigged ships.
Bush was aware of rapidly evolving technology that might help the scientist of the future. He conceives of a camera strapped to the forehead that might be triggered whenever something needs to be recorded. He speaks about microfilm, of “facsimile transmission” of documents, and of machines that might record human speech directly and convert it to text.
But toward the end of the article, Bush identifies a remaining problem: “… for we can enormously extend the record; yet even in its present bulk we can hardly consult it.” Most information is organized and indexed alphabetically, but that’s clearly inadequate:
- The human mind does not work that way. It operates by association. With one item in its grasp, it snaps instantly to the next that is suggested by the association of thoughts, in accordance with some intricate web of trails carried by the cells of the brain.
Bush conceives of a machine, a “mechanized private file and library,” an elaborate desk that stores microfilm and makes it easily accessible. And he gives it a name: “memex.”
- Most of the memex contents are purchased on microfilm ready for insertion. Books of all sorts, pictures, current periodicals, newspapers, are thus obtained and dropped into place. Business correspondence takes the same path. And there is provision for direct entry. On the top of the memex is a transparent platen. On this are placed longhand notes, photographs, memoranda, all sorts of things. When one is in place, the depression of a lever causes it to be photographed onto the next blank space in a section of the memex… .
But most importantly, marginal notes and comments can be added to these documents and united by “associative indexing.”
- This is the essential feature of the memex. The process of tying two items together is the important thing… . Moreover, when numerous items have been thus joined together to form a trail, they can be reviewed in turn, rapidly or slowly, by deflecting a lever like that used for turning the pages of a book. It is exactly as though the physical items had been gathered together from widely separated sources and bound together to form a new book… . Wholly new forms of encyclopedias will appear, ready made with a mesh of associative trails running through them, ready to be dropped into the memex and there amplified.
Bush even anticipated the lazy convenience of not being forced to remember anything, because the user of this machine “can reacquire the privilege of forgetting the manifold things he does not need to have immediately at hand, with some assurance that he can find them again if they prove important.”
In 1965, two decades after Bush wrote of the memex, the prospect of realizing this dream in computer form was becoming possible. Computer visionary Ted Nelson (born 1937) took up the challenge of modernizing the memex in an article entitled “Complex Information Processing: A File Structure for the Complex, the Changing and the Indeterminate,” published in ACM ’65 , the proceedings of a conference of the Association for Computing Machinery. The abstract begins
- The kinds of file structures required if we are to use the computer for personal files and as an adjunct to creativity are wholly different in character from those customary in business and scientific data processing. They need to provide the capacity for intricate and idiosyncratic arrangements, total modifiability, undecided alternatives, and thorough internal documentation.
Referencing Bush’s article on memex, Nelson asserts “The hardware is ready” for a computer realization. His proposed file structure is both ambitious and enticing, and he needs to invent a new word to describe it:
- Let me introduce the word “hypertext” to mean a body of written or pictorial material interconnected in such a complex way that it could not conveniently be presented or represented on paper. It may contain summaries, or maps of its contents and their interrelations; it may contain annotations, additions and footnotes from scholars who have examined it. Let me suggest that such an object and system, properly designed and administered, could have great potential for education, increasing the student’s range of choices, his sense of freedom, his motivation, and his intellectual grasp. Such a system could grow indefinitely, gradually including more and more of the world’s written knowledge. However, its internal file structure would have to be built to accept growth, change and complex informational arrangements.
In these writings of H. G. Wells, Vannevar Bush, and Ted Nelson, it is evident that at least some people were thinking about the internet long before it became feasible.
Communicating among computers over long distances is a formidable task. The internet itself originated from research by the United States Department of Defense in the 1960s. The Advanced Research Projects Agency Network (ARPANET) became operational in 1971 and established many of the concepts of the internet. Perhaps the most crucial was packet switching , which is the technique of separating data into smaller packets that are accompanied by information known as a header .
For example, suppose Computer A contains a text file of 30,000 bytes in size. Computer B is connected in some way to Computer A. It issues a request for this text file from Computer A through signals sent through the connection. Computer A responds by first dividing this text file into 20 parts of 1500 bytes each. Each of these packets contains a header section that identifies the source (Computer A), the destination (Computer B), the name of the file, and numbers identifying the packets—for example, part 7 out of 20. Computer B would acknowledge the receipt of each packet and then reassemble the file. If it were missing a particular packet (perhaps lost in transmission), it would request another copy of that packet.
The header might also contain a checksum , which is a number calculated in some standard way from all the bytes of the file. Whenever Computer B receives a packet, it performs this calculation and checks the result against the checksum. If it doesn’t match, it must assume that the packet was corrupted in transmission. It requests another copy of the packet.
Packet switching has several advantages over sending the file in its entirety. First, the connection between the two computers would be available for sharing with other computers exchanging their own packets. No one computer could tie up the system with a large file request. Also, if errors are detected in a packet, only that packet needs to be re-sent rather than the entire file.
Throughout this book you’ve seen how digital information is conveyed through wires. A current flowing through a wire is a binary 1, and the absence of a current is a binary 0. But the wires in the circuits shown in this book are quite short. Conveying digital information over longer distances requires different strategies.
Telephone landlines became the earliest means of long-distance digital communication, primarily because they already existed and were conveniently available. But the telephone system was designed for people talking and listening to each other. Technically, the telephone system conveys audio waveforms in the range of 300 Hz to 3400 Hz, which is considered sufficient for human speech.
One simple approach to converting binary 0s and 1s to an audio waveform is through a process of modulation , which is altering an analog audio signal in some way so that it encodes digital information.
For example, one early modulation device was the Bell 103, which was manufactured by AT&T beginning in 1962, but which had a long lingering influence extending into the 1990s. This device could operate in full duplex mode, meaning that it could send and receive information at the same time. At one end of the telephone line was an originating station, and at the other end was the answering station. These two stations communicated at a rate of 300 bits per second.
The Bell 103 used a technique called frequency-shift keying (FSK) to encode 0s and 1s in an audio signal. The originating station encoded a binary 0 as a frequency of 1,070 Hz, and a binary 1 as 1,270 Hz. Here’s the 8-bit ASCII code for W encoded as these two frequencies:
It may be hard to see in this diagram, but the space between the cycles for the 0 bits is a little wider than for the 1 bits because the frequency is lower. The answering station worked similarly except using frequencies of 2,025 Hz and 2,225 Hz. Often a parity bit was included as a simple form of error checking.
The device that modulates this tone to encode binary data is also capable of demodulating an incoming tone and converting it back into 0s and 1s. These devices are therefore called modulator-demodulators, or modems .
The Bell 103 modem was able to transmit data at a rate of 300 bits per second. It was also called a 300- baud device, a measurement named after Émile Baudot, whom you met in Chapter 13 . The baud rate is the symbol rate, and it’s sometimes the same as the bits per second and sometimes not. For example, suppose you devised an FSK scheme that used four different frequencies to represent the bit sequences 00, 01, 10, and 11. If the waveform representing these tones changed 1000 times per second, it would be classified as 1000 baud, but it would convey 2000 bits per second.
A 300-baud modem makes quite a noisy racket when connecting two computers. The sound is often used in TV shows and movies to evoke home computing in the 1980s and 1990s.
Eventually modems working over digital telephone lines achieved speeds of 56 kilobits per second. These are called 56K modems, and they are still used in some areas. Faster connection speeds can be achieved with a digital subscriber line (DSL), coaxial cable, and satellites. These carry waveforms at radio frequencies, and very sophisticated modulation techniques allow encoding more digital information within the waveforms to achieve much greater rates of digital transmission.
A different communication medium is used for much of the intercontinental internet cabling as well as for connections among coastal areas. Buried under the sea are myriad fiber-optic cables. These are cables made of thin fibers of glass or plastic that carry beams of infrared light. Light normally doesn’t bend, of course, but the light bounces off the internal surface of the fiber so the fibers can bend and still work well.
Several hundred of these fibers are generally bundled together in a cable, allowing each fiber to carry a separate transmission. Some fibers can themselves carry multiple signals. Digital information is encoded in fiber-optic cables by pulsing the light: The light is effectively turned off and on very quickly, where off is a 0 and on is a 1. This is what enables the high-speed communication required of the modern internet.
Topology is also crucial: The internet could have been created by constructing one massive computer somewhere in the world and connecting every other computer to that one machine. In some ways, this would make the internet a lot simpler. But this simple scheme clearly has disadvantages: People who live a long distance from that central computer would suffer greater delays, and if that giant computer ever crashed, it would bring down the entire world’s internet.
Instead, the internet is decentralized, with much redundancy and no single point of failure. There do exist very big computers that store lots of data. These are called servers , while smaller computers that access this data are sometimes called clients . But the client computers that we use don’t connect to servers directly. Instead, you access the internet through an internet service provider (ISP). You probably know who your ISP is because you likely pay them a monthly fee. If you access the internet through a cellphone, then your phone carrier is also your ISP.
Besides wires and cables and radio waves, everything on the internet is interconnected through routers , so called because they provide a route between client and server. You might have a router in your home as part of the modem through which you access the internet, or as part of a Wi-Fi hub. These routers contain jacks for Ethernet cables that can be used to physically connect computers and perhaps a printer.
The routers that compose the interlocking parts of the internet are more sophisticated than these home routers. Most of these routers are connected to other routers, to which they convey packets, and these routers are in turn connected to other routers, making up a complex mesh. Routers contain their own CPUs because they store routing tables or an algorithmic routing policy that describes the best route for a packet to reach its destination.
The other piece of ubiquitous hardware is the network interface controller , or NIC. Every NIC has a unique identifier that is a permanent part of the hardware. This identifier is the media access control , or MAC, address. A MAC address consists of a total of 12 hexadecimal digits, sometimes in six groups of two digits each.
Every piece of hardware connected to the internet has its own MAC address. Desktop and laptop computers usually have multiple addresses for the computer’s Ethernet connection, Wi-Fi, and Bluetooth, which can connect to nearby devices through radio waves. You can discover these MAC addresses through the Settings information on your computer. Your modem and Wi-Fi hub also have MAC addresses that are probably printed on labels on these devices. Your cellphone likely has Wi-Fi and Bluetooth MAC addresses. The use of 12 hexadecimal digits for the MAC address suggests that the world won’t run out of them soon. There are over 30,000 MAC addresses for every human on the planet.
Although the internet supports several distinct services, such as email and file-sharing, most people interact with the internet through the World Wide Web, which was largely invented by English scientist Tim Berners-Lee (born 1955) in 1989. In creating the web, he adopted the word “hypertext,” which had been coined by Ted Nelson when Berners-Lee was 10 years old.
The basic type of document on the web is called a page or a webpage and consists of text using the Hypertext Markup Language (HTML). You saw a little bit of HTML in the previous chapter. HTML documents contain text tags such as <p> to denote a paragraph, <h1> for a top-level heading, and <img> for a bitmap image.
One of the most important HTML tags is <a> , standing for anchor . The anchor tag encloses a hyperlink , which is usually a short text string that is formatted differently (often with an underline) and that when clicked or tapped loads a different webpage. This is how multiple webpages are linked. Sometimes links can be different parts of a bigger document—much like a table of contents in a book—and sometimes links can provide reference sources or additional information so that continuing to invoke links digs deeper into a topic.
In the couple of decades of its existence, the web has grown enormously. Neither H. G. Wells nor Vannevar Bush could possibly have envisioned the potential for online research, for shopping, and for entertainment, nor experience the joy of cat videos, and the perverse appeal of engaging in vicious political disputes with strangers. Indeed, the computer revolution prior to the internet now seems incomplete in retrospect. The internet has become the pinnacle and culmination of the computer revolution, and the success of this revolution must be judged on how well the internet has made the world a better place. That is a subject for minds capable of much deeper thinking than mine.
Pages on the web are identified with a Uniform Resource Locator, or URL. One of the pages on the website that I built for this book has the URL
https://www.CodeHiddenLanguage.com/Chapter27/index.html
This URL consists of a domain name ( www.CodeHiddenLanguage.com ), a directory ( Chapter27 ), and an HTML file (index.html). The URL begins with something called a protocol . The http prefix stands for Hypertext Transfer Protocol, while https is the secure variant of HTTP. These protocols describe how a program such as a web browser obtains pages from a website.
(Somewhat confusingly, there is also something called a Uniform Resource Identifier , or URI, which has much the same format as a URL but which can be used as a unique identifier rather than referencing a webpage.)
Any application running on a modern computer can make a call to the operating system for initiating what is called an HTTP request . The program need do little more than specify a URL as a text string such as “ https://www.CodeHiddenLanguage.com .” Sometime later (but not long, let us hope), the application receives an HTTP response giving the application the requested page. If the request fails, the response will be an error code. For example, if the client requests a file that doesn’t exist (for example, https://www.CodeHiddenLanguage.com/FakePage.html ), the response will be the familiar 404 code, which indicates that the webpage couldn’t be found.
What happens between that request and response is a quite elaborate communication between the client making the request and the server responding to it.
The URL of the website is only the human-friendly pseudonym for the real identifier of the website, which is an Internet Protocol (IP) address—for example, 50.87.147.75. That’s a Version 4 IP address, which is a 32-bit number. The Version 6 IP address uses 128 bits. To obtain the IP address of the website, the web browser (or another application) accesses the Domain Name System (DNS), which is like a large directory that maps URLs to IP addresses.
The IP address of a website is fixed; the client computer also has an IP address that is probably assigned to the computer by the ISP. Increasingly, household appliances have IP addresses that are accessible locally through your computer. The appliances are examples of the internet of things , or IOT.
At any rate, when your web browser makes an HTTP request for a webpage, the client communicates with the server through a set of protocols known collectively as TCP/IP, meaning Transmission Control Protocol and Internet Protocol . These are the protocols that divide a file into packets and that preface the data with header information. The headers include source and destination IP addresses, which remain the same throughout the progress of the packets through the various routers that connect the client and the server. The header also contains source and destination MAC addresses. These change as the packet moves from router to router.
Most of these routers contain a routing table or a routing policy that indicates the most efficient router to continue the trip of the request from client to server, and the trip of the response from server to client. This routing of packets through routers is certainly the most complex aspect of the internet.
When you first access the CodeHiddenLanguage.com website, you probably enter something like
into your web browser. You don’t need to selectively capitalize the domain name as I’ve done. Domain names are case insensitive.
The browser itself will preface that domain name with https when making the HTTP request. Notice that no file is specified. When the server receives a request for the CodeHiddenLanguage.com website, information associated with the website includes a list that indicates what file should be returned. For this website, the file at the top of this list is default.html. It’s the same as if you had typed
CodeHiddenLanguage.com/default.html
in the web browser. That’s the home page of the website. Web browsers allow you to view the HTML file directly through an option such as View Page Source.
When the web browser gets that default.html file, it begins the job of parsing , which I described in Chapter 27 . This involves going through the text of the HTML file character by character, identifying all the tags, and laying out the page. On the CPU level, parsing generally involves a lot of CMP instructions followed by conditional jumps. This is a job usually relegated to a chunk of software called an HTML engine, which is probably written in C++. In displaying the page, the web browser uses the operating system’s graphics facilities.
In the parsing of default.html, the web browser will discover that this file refers to another file, named style.css. This is a text file with Cascading Style Sheets (CSS) information that describes the details of how the page is formatted. The web browser makes another HTTP request to obtain this file. Farther down the default.html page, the web browser finds a reference to a JPEG file named Code2Cover.jpg. That is an image of the cover of this book. Another HTTP request retrieves that file.
Farther down the page is a list of some of the chapters in the book, with links to other pages in the website. The browser does not load those other pages quite yet but displays them as hyperlinks.
When you click the link for Chapter 6 , for example, the browser makes an HTTP request for https://www.codehiddenlanguage.com/Chapter06 . Once again, no file is specified, but the server checks its list. The default.html file is at the top, but that file doesn’t exist in the Chapter06 folder. Next on the list is index.html, and that’s the file that’s returned.
The browser then begins parsing that page. That page also refers to the style.css file, but the web browser has cached that file, which means that it has saved that file for future use and doesn’t need to download it again.
That index.html page has several <iframe> tags that refer to other HTML files. Those files are downloaded as well. Those files have <script> sections that list several JavaScript files. Those JavaScript files are now downloaded so that the JavaScript code can be parsed and executed.
It used to be that JavaScript code was interpreted by the web browser as it was parsed. These days, however, web browsers contain JavaScript engines that compile the JavaScript—not all at once but only when it’s needed. This is a technique called just-in-time (JIT) compiling.
Although the CodeHiddenLanguage.com website delivers interactive graphics to your desktop, the HTML pages themselves are static. It is also possible for a server to deliver dynamic web content. When a server receives a particular URL, it can do whatever it wants with it, and the server can create HTML files on the fly and deliver them back to the client.
Sometimes a series of query strings are attached to a URL. These generally follow a question mark and are separated by ampersands. The server can parse and interpret these as well. Servers also support a URL style called REST (representational state transfer), which involves moving data files from the server to the client. These facilities are known as server-side because they involve programs running on the server, while JavaScript is a client-side programming language. Client-side programs in JavaScript can interact with server-side programs on the server.
Web programming offers a staggering wealth of options, as the myriad varieties of websites prove. As more and more processing and data storage moves to servers, these servers have become collectively known as the cloud . As more and more of the personal data of users are stored on the cloud, the actual computers that people use to create or access that data become less important. The cloud makes the computing experience user-centric rather than hardware-centric.
Do you wonder what H. G. Wells or Vannevar Bush would have thought about the internet?
Both Wells and Bush optimistically believed that it was essential to improve our access to the knowledge and wisdom of the world. It’s hard to argue with that. But equally obvious is that providing this access doesn’t automatically propel civilization into a golden age. People tend now to be more overwhelmed than ever by the quantity of information available rather than feeling that they can manage it.
In the sense that the internet represents a sampling of many different types of people and personalities and beliefs and interests, it is certainly some sort of World Brain. But it is definitely not the “common interpretation of reality” that Wells desired. Almost as prevalent as authentic knowledge are unnerving manifestations of crank science and conspiracy theories.
I think Wells would have loved the idea of Google Books ( books.google.com ), which has been formed from scanning and digitizing books and magazines from different libraries. Many of these books—those not still under copyright—are fully accessible. Unfortunately, the creators of Google Books apparently forgot about the catalog cards, and instead force the user to rely entirely on search facilities, which are themselves seriously flawed. This fundamental problem often makes it maddeningly difficult to find something specific in Google Books.
Almost in complete contrast to Google Books is JSTOR ( www.jstor.org ), short for Journal Storage, a collection of academic journals whose articles have been organized and catalogued in a gloriously meticulous manner. JSTOR started out as a restricted site, but after a shameful incident involving the prosecution and tragic suicide of a programmer determined to make the contents of JSTOR freely available, it has been made much more accessible to the general public.
For those who can read traditional Western music notation, the International Music Score Library Project (imslp.org) is to music scores what Google Books is to books. IMSLP is an enormous repository of digitized scores that are no longer in copyright, and they are fortunately catalogued and indexed in a highly usable manner.
If you think about the ideas of Vannevar Bush and Ted Nelson in regard to the ability to create our own web of documents, something seems to be missing. Websites such as Google Books, JSTOR, and IMSLP are resistant to the type of arbitrary linking that they envisioned. Modern word processing and spreadsheet applications accept storing links to sources of information, but not in a very flexible manner.
The website that comes closest to Wells’s concept of a World Encyclopedia is obviously Wikipedia ( wikipedia.org ). The basic concept of Wikipedia—an encyclopedia that can be edited by its users—could easily have resulted in something that degenerated into chaos and consequent uselessness. But under the studious and conscientious direction of Jimmy Wales (born 1966), it has instead become the single most essential website on the internet.
In World Brain , H. G. Wells wrote
- An Encyclopedia appealing to all mankind can admit no narrowing dogmas without at the same time admitting corrective criticism. It will have to be guarded editorially and with the utmost jealousy against the incessant invasion of narrowing propaganda. It will have a general flavour of what many people will call scepticism. Myth, however venerated, it must treat as myth and not as a symbolical rendering of some higher truth or any such evasion. Visions and projects and theories it must distinguish from bed-rock fact. It will necessarily press strongly against national delusions of grandeur, and against all sectarian assumptions. It will necessarily be for and not indifferent to that world community of which it must become at last an essential part. If that is what you call bias, bias the World Encyclopedia will certainly have. It will have, and it cannot help but have, a bias for organization, comparison, construction and creation. It is an essentially creative project. It has to be the dominant factor in directing the growth of a new world.
Those are ambitious goals, and it is impressive how close Wikipedia has come to meeting these requirements.
I suspect that most of us remain not quite as optimistic as Wells in believing that the simple presence of a body of knowledge can help guide the world to a better future. We are sometimes told that if we build it, they will come, and however much we might want to believe that, it’s not a guarantee. Human nature rarely conforms to expectations.
Yet we must all do what we can.