-
Notifications
You must be signed in to change notification settings - Fork 2
/
julialang-lecture.tex
204 lines (153 loc) · 5.71 KB
/
julialang-lecture.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
\documentclass[xcolor=svgnames,english,presentation]{beamer}
%\documentclass[xcolor=svgnames,english,handout]{beamer}
%\usepackage{againframetitle}
%\aftOptions{style=NumberedLast}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{pgfplots}
\graphicspath{{.}{pics/}}
% AALTO COLORS
\definecolor{aaltoyellow}{RGB}{254,203,00} % FECB00
\definecolor{aaltored}{RGB}{237,41,57} % ED2939
\definecolor{aaltoblue}{RGB}{00,101,189} % 0065BD
\definecolor{aaltogray}{RGB}{146,139,129} % 928B81
\definecolor{aaltolgreen}{RGB}{105,190,40} % 69BE28
\definecolor{aaltodgreen}{RGB}{00,155,58} % 009B3A
\definecolor{aaltocyan}{RGB}{00,168,180} % 00A8B4
\definecolor{aaltopurple}{RGB}{102,57,183} % 6639B7
\definecolor{aaltomagenta}{RGB}{177,05,157} % B1059D
\definecolor{aaltoorange}{RGB}{255,121,00} % FF7900
\definecolor{aaltogreen}{RGB}{00,155,58} % 009B3A
\useoutertheme{infolines}
\setbeamertemplate{navigation symbols}{}
%\usetheme{Marburg}
%\usetheme{Copenhagen}
%\usetheme{Frankfurt}
%\usetheme{Warsaw}
%\usetheme{Dresden}
\usetheme{Madrid}
%\setbeamercolor{structure}{fg=CadetBlue!90!black}
\setbeamercolor{structure}{fg=aaltogreen!100!black}
%\usecolortheme[overlystylish]{albatross}
\mode<presentation>
{
\setbeamercovered{transparent}
}
\mode<handout>
{
\beamertemplatesolidbackgroundcolor{black!5}
}
\usepackage[english]{babel}
%\usepackage[finnish]{babel}
% or whatever
\usepackage[latin1]{inputenc}
% or whatever
% \usepackage{times}
% \usepackage[T1]{fontenc}
% Or whatever. Note that the encoding and the font should match. If T1
% does not look nice, try deleting the line with the fontenc.
%\usepackage{amsmath,amsfonts}
%\usepackage[subscriptcorrection]{mtpro2}
\usepackage{upgreek}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
% \usepackage{amsmath,amsfonts,amssymb,amsthm,mathrsfs}
% \usepackage{mathptmx}
%\title[Multiple Target Population Estimation]{A
% Multiple Target Tracking Approach for Statistical Estimation of
% Large Predator Population}
\newcommand{\balert}[1]{\textcolor{blue}{#1}}
\title{The Julia Language}
\subtitle{With a performance comparison in Kalman filtering}
%\subtitle
%{Presentation Subtitle} % (optional)
\author{Simo S\"arkk\"a}
% - Use the \inst{?} command only if the authors have different
% affiliation.
\institute{Aalto University} % (optional, but mostly needed)
% - Use the \inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.
\date{November 10, 2015}
%\subject{Talks}
% This is only inserted into the PDF information catalog. Can be left
% out.
% If you have a file called "university-logo-filename.xxx", where xxx
% is a graphic format that can be processed by latex or pdflatex,
% resp., then you can add a logo as follows:
%\pgfdeclareimage[height=0.5cm]{university-logo-small}{aalto_logo}
%\pgfdeclareimage[height=2cm]{university-logo-big}{aalto_logo}
% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Contents}
\tableofcontents[currentsection]
\end{frame}
}
% If you wish to uncover everything in a step-wise fashion, uncomment
% the following command:
%\beamerdefaultoverlayspecification{<+->}
\begin{document}
%\logo{\pgfuseimage{university-logo-big}}
\begin{frame}
\titlepage
\end{frame}
%\logo{\pgfuseimage{university-logo-small}}
%\begin{frame}
% \frametitle{Contents}
% \tableofcontents[pausesections]
%\end{frame}
\begin{frame}
\frametitle{What is Julia?}
\begin{itemize}[<+->]
\item Open-source \alert{programming language} for technical computing.
\item Very \alert{Matlab-like} syntax.
\item Interpreted language with a builtin \alert{JIT-compiler}.
\item \alert{Fast program execution} -- closer to C than Matlab (they say).
\item \alert{Modern programming concepts} found in Python and Lisp, but not in Matlab.
\item \alert{Multiple dispatching} (kind of polymorphism).
\item \alert{Operator overloading} (operators and functions).
\begin{itemize}[<+->]
\item[$\Rightarrow$] {\it Demo}
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Performance I}
\centering
Performance comparison from \url{http://julialang.org/}:
\vspace{0.5cm}
\includegraphics[width=\textwidth]{perf}
\end{frame}
\begin{frame}
\frametitle{Performance II}
\centering
\includegraphics[width=0.7\textwidth]{kf-benchmark/times}
\alert{Relative computation time (filter + smoother):}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
{\bf C++} & {\bf Java} & {\bf Julia} & {\bf Matlab} & {\bf Octave} & {\bf Python} \\
\hline
1 & 4 & 12 & 48 & 199 & 304 \\
\hline
\end{tabular}
\end{frame}
\begin{frame}
\frametitle{Quick practical experiences}
\begin{itemize}[<+->]
\item[\textcolor{green}\checkmark] \alert{Transliteration from Matlab} is very easy (with performance catches).
\item[\textcolor{green}\checkmark] Faster than \alert{Matlab}, but loses to \alert{C++ and Java}.
\item[\textcolor{green}\checkmark] Much faster than \alert{Python or Octave} (no surprise).
\item[\textcolor{green}\checkmark] Some \alert{good programming features} (proper lists, functional programming, multiple dispaching, \ldots).
\item[\textcolor{red}\checkmark] \alert{No objects or classes!}
\item[\textcolor{red}\checkmark] Programming environment quite \alert{clumsy to get working}.
\item[\textcolor{red}\checkmark] \alert{Plotting features} are just awful.
\item[\textcolor{red}\checkmark] No proper \alert{IDEs}.
\begin{itemize}[<+->]
\item[$\Rightarrow$] {\it Should I switch to it?} -- \alert{Not for now.}
\end{itemize}
\end{itemize}
\end{frame}
\end{document}