msc-projects-18.html
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 21 May 2024 15:52:33 +0100
changeset 652 1daec107e6ab
parent 607 af26040c6fe2
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     3
<HEAD>
607
af26040c6fe2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 563
diff changeset
     4
<TITLE>MSc Projects</TITLE>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     5
<BASE HREF="https://nms.kcl.ac.uk/christian.urban/">
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     6
<script type="text/javascript" src="striper.js"></script>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     7
<link rel="stylesheet" href="nominal.css">
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     8
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML">
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
     9
</script>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    10
</HEAD>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    11
<BODY TEXT="#000000" 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
      BGCOLOR="#4169E1" 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
      LINK="#0000EF" 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
      VLINK="#51188E" 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
      ALINK="#FF0000"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
      ONLOAD="striper('ul','striped','li','first,second')">
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    20
<TABLE WIDTH="100%" 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
       BGCOLOR="#4169E1" 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
       BORDER="0"   
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
       FRAME="border"  
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
       CELLPADDING="10"     
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
       CELLSPACING="2"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
       RULES="all">
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    28
<TR>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
<TD BGCOLOR="#FFFFFF" 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
    WIDTH="75%" 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
    VALIGN="TOP">
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
607
af26040c6fe2 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 563
diff changeset
    33
<H2>MSc Projects</H2>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
<H4>Supervisor: Christian Urban</H4> 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    35
<H4>Email: christian dot urban at kcl dot ac dot uk,  Office: Bush House N7.07</H4>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    36
<H4>If you are interested in a project, please send me an email and we can discuss details. Please include
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
a short description about your programming skills and Computer Science background in your first email. 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    38
Thanks.</H4> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    40
<H4>Note that besides being a lecturer at the theoretical end of Computer Science, I am also a passionate
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    41
    <A HREF="http://en.wikipedia.org/wiki/Hacker_(programmer_subculture)">hacker</A> &hellip;
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
    defined as &ldquo;a person who enjoys exploring the details of programmable systems and 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
    stretching their capabilities, as opposed to most users, who prefer to learn only the minimum 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
    necessary.&rdquo; I am always happy to supervise like-minded students.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    45
</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
<H4>In 2013/14, I was nominated by the students
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
    for the best BSc project supervisor and best MSc project supervisor awards in the NMS
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
    faculty. Somehow I won both. In 2014/15 I was nominated again for the best MSc
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
    project supervisor, but did not win it. ;o)
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
</H4>  
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    53
<ul class="striped">
560
677b703c48fe updated
Christian Urban <urbanc@in.tum.de>
parents: 559
diff changeset
    54
<li> <H4 id="regex">[CU1] Regular Expressions, Lexing and Derivatives</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    56
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
  <B>Description:</b>  
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    58
  <A HREF="http://en.wikipedia.org/wiki/Regular_expression">Regular expressions</A> 
