generated from seed-rs/seed-quickstart
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (38 loc) · 2.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="preload" href="js/bootstrap.min.js" as="script" type="text/javascript">
<link rel="stylesheet" href="css/bootstrap-reboot.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="modulepreload" href="pkg/package.js" as="script" type="text/javascript">
<link rel="preload" href="pkg/package_bg.wasm" as="fetch" type="application/wasm" crossorigin="anonymous">
</head>
<body>
<div class="container mt-4">
<h1>Aaronson's Oracle</h1>
<div class="row">
<div class="col-8">
<p class="lead">According to <a href="https://else.how/">elsehow</a>, who came up with the <a href="https://github.com/elsehow/aaronson-oracle">first implementation of the aaronson oracle for the web</a>, Scott Aaronson is quoted as follows:
<figure class="">
<blockquote class="blockquote bg-info p-3 border rounded">
<p>
In a class I taught at Berkeley, I did an experiment where I wrote a simple little program that would let people type either “f” or “d” and would predict which key they were going to push next. It’s actually very easy to write a program that will make the right prediction about 70% of the time. Most people don’t really know how to type randomly. They’ll have too many alternations and so on. There will be all sorts of patterns, so you just have to build some sort of probabilistic model. Even a very crude one will do well. I couldn’t even beat my own program, knowing exactly how it worked. I challenged people to try this and the program was getting between 70% and 80% prediction rates. Then, we found one student that the program predicted exactly 50% of the time. We asked him what his secret was and he responded that he “just used his free will.”
</p>
</blockquote>
<figcaption class="blockquote-footer">
Scott Aaronson, <cite title="Source Title">Quantum Computing Since Democritus</cite>
</figcaption>
</figure>
<p>This is an implementation of the Aaronson Oracle in Rust. Press 'Start' and then 'f' and 'd' continiously to to try to beat the computer in randomness. Sample size for the guesses is max. the 100 last presses, so you can try to improve.</p>
<section id="app" ></section>
</div>
</div>
<script type="module">
import init from './pkg/package.js';
init('./pkg/package_bg.wasm');
</script>
</body>
</html>