Content deleted Content added
Added Tags: Visual edit Mobile edit Mobile web edit |
m →History: HTTP to HTTPS for SourceForge |
||
(22 intermediate revisions by 14 users not shown) | |||
Line 1:
{{Short description|Programming language by IBM}}
{{Infobox programming language
| name = X10
| logo =
| paradigm = [[object-oriented programming|Object-oriented]]
| year = {{Start date and age|2004}}
| designer = Kemal Ebcioğlu,
| developer = [[IBM]]
| latest release version = [http://x10-lang.org/releases/x10-release-
| latest release date = {{Start date and age|
| typing = [[Static type system|Static]], [[Type system#Strong and weak type systems|strong]], [[Type safety|safe]], constrained
| implementations =
| dialects =
Line 21 ⟶ 22:
| caption =
}}
'''X10''' is a [[programming language]] being developed by [[IBM]] at the [[Thomas J. Watson Research Center]] as part of the Productive, Easy-to-use, Reliable Computing System ([[PERCS]]) project funded by [[DARPA]]'s [[High Productivity Computing Systems]] (HPCS) program.
==History== Its primary authors are Kemal Ebcioğlu, X10 is designed specifically for [[parallel computing]] using the [[partitioned global address space]] (PGAS) model.
A computation is divided among a set of ''places'', each of which holds some data and hosts one or more ''activities'' that operate on those data. It has a constrained type system for object-oriented programming, a form of [[dependent types]]. Other features include user-defined primitive ''struct'' types; globally distributed ''arrays'', and structured and unstructured parallelism.<ref>{{cite
X10 uses the concept of parent and child relationships for activities to prevent the lock stalemate that can occur when two or more processes wait for each other to finish before they can complete. An activity may spawn one or more child activities, which may themselves have children. Children cannot wait for a parent to finish, but a parent can wait for a child using the ''finish'' command.<ref>{{cite journal | last = Biever | first = C. | title = Computer revolution poses problems for programmers | journal = New Scientist | volume = 193 | issue = 2594 }}</ref>
==Example code==
===[[Hello, World!]]===
{{sxhl|2=x10|1=
/** Example file for the X10 programming language (http://x10-lang.org).
*/
class Example {
public static def main(Rail[String]) {
Console.OUT.println("Hello, World!"); // say hello.
}
}
}}<ref>{{github|https://github.com/pygments/pygments/blob/master/tests/examplefiles/x10/example.x10|pygments/tests/examplefiles/x10/example.x10}}</ref>
==See also==
Line 38 ⟶ 54:
==References==
{{
==External links==
Line 46 ⟶ 62:
* [https://grothoff.org/christian/xtc/x10/ GPLed X10 prototype]
{{IBM FOSS}}
{{Numerical analysis software}}
|