549
f9fdd9010d04 updated
Christian Urban <urbanc@in.tum.de>
parents: 544
diff changeset
    59
  are extremely useful for many text-processing tasks, such as finding patterns in hostile 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    60
  <A HREF="https://www.snort.org">network traffic</A>,
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  lexing programs, syntax highlighting and so on. Given that regular expressions were
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    62
  introduced in 1950 by <A HREF="http://en.wikipedia.org/wiki/Stephen_Cole_Kleene">Stephen Kleene</A>,
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
  you might think regular expressions have since been studied and implemented to death. But you would definitely be
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
  mistaken: in fact they are still an active research area. On the top of my head, I can give
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  you at least ten research papers that appeared in the last few years.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
  For example
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    67
  <A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/regex-parsing-derivatives.pdf">this paper</A> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  about regular expression matching and derivatives was presented in 2014 at the international 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    69
  FLOPS conference. Another <A HREF="https://nms.kcl.ac.uk/christian.urban/Publications/posix.pdf">paper</A> by my PhD student and me was presented in 2016
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
  at the international ITP conference.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    71
  The task in this project is to implement these results and use them for lexing.</p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    73
  <p>The background for this project is that some regular expressions are 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    74
  &ldquo;<A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">evil</A>&rdquo;
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  and can &ldquo;stab you in the back&rdquo; according to
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    76
  this <A HREF="http://peterscott.github.io/2013/01/17/regular-expressions-will-stab-you-in-the-back/">blog post</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    77
  For example, if you use in <A HREF="http://www.python.org">Python</A> or 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    78
  in <A HREF="http://www.ruby-lang.org/en/">Ruby</A> (or also in a number of other mainstream programming languages) the 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    79
  innocently looking regular expression <code>a?{28}a{28}</code> and match it, say, against the string 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    80
  <code>aaaaaaaaaaaaaaaaaaaaaaaaaaaa</code> (that is 28 <code>a</code>s), you will soon notice that your CPU usage goes to 100%. In fact,
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
  Python and Ruby need approximately 30 seconds of hard work for matching this string. You can try it for yourself:
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    82
  <A HREF="http://talisker.inf.kcl.ac.uk/cgi-bin/repos.cgi/afl-material/raw-file/tip/progs/catastrophic.py">catastrophic.py</A> (Python version) and 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    83
  <A HREF="http://talisker.inf.kcl.ac.uk/cgi-bin/repos.cgi/afl-material/raw-file/tip/progs/catastrophic.rb">catastrophic.rb</A> 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    84
  (Ruby version). Here is a similar problem with the regular expression <code>(a*)*b</code> in Java: 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    85
  <A HREF="http://talisker.inf.kcl.ac.uk/cgi-bin/repos.cgi/afl-material/raw-file/tip/progs/catastrophic.java">catastrophic.java</A> 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    86
  </p> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
  <p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
  You can imagine an attacker
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    90
  mounting a nice <A HREF="http://en.wikipedia.org/wiki/Denial-of-service_attack">DoS attack</A> against 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  your program if it contains such an &ldquo;evil&rdquo; regular expression. But it can also happen by accident:
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    92
  on 20 July 2016 the website <A HREF="http://stackstatus.net/post/147710624694/outage-postmortem-july-20-2016">Stack Exchange</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
  was knocked offline because of an evil regular expression. One of their engineers talks about this in this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    94
  <A HREF="https://vimeo.com/112065252">video</A>. A similar problem needed to be fixed in the
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    95
  <A HREF="http://davidvgalbraith.com/how-i-fixed-atom/">Atom</A> editor.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
  A few implementations of regular expression matchers are almost immune from such problems.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    97
  For example, <A HREF="http://www.scala-lang.org/">Scala</A> can deal with strings of up to 4,300 <code>a</code>s in less than a second. But if you scale
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
    98
  the regular expression and string further to, say, 4,600 <code>a</code>s, then you get a <code>StackOverflowError</code> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
  potentially crashing your program. Moreover (beside the "minor" problem of being painfully slow) according to this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   100
  <A HREF="http://www.haskell.org/haskellwiki/Regex_Posix">report</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
  nearly all regular expression matchers using the POSIX rules are actually buggy.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   104
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
  On a rainy afternoon, I implemented 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   106
  <A HREF="http://talisker.inf.kcl.ac.uk/cgi-bin/repos.cgi/afl-material/raw-file/tip/progs/re3.scala">this</A> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
  regular expression matcher in Scala. It is not as fast as the official one in Scala, but
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   108
  it can match up to 11,000 <code>a</code>s in less than 5 seconds  without raising any exception
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   109
  (remember Python and Ruby both need nearly 30 seconds to process 28(!) <code>a</code>s, and Scala's
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   110
  official matcher maxes out at 4,600 <code>a</code>s). My matcher is approximately
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
  85 lines of code and based on the concept of 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   112
  <A HREF="http://lambda-the-ultimate.org/node/2293">derivatives of regular expressions</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   113
  These derivatives were introduced in 1964 by <A HREF="http://en.wikipedia.org/wiki/Janusz_Brzozowski_(computer_scientist)">
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   114
  Janusz Brzozowski</A>, but according to this
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   115
  <A HREF="https://www.cs.kent.ac.uk/people/staff/sao/documents/jfp09.pdf">paper</A> had been lost in the &ldquo;sands of time&rdquo;.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
  The advantage of derivatives is that they side-step completely the usual 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   117
  <A HREF="http://hackingoff.com/compilers/regular-expression-to-nfa-dfa">translations</A> of regular expressions
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  into NFAs or DFAs, which can introduce the exponential behaviour exhibited by the regular
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
  expression matchers in Python, Java and Ruby.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   122
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
  Now the authors from the 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   124
  <A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/regex-parsing-derivatives.pdf">FLOPS'14-paper</A> mentioned 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
  above claim they are even faster than me and can deal with even more features of regular expressions
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
  (for example subexpression matching, which my rainy-afternoon matcher cannot). I am sure they thought
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
  about the problem much longer than a single afternoon. The task 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
  in this project is to find out how good they actually are by implementing the results from their paper. 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
  Their approach to regular expression matching is also based on the concept of derivatives.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
  I used derivatives very successfully once for something completely different in a
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   131
  <A HREF="https://nms.kcl.ac.uk/christian.urban/Publications/rexp.pdf">paper</A> 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   132
  about the <A HREF="http://en.wikipedia.org/wiki/Myhill–Nerode_theorem">Myhill-Nerode theorem</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
  So I know they are worth their money. Still, it would be interesting to actually compare their results
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  with my simple rainy-afternoon matcher and potentially &ldquo;blow away&rdquo; the regular expression matchers 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  in Python, Ruby and Java (and possibly in Scala too). The application would be to implement a fast lexer for
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   136
  programming languages, or improve the network traffic analysers in the tools <A HREF="https://www.snort.org">Snort</A> and
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   137
  <A HREF="https://www.bro.org">Bro</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   138
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   140
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
  <B>Literature:</B> 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
  The place to start with this project is obviously this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   143
  <A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/regex-parsing-derivatives.pdf">paper</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   144
  and this <A HREF="https://nms.kcl.ac.uk/christian.urban/Publications/posix.pdf">one</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
  Traditional methods for regular expression matching are explained
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
  in the Wikipedia articles 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   147
  <A HREF="http://en.wikipedia.org/wiki/DFA_minimization">here</A> and 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   148
  <A HREF="http://en.wikipedia.org/wiki/Powerset_construction">here</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   149
  The authoritative <A HREF="http://infolab.stanford.edu/~ullman/ialc.html">book</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  on automata and regular expressions is by John Hopcroft and Jeffrey Ullmann (available in the library). 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
  There is also an online course about this topic by Ullman at 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   152
  <A HREF="https://www.coursera.org/course/automata">Coursera</A>, though IMHO not 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
  done with love. 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  There are millions of other pointers about regular expression
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  matching on the Web. I found the chapter on Lexing in this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   156
  <A HREF="http://www.diku.dk/~torbenm/Basics/">online book</A> very helpful. Finally, it will
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
  be of great help for this project to take part in my Compiler and Formal Language module (6CCS3CFL).
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   158
  Test cases for &ldquo;<A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">evil</A>&rdquo;
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   159
  regular expressions can be obtained from <A HREF="http://www.haskell.org/haskellwiki/Regex_Posix">here</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   160
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   162
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
  <B>Skills:</B> 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
  This is a project for a student with an interest in theory and with
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
  good programming skills. The project can be easily implemented
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
  in functional languages like
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   167
  <A HREF="http://www.scala-lang.org/">Scala</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   168
  <A HREF="http://fsharp.org">F#</A>, 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   169
  <A HREF="http://en.wikipedia.org/wiki/Standard_ML">ML</A>,  
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   170
  <A HREF="http://haskell.org/haskellwiki/Haskell">Haskell</A>, etc. Python and other non-functional languages
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
  can be also used, but seem much less convenient. If you do attend my Compilers and Formal Languages
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
  module, that would obviously give you a head-start with this project.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   173
  </p>
