slides/slides01.tex
author Christian Urban <urbanc@in.tum.de>
Thu, 09 Nov 2017 16:04:31 +0000
changeset 137 53c769a78a1e
parent 123 556cd74cbba9
child 140 ecec79b9ab25
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
\documentclass[dvipsnames,14pt,t,xelatex]{beamer}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
\usepackage{../slides}
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
     3
\usepackage{../graphics}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
\usepackage{../langs}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
%\usepackage{../data}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
\hfuzz=220pt 
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
%\setmonofont[Scale=.88]{Consolas}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
%\newfontfamily{\consolas}{Consolas}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
\lstset{language=Scala,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
        style=mystyle,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
        numbersep=0pt,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
        numbers=none,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
        xleftmargin=0mm}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
\newcommand{\bl}[1]{\textcolor{blue}{#1}}     
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
% beamer stuff 
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
\renewcommand{\slidecaption}{PEP (Scala) 01, King's College London}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
\begin{document}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
\begin{frame}[t]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
\frametitle{%
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
  \begin{tabular}{@ {}c@ {}}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
  \\[5mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
  \huge PEP Scala (1) 
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
  \end{tabular}}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
  \normalsize
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
  \begin{center}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
  \begin{tabular}{ll}
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    37
    Email:  & christian.urban at kcl.ac.uk\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    38
    Office: & N7.07 (North Wing, Bush House)\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    39
    Slides \& Code: & KEATS\medskip\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    40
    Scala Office & \\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    41
    Hours: &  Thursdays 11 -- 13\\
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
  \end{tabular}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
  \end{center}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
\end{frame}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
\begin{frame}[c]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
\frametitle{Why Scala?}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    54
\begin{textblock}{6}(3,4)
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
\begin{tabular}{l}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
\mbox{}\hspace{-1mm}\includegraphics[scale=0.36]{../pics/twitter.png}\\[-1mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
\includegraphics[scale=0.30]{../pics/linked.png}\\
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
\includegraphics[scale=0.30]{../pics/guardian.jpg}\\[-3mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
\mbox{}\hspace{-2mm}\includegraphics[scale=0.38]{../pics/morgan.png}\\[-3mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
\includegraphics[scale=0.30]{../pics/suisse.png}\\
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    61
{\large\bf ...}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    62
\end{tabular}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    63
\end{textblock}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    64
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    65
\begin{textblock}{6}(9,4)
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    66
\begin{tabular}{l}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
\includegraphics[scale=0.20]{../pics/edf.png}\\[-1mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
\includegraphics[scale=0.08]{../pics/novell.png}\\[-1mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
\includegraphics[scale=0.30]{../pics/foursquare.png}\\
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
\includegraphics[scale=0.30]{../pics/hsbc.png}\\
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
{\large\bf ...}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
\end{tabular}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
\end{textblock}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
\end{frame}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    78
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    79
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    80
\begin{frame}[c]
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    81
\frametitle{Why Scala?}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    82
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    83
\begin{itemize}
34
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
    84
\item compiles to the JVM\\
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
    85
  \textcolor{gray}{(also JavaScript, native X86 in the works)}\medskip
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
    86
\item integrates seamlessly with Java\medskip
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
    87
\item combines \underline{\bf functional} and {\bf object-oriented} programming\bigskip
34
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
    88
\item it is a bit on the ``mathematical'' side\\
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
    89
  \textcolor{gray}{(no pointers, no \texttt{null})}
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
    90
  
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
    91
\item often one can write very concise and elegant code
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
    92
\end{itemize}\bigskip\medskip  
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
    93
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
    94
\small
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    95
alternatives:\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    96
Elm, Haskell, Ocaml, F\sharp, Erlang, ML, Lisp (Racket), \ldots
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    97
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    98
\end{frame}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   100
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   101
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   102
\begin{frame}[c]
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   103
\frametitle{Java vs Scala}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   104
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   105
{\lstset{language=java}\fontsize{12}{12}\selectfont
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   106
\texttt{\lstinputlisting{Point.java}}}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   107
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   108
\rule{11cm}{0.3mm}\\[-2mm]
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   109
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   110
{\lstset{language=scala}\fontsize{12}{12}\selectfont
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   111
\texttt{\lstinputlisting{Point.scala}}}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   112
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   113
\begin{textblock}{6}(13,3)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   114
\textbf{\large Java}
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   115
\end{textblock}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   116
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   117
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   118
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   119
\begin{textblock}{6}(13,13.4)
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   120
\textbf{\large Scala}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   121
\end{textblock}  
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   122
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   123
\end{frame}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   124
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   125
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   126
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   127
\begin{frame}[c]
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   128
\frametitle{First Steps: Scala Tools}
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   129
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   130
\begin{itemize}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   131
\item there is a plugin for Eclipse (called Scala IDE)\medskip
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   132
\item there is also a plugin for IntelliJ\medskip
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   133
\item there is a worksheet mode in Eclipse and IntelliJ\bigskip
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   134
\item I use Sublime or venerable Emacs ;o)
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   135
\end{itemize}  
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   136
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   137
\end{frame}
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   138
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   139
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   140
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   141
\begin{frame}[c]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   142
  \frametitle{\bf
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   143
  \only<1>{\begin{tabular}{l}\\[2mm]Why Scala?\\ \mbox{}\end{tabular}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   144
  \only<2->{\begin{tabular}{l}\\[2mm]Why Functional\\ Programming?\end{tabular}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   145
}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   146
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   147
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   148
  %
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   149
  \mbox{}\\[3.5cm]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   150
  \small
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   151
Scala, Elm, Haskell, Ocaml, F\sharp, Erlang, ML, Lisp (Racket), \ldots 
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   152
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   153
\only<3>{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   154
\begin{textblock}{6}(2,6.2)
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   155
\begin{bubble}[10cm]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   156
\normalsize``If you want to see which features will be in mainstream programming
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   157
  languages tomorrow, then take a look at functional programming
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   158
  languages today.''\medskip\small\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   159
  \hfill{}---Simon Peyton Jones (works at Microsoft)\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   160
  \hfill{}main developer of the Glasgow Haskell Compiler
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   161
\end{bubble}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   162
\end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   163
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   164
\end{frame}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   165
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   166
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   167
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   168
\begin{frame}[c]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   169
\mbox{}\\[-21mm]\mbox{}  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   170
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   171
\begin{center}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   172
  \begin{tikzpicture}[scale=1,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   173
                      node/.style={
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   174
                      rectangle,rounded corners=3mm,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   175
                      very thick,draw=black!50,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   176
                      minimum height=18mm, minimum width=20mm,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   177
                      top color=white,bottom color=black!20}]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   178
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   179
  \onslide<1-10>{                
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   180
  \node (A) at (0,0) [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   181
     {\mbox{\includegraphics[scale=0.15]{../pics/cplus2.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   182
  \node [above right] at (A.north west) {1986};}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   183
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   184
  \onslide<2->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   185
  \node (B) at (3.5,0) [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   186
     {\mbox{\includegraphics[scale=0.15]{../pics/robotron.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   187
  \node [above right] at (B.north west) {1988, C};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   188
  \draw [->,line width=4mm] (A) -- (B);}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   189
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   190
  \onslide<3->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   191
  \node (C0) at (6.3,0) {};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   192
  \node (C) at (8,0)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   193
     {\mbox{\includegraphics[scale=0.15]{../pics/sun.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   194
  \node [above right] at (C.north west) {1992, {\small Linux}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   195
  \draw [->,line width=4mm] (B) -- (C0);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   196
  \draw [->,line width=4mm] (C0) -- (C);}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   197
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   198
  \onslide<4->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   199
  \node (D) at (8,-3.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   200
     {\mbox{\includegraphics[scale=0.2]{../pics/gateway.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   201
  \draw [->,line width=4mm] (C) -- (D);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   202
  \node [below right] at (D.south west) {1996};}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   203
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   204
  \onslide<5->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   205
  \node (E) at (4,-3.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   206
     {\mbox{\includegraphics[scale=0.1]{../pics/appleg4.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   207
  \draw [->,line width=4mm] (D) -- (E);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   208
  \node [above right] at (E.north west) {2000};}   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   209
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   210
  \onslide<6->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   211
  \node (F0) at (1.5,-3.3) {};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   212
  \node (F1) at (1,-3.3) {};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   213
  \node (F) at (-0.9,-3.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   214
     {\mbox{\includegraphics[scale=0.3]{../pics/appleair.png}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   215
  \draw [->,line width=4mm] (E) -- (F0);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   216
  \draw [->,line width=4mm] (F1) -- (F);   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   217
  \node [above right] at (F.north west) {2012?};}   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   218
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   219
  \onslide<7->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   220
  \node (G) at (-0.9,-6.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   221
     {\mbox{\includegraphics[scale=0.02]{../pics/applepro.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   222
  \draw [->,line width=4mm] (F) -- (G);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   223
  \node [right] at (G.west) {\hspace{22mm}2017};}   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   224
  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   225
  \end{tikzpicture}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   226
  \end{center}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   227
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   228
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   229
  \only<1>{%  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   230
    \begin{textblock}{10}(2.5,5)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   231
      \includegraphics[scale=0.26]{../pics/cplus1.jpg}\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   232
      \footnotesize 64K RAM, no HD, no monitor, lots of cables
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   233
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   234
    \begin{textblock}{6}(10.9,4.5)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   235
      \includegraphics[scale=0.09]{../pics/mand1.png}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   236
      \includegraphics[scale=0.09]{../pics/mand2.png}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   237
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   238
    \begin{textblock}{6}(10.8,2.2)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   239
    \huge\bf 3 days
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   240
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   241
  }
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   242
  \only<8->{%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   243
  \begin{textblock}{8}(5.8,11.6)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   244
    \large\bf
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   245
    \begin{tabular}{l@{}l}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   246
      1986:\, & no Internet\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   247
            & no Amazon\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   248
            & no FB, no mobiles,\ldots\\ 
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   249
    \end{tabular}         
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   250
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   251
  }
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   252
  \only<9>{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   253
  \begin{textblock}{1}(3,3)
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   254
    \begin{bubble}[9cm]  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   255
      \begin{tabular}{@{\hspace{8mm}}llll@{\hspace{8mm}}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   256
        \\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   257
      \multicolumn{4}{c}{\bf Speedup by Moore's Law}\medskip\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   258
      \textbf{1986:} & 3 days    & \textbf{1996:} & 135 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   259
      \textbf{1988:} & 1.5 days  & \textbf{1998:} & 67 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   260
      \textbf{1990:} & 18 hs     & \textbf{2000:} & 33 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   261
      \textbf{1992:} & 9 hs      & \textbf{2002:} & 16 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   262
      \textbf{1994:} & 4.5 hs    & \multicolumn{2}{c}{???}\\                    
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   263
      \\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   264
      \end{tabular}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   265
      \small Every two years, computers got twice as powerful.
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   266
  \end{bubble}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   267
  \end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   268
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   269
\end{frame}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   270
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   271
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   272
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   273
\begin{frame}[c]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   274
\frametitle{Seq vs Par}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   275
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   276
\begin{center}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   277
  \begin{tabular}[t]{@{}l@{}l@{}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   278
    \includegraphics[scale=0.14]{../pics/mand4.png} &
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   279
    \raisebox{1.2mm}{\includegraphics[scale=0.14]{../pics/mand3.png}}      
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   280
  \end{tabular}     
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   281
\end{center}  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   282
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   283
\only<2>{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   284
  \begin{textblock}{5}(12,2)
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   285
    \begin{bubble}[2.1cm]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   286
      \footnotesize{}in Java or C++\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   287
      \includegraphics[scale=0.50]{../pics/skeleton.jpg}\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   288
    \end{bubble}  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   289
  \end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   290
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   291
\only<3>{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   292
  \begin{textblock}{5}(1,8)
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   293
    \begin{bubble}[2.1cm]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   294
      \footnotesize{}in Java or C++\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   295
    \end{bubble}  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   296
  \end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   297
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   298
\end{frame}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   299
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   300
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   301
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   302
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   303
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   304
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   305
\begin{frame}[c]
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   306
\frametitle{Types}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   307
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   308
\begin{itemize}
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   309
\item Base types\smallskip
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   310
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   311
  \begin{tabular}{@{}l@{}}
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   312
    \textcolor{codegreen}{\texttt{Int}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   313
    \textcolor{codegreen}{\texttt{Long}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   314
    \textcolor{codegreen}{\texttt{BigInt}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   315
    \textcolor{codegreen}{\texttt{Float}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   316
    \textcolor{codegreen}{\texttt{Double}}\\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   317
    \textcolor{codegreen}{\texttt{String}},
25
6253f4681451 updated
Christian Urban <urbanc@in.tum.de>
parents: 23
diff changeset
   318
    \textcolor{codegreen}{\texttt{Char}}\\
6253f4681451 updated
Christian Urban <urbanc@in.tum.de>
parents: 23
diff changeset
   319
    \textcolor{codegreen}{\texttt{Boolean}}
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   320
  \end{tabular}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   321
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   322
\item Compound types \smallskip   
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   323
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   324
  \begin{tabular}{@{}ll@{}}
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   325
    \textcolor{codegreen}{\texttt{List[Int]}}     & lists of Int's \\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   326
    \textcolor{codegreen}{\texttt{Set[Double]}}   & sets of Double's \\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   327
    \textcolor{codegreen}{\texttt{(Int, String)}} & Int-String pair\\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   328
    \textcolor{codegreen}{\texttt{List[(BigInt, String)]}} &
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   329
                                      lists of BigInt-String\\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   330
                                      & pairs\\
26
a7afc2540a88 updated
Christian Urban <urbanc@in.tum.de>
parents: 25
diff changeset
   331
    \textcolor{codegreen}{\texttt{List[List[Int]]}} & list of lists of Int's\\                                  
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   332
  \end{tabular}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   333
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   334
\end{itemize}  
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   335
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   336
\end{frame}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   337
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   338
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   339
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   340
\begin{frame}[c]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   341
\frametitle{An Http Request}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   342
  
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   343
\begin{textblock}{1}(2,5)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   344
\begin{tabular}{c}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   345
\includegraphics[scale=0.15]{../pics/servers.png}\\[-2mm]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   346
\small Server
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   347
\end{tabular}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   348
\end{textblock}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   349
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   350
\begin{textblock}{1}(5.6,4)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   351
  \begin{tikzpicture}[scale=1.1]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   352
  \draw[white] (0,1) node (X) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   353
  \draw[white] (2,1) node (Y) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   354
   \draw[white] (0,0) node (X1) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   355
  \draw[white] (2,0) node (Y1) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   356
   \draw[white] (0,-1) node (X2) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   357
  \draw[white] (2,-1) node (Y2) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   358
  \draw[red, <-, line width = 2mm] (X) -- (Y);
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   359
  \node [inner sep=5pt,label=above:\textcolor{black}{GET request}] at ($ (X)!.5!(Y) $) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   360
  \draw[red, ->, line width = 2mm] (X1) -- (Y1);
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   361
  \node [inner sep=5pt,label=above:\textcolor{black}{webpage}] at ($ (X1)!.5!(Y1) $) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   362
  \draw[red, <-, line width = 2mm] (X2) -- (Y2);
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   363
  \node [inner sep=7pt,label=above:\textcolor{black}{POST data}] at ($ (X2)!.5!(Y2) $) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   364
  \end{tikzpicture}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   365
\end{textblock}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   366
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   367
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   368
\begin{textblock}{1}(9,5.5)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   369
\begin{tabular}{c}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   370
\includegraphics[scale=0.15]{../pics/laptop.png}\\[-2mm]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   371
\small Browser
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   372
\end{tabular}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   373
\end{textblock}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   374
\end{frame}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   375
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   376
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   377
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   378
\begin{frame}[c]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   379
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   380
{\lstset{language=Java}\fontsize{7}{8}\selectfont
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   381
\texttt{\lstinputlisting{URLReader.java}}}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   382
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   383
\only<2>{
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   384
\begin{textblock}{5}(12,2)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   385
\includegraphics[scale=0.50]{../pics/skeleton.jpg}\\
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   386
\end{textblock}}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   387
\end{frame}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   388
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   389
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   390
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   391
\begin{frame}[c]
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   392
\frametitle{Conclusion}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   393
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   394
\begin{itemize}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   395
\item Scala is still under heavy development\\ (the compiler is terribly slow)\medskip
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   396
\item {\bf\url{http://www.scala-lang.org/}}\bigskip
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   397
\item it is a rather \textbf{\alert{deep}} language\ldots i.e.~gives you a lot of
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   398
  rope to shoot yourself\bigskip\bigskip 
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   399
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   400
\item hope you have fun with the coursework  
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   401
\end{itemize}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   402
\end{frame}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   403
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   404
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   405
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   406
\begin{frame}[c]
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   407
\frametitle{\begin{tabular}{c}\\[3cm]\alert{Questions?}\end{tabular}}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   408
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   409
\mbox{}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   410
\end{frame}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   411
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   412
\end{document}
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   413
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   414
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   415
\end{document}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   416
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   417
%%% Local Variables:  
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   418
%%% mode: latex
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   419
%%% TeX-master: t
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   420
%%% End: 
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   421