Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

X10

< >

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

#426on PLDB 20Years Old 45Repos
Homepage · Wikipedia · Docs

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 Example Token
Line Comments ✓
Conditionals ✓
Async Await ✓
Switch Statements ✓
Functions ✓
Exceptions ✓
Classes ✓
While Loops ✓
File Imports ✓ import x10.io.Console; import
Strings ✓ "Hello world" "
Comments ✓ /* A comment */
MultiLine Comments ✓ /* A comment */ /* */
Print() Debugging ✓ Console.OUT.println
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0