539
5eaec0f9980f updated
Christian Urban <urbanc@in.tum.de>
parents: 538
diff changeset
   174
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   175
<li> <H4>[CU5] Grammars and Derivative-Based Parsing Algorithms</H4>
539
5eaec0f9980f updated
Christian Urban <urbanc@in.tum.de>
parents: 538
diff changeset
   176
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   177
<p>
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   178
Parsing is an old nut. Generations of software developers need to do parsing of data or text.
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   179
There are zillions of links, tools, papers and textbooks about parsing. One particular
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   180
<A HREF="https://dickgrune.com/Books/PTAPG_1st_Edition/BookBody.pdf">book</A> contains something
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   181
like 700 different algorithm, nicely analysed and described. Surely, parsing must be a solved problem. Or is it? 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   182
Laurie Tratt has a blog <A HREF="https://tratt.net/laurie/blog/entries/parsing_the_solved_problem_that_isnt.html">post</A>
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   183
about <i>Parsing: The Solved Problem That Isn't</i>. IMHO parsing is still a wide open field and not solved at all.
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   184
PEG parsing, error reporting, error correction, runtime to name just a few are aspects that seem to cause headaches
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   185
to developers, and to researchers.</p>   
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   186
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   187
<p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   188
A recent <A HREF="https://www.cl.cam.ac.uk/~jdy22/papers/a-typed-algebraic-approach-to-parsing.pdf">paper</A> 
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   189
(not even published yet) follows an idea for regular expressions: it adapts the notion of 
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   190
derivatives of regular expressions to grammars. The idea is to implement in a functional programming language
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   191
the parsing algorithm proposed in this paper and to try it out with some sample data.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   192
</p>
541
553888c9c13f updated
Christian Urban <urbanc@in.tum.de>
parents: 540
diff changeset
   193
554
7f3b9ab6f71a updated
Christian Urban <urbanc@in.tum.de>
parents: 553
diff changeset
   194
<p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   195
<B>Literature:</B> <A HREF="https://www.cl.cam.ac.uk/~jdy22/papers/a-typed-algebraic-approach-to-parsing.pdf">paper</A>  
554
7f3b9ab6f71a updated
Christian Urban <urbanc@in.tum.de>
parents: 553
diff changeset
   196
