Questions Concepts
GitHub icon

X10

X10 - Programming language

< >

X10 is an open source programming language created in 2004 by Kemal Ebcioğlu and Saravanan Arumugam and Vijay Saraswat and Vivek Sarkar.

#202on PLDB 19Years Old 45Repos

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. Its primary authors are Kemal Ebcioğlu, Vijay Saraswat, Saravanan Arumugam, and Vivek Sarkar. Read more on Wikipedia...


Example from hello-world:
/* * This file is part of the X10 project (http://x10-lang.org). * * This file is licensed to You under the Eclipse Public License (EPL); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.opensource.org/licenses/eclipse-1.0.php * * (C) Copyright IBM Corporation 2006-2016. */ import x10.io.Console; public class HelloWorld { public static def main(Rail[String]) { Console.OUT.println("Hello World"); } }
Example from Linguist:
/* * This file is part of the X10 project (http://x10-lang.org). * * This file is licensed to You under the Eclipse Public License (EPL); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.opensource.org/licenses/eclipse-1.0.php * * (C) Copyright IBM Corporation 2006-2014. */ import x10.io.Console; /** * The classic hello world program, shows how to output to the console. */ class HelloWorld { public static def main(Rail[String]) { Console.OUT.println("Hello World!" ); } }
as assert async at athome ateach atomic break case catch class clocked continue def default do else final finally finish for goto haszero here if import in instanceof interface isref new offer operator package return struct switch throw try type val var when while

Language features

Feature Supported Token Example
Line Comments
Conditionals
Async Await
Switch Statements
Functions
Exceptions
Classes
While Loops
File Imports import
import x10.io.Console;
Strings "
"Hello world"
Comments
/* A comment
*/
MultiLine Comments /* */
/* A comment
*/
Print() Debugging Console.OUT.println
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Traffic · Traffic Today · Day 305 · feedback@pldb.com · Logout