author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Tue, 02 Sep 2014 16:17:18 +0100 | |
changeset 305 | 1e7e83d7e515 |
parent 300 | bd70a062ebb2 |
child 465 | 4dac76eb27d9 |
permissions | -rw-r--r-- |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="utf-8"?> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
2 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
<HEAD> |
240
219869a9634b
fixed dates
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
4 |
<TITLE>2013/14 BSc Projects</TITLE> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
<BASE HREF="http://www.inf.kcl.ac.uk/staff/urbanc/"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
6 |
<script type="text/javascript" src="striper.js"></script> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
7 |
<link rel="stylesheet" href="nominal.css"> |
300
bd70a062ebb2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
8 |
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
</script> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
10 |
</HEAD> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
11 |
<BODY TEXT="#000000" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
12 |
BGCOLOR="#4169E1" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
13 |
LINK="#0000EF" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
14 |
VLINK="#51188E" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
15 |
ALINK="#FF0000" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
16 |
ONLOAD="striper('ul','striped','li','first,second')"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
17 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
18 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
19 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
20 |
<TABLE WIDTH="100%" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
21 |
BGCOLOR="#4169E1" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
22 |
BORDER="0" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
23 |
FRAME="border" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
24 |
CELLPADDING="10" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
25 |
CELLSPACING="2" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
26 |
RULES="all"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
27 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
28 |
<TR> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
29 |
<TD BGCOLOR="#FFFFFF" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
30 |
WIDTH="75%" |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
31 |
VALIGN="TOP"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
32 |
|
240
219869a9634b
fixed dates
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
33 |
<H2>2013/14 BSc Projects</H2> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
34 |
<H4>Supervisor: Christian Urban</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
35 |
<H4>Email: christian dot urban at kcl dot ac dot uk, Office: Strand Building S1.27</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
36 |
<H4>If you are interested in a project, please send me an email and we can discuss details. Please include |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
37 |
a short description about your programming skills and Computer Science background in your first email. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
38 |
I will also need your King's username in order to book the project for you. Thanks.</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
39 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
40 |
<H4>Note that besides being a lecturer at the theoretical end of Computer Science, I am also a passionate |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
41 |
<A HREF="http://en.wikipedia.org/wiki/Hacker_(programmer_subculture)">hacker</A> … |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
42 |
defined as “a person who enjoys exploring the details of programmable systems and |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
43 |
stretching their capabilities, as opposed to most users, who prefer to learn only the minimum |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
44 |
necessary.” I am always happy to supervise like-minded students.</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
45 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
46 |
<ul class="striped"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
47 |
<li> <H4>[CU1] Regular Expression Matching and Partial Derivatives</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
48 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
49 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
50 |
<B>Description:</b> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
51 |
<A HREF="http://en.wikipedia.org/wiki/Regular_expression">Regular expressions</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
52 |
are extremely useful for many text-processing tasks such as finding patterns in texts, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
53 |
lexing programs, syntax highlighting and so on. Given that regular expressions were |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
54 |
introduced in 1950 by <A HREF="http://en.wikipedia.org/wiki/Stephen_Cole_Kleene">Stephen Kleene</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
55 |
you might think regular expressions have since been studied and implemented to death. But you would definitely be |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
56 |
mistaken: in fact they are still an active research area. For example |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
57 |
<A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/ppdp12-part-deriv-sub-match.pdf">this paper</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
58 |
about regular expression matching and partial derivatives was presented last summer at the international |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
59 |
PPDP'12 conference. They even work on a followup paper that has not yet been presented at any |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
60 |
conference. The task in this project is to implement their results.</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
61 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
62 |
<p>The background for this project is that some regular expressions are |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
63 |
“<A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">evil</A>” |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
64 |
and can “stab you in the back” according to |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
65 |
this <A HREF="http://tech.blog.cueup.com/regular-expressions-will-stab-you-in-the-back">blog post</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
66 |
For example, if you use in <A HREF="http://www.python.org">Python</A> or |
242
ea17aab7cea6
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
241
diff
changeset
|
67 |
in <A HREF="http://www.ruby-lang.org/en/">Ruby</A> (probably also other mainstream programming languages) the |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
68 |
innocently looking regular expression <code>a?{28}a{28}</code> and match it, say, against the string |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
69 |
<code>aaaaaaaaaaaaaaaaaaaaaaaaaaaa</code> (that is 28 <code>a</code>s), you will soon notice that your CPU usage goes to 100%. In fact, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
70 |
Python and Ruby need approximately 30 seconds of hard work for matching this string. You can try it for yourself: |
232
9d8d6d900660
links
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
231
diff
changeset
|
71 |
<A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/cgi-bin/repos.cgi/afl-material/raw-file/tip/progs/re.py">re.py</A> (Python version) and |
243
d24749d0282d
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
242
diff
changeset
|
72 |
<A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/cgi-bin/repos.cgi/afl-material/raw-file/tip/progs/re.rb">re.rb</A> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
73 |
(Ruby version). You can imagine an attacker |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
74 |
mounting a nice <A HREF="http://en.wikipedia.org/wiki/Denial-of-service_attack">DoS attack</A> against |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
75 |
your program if it contains such an “evil” regular expression. Actually |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
76 |
<A HREF="http://www.scala-lang.org/">Scala</A> (and also Java) are almost immune from such |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
77 |
attacks as they can deal with strings of up to 4,300 <code>a</code>s in less than a second. But if you scale |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
78 |
the regular expression and string further to, say, 4,600 <code>a</code>s, then you get a <code>StackOverflowError</code> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
79 |
potentially crashing your program. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
80 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
81 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
82 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
83 |
On a rainy afternoon, I implemented |
233
a62a47b84053
links
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
232
diff
changeset
|
84 |
<A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/cgi-bin/repos.cgi/afl-material/raw-file/tip/progs/re3.scala">this</A> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
85 |
regular expression matcher in Scala. It is not as fast as the official one in Scala, but |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
86 |
it can match up to 11,000 <code>a</code>s in less than 5 seconds without raising any exception |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
87 |
(remember Python and Ruby both need nearly 30 seconds to process 28(!) <code>a</code>s, and Scala's |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
88 |
official matcher maxes out at 4,600 <code>a</code>s). My matcher is approximately |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
89 |
85 lines of code and based on the concept of |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
90 |
<A HREF="http://lambda-the-ultimate.org/node/2293">derivatives of regular expressions</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
91 |
These derivatives were introduced in 1964 by <A HREF="http://en.wikipedia.org/wiki/Janusz_Brzozowski_(computer_scientist)"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
92 |
Janusz Brzozowski</A>, but according to this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
93 |
<A HREF="http://www.cl.cam.ac.uk/~so294/documents/jfp09.pdf">paper</A> had been lost in the “sands of time”. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
94 |
The advantage of derivatives is that they side-step completely the usual |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
95 |
<A HREF="http://hackingoff.com/compilers/regular-expression-to-nfa-dfa">translations</A> of regular expressions |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
96 |
into NFAs or DFAs, which can introduce the exponential behaviour exhibited by the regular |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
97 |
expression matchers in Python and Ruby. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
98 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
99 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
100 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
101 |
Now the authors from the |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
102 |
<A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/ppdp12-part-deriv-sub-match.pdf">PPDP'12-paper</A> mentioned |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
103 |
above claim they are even faster than me and can deal with even more features of regular expressions |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
104 |
(for example subexpression matching, which my rainy-afternoon matcher cannot). I am sure they thought |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
105 |
about the problem much longer than a single afternoon. The task |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
106 |
in this project is to find out how good they actually are by implementing the results from their paper. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
107 |
Their approach is based on the concept of partial derivatives introduced in 1994 by |
231
d5fdb5c6248b
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
230
diff
changeset
|
108 |
<A HREF="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.56.2509&rep=rep1&type=pdf">Valentin Antimirov</A>. |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
109 |
I used them once myself in a <A HREF="http://www.inf.kcl.ac.uk/staff/urbanc/Publications/rexp.pdf">paper</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
110 |
in order to prove the <A HREF="http://en.wikipedia.org/wiki/Myhill–Nerode_theorem">Myhill-Nerode theorem</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
111 |
So I know they are worth their money. Still, it would be interesting to actually compare their results |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
112 |
with my simple rainy-afternoon matcher and potentially “blow away” the regular expression matchers |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
113 |
in Python and Ruby (and possibly in Scala too). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
114 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
115 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
116 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
117 |
<B>Literature:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
118 |
The place to start with this project is obviously this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
119 |
<A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/ppdp12-part-deriv-sub-match.pdf">paper</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
120 |
Traditional methods for regular expression matching are explained |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
121 |
in the Wikipedia articles |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
122 |
<A HREF="http://en.wikipedia.org/wiki/DFA_minimization">here</A> and |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
123 |
<A HREF="http://en.wikipedia.org/wiki/Powerset_construction">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
124 |
The authoritative <A HREF="http://infolab.stanford.edu/~ullman/ialc.html">book</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
125 |
on automata and regular expressions is by John Hopcroft and Jeffrey Ullmann (available in the library). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
126 |
There is also an online course about this topic by Ullman at |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
127 |
<A HREF="https://www.coursera.org/course/automata">Coursera</A>, though IMHO not |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
128 |
done with love. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
129 |
Finally, there are millions of other pointers about regular expression |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
130 |
matching on the Web. I found the chapter on Lexing in this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
131 |
<A HREF="http://www.diku.dk/~torbenm/Basics/">online book</A> very helpful. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
132 |
Test cases for “<A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">evil</A>” |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
133 |
regular expressions can be obtained from <A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
134 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
135 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
136 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
137 |
<B>Skills:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
138 |
This is a project for a student with an interest in theory and some |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
139 |
reasonable programming skills. The project can be easily implemented |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
140 |
in functional languages like |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
141 |
<A HREF="http://www.scala-lang.org/">Scala</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
142 |
F#, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
143 |
<A HREF="http://en.wikipedia.org/wiki/Standard_ML">ML</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
144 |
<A HREF="http://haskell.org/haskellwiki/Haskell">Haskell</A>, etc. Python and other non-functional languages |
244
ead1dd6818f3
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
243
diff
changeset
|
145 |
can be also used, but seem much less convenient. |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
146 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
147 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
148 |
<li> <H4>[CU2] Machine Code Generation for a Simple Compiler</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
149 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
150 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
151 |
<b>Description:</b> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
152 |
Compilers translate high-level programs that humans can read and write into |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
153 |
efficient machine code that can be run on a CPU or virtual machine. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
154 |
A compiler for a simple functional language generating X86 code is described |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
155 |
<A HREF="https://github.com/chameco/Shade">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
156 |
I recently implemented a very simple compiler for an even simpler functional |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
157 |
programming language following this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
158 |
<A HREF="http://www.cs.princeton.edu/~dpw/papers/tal-toplas.pdf">paper</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
159 |
(also described <A HREF="http://www.cs.princeton.edu/~dpw/papers/tal-tr.pdf">here</A>). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
160 |
My code, written in <A HREF="http://www.scala-lang.org/">Scala</A>, of this compiler is |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
161 |
<A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/compiler.scala">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
162 |
The compiler can deal with simple programs involving natural numbers, such |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
163 |
as Fibonacci numbers or factorial (but it can be easily extended - that is not the point). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
164 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
165 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
166 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
167 |
While the hard work has been done (understanding the two papers above), |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
168 |
my compiler only produces some idealised machine code. For example I |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
169 |
assume there are infinitely many registers. The goal of this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
170 |
project is to generate machine code that is more realistic and can |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
171 |
run on a CPU, like X86, or run on a virtual machine, say the JVM. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
172 |
This gives probably a speedup of thousand times in comparison to |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
173 |
my naive machine code and virtual machine. The project |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
174 |
requires to dig into the literature about real CPUs and generating |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
175 |
real machine code. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
176 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
177 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
178 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
179 |
<B>Literature:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
180 |
There is a lot of literature about compilers |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
181 |
(for example <A HREF="http://www.cs.princeton.edu/~appel/papers/cwc.html">this book</A> - |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
182 |
I can lend you my copy for the duration of the project, or this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
183 |
<A HREF="http://www.diku.dk/~torbenm/Basics/">online book</A>). A very good overview article |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
184 |
about implementing compilers by |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
185 |
<A HREF="http://tratt.net/laurie/">Laurie Tratt</A> is |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
186 |
<A HREF="http://tratt.net/laurie/tech_articles/articles/how_difficult_is_it_to_write_a_compiler">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
187 |
An online book about the Art of Assembly Language is |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
188 |
<A HREF="http://flint.cs.yale.edu/cs422/doc/art-of-asm/pdf/">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
189 |
An introduction into x86 machine code is <A HREF="http://ianseyler.github.com/easy_x86-64/">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
190 |
Intel's official manual for the x86 instruction is |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
191 |
<A HREF="http://download.intel.com/design/intarch/manuals/24319101.pdf">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
192 |
A simple assembler for the JVM is described <A HREF="http://jasmin.sourceforge.net">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
193 |
An interesting twist of this project is to not generate code for a CPU, but |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
194 |
for the intermediate language of the <A HREF="http://llvm.org">LLVM</A> compiler |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
195 |
(also described <A HREF="https://wiki.aalto.fi/display/t1065450/LLVM+IR">here</A> and |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
196 |
<A HREF="http://llvm.org/docs/LangRef.html">here</A>). If you want to see |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
197 |
what machine code looks like you can compile your C-program using gcc -S. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
198 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
199 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
200 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
201 |
<B>Skills:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
202 |
This is a project for a student with a deep interest in programming languages and |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
203 |
compilers. Since my compiler is implemented in <A HREF="http://www.scala-lang.org/">Scala</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
204 |
it would make sense to continue this project in this language. I can be |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
205 |
of help with questions and books about <A HREF="http://www.scala-lang.org/">Scala</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
206 |
But if Scala is a problem, my code can also be translated quickly into any other functional |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
207 |
language. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
208 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
209 |
|
226
62915453a051
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
225
diff
changeset
|
210 |
<p> |
227
47e9eb932882
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
226
diff
changeset
|
211 |
<B>PS:</B> Compiler projects, like [CU2] and [CU3], consistently get high marks. |
245
0470db058fdb
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
244
diff
changeset
|
212 |
I suprvised four so far and none of them got below 70% - one even was awarded a prize. |
226
62915453a051
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
225
diff
changeset
|
213 |
</p> |
62915453a051
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
225
diff
changeset
|
214 |
|
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
215 |
<li> <H4>[CU3] Language Translator into JavaScript</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
216 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
217 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
218 |
<b>Description:</b> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
219 |
<A HREF="http://www.w3schools.com/js/">JavaScript</A> is a language that is supported by most |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
220 |
browsers and therefore is a favourite |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
221 |
vehicle for Web-programming. Some call it <B>the</B> scripting language of the Web. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
222 |
Unfortunately, JavaScript is probably one of the worst |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
223 |
languages to program in (being designed and released in a hurry). <B>But</B> it can be used as a convenient target |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
224 |
for translating programs from other languages. In particular there are two |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
225 |
very optimised subsets of JavaScript that can be used for this purpose: |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
226 |
one is <A HREF="http://asmjs.org">asm.js</A> and the other is |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
227 |
<A HREF="https://github.com/kripken/emscripten/wiki">emscripten</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
228 |
There is a <A HREF="https://github.com/kripken/emscripten/wiki/Tutorial">tutorial</A> for emscripten |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
229 |
and an impressive <A HREF="http://www.unrealengine.com/html5/">demo</A> which runs the |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
230 |
<A HREF="http://en.wikipedia.org/wiki/Unreal_Engine">Unreal Engine 3</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
231 |
in a browser with spectacular speed. This was achieved by compiling the |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
232 |
C-code of the Unreal Engine to the LLVM intermediate language and then translating the LLVM |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
233 |
code to JavaScript. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
234 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
235 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
236 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
237 |
<B>Skills:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
238 |
This project is about exploring these two subsets of JavaScript and implement a translator |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
239 |
of a small language into them. This is similar to the project [CU2] above and requires |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
240 |
similar skills. In addition it would be good to have already some familiarity with JavaScript. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
241 |
There are plenty of <A HREF="http://www.w3schools.com/js/">tutorials</A> on the Web. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
242 |
<A HREF="http://jsbooks.revolunet.com">Here</A> is a list of free books on JavaScript. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
243 |
This is a project for a student who wants to get more familiar with JavaScript and Web-programming. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
244 |
A project from which you can draw inspiration is this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
245 |
<A HREF="http://jlongster.com/2012/01/04/outlet-my-lisp-to-javascript-experiment.html">List-to-JavaScript</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
246 |
translator. <A HREF="https://bitbucket.org/ktg/parenjs/overview">Here</A> is another such project. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
247 |
And <A HREF="https://github.com/viclib/liscript">another</A> in less than 100 lines of code. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
248 |
<A HREF="http://en.wikipedia.org/wiki/CoffeeScript">Coffeescript</A> is a similar project |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
249 |
except that it is already quite <A HREF="http://coffeescript.org">mature</A>. And finally not to |
229
dc882c0422e7
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
227
diff
changeset
|
250 |
forget <A HREF="http://www.typescriptlang.org">TypeScript</A> developed by Microsoft. The main |
278
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
251 |
difference between these projects and this one is that they translate into relatively high-level |
229
dc882c0422e7
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
227
diff
changeset
|
252 |
JavaScript code; none of them use the much lower levels <A HREF="http://asmjs.org">asm.js</A> and |
dc882c0422e7
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
227
diff
changeset
|
253 |
<A HREF="https://github.com/kripken/emscripten/wiki">emscripten</A>. |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
254 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
255 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
256 |
<li> <H4>[CU4] Slide-Making in the Web-Age</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
257 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
258 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
259 |
The standard technology for writing scientific papers in Computer Science is to use |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
260 |
<A HREF="http://en.wikipedia.org/wiki/LaTeX">LaTeX</A>, a document preparation |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
261 |
system originally implemented by <A HREF="http://en.wikipedia.org/wiki/Donald_Knuth">Donald Knuth</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
262 |
and <A HREF="http://en.wikipedia.org/wiki/Leslie_Lamport">Leslie Lamport</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
263 |
LaTeX produces very pleasantly looking documents, can deal nicely with mathematical |
258
cb7f2f627278
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
257
diff
changeset
|
264 |
formulas and is very flexible. If you are interested, <A HREF="http://openwetware.org/wiki/Word_vs._LaTeX">here</A> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
265 |
is a side-by-side comparison between Word and LaTeX (which LaTeX “wins” with 18 out of 21 points). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
266 |
Computer scientists not only use LaTeX for documents, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
267 |
but also for slides (really, nobody who wants to be cool uses Keynote or Powerpoint). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
268 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
269 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
270 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
271 |
Although used widely, LaTeX seems nowadays a bit dated for producing |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
272 |
slides. Unlike documents, which are typically “static” and published in a book or journal, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
273 |
slides often contain changing contents that might first only be partially visible and |
246
eafee76fa5e2
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
245
diff
changeset
|
274 |
only later be revealed as the “story” of a talk or lecture demands. |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
275 |
Also slides often contain animated algorithms where each state in the |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
276 |
calculation is best explained by highlighting the changing data. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
277 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
278 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
279 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
280 |
It seems HTML and JavaScript are much better suited for generating |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
281 |
such animated slides. This <A HREF="http://www.impressivewebs.com/html-slidedeck-toolkits/">page</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
282 |
links to 22 slide-generating programs using this combination of technologies. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
283 |
<A HREF="http://www.impressivewebs.com/html-slidedeck-toolkits/">Here</A> are even more such |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
284 |
projects. However, the problem with all of these project is that they depend heavily on the users being |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
285 |
able to write JavaScript, CCS or HTML...not something one would like to depend on given that |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
286 |
“normal” users likely only have a LaTeX background. The aim of this project is to invent a |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
287 |
very simple language that is inspired by LaTeX and then generate from code written in this language |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
288 |
slides that can be displayed in a web-browser. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
289 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
290 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
291 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
292 |
This sounds complicated, but there is already some help available: |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
293 |
<A HREF="http://www.mathjax.org">Mathjax</A> is a JavaScript library that can |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
294 |
be used to display mathematical text, for example |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
295 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
296 |
<blockquote> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
297 |
<p>When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
298 |
\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\).</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
299 |
</blockquote> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
300 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
301 |
by writing code in the familiar LaTeX-way. This can be reused. There are also plenty of JavaScript |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
302 |
libraries for graphical animations (for example |
253
f4b73afc6007
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
249
diff
changeset
|
303 |
<A HREF="http://raphaeljs.com">Raphael</A>, |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
304 |
<A HREF="http://svgjs.com">SVG.JS</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
305 |
<A HREF="http://bonsaijs.org">Bonsaijs</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
306 |
<A HREF="http://jsxgraph.uni-bayreuth.de/wp/">JSXGraph</A>). The inspiration for how the user should be able to write |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
307 |
slides could come from the LaTeX packages <A HREF="http://en.wikipedia.org/wiki/Beamer_(LaTeX)">Beamer</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
308 |
and <A HREF="http://en.wikipedia.org/wiki/PGF/TikZ">PGF/TikZ</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
309 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
310 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
311 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
312 |
<B>Skills:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
313 |
This is a project requires good knowledge of JavaScript. You need to be able to |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
314 |
parse a language and translate it to a suitable part of JavaScript using |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
315 |
appropriate libraries. Tutorials for JavaScript are <A HREF="http://www.w3schools.com/js/">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
316 |
A parser generator for JavaScript is <A HREF="http://pegjs.majda.cz">here</A>. There are probably also |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
317 |
others. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
318 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
319 |
|
221
052261ebdd27
typo
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
220
diff
changeset
|
320 |
<li> <H4>[CU5] An Online Student Voting System</H4> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
321 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
322 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
323 |
<B>Description:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
324 |
One of the more annoying aspects of giving a lecture is to ask a question |
278
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
325 |
to the students and no matter how easy the question is to not |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
326 |
receive any answer. Recently, the online course system |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
327 |
<A HREF="http://www.udacity.com">Udacity</A> made an art out of |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
328 |
asking questions during lectures (see for example the |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
329 |
<A HREF="http://www.udacity.com/overview/Course/cs253/CourseRev/apr2012">Web Application Engineering</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
330 |
course CS253). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
331 |
The lecturer there gives multiple-choice questions as part of the lecture and the students need to |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
332 |
click on the appropriate answer. This works very well in the online world. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
333 |
For “real-world” lectures, the department has some |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
334 |
<A HREF="http://en.wikipedia.org/wiki/Audience_response">clickers</A> |
278
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
335 |
(these are little devices which form a part of an audience response systems). However, |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
336 |
they are a logistic nightmare for the lecturer: they need to be distributed |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
337 |
during the lecture and collected at the end. Nowadays, where students |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
338 |
come with their own laptop or smartphone to lectures, this can |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
339 |
be improved. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
340 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
341 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
342 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
343 |
The task of this project is to implement an online student |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
344 |
polling system. The lecturer should be able to prepare |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
345 |
questions beforehand (encoded as some web-form) and be able to |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
346 |
show them during the lecture. The students |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
347 |
can give their answers by clicking on the corresponding webpage. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
348 |
The lecturer can then collect the responses online and evaluate them |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
349 |
immediately. Such a system is sometimes called |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
350 |
<A HREF="http://en.wikipedia.org/wiki/Audience_response#Smartphone_.2F_HTTP_voting">HTML voting</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
351 |
There are a number of commercial |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
352 |
solutions for this problem, but they are not easy to use (in addition |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
353 |
to being ridiculously expensive). A good student can easily improve upon |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
354 |
what they provide. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
355 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
356 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
357 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
358 |
The problem of student polling is not as hard as |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
359 |
<A HREF="http://en.wikipedia.org/wiki/Electronic_voting">electronic voting</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
360 |
which essentially is still an unsolved problem in Computer Science. The |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
361 |
students only need to be prevented from answering question more than once thus skewing |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
362 |
any statistics. Unlike electronic voting, no audit trail needs to be kept |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
363 |
for student polling. Restricting the number of answers can probably be solved |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
364 |
by setting appropriate cookies on the students |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
365 |
computers or smart phones. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
366 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
367 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
368 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
369 |
<B>Literature:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
370 |
The project requires fluency in a web-programming language (for example |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
371 |
<A HREF="http://en.wikipedia.org/wiki/JavaScript">Javascript</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
372 |
<A HREF="http://en.wikipedia.org/wiki/Go_(programming_language)">Go</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
373 |
<A HREF="http://www.scala-lang.org/">Scala</A>). However JavaScript with |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
374 |
the <A HREF="http://nodejs.org">Node.js</A> extension seems to be best suited for the job. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
375 |
<A HREF="http://www.nodebeginner.org">Here</A> is a tutorial on Node.js for beginners. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
376 |
For web-programming the |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
377 |
<A HREF="http://www.udacity.com/overview/Course/cs253/CourseRev/apr2012">Web Application Engineering</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
378 |
course at <A HREF="http://www.udacity.com">Udacity</A> is a good starting point |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
379 |
to be aware of the issues involved. This course uses <A HREF="http://www.python.org">Python</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
380 |
To evaluate the answers from the students, Google's |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
381 |
<A HREF="https://developers.google.com/chart/image/docs/making_charts">Chart Tools</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
382 |
might be useful, which are also described in this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
383 |
<A HREF="http://www.youtube.com/watch?v=NZtgT4jgnE8">youtube</A> video. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
384 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
385 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
386 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
387 |
<B>Skills:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
388 |
In order to provide convenience for the lecturer, this project needs very good web-programming skills. A |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
389 |
<A HREF="http://en.wikipedia.org/wiki/Hacker_(programmer_subculture)">hacker mentality</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
390 |
(see above) is probably very beneficial: web-programming is an area that only emerged recently and |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
391 |
many tools still lack maturity. You probably have to experiment a lot with several different |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
392 |
languages and tools. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
393 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
394 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
395 |
<li> <H4>[CU6] An Infrastructure for Displaying and Animating Code in a Web-Browser</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
396 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
397 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
398 |
<B>Description:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
399 |
The project aim is to implement an infrastructure for displaying and |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
400 |
animating code in a web-browser. The infrastructure should be agnostic |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
401 |
with respect to the programming language, but should be configurable. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
402 |
I envisage something smaller than the projects |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
403 |
<A HREF="http://www.pythontutor.com">here</A> (for Python), |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
404 |
<A HREF="http://ideone.com">here</A> (for Java), |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
405 |
<A HREF="http://codepad.org">here</A> (for multiple languages), |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
406 |
<A HREF="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro">here</A> (for HTML) |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
407 |
<A HREF="http://repl.it/languages/JavaScript">here</A> (for JavaScript), |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
408 |
and <A HREF="http://www.scala-tour.com/#/welcome">here</A> (for Scala). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
409 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
410 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
411 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
412 |
The tasks in this project are being able (1) to lex and parse languages and (2) to write an interpreter. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
413 |
The goal is to implement this as much as possible in a language-agnostic fashion. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
414 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
415 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
416 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
417 |
<B>Skills:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
418 |
Good skill in lexing and language parsing, as well as being fluent with web programming (for |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
419 |
example JavaScript). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
420 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
421 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
422 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
423 |
<li> <H4>[CU7] Implementation of a Distributed Clock-Synchronisation Algorithm developed at NASA</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
424 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
425 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
426 |
<B>Description:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
427 |
There are many algorithms for synchronising clocks. This |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
428 |
<A HREF="http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20120000054_2011025573.pdf">paper</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
429 |
describes a new algorithm for clocks that communicate by exchanging |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
430 |
messages and thereby reach a state in which (within some bound) all clocks are synchronised. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
431 |
A slightly longer and more detailed paper about the algorithm is |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
432 |
<A HREF="http://hdl.handle.net/2060/20110020812">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
433 |
The point of this project is to implement this algorithm and simulate networks of clocks. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
434 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
435 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
436 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
437 |
<B>Literature:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
438 |
There is a wide range of literature on clock synchronisation algorithms. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
439 |
Some pointers are given in this |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
440 |
<A HREF="http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20120000054_2011025573.pdf">paper</A>, |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
441 |
which describes the algorithm to be implemented in this project. Pointers |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
442 |
are given also <A HREF="http://en.wikipedia.org/wiki/Clock_synchronization">here</A>. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
443 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
444 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
445 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
446 |
<B>Skills:</B> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
447 |
In order to implement a simulation of a network of clocks, you need to tackle |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
448 |
concurrency. You can do this for example in the programming language |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
449 |
<A HREF="http://www.scala-lang.org/">Scala</A> with the help of the |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
450 |
<A HREF="http://akka.io">Akka</a> library. This library enables you to send messages |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
451 |
between different <I>actors</I>. <A HREF="http://www.scala-lang.org/node/242">Here</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
452 |
are some examples that explain how to implement exchanging messages between actors. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
453 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
454 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
455 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
456 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
457 |
|
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
458 |
<li> <H4>[CU8] Raspberry Pi's and Arduinos</H4> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
459 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
460 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
461 |
<B>Description:</B> |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
462 |
This project is for true hackers! <A HREF="http://en.wikipedia.org/wiki/Raspberry_Pi">Raspberry Pi's</A> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
463 |
are small Linux computers the size of a credit-card and only cost £34 (see picture left below). They were introduced |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
464 |
in 2012 and people went crazy...well some of them. There is a |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
465 |
<A HREF="https://plus.google.com/communities/113390432655174294208?hl=en">Google+</A> community about Raspberry Pi's that has more |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
466 |
than 58k of followers. It is hard to keep up with what people do with these small computers. The possibilities |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
467 |
seem to be limitless. The main resource for Raspberry Pi's is <A HREF="http://www.raspberrypi.org">here</A>. |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
468 |
There are <A HREF="http://www.themagpi.com">magazines</A> dedicated to them and tons of |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
469 |
<A HREF="http://www.raspberrypi.org/phpBB3/viewforum.php?f=39">books</A> (not to mention |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
470 |
floods of <A HREF="https://www.google.co.uk/search?q=raspberry+pi">online</A> material). |
222
ac4a4c165eab
added google link
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
221
diff
changeset
|
471 |
Google just released a |
ac4a4c165eab
added google link
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
221
diff
changeset
|
472 |
<A HREF="http://googlecreativelab.github.io/coder/">framework</A> |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
473 |
for web-programming and for turning Raspberry Pi's into webservers. |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
474 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
475 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
476 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
477 |
<A HREF="http://en.wikipedia.org/wiki/Arduino">Arduinos</A> are slightly older (from 2005) but still very cool (see picture right below). They |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
478 |
are small single-board micro-controllers that can talk to various external gadgets (sensors, motors, etc). Since Arduinos |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
479 |
are open-software and open-hardware there are many clones and add-on boards. Like for the Raspberry Pi, there |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
480 |
is a lot of material <A HREF="https://www.google.co.uk/search?q=arduino">available</A> about Arduinos. |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
481 |
The main reference is <A HREF="http://www.arduino.cc">here</A>. Like the Raspberry Pi's, the good thing about |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
482 |
Arduinos is that they can be powered with simple AA-batteries. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
483 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
484 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
485 |
<p> |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
486 |
I have two such Raspberry Pi's including wifi-connectors and two <A HREF="http://www.raspberrypi.org/camera">cameras<A>. |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
487 |
I also have two <A HREF="http://www.freaklabs.org/index.php/Blog/Store/Introducing-the-Freakduino-Chibi-An-Arduino-based-Board-For-Wireless-Sensor-Networking.html">Freakduino Boards</A> that are Arduinos extended with wireless communication. I can lend them to responsible |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
488 |
students for one or two projects. However, the aim is to first come up with an idea for a project. Popular projects are |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
489 |
automated temperature sensors, network servers, robots, web-cams (<A HREF="http://www.secretbatcave.co.uk/electronics/shard-rain-cam/">here</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
490 |
is a <A HREF="http://www.raspberrypi.org/archives/3547">web-cam</A> directed at the Shard that can |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
491 |
<A HREF="http://www.secretbatcave.co.uk/software/shard-rain-cam-quantifying-cloudy/">tell</A> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
492 |
you whether it is raining or cloudy). There are plenty more ideas listed |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
493 |
<A HREF="http://www.raspberrypi.org/phpBB3/viewforum.php?f=15">here</A> for Raspberry Pi's and |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
494 |
<A HREF="http://playground.arduino.cc/projects/ideas">here</A> for Arduinos. |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
495 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
496 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
497 |
<p> |
257
61c865156f57
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
253
diff
changeset
|
498 |
There are essentially two kinds of projects: One is purely software-based. Software projects for Raspberry Pi's are often |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
499 |
written in <A HREF="http://www.python.org">Python</A>, but since these are Linux-capable computers any other |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
500 |
language would do as well. You can also write your own operating system as done |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
501 |
<A HREF="http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/">here</A>. For example the students |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
502 |
<A HREF="http://www.recantha.co.uk/blog/?p=4918">here</A> developed their own bare-metal OS and then implemented |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
503 |
a chess-program on top of it (have a look at their very impressive |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
504 |
<A HREF="http://www.youtube.com/watch?v=-03bouPsfEQ&feature=player_embedded">youtube</A> video). |
248
0af097bf26ed
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
247
diff
changeset
|
505 |
The other kind of project is a combination of hardware and software; usually attaching some sensors |
249
0a1f30036726
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
248
diff
changeset
|
506 |
or motors to the Raspberry Pi or Arduino. This might require some soldering or what is called |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
507 |
a <A HREF="http://en.wikipedia.org/wiki/Breadboard">bread-board</A>. But be careful before choosing a project |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
508 |
involving new hardware: these devices |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
509 |
can be destroyed (if “Vin connected to GND” or “drawing more than 30mA from a GPIO” |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
510 |
does not make sense to you, you should probably stay away from such a project). |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
511 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
512 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
513 |
<p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
514 |
<center> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
515 |
<img style="-webkit-user-select: none; cursor: -webkit-zoom-in; |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
516 |
"src="http://upload.wikimedia.org/wikipedia/commons/3/3d/RaspberryPi.jpg" width="313" height="209"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
517 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
518 |
<img style="-webkit-user-select: none; cursor: -webkit-zoom-in; |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
519 |
"src="http://upload.wikimedia.org/wikipedia/commons/3/38/Arduino_Uno_-_R3.jpg" width="240" height="209"> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
520 |
</center> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
521 |
</p> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
522 |
|
223
30238a3e34a3
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
222
diff
changeset
|
523 |
<p> |
30238a3e34a3
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
222
diff
changeset
|
524 |
<B>Skills:</B> |
225
660fcb9420e6
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
224
diff
changeset
|
525 |
Well, you must be a hacker; happy to make things. |
223
30238a3e34a3
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
222
diff
changeset
|
526 |
</p> |
30238a3e34a3
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
222
diff
changeset
|
527 |
|
236
625ab75e4060
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
234
diff
changeset
|
528 |
<li> <H4>[CU9] Online Collaboration System</H4> |
625ab75e4060
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
234
diff
changeset
|
529 |
|
625ab75e4060
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
234
diff
changeset
|
530 |
|
625ab75e4060
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
234
diff
changeset
|
531 |
<li> <H4>[CU10] Proving Programs to be Correct</H4> |
230
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
532 |
|
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
533 |
<p> |
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
534 |
I am one of the main developers of the interactive theorem prover |
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
535 |
<A HREF="http://isabelle.in.tum.de">Isabelle</A>. This theorem prover |
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
536 |
has been used to establish the correctness of some quite large |
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
537 |
programs (for example an <A HREF="http://ertos.nicta.com.au/research/l4.verified/">operating system</A>). |
278
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
538 |
Together with colleagues from Nanjing, I used this theorem prover to establish the correctness of a |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
539 |
scheduling algorithm, called |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
540 |
<A HREF="http://en.wikipedia.org/wiki/Priority_inheritance">Priority Inheritance</A>, |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
541 |
for real time operating systems. This scheduling algorithm is part of the operating |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
542 |
system that drives, for example, the |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
543 |
<A HREF="http://en.wikipedia.org/wiki/Mars_Exploration_Rover">Mars rovers</A>. |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
544 |
Actually, the very first Mars rover mission in 1997 did not have this |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
545 |
algorithm switched on and it almost caused a catastrophic mission failure (see |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
546 |
this youtube video <A HREF="http://www.youtube.com/watch?v=lyx7kARrGeM">here</A> |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
547 |
for an explanation what happened). |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
548 |
We were able to prove the correctness of this algorithm, but were also able to |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
549 |
establish the correctness of some optimisations in this |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
550 |
<A HREF="http://www.inf.kcl.ac.uk/staff/urbanc/Publications/pip.pdf">paper</A>. |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
551 |
</p> |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
552 |
|
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
553 |
<p>On a much smaller scale, there are a few small programs and underlying algorithms where it |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
554 |
is not really understood whether they always compute a correct result (for example the |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
555 |
regular expression matcher by Sulzmann and Lu in project [CU1]). The aim of this |
230
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
556 |
project is to completely specify an algorithm in Isabelle and then prove it correct (that is, |
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
557 |
it always computes the correct result). |
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
558 |
</p> |
84297c4b3727
added project
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
229
diff
changeset
|
559 |
|
278
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
560 |
<p> |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
561 |
<B>Skills:</B> |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
562 |
This project is for a very good student with a knack for theory and formal reasoning. |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
563 |
</p> |
7e056bb8c9ab
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
258
diff
changeset
|
564 |
|
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
565 |
<li> <H4>Earlier Projects</H4> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
566 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
567 |
I am also open to project suggestions from you. You might find some inspiration from my earlier projects: |
241
250618d1b355
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
240
diff
changeset
|
568 |
<A HREF="http://www.inf.kcl.ac.uk/staff/urbanc/bsc-projects-12.html">BSc 2012/13</A>, |
250618d1b355
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
240
diff
changeset
|
569 |
<A HREF="http://www.inf.kcl.ac.uk/staff/urbanc/msc-projects-12.html">MSc 2012/13</A> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
570 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
571 |
</ul> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
572 |
</TD> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
573 |
</TR> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
574 |
</TABLE> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
575 |
|
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
576 |
<P> |
300
bd70a062ebb2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
577 |
<!-- hhmts start --> Last modified: Tue Aug 5 17:38:32 BST 2014 <!-- hhmts end --> |
220
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
578 |
<a href="http://validator.w3.org/check/referer">[Validate this page.]</a> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
579 |
</BODY> |
be9cf8af38b2
added projects
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
580 |
</HTML> |