</p>
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   197
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   198
<p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   199
<B>Skills:</B> See [CU1].
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   200
</p>
541
553888c9c13f updated
Christian Urban <urbanc@in.tum.de>
parents: 540
diff changeset
   201
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   202
<li> <H4>[CU6] Webassembly Interpreter / Compiler</H4>
558
444b9eea50b5 updated
Christian Urban <urbanc@in.tum.de>
parents: 557
diff changeset
   203
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   204
<p>
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   205
Webassembly is a recently agreed standard for speeding up web applications in browsers. In this 
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   206
project the aim is to implement an interpreter or compiler for webassembly. There are already
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   207
<A HREF="https://github.com/WebAssembly/spec/tree/master/interpreter">reference interpreters</A>,
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   208
but people take different views, for example implement a 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   209
<A HREF="https://groups.google.com/forum/#!topic/comp.lang.forth/CvNrP_AOmmw">Forth</A> language on top of webassembly. 
553
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   210
What is good about webassembly is that is a rather simple format, which can be generated quite
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   211
easily, unlike Java class files, which need some head-standing when you generate them. 
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   212
</p>
72bc90a6df8c updated
Christian Urban <urbanc@in.tum.de>
parents: 552
diff changeset
   213
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   214
<p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   215
A <A HREF="https://github.com/WebAssembly/spec/tree/master/interpreter">reference interpreter</A> for webassembly.  
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   216
</p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   217
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   218
<li> <H4>[CU2] A Compiler for a small Programming Language</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   219
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   220
  <p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   221
  <b>Description:</b> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   222
  Compilers translate high-level programs that humans can read and write into
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   223
  efficient machine code that can be run on a CPU or virtual machine.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   224
  A compiler for a simple functional language generating X86 code is described
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   225
  <A HREF="https://libraries.io/github/chameco/Shade">here</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   226
  I recently implemented a very simple compiler for an even simpler functional
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   227
  programming language following this 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   228
  <A HREF="https://www.cs.princeton.edu/~dpw/papers/tal-toplas.pdf">paper</A> 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   229
  (also described <A HREF="https://www.cs.princeton.edu/~dpw/papers/tal-tr.pdf">here</A>).
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   230
  My code, written in <A HREF="http://www.scala-lang.org/">Scala</A>, of this compiler is 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   231
  <A HREF="https://nms.kcl.ac.uk/christian.urban/compiler.scala">here</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   232
  The compiler can deal with simple programs involving natural numbers, such
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   233
  as Fibonacci numbers or factorial (but it can be easily extended - that is not the point).
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   234
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   235
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   236
  <p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   237
  While the hard work has been done (understanding the two papers above),
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   238
  my compiler only produces some idealised machine code. For example I
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   239
  assume there are infinitely many registers. The goal of this
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   240
  project is to generate machine code that is more realistic and can
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   241
  run on a CPU, like X86, or run on a virtual machine, say the JVM. 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   242
  This gives probably a speedup of thousand times in comparison to
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   243
  my naive machine code and virtual machine. The project
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   244
  requires to dig into the literature about real CPUs and generating 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   245
  real machine code. 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   246
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   247
  <p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   248
  An alternative is to not generate machine code, but build a compiler that compiles to
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   249
  <A HREF="http://www.w3schools.com/js/">JavaScript</A>. This is the language that is supported by most
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   250
  browsers and therefore is a favourite
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   251
  vehicle for Web-programming. Some call it <B>the</B> scripting language of the Web.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   252
  Unfortunately, JavaScript is also probably one of the worst
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   253
  languages to program in (being designed and released in a hurry). <B>But</B> it can be used as a convenient target
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   254
  for translating programs from other languages. In particular there are two
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   255
  very optimised subsets of JavaScript that can be used for this purpose:
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   256
  one is <A HREF="http://asmjs.org">asm.js</A> and the other is
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   257
  <A HREF="https://github.com/kripken/emscripten/wiki">emscripten</A>. Since
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   258
  last year there is even the official <A HREF="http://webassembly.org">Webassembly</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   259
  There is a <A HREF="http://kripken.github.io/emscripten-site/docs/getting_started/Tutorial.html">tutorial</A> for emscripten
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   260
  and an impressive <A HREF="https://youtu.be/c2uNDlP4RiE">demo</A> which runs the
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   261
  <A HREF="http://en.wikipedia.org/wiki/Unreal_Engine">Unreal Engine 3</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   262
  in a browser with spectacular speed. This was achieved by compiling the
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   263
  C-code of the Unreal Engine to the LLVM intermediate language and then translating the LLVM
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   264
  code to JavaScript.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   265
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   266
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   267
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   268
  <B>Literature:</B>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   269
  There is a lot of literature about compilers 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   270
  (for example <A HREF="http://www.cs.princeton.edu/~appel/papers/cwc.html">this book</A> -
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   271
  I can lend you my copy for the duration of the project, or this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   272
  <A HREF="http://www.diku.dk/~torbenm/Basics/">online book</A>). A very good overview article
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   273
  about implementing compilers by 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   274
  <A HREF="http://tratt.net/laurie/">Laurie Tratt</A> is 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   275
  <A HREF="http://tratt.net/laurie/tech_articles/articles/how_difficult_is_it_to_write_a_compiler">here</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   276
  An online book about the Art of Assembly Language is
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   277
  <A HREF="http://flint.cs.yale.edu/cs422/doc/art-of-asm/pdf/">here</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   278
  An introduction into x86 machine code is <A HREF="http://ianseyler.github.com/easy_x86-64/">here</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
  Intel's official manual for the x86 instruction is 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   280
  <A HREF="http://download.intel.com/design/intarch/manuals/24319101.pdf">here</A>. 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   281
  Two assemblers for the JVM are described <A HREF="http://jasmin.sourceforge.net">here</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   282
  and <A HREF="https://github.com/Storyyeller/Krakatau">here</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   283
  An interesting twist of this project is to not generate code for a CPU, but
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   284
  for the intermediate language of the <A HREF="http://llvm.org">LLVM</A> compiler
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   285
  (also described <A HREF="http://llvm.org/docs/LangRef.html">here</A>). If you want to see
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   286
  what machine code looks like you can compile your C-program using gcc -S.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   287
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
  <p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   289
  If JavaScript is chosen as a target instead, then there are plenty of <A HREF="http://www.w3schools.com/js/">tutorials</A> on the Web.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   290
  <A HREF="http://jsbooks.revolunet.com">Here</A> is a list of free books on JavaScript.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
  A project from which you can draw inspiration is this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   292
  <A HREF="http://jlongster.com/Outlet--My-Lisp-to-Javascript-Experiment">Lisp-to-JavaScript</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   293
  translator. <A HREF="https://bitbucket.org/ktg/parenjs/overview">Here</A> is another such project.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   294
  And <A HREF="https://github.com/viclib/liscript">another</A> in less than 100 lines of code.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   295
  <A HREF="http://en.wikipedia.org/wiki/CoffeeScript">Coffeescript</A> is a similar project
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   296
  except that it is already quite <A HREF="http://coffeescript.org">mature</A>. And finally not to
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   297
  forget <A HREF="http://www.typescriptlang.org">TypeScript</A> developed by Microsoft. The main
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   298
  difference between these projects and this one is that they translate into relatively high-level
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   299
  JavaScript code; none of them use the much lower levels <A HREF="http://asmjs.org">asm.js</A> and 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   300
  <A HREF="https://github.com/kripken/emscripten/wiki">emscripten</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   301
  </p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   302
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   303
  <B>Skills:</B> 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   304
  This is a project for a student with a deep interest in programming languages and
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   305
  compilers. Since my compiler is implemented in <A HREF="http://www.scala-lang.org/">Scala</A>,
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   306
  it would make sense to continue this project in this language. I can be
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   307
  of help with questions and books about <A HREF="http://www.scala-lang.org/">Scala</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   308
  But if Scala is a problem, my code can also be translated quickly into any other functional
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
  language. Again,  it will be of great help for this project to take part in
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   310
  my Compiler and Formal Language module (6CCS3CFL).
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   311
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   312
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   313
  <p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   314
  <B>PS:</B> Compiler projects consistently received high marks in the past.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   315
  I have supervised eight so far and most of them received a mark above 70% - one even was awarded a prize.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   316
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   317
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   318
<li> <H4>[CU3] Slide-Making in the Web-Age</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   320
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   321
  The standard technology for writing scientific papers in Computer Science  is to use
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   322
  <A HREF="http://en.wikipedia.org/wiki/LaTeX">LaTeX</A>, a document preparation
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   323
  system originally implemented by <A HREF="http://en.wikipedia.org/wiki/Donald_Knuth">Donald Knuth</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   324
  and <A HREF="http://en.wikipedia.org/wiki/Leslie_Lamport">Leslie Lamport</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
  LaTeX produces very pleasantly looking documents, can deal nicely with mathematical
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   326
  formulas and is very flexible. If you are interested, <A HREF="http://openwetware.org/wiki/Word_vs._LaTeX">here</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   327
  is a side-by-side comparison between Word and LaTeX (which LaTeX &ldquo;wins&rdquo; with 18 out of 21 points).
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
  Computer scientists not only use LaTeX for documents,
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   329
  but also for slides (really, nobody who wants to be cool uses Keynote or Powerpoint).
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   330
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   331
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   332
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
  Although used widely, LaTeX seems nowadays a bit dated for producing
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
  slides. Unlike documents, which are typically &ldquo;static&rdquo; and published in a book or journal,
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   335
  slides often contain changing contents that might first only be partially visible and
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   336
  only later be revealed as the &ldquo;story&rdquo; of a talk or lecture demands.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   337
  Also slides often contain animated algorithms where each state in the
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   338
  calculation is best explained by highlighting the changing data.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   339
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   341
  <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   342
  It seems HTML and JavaScript are much better suited for generating
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   343
  such animated slides. This <A HREF="http://www.impressivewebs.com/html-slidedeck-toolkits/">page</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   344
  links to slide-generating programs using this combination of technologies. 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   345
  However, the problem with all of these project is that they depend heavily on the users being
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   346
  able to write JavaScript, CCS or HTML...not something one would like to depend on given that
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   347
  &ldquo;normal&rdquo; users likely only have a LaTeX background. The aim of this project is to invent a
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   348
  very simple language that is inspired by LaTeX and then generate from code written in this language
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   349
  slides that can be displayed in a web-browser. An example would be the
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   350
  <A HREF="https://www.madoko.net">Madoko</A> project.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   351
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   352
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   353
 <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   354
 This sounds complicated, but there is already some help available:
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   355
 <A HREF="http://www.mathjax.org">Mathjax</A> is a JavaScript library that can
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   356
 be used to display mathematical text, for example</p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   357
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   358
 <blockquote>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   359
 <p>When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   360
 \(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\).</p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   361
 </blockquote>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   362
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   363
 <p> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   364
 by writing code in the familiar LaTeX-way. This can be reused.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   365
 Another such library is <A HREF="http://khan.github.io/KaTeX/">KaTeX</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   366
 There are also plenty of JavaScript
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   367
 libraries for graphical animations (for example
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   368
 <A HREF="http://raphaeljs.com">Raphael</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   369
 <A HREF="http://svgjs.com">SVG.JS</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   370
 <A HREF="http://bonsaijs.org">Bonsaijs</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   371
 <A HREF="http://jsxgraph.uni-bayreuth.de/wp/">JSXGraph</A>). The inspiration for how the user should be able to write
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   372
 slides could come from the LaTeX packages <A HREF="http://en.wikipedia.org/wiki/Beamer_(LaTeX)">Beamer</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   373
 and <A HREF="http://en.wikipedia.org/wiki/PGF/TikZ">PGF/TikZ</A>. A slide-making project from which
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   374
 inspiration can be drawn is <A HREF="http://maciejczyzewski.me/hyhyhy/">hyhyhy</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   375
 </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   376
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   377
  <p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   378
  <B>Skills:</B> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   379
  This is a project that requires good knowledge of JavaScript. You need to be able to
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   380
  parse a language and translate it to a suitable part of JavaScript using
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   381
  appropriate libraries. Tutorials for JavaScript are <A HREF="http://www.w3schools.com/js/">here</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   382
  A parser generator for JavaScript is <A HREF="http://pegjs.majda.cz">here</A>. There are probably also
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   383
  others. If you want to avoid JavaScript there are a number of alternatives: for example the
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   384
  <A HREF="http://elm-lang.org">Elm</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   385
  language has been especially designed for implementing interactive animations, which would be
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   386
  very convenient for this project. A nice slide making project done by a previous student is 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   387
  <A HREF="http://www.markslides.org">MarkSlides</A> by Oleksandr Cherednychenko. 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   388
  </p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   389
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   390
<li> <H4>[CU4] Raspberry Pi's and Arduinos</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   391
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   392
  <p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   393
  <B>Description:</B>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   394
  This project is for true hackers! <A HREF="http://en.wikipedia.org/wiki/Raspberry_Pi">Raspberry Pi's</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   395
  are small Linux computers the size of a credit-card and only cost &pound;26, the
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   396
  simplest version even costs only &pound;5 (see pictures on the left below). They were introduced
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   397
  in 2012 and people went crazy...well some of them. There is a
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   398
  <A HREF="https://plus.google.com/communities/113390432655174294208?hl=en">Google+</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   399
  community about Raspberry Pi's that has more
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   400
  than 300k of followers. A similar number follow the corresponding <A HREF="https://www.facebook.com/raspberrypi/">group</A>
