2014-03-09 16:38:27 +01:00
|
|
|
%!TEX root = Programmierparadigmen.tex
|
|
|
|
\chapter{X10}\index{X10|(}%
|
|
|
|
X10 ist eine objektorientierte Programmiersprache, die 2004 bei IBM entwickelt
|
|
|
|
wurde.
|
|
|
|
|
2014-03-23 19:28:44 +01:00
|
|
|
X10 nutzt das PGAS-Modell:
|
|
|
|
|
|
|
|
\begin{definition}[PGAS\footnotemark]\xindex{PGAS}%
|
|
|
|
PGAS (partitioned global address space) ist ein Programmiermodell für
|
|
|
|
Mehrprozessorsysteme und massiv parallele Rechner. Dabei wird der globale
|
|
|
|
Adressbereich des Arbeitsspeichers logisch unterteilt. Jeder Prozessor
|
|
|
|
bekommt jeweils einen dieser Adressbereiche als lokalen Speicher zugeteilt.
|
|
|
|
Trotzdem können alle Prozessoren auf jede Speicherzelle zugreifen, wobei auf
|
|
|
|
den lokalen Speicher mit wesentlich höherer Geschwindigkeit zugegriffen
|
|
|
|
werden kann als auf den von anderen Prozessoren.
|
|
|
|
\end{definition}
|
|
|
|
\footnotetext{\url{https://de.wikipedia.org/wiki/PGAS}}
|
|
|
|
|
2014-03-09 16:38:27 +01:00
|
|
|
\section{Erste Schritte}
|
|
|
|
Als erstes sollte man x10 von \url{http://x10-lang.org/x10-development/building-x10-from-source.html?id=248} herunterladen.
|
|
|
|
|
|
|
|
Dann kann man die bin/x10c++ zum erstellen von ausführbaren Dateien nutzen.
|
|
|
|
Der Befehl \texttt{x10c++ hello-world.x10} erstellt eine ausführbare Datei namens
|
|
|
|
\texttt{a.out}.
|
|
|
|
|
|
|
|
\inputminted[numbersep=5pt, tabsize=4, frame=lines, label=hello-world.x10]{cpp}{scripts/x10/hello-world.x10}
|
|
|
|
|
2014-02-01 13:46:33 +01:00
|
|
|
\section{Syntax}
|
2014-03-09 19:06:23 +01:00
|
|
|
\section{Datentypen}
|
|
|
|
Byte, UByte, Short, UShort, Char, Int, UInt, Long, ULong, Float, Double, Boolean, Complex, String, Point, Region, Dist, Array
|
|
|
|
|
2014-02-01 13:46:33 +01:00
|
|
|
\section{Beispiele}
|
|
|
|
|
2014-03-09 16:38:27 +01:00
|
|
|
\section{Weitere Informationen}
|
|
|
|
\begin{itemize}
|
|
|
|
\item \url{http://x10-lang.org/}
|
|
|
|
\end{itemize}
|
|
|
|
\index{X10|)}
|