Arranging software development around a wide mix of programming languages and technologies offers both challenges and rewards. In this talk Ryan will explore the pros and cons that the 6Wunderkinder team found when working with over 10 different programming languages in a single product.
12. The major cause of the software crisis is
that the machines have become several
orders of magnitude more powerful!
To put it quite bluntly: as long as there
were no machines, programming was no
problem at all…
13. …When we had a few weak computers,
programming became a mild problem,
and now we have gigantic computers,
programming has become an equally
gigantic problem.
Edsger W. Dijkstra
14.
15. void quick_sort (int *a, int n) {
if (n < 2)
return;
int p = a[n / 2];
int *l = a;
int *r = a + n - 1;
while (l <= r) {
if (*l < p) { l++; }
else if (*r > p) { r--; }
else {
int t = *l;
*l = *r;
*r = t;
l++;
r--;
}
}
quick_sort(a, r - a + 1);
quick_sort(l, a + n - l);
}
16. qsort :: Ord a => [a] -> [a]
qsort [] = []
qsort (x:xs) = qsort less ++ [x] ++ qsort greater
where
less = [ y | y <- xs, y < x ]
greater = [ y | y <- xs, y >= x ]