543
882bf2776a6c updated
Christian Urban <urbanc@in.tum.de>
parents: 541
diff changeset
   401
  on Facebook. It is hard to keep up with what people do with these small computers. The possibilities
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   402
  seem to be limitless. The main resource for Raspberry Pi's is <A HREF="http://www.raspberrypi.org">here</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   403
  There are <A HREF="https://www.raspberrypi.org/magpi/">magazines</A> dedicated to them and tons of
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   404
  <A HREF="http://www.raspberrypi.org/phpBB3/viewforum.php?f=39">books</A> (not to mention
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   405
  floods of <A HREF="https://www.google.co.uk/search?q=raspberry+pi">online</A> material,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   406
  such as the <A HREF="https://www.raspberrypi.org/magpi-issues/Projects_Book_v1.pdf">RPi projects book</A>).
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   407
  Google just released a
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   408
  <A HREF="http://googlecreativelab.github.io/coder/">framework</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   409
  for web-programming on Raspberry Pi's turning them into webservers.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   410
  In my home one Raspberry Pi has the very important task of automatically filtering out
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   411
  nearly all advertisments using the 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   412
  <A HREF="https://github.com/pi-hole/pi-hole">Pi-Hole</A> software
544
3ba064c6df50 updated
Christian Urban <urbanc@in.tum.de>
parents: 543
diff changeset
   413
  (you cannot imagine what difference this does to your web experience).
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   414
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   415
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   416
  <p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   417
  <A HREF="http://en.wikipedia.org/wiki/Arduino">Arduinos</A> are slightly older (from 2005) but still very cool (see picture on the right below). They
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   418
  are small single-board micro-controllers that can talk to various external gadgets (sensors, motors, etc). Since Arduinos
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   419
  are open-software and open-hardware there are many clones and add-on boards. Like for the Raspberry Pi, there
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   420
  is a lot of material <A HREF="https://www.google.co.uk/search?q=arduino">available</A> about Arduinos.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   421
  The main reference is <A HREF="http://www.arduino.cc">here</A>. Like the Raspberry Pi's, the good thing about
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   422
  Arduinos is that they can be powered with simple AA-batteries.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   423
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   424
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   425
  <p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   426
  I have several Raspberry Pi's including wifi-connectors and two <A HREF="http://www.raspberrypi.org/camera">cameras</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   427
  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
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   428
  students for one or two projects. However, the aim is to first come up with an idea for a project. Popular projects are
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   429
  automated temperature sensors, network servers, robots, web-cams (<A HREF="http://www.secretbatcave.co.uk/electronics/shard-rain-cam/">here</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   430
  is a <A HREF="http://www.raspberrypi.org/archives/3547">web-cam</A> directed at the Shard that can
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   431
  <A HREF="http://www.secretbatcave.co.uk/software/shard-rain-cam-quantifying-cloudy/">tell</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   432
  you whether it is raining or cloudy). There are plenty more ideas listed
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   433
  <A HREF="http://www.raspberrypi.org/phpBB3/viewforum.php?f=15">here</A> for Raspberry Pi's and
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   434
  <A HREF="http://playground.arduino.cc/projects/ideas">here</A> for Arduinos.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   435
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   436
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   437
  <p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   438
  There are essentially two kinds of projects: One is purely software-based. Software projects for Raspberry Pi's are often
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   439
  written in <A HREF="http://www.python.org">Python</A>, but since these are Linux-capable computers any other
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   440
  language would do as well. You can also write your own operating system as done
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   441
  <A HREF="http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/">here</A>. For example the students
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   442
  <A HREF="http://www.recantha.co.uk/blog/?p=4918">here</A> developed their own bare-metal OS and then implemented
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   443
  a chess-program on top of it (have a look at their very impressive
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   444
  <A HREF="http://www.youtube.com/watch?v=-03bouPsfEQ&amp;feature=player_embedded">youtube</A> video).
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   445
  The other kind of project is a combination of hardware and software; usually attaching some sensors
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   446
  or motors to the Raspberry Pi or Arduino. This might require some soldering or what is called
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   447
  a <A HREF="http://en.wikipedia.org/wiki/Breadboard">bread-board</A>. But be careful before choosing a project
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   448
  involving new hardware: these devices
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   449
  can be destroyed (if &ldquo;Vin connected to GND&rdquo; or &ldquo;drawing more than 30mA from a GPIO&rdquo;
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   450
  does not make sense to you, you should probably stay away from such a project). 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   451
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   452
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   453
  <center>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   454
    <img style="-webkit-user-select: none; cursor: -webkit-zoom-in;"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   455
         src="http://upload.wikimedia.org/wikipedia/commons/3/3d/RaspberryPi.jpg"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   456
         alt="Raspberry Pi"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   457
         width="313" height="209">
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   458
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   459
    <img style="-webkit-user-select: none; cursor: -webkit-zoom-in;"
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   460
         src="https://upload.wikimedia.org/wikipedia/commons/7/7e/Raspberry-Pi-Zero-FL.jpg"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   461
         alt="Raspberry Pi Zero"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   462
         width="313" height="209">  
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   463
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   464
    <img style="-webkit-user-select: none; cursor: -webkit-zoom-in;"
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   465
         src="http://upload.wikimedia.org/wikipedia/commons/3/38/Arduino_Uno_-_R3.jpg"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   466
         alt="Arduino"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   467
         width="240" height="209">
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   468
  </center>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   469
  
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   471
  <p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   472
  <B>Skills:</B> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
  Well, you must be a hacker; happy to make things. Your desk might look like the photo below on the left.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   474
  The photo below on the middle shows an earlier student project which connects wirelessly a wearable Arduino (packaged
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   475
  in a "self-3d-printed" watch) to a Raspberry Pi seen in the background. The Arduino in the foreground takes
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   476
  measurements of 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   477
  heart rate and body temperature; the Raspberry Pi collects this data and makes it accessible via a simple
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   478
  web-service. The picture on the right is another project that implements an airmouse using an Arduino.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   479
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   480
  <center>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   481
    <img style="-webkit-user-select: none; cursor: -webkit-zoom-in;"
