-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
820 lines (723 loc) · 20.8 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Purely Functional Data Structures</title>
<meta name="author" content="Dan Rosen">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="reveal.js/css/reveal.min.css">
<link rel="stylesheet" href="reveal.js/css/theme/mergeconflict.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css">
<audio id="bzzzt"><source src="bzzzt.mp3" type="audio/mpeg"></audio>
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
<script src="reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Purely <b>Functional</b> Data Structures</h1>
<hr>
<h3>Dan Rosen, Twitter</h3>
<h4 style="font-weight: 300;"><a href="https://twitter.com/mergeconflict">@mergeconflict</a></h4>
</section>
<section>
<h2>Mutability</h2>
</section>
<section>
<h2>Boring example</h2>
<h3 style="font-weight: 300;">(obvious things omitted)</h3>
<pre><code class="java" data-trim>
public class Rectangle implements Comparable<Rectangle> {
private int width, height;
public Rectangle(int width, int height);
// getters and setters
public int getWidth();
public int getHeight();
public void setWidth(int width);
public void setHeight(int height);
// identity
public int hashCode();
public boolean equals(Object o);
public int compareTo(Rectangle r);
}
</code></pre>
</section>
<section>
<h2>Identity crisis</h2>
<pre><code class="java" data-trim>
// add a rectangle to a hash set
Set<Rectangle> s = new HashSet<Rectangle>();
Rectangle r = new Rectangle(2, 3);
s.add(r); // s = [Rectangle(2, 3)]
// mutate one of the rectangle's fields ...
r.width = 5; // s = [Rectangle(5, 3)]
s.size(); // 1
s.contains(r); // false
// even more fun ...
s.add(r); // s = [Rectangle(5, 3), Rectangle(5, 3)]
</code></pre>
<p class="fragment">(a similar problem occurs with tree sets)</p>
</section>
<section class="bzzzt" data-transition="zoom">
<h2 style="color: red; font-size: 900px;">🅇</h2>
</section>
<section>
<h2>Trolling Prof. Liskov</h2>
<pre><code class="java" data-trim>
public class Square extends Rectangle {
public Square(int length) {
super(length, length);
}
}
</code></pre>
</section>
<section>
<h2>Problem solved?</h2>
<pre><code class="java" data-trim>
public class Square extends Rectangle {
public Square(int length) {
super(length, length);
}
public void setLength(int length) {
super.setWidth();
super.setHeight();
}
@Override public void setWidth(int width) { setLength(width); }
@Override public void setHeight(int height) { setLength(height); }
}
</code></pre>
</section>
<section>
<h2>Hidden invariants!</h2>
<pre><code class="java" data-trim>
@DataPoints
public static void Rectangle[] rectangles(); // may contain squares!
@Theory
public void setWidthMustNotSetHeight(Rectangle r) {
// get an arbitrary rectangle and remember its height
int expectedHeight = r.getHeight();
// change the rectangle's width, and ...
r.setWidth(0);
assertEquals(r.getHeight(), expectedHeight);
}
</code></pre>
</section>
<section class="bzzzt" data-transition="zoom">
<h2 style="color: red; font-size: 700px;">🅇🅇</h2>
</section>
<section>
<h2>More fun</h2>
<pre><code class="java" data-trim>
public class RectangleManager {
private final Set<Rectangle> rectangles = new HashSet<Rectangle>();
public Set<Rectangle> getRectangles() {
return rectangles;
}
}
</code></pre>
</section>
<section>
<h2>Somewhat less mutable</h2>
<pre><code class="java" data-trim>
public Set<Rectangle> getRectangles() {
return Collections.unmodifiableSet(rectangles); // ugh
}
</code></pre>
</section>
<section>
<h2>YOLO</h2>
<pre><code class="java" data-trim>
public synchronized Set<Rectangle> getRectangles() {
Set<Rectangle> copy = new HashSet<Rectangle>();
for (Rectangle r : rectangles) {
copy.add(new Rectangle(r));
}
return copy;
}
</code></pre>
</section>
<section class="bzzzt" data-transition="zoom">
<h2 style="color: red; font-size: 500px;">🅇🅇🅇</h2>
</section>
<section>
<h2>Problems</h2>
<ul>
<li class="fragment">Unstable identity (as viewed by containing objects)</li>
<li class="fragment">Very difficult to satisfy superclass behavioral contracts in subclasses</li>
<li class="fragment">Defensive copying and synchronization often necessary</li>
</ul>
</section>
<section>
<h2>Immutability</h2>
</section>
<section>
<section>
<h2>Feels good*, man</h2>
<pre><code class="java" data-trim>
public class Rectangle implements Comparable<Rectangle> {
private final int width, height;
public Rectangle(int width, int height);
// getters
public int getWidth();
public int getHeight();
// identity
public int hashCode();
public boolean equals(Object o);
public int compareTo(Rectangle r);
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
// setters
public Rectangle setWidth(int width) {
return new Rectangle(width, this.height);
}
public Rectangle setHeight(int height) {
return new Rectangle(this.width, height);
}
</code></pre>
</section>
</section>
<section>
<h2>Real talk</h2>
<ul>
<li>Basic approach: final all the way down</li>
<li>Whenever an update is needed, copy</li>
<li>Let the garbage collector deal with it</li>
</ul>
</section>
<section>
<h2>Stack interface</h2>
<pre><code class="java" data-trim>
public class Stack<E> {
public Stack<E> push(E element); // return a copy
public Stack<E> pop(); // return a copy
public E top();
public boolean isEmpty();
public static <E> Stack<E> empty(); // factory
}
</code></pre>
</section>
<section>
<section data-transition="none">
<pre><code class="java" data-trim>
Stack<Integer> empty = Stack.empty();
</code></pre>
<p><img class="diagram" src="stack/empty.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Stack<Integer> a = empty.push(1);
</code></pre>
<p><img class="diagram" src="stack/a.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Stack<Integer> b = a.push(2).push(3);
</code></pre>
<p><img class="diagram" src="stack/ab.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Stack<Integer> c = b.pop().push(4);
</code></pre>
<p><img class="diagram" src="stack/abc.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Stack<Integer> d = a.push(5);
</code></pre>
<p><img class="diagram" src="stack/abcd.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
b = b.pop(); // 3 can be GC'ed
d = d.pop(); // 5 can be GC'ed
</code></pre>
<p><img class="diagram" src="stack/pop.png"></p>
</section></section>
<section>
<section>
<h2>Stack implementation</h2>
<pre><code class="java" data-trim>
public class Stack<E> {
private final E head;
private final Stack<E> tail;
private Stack() {
head = null;
tail = null;
}
private Stack(E head, Stack<E> tail) {
this.head = head;
this.tail = tail;
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
public Stack<E> push(E element) {
return new Stack<E>(element, this);
}
public Stack<E> pop() {
return tail;
}
public E top() {
return head;
}
public boolean isEmpty() {
return tail == null;
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
private static final Stack<Object> EMPTY = new Stack<Object>();
@SuppressWarnings("unchecked")
public static <E> Stack<E> empty() {
return (Stack<E>) EMPTY;
}
</code></pre>
</section>
</section>
<section>
<h2>"Persistent" data structures</h2>
<ul>
<li>Common substructure can be shared between copies</li>
<li>Somewhat similar to copy-on-write, but easier and more efficient</li>
<li>Also note: stable identity! We could even memoize hashCode...</li>
</ul>
</section>
<section>
<img src="whatever.gif" style="min-height: 70%">
<h2>Whatever</h2>
</section>
<section>
<h2>Queue interface</h2>
<pre><code class="java" data-trim>
public class Queue<E> {
public Queue<E> enqueue(E element); // return a copy
public Queue<E> dequeue(); // return a copy
public E front();
public boolean isEmpty();
public static <E> Queue<E> empty(); // factory
}
</code></pre>
</section>
<section>
<h2>Double the fun?</h2>
<ul>
<li class="fragment">Stack: a singly-linked list, with a reference to the top</li>
<li class="fragment">Queue: a doubly-linked list, with references to the back and front?</li>
</ul>
</section>
<section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> a = /* ... */;
</code></pre>
<p><img class="diagram" src="doubly-linked-queue/a.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> b = a.dequeue();
</code></pre>
<p><img class="diagram" src="doubly-linked-queue/ab1.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> b = a.dequeue();
</code></pre>
<p><img class="diagram" src="doubly-linked-queue/ab2.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> b = a.dequeue();
</code></pre>
<p><img class="diagram" src="doubly-linked-queue/ab3.png"></p>
</section>
</section>
<section>
<div style="display: inline-block;">
<h2>Not quite</h2>
<ul style="display: block;">
<li class="fragment">All enqueue/dequeue operations require complete copies</li>
<li class="fragment">Persistent—previous copies are preserved—but not efficient</li>
</ul>
<div class="fragment">
<hr>
<h2>But close</h2>
</div>
<ul style="display: block;">
<li class="fragment">Two stacks: incoming and outgoing</li>
<li class="fragment">Push to incoming stack, pop from outgoing stack</li>
<li class="fragment">Invariant: outgoing stack must be non-empty if queue is non-empty</li>
</ul>
</div>
</section>
<section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> empty = Queue.empty();
</code></pre>
<p><img class="diagram" src="naive-queue/empty.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> a = empty.enqueue(1);
</code></pre>
<p><img class="diagram" src="naive-queue/a.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> b = a.enqueue(2).enqueue(3).enqueue(4);
</code></pre>
<p><img class="diagram" src="naive-queue/ab.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> c = b.dequeue();
</code></pre>
<p><img class="diagram" src="naive-queue/bc.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> d = c.dequeue().enqueue(5);
</code></pre>
<p><img class="diagram" src="naive-queue/cd.png"></p>
</section>
</section>
<section>
<h2>Prerequisite</h2>
<pre><code class="java" data-trim>
public Stack<E> reverse() {
Stack<E> in = this, out = empty();
while (!in.isEmpty()) {
out = out.push(in.head);
in = in.tail;
}
return out;
}
</code></pre>
</section>
<section>
<section>
<h2>Queue implementation</h2>
<pre style="font-size: 80%">
<code class="java" data-trim>
public class Queue<E> {
private final Stack<E> in, out;
private Queue() {
in = Stack.empty();
out = Stack.empty();
}
private Queue(Stack<E> in, Stack<E> out) {
if (out.isEmpty()) {
this.in = Stack.empty();
this.out = in.reverse();
} else {
this.in = in;
this.out = out;
}
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
public Queue<E> enqueue(E element) {
return new Queue<E>(in.push(element), out);
}
public Queue<E> dequeue() {
return new Queue<E>(in, out.pop());
}
public E front() {
return out.top();
}
public boolean isEmpty() {
return out.isEmpty();
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
private static final Queue<Object> EMPTY = new Queue<Object>();
@SuppressWarnings("unchecked")
public static <E> Queue<E> empty() {
return (Queue<E>) EMPTY;
}
</code></pre>
</section>
</section>
<section>
<div style="display: inline-block;">
<h2>Analysis</h2>
<ul style="display: block;">
<li class="fragment">Enqueue: always O(1)</li>
<li class="fragment">Dequeue: sometimes O(1), sometimes O(n)</li>
</ul>
<div class="fragment">
<hr>
<h2>Amortized analysis</h2>
</div>
<ul style="display: block;">
<li class="fragment">Assume each enqueued element will eventually be rotated</li>
<li class="fragment">Pay the cost of rotation for each element when enqueuing</li>
<li class="fragment">Enqueue: O(1), with 1 credit</li>
<li class="fragment">Dequeue: amortized O(1), debiting when needed to rotate</li>
</ul>
</div>
</section>
<section>
<h1>Microbenchmarking!</h1>
</section>
<section>
<h2>Real-time message queue</h2>
<p>Adapt for concurrent reads and writes</p>
</section>
<section>
<section>
<h2>Testbed</h2>
<pre><code class="java" data-trim>
public class CASQueue<E> {
private final AtomicReference<Queue<E>> q;
private final Semaphore nonEmpty = new Semaphore(0);
public CASQueue(Queue<E> q) {
this.q = new AtomicReference<Queue<E>>(q);
}
// compare-and-set loop
public void enqueue(E element);
public E dequeue();
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
public class LockQueue<E> {
private Queue<E> q;
private final Lock lock = new ReentrantLock();
private final Condition nonEmpty = lock.newCondition();
public LockQueue(Queue<E> q) {
this.q = q;
}
// lock/unlock, await/signal
public void enqueue(E element);
public E dequeue();
}
</code></pre>
</section>
</section>
<section>
<h2>Measurements</h2>
<img src="naive-queue/measurements.png">
</section>
<section class="bzzzt" data-transition="zoom">
<h2 style="color: red; font-size: 900px;">🅇</h2>
</section>
<section>
<h2>Theory != Practice</h2>
<ul>
<li class="fragment">Amortized analysis is unsuitable for real-time applications</li>
<li class="fragment">Need better worst-case performance</li>
<li class="fragment">Same approach, new invariant: stacks can be at most 3 elements long</li>
</ul>
</section>
<section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> empty = Queue.empty();
</code></pre>
<p><img class="diagram" src="recursive-queue/empty.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> a = empty.enqueue(1);
</code></pre>
<p><img class="diagram" src="recursive-queue/a.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> b = a.enqueue(2).enqueue(3);
</code></pre>
<p><img class="diagram" src="recursive-queue/b.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> c = b.enqueue(4);
</code></pre>
<p><img class="diagram" src="recursive-queue/c.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> d = c.enqueue(5)./* ... */.enqueue(10);
</code></pre>
<p><img class="diagram" src="recursive-queue/d.png"></p>
</section>
<section data-transition="none">
<pre><code class="java" data-trim>
Queue<Integer> e = c.dequeue();
</code></pre>
<p><img class="diagram" src="recursive-queue/e.png"></p>
</section>
</section>
<section>
<img src="mind-blown.gif" style="min-height: 70%">
<h2>Mind = Blown</h2>
</section>
<section>
<h2>Prerequisite</h2>
<pre><code class="java" data-trim>
public int size() {
return isEmpty() ? 0 : tail.size() + 1;
}
</code></pre>
</section>
<section>
<section>
<h2>Queue reimplementation</h2>
<pre><code class="java" data-trim>
public class Queue<E> {
private final Stack<E> in;
private final Queue<Stack<E>> spine;
private final Stack<E> out;
@SuppressWarnings("unchecked")
private Queue() {
in = Stack.empty();
spine = (Queue<Stack<E>>) this;
out = Stack.empty();
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre style="font-size: 60%">
<code class="java" data-trim>
private Queue(Stack<E> in, Queue<Stack<E>> spine, Stack<E> out) {
if (out.isEmpty()) {
if (spine.isEmpty()) {
// case 1: same as naïve queue
this.in = Stack.empty();
this.spine = empty();
this.out = in.reverse();
} else {
// case 2: dequeue spine
this.in = in;
this.spine = spine.dequeue();
this.out = spine.front();
}
} else {
if (in.size() == 3) {
// case 3: enqueue spine
this.in = Stack.empty();
this.spine = spine.enqueue(in.reverse());
this.out = out;
} else {
// case 4: same as naïve queue
this.in = in;
this.spine = spine;
this.out = out;
}
}
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
public Queue<E> enqueue(E element) {
return new Queue<E>(in.push(element), spine, out);
}
public Queue<E> dequeue() {
return new Queue<E>(in, spine, out.pop());
}
public E front() {
return out.top();
}
public boolean isEmpty() {
return out.isEmpty();
}
</code></pre>
<h4>⥥</h4>
</section>
<section>
<h4>⥣</h4>
<pre><code class="java" data-trim>
private static final Queue<Object> EMPTY = new Queue<Object>();
@SuppressWarnings("unchecked")
public static <E> Queue<E> empty() {
return (Queue<E>) EMPTY;
}
</code></pre>
</section>
</section>
<section>
<h2>Measurements</h2>
<img src="recursive-queue/measurements.png">
</section>
<section data-transition="zoom">
<img src="success.jpg">
<h2>Success.</h2>
</section>
<section>
<h1><b>How</b> did we get here?</h1>
</section>
<section>
<h2>Problem 1: Unstable identity</h2>
<p>Solved, trivially.</p>
</section>
<section>
<h2>Problem 2: Behavioral subtyping</h2>
<p>Not solved, but making state change visible (by returning copies) helps.</p>
</section>
<section>
<h2>Problem 3: Defensive copying</h2>
<p>Solved efficiently with persistent data structures.</p>
</section>
<section>
<h2>Point being</h2>
<ul>
<li class="fragment"><b>Not</b> recommending persistent queues for messaging (use Disruptor!)</li>
<li class="fragment">But performance is <b>very good</b> for general use</li>
<li class="fragment">Very efficient, persistent implementations exist for:
<ul>
<li>Random-access vectors (bit-mapped vector tries)</li>
<li>Unordered sets and maps (hash array mapped tries)</li>
<li>Ordered sets and maps (persistent red-black trees)</li>
<li>etc.</li>
</ul>
</li>
<li class="fragment">I'd like to see these in the Java standard library</li>
</ul>
</section>
<section>
<h1><b>Thank you</b></h1>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.min.js"></script>
<script src="index.js"></script>
</body>
</html>