forked from urbit/old-urbit.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (34 loc) · 5.71 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
layout: default
title: Home
---
<div id="home">
<h1>What is Urbit?</h1>
<p>We got tired of system software from the 1970s. So we wrote our own. From scratch. Here's what it's made of: </p>
<h2>Nock, a minimal virtual machine</h2>
<p><a href="https://github.com/urbit/urbit/blob/master/urb/zod/spec/nock/5.txt">Nock</a> is a homoiconic combinator algebra, not much fancier than SKI combinators. Its spec fits on a T-shirt and gzips to 340 bytes. Nock's data model: a noun is an atom or a cell. An atom is any natural number. A cell is an ordered pair of any two nouns.</p>
<p>Nock cannot create cycles and needs no GC. Its only arithmetic operator is increment, so it is not inherently efficient; an efficient Nock interpreter works by recognizing standard Nock formulas and matching them to pre-written manual optimizations. We never extend Nock or call out to Unix from it.</p>
<h2>Hoon, a typed functional language</h2>
<p><a href="/doc/2013/11/18/ch5/">Hoon</a> is a strict, typed functional language that compiles itself to Nock. The Hoon compiler is 4000 lines of Hoon. Adding standard libraries, the self-compiling kernel is 8000 lines.</p>
<p>Hoon has no particular family relationship to any older language, functional or not. It uses its own type inference algorithm and is as different from Haskell as from Lisp. Its syntax is also completely unfamiliar. In general, Hoon tries to have the same relationship to Nock that C has to assembly - as thin a layer as possible. It is possible to learn Hoon without Nock, but it's probably not a good idea.</p>
<p>As a functional systems language, Hoon is especially good at: metaprogramming, self-virtualization, hotpatching, etc; marshalling and validating untyped data; decoding and encoding binary message formats. Hoon is designed for event programming, so there is no concurrency model.</p>
<h2>Arvo, a functional operating system</h2>
<p><a href="/tutorial/arvo/ch1_sec1/">Arvo</a> is an event-driven server OS built on the same event library as node.js (<a href="https://github.com/joyent/libuv">libuv</a>). Unlike node.js, Arvo is (a) written in Hoon, (b) isolated from Unix, (c) a persistent single-level store. Arvo can update itself and its data and programs indefinitely from its own state - after the image is created, it lives indefinitely and is never modified externally.</p>
<p>Arvo is modular, but present modules provide a network messaging protocol, a REPL and task manager, a revision-controlled filesystem, a text console, and an HTTP server. The Arvo codebase is about 6500 lines, which is probably too big.</p>
<h2>Clay, a global immutable namespace</h2>
<p>Clay is a feature of Arvo - a secure, referentially transparent decentralized filesystem. The root of the namespace is a global PKI - each identity serves its own filesystem tree. Files are nouns, not atoms, with arbitrary tree structure.</p>
<p>Identities, which are also routable addresses, are either key fingerprints or hierarchically assigned short numbers. All numbers are mapped to phonemic strings for memorability. All identities are transferrable and irrevocable; ownership is established by key pinning. The system has a superficial resemblance to Bitcoin, but works more like land than money. It does not use mining or a blockchain.</p>
<p>Since Clay is immutable, all paths contain a revision, which is either a change number, a date, or a label. A request is a special case of a subscription, so syndication is straightforward. Clay also has a synthesis mode which computes a functional namespace on the client side.</p>
<h2>What is Urbit good for?</h2>
<p>Urbit is good for everything, of course! It's a new general-purpose computing layer. Once our program of world domination is complete, the old Internet will exist only as an underground series of tubes which transports you to your Urbit.</p>
<p>But more specifically, Urbit is a personal cloud computer. Right now, the cloud computers we use run OSes designed for minicomputers in the '70s. An ordinary user can no more drive a Linux box in the cloud than fly an A320. So she has to sit in coach class as a row in someone else's database. It's definitely air travel. It's not exactly flying.</p>
<p>The user of the future will fly her own computer. She will own and control her own identity and her own data. She will even host her own apps. She will not be part of someone else's Big Data. She will be her own Little Data. Unless she's a really severe geek, she will pay some service to store and execute her Urbit ship - but she can move it anywhere else, anytime, for the cost of the bandwidth.</p>
<p>A user can't manage a general-purpose computer unless she basically understands what it's doing. She may not be a programmer, but she needs at least a rough mental model of her computer's state.</p>
<p>So a personal computer has to be a *simple* computer. This is why we built a new system software stack from scratch, with the goal of bringing it in under 10,000 lines of code. Urbit is about 50% over this complexity budget, but nobody's perfect.</p>
<h2>What can it do now?</h2>
<p>Urbit at present is not good for anything but screwing around. For screwing around, it answers all your needs and is happy to consume any amount of unwanted time.</p>
<p>It does basically work as described above, though. Urbit at present propagates all its updates through its own filesystem, runs its own chat server over its own network protocol, etc. But as of early 2014, it is an interesting prototype, not a useful device.</p>
<h2>How can I join the revolution?</h2>
<p>Just wait. If you're cool enough, someone will send you an invitation.</p>
<p>Psych! No, actually, you can go <a href="/setup">here</a>.</p>
</div>