522
9c6887fae011 updated
Christian Urban <urbanc@in.tum.de>
parents: 521
diff changeset
   482
         src="https://nms.kcl.ac.uk/christian.urban/rpi-photo.jpg"
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   483
         alt="Raspberry Pi"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   484
         width="209" height="313">
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   485
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   486
    <img style="-webkit-user-select: none; cursor: -webkit-zoom-in;"
522
9c6887fae011 updated
Christian Urban <urbanc@in.tum.de>
parents: 521
diff changeset
   487
         src="https://nms.kcl.ac.uk/christian.urban/rpi-watch.jpg"
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   488
         alt="Raspberry Pi"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   489
         width="450" height="254">
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   490
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   491
    <img style="-webkit-user-select: none; cursor: -webkit-zoom-in;"
522
9c6887fae011 updated
Christian Urban <urbanc@in.tum.de>
parents: 521
diff changeset
   492
         src="https://nms.kcl.ac.uk/christian.urban/rpi-airmouse.jpg"
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   493
         alt="Raspberry Pi"
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   494
         width="250" height="254">  
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   495
  </center><p>
537
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   496
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   497
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   498
    A really cool project using a toy helicopter and two Raspberry Pi's was done by Nikolaos Kyknas. He transformed
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   499
    an off-the-shelf toy helicopter into an autonomous flying machine. He attached a Raspberry Pi Zero and an ultrasound
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   500
    sensor to the helicopter for measuring the distance from ground. Another Raspberry Pi is attached to the &ldquo;ground control
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   501
    unit&rdquo; in order to give instructions to the throttle of the helicopter. Both Raspberry Pi's communicate over WiFi for calculating
538
42b0b9329c74 updated
Christian Urban <urbanc@in.tum.de>
parents: 537
diff changeset
   502
    the next flight instruction. The goal is to find and maintain a steady altitude. Sounds simple? Well, not so fast! 
42b0b9329c74 updated
Christian Urban <urbanc@in.tum.de>
parents: 537
diff changeset
   503
    First you need to get the balance of the helicopter plus Raspberry Pi plus its power source just right,
537
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   504
    otherwise the helicopter will simply take off in random directions. Also the flight instructions need to be just right,
538
42b0b9329c74 updated
Christian Urban <urbanc@in.tum.de>
parents: 537
diff changeset
   505
    otherwise the helicopter would at best &ldquo;oscillate&rdquo; around the set altitude, but never be steady. To solve this problem, 
537
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   506
    Nikolaos used exactly the same algorithm that keeps cars at a steady pace when in cruise control. 
2abaef1458e9 added projects
Christian Urban <urbanc@in.tum.de>
parents: 523
diff changeset
   507
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   508
    <center>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   509
      <video width="320" height="576" controls>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   510
        <source src="https://nms.kcl.ac.uk/christian.urban/h1.mp4" type="video/mp4">
538
42b0b9329c74 updated
Christian Urban <urbanc@in.tum.de>
parents: 537
diff changeset
   511
          Your browser does not support the video tag.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   512
      </video>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   513
      <video width="320" height="576" controls>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   514
        <source src="https://nms.kcl.ac.uk/christian.urban/h3.mp4">
538
42b0b9329c74 updated
Christian Urban <urbanc@in.tum.de>
parents: 537
diff changeset
   515
          Your browser does not support the video tag.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   516
      </video>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   517
    </center>  
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   518
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   519
<li> <H4>[CU7] An Infrastructure for Displaying and Animating Code in a Web-Browser</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   520
  
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   521
<p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   522
  <B>Description:</B>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   523
  The project aim is to implement an infrastructure for displaying and
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   524
  animating code in a web-browser. The infrastructure should be agnostic
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   525
  with respect to the programming language, but should be configurable.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   526
  I envisage something smaller than the projects 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   527
  <A HREF="http://www.pythontutor.com">here</A> (for Python),
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   528
  <A HREF="http://ideone.com">here</A> (for Java),
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   529
  <A HREF="http://codepad.org">here</A> (for multiple languages),
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   530
  <A HREF="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro">here</A> (for HTML)
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   531
  <A HREF="http://repl.it/languages/JavaScript">here</A> (for JavaScript),
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   532
  and <A HREF="http://www.scala-tour.com/#/welcome">here</A> (for Scala).
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   533
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   534
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   535
  <p>
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   536
  The tasks in this project are being able (1) to lex and parse languages and (2) to write an interpreter.
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   537
  The goal is to implement this as much as possible in a language-agnostic fashion.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   538
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   539
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   540
  <p>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   541
  <B>Skills:</B> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   542
  Good skills in lexing and language parsing, as well as being fluent with web programming (for
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   543
  example JavaScript).
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   544
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   545
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   546
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   547
<li> <H4>[CU8] Proving the Correctness of Programs</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   548
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   549
 <p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   550
 I am one of the main developers of the interactive theorem prover
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   551
 <A HREF="http://isabelle.in.tum.de">Isabelle</A>. This theorem prover
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   552
 has been used to establish the correctness of some quite large
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   553
 programs (for example an <A HREF="http://ertos.nicta.com.au/research/l4.verified/">operating system</A>).
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   554
 Together with colleagues from Nanjing, I used this theorem prover to establish the correctness of a
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   555
 scheduling algorithm, called
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   556
 <A HREF="http://en.wikipedia.org/wiki/Priority_inheritance">Priority Inheritance</A>,
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   557
 for real-time operating systems. This scheduling algorithm is part of the operating
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   558
 system that drives, for example, the 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   559
 <A HREF="http://en.wikipedia.org/wiki/Mars_Exploration_Rover">Mars rovers</A>.
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   560
 Actually, the very first Mars rover mission in 1997 did not have this
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   561
 algorithm switched on and it almost caused a catastrophic mission failure (see
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   562
 this youtube video <A HREF="http://www.youtube.com/watch?v=lyx7kARrGeM">here</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   563
 for an explanation what happened).
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   564
 We were able to prove the correctness of this algorithm, but were also able to
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   565
 establish the correctness of some optimisations in this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   566
 <A HREF="https://nms.kcl.ac.uk/christian.urban/Publications/pip.pdf">paper</A>.
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   567
 </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   568
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   569
 <p>On a much smaller scale, there are a few small programs and underlying algorithms where it
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   570
 is not really understood whether they always compute a correct result (for example the
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   571
 regular expression matcher by Sulzmann and Lu in project [CU1]). The aim of this
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   572
 project is to completely specify an algorithm in Isabelle and then prove it correct (that is,
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   573
 it always computes the correct result).
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   574
</p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   575
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   576
  <p>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   577
  <B>Skills:</B> 
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   578
  This project is for a very good student with a knack for theoretical things and formal reasoning.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   579
  </p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   580
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   581
<li> <H4>[CU9] Anything Security Related that is Interesting</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   582
  
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   583
<p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   584
If you have your own project that is related to security (must be
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   585
something interesting), please propose it. We can then have a look
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   586
whether it would be suitable for a project.
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   587
</p>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   588
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   589
<li> <H4>[CU10] Anything Interesting in the Areas</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   590
  
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   591
<ul>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   592
<li><A HREF="http://elm-lang.org">Elm</A> (a reactive functional language for animating webpages; have a look at the cool examples, or <A HREF="http://pragmaticstudio.com/blog/2014/12/19/getting-started-with-elm">here</A> for an introduction)
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   593
<li><A HREF="http://www.smlserver.org/smltojs/">SMLtoJS</A> (a ML compiler to JavaScript; or anything else related to
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   594
  sane languages that compile to JavaScript)
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   595
<li>Any statistical data related to Bitcoins (in the spirit of this
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   596
<A HREF="http://people.csail.mit.edu/spillai/data/papers/bitcoin-transaction-graph-analysis.pdf">paper</A> or
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   597
  this <A HREF="https://eprint.iacr.org/2012/584.pdf">one</A>; this will probably require some extensive C knowledge or any
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   598
  other heavy-duty programming language)
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   599
<li>Anything related to programming languages and formal methods (like
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   600
  <A HREF="http://matt.might.net/articles/intro-static-analysis/">static program analysis</A>)  
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   601
<li>Anything related to low-cost, hands-on hardware like Raspberry Pi, Arduino,
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   602
  <A HREF="http://en.wikipedia.org/wiki/Cubieboard">Cubieboard</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   603
<li>Anything related to unikernel operating systems, like
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   604
  <A HREF="http://www.xenproject.org">Xen</A> or
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   605
  <A HREF="http://www.openmirage.org">Mirage OS</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   606
<li>Any kind of applied hacking, for example the Arduino-based keylogger described
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   607
   <A HREF="http://samy.pl/keysweeper/">here</A>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   608
<li>Anything related to code books, like this
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   609
   <A HREF="http://www.joelotter.com/kajero/">one</A>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   610
</ul>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   611
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   612
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   613
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   614
<li> <H4>Earlier Projects</H4>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   615
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   616
 I am also open to project suggestions from you. You might find some inspiration from my earlier projects:
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   617
 <A HREF="https://nms.kcl.ac.uk/christian.urban/bsc-projects-12.html">BSc 2012/13</A>, 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   618
 <A HREF="https://nms.kcl.ac.uk/christian.urban/msc-projects-12.html">MSc 2012/13</A>, 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   619
 <A HREF="https://nms.kcl.ac.uk/christian.urban/bsc-projects-13.html">BSc 2013/14</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   620
 <A HREF="https://nms.kcl.ac.uk/christian.urban/msc-projects-13.html">MSc 2013/14</A>, 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   621
 <A HREF="https://nms.kcl.ac.uk/christian.urban/bsc-projects-14.html">BSc 2014/15</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   622
 <A HREF="https://nms.kcl.ac.uk/christian.urban/msc-projects-14.html">MSc 2014/15</A>, 
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   623
 <A HREF="https://nms.kcl.ac.uk/christian.urban/bsc-projects-15.html">BSc 2015/16</A>,
522
9c6887fae011 updated
Christian Urban <urbanc@in.tum.de>
parents: 521
diff changeset
   624
 <A HREF="https://nms.kcl.ac.uk/christian.urban/msc-projects-15.html">MSc 2015/16</A>, 
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   625
 <A HREF="https://nms.kcl.ac.uk/christian.urban/bsc-projects-16.html">BSc 2016/17</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   626
 <A HREF="https://nms.kcl.ac.uk/christian.urban/msc-projects-16.html">MSc 2016/17</A>,
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   627
 <A HREF="https://nms.kcl.ac.uk/christian.urban/bsc-projects-17.html">BSc 2017/18</A>,
563
9d21149ba75c updated
Christian Urban <urbanc@in.tum.de>
parents: 560
diff changeset
   628
 <A HREF="https://nms.kcl.ac.uk/christian.urban/msc-projects-17.html">MSc 2017/18</A>,
9d21149ba75c updated
Christian Urban <urbanc@in.tum.de>
parents: 560
diff changeset
   629
 <A HREF="https://nms.kcl.ac.uk/christian.urban/bsc-projects-18.html">BSc 2018/19</A>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   630
</ul>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   631
</TD>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   632
</TR>  
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   633
</TABLE>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   634
        
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   635
<P>
555
b48e780b2558 updated
Christian Urban <urbanc@in.tum.de>
parents: 554
diff changeset
   636
2018-09-24 12:12:35 by Christian Urban
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   637
<a href="https://validator.w3.org/check/referer">[Validate this page.]</a>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   638
</P>
559
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   639
</BODY>
d0438f49c683 updated
Christian Urban <urbanc@in.tum.de>
parents: 558
diff changeset
   640
</HTML>
520
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   641
 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   642
 
c6289d90d8ee updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   643