Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Chapel

< >

Chapel is an open source programming language created in 2004 by David Callahan and Hans Zima and Brad Chamberlain and John Plevyak.

#68on PLDB 20Years Old 212Repos
Download source code:
git clone https://github.com/chapel-lang/chapel

Try now: TIO

Chapel, the Cascade High Productivity Language, is a parallel programming language developed by Cray. It is being developed as part of the Cray Cascade project, a participant in DARPA's High Productivity Computing Systems (HPCS) program, which had the goal of increasing supercomputer productivity by the year 2010. It is being developed as an open source project, under version 2 of the Apache license.. Read more on Wikipedia...


Example from hello-world:
writeln("Hello World");
Example from Linguist:
writeln("Hello, world!"); // print 'Hello, world!' to the console
Chapel Keywords
_ align atomic begin break by class cobegin coforall config const continue delete dmapped do domain else enum export extern for forall if in index inline inout iter label let local module new nil on otherwise out param proc record reduce ref return scan select serial single sparse subdomain sync then type union use var when where while yield zip

Language features

Feature Supported Token Example
Binary Literals โœ“
// 0[bB][01]+
Integers โœ“
// [0-9]+
Floats โœ“
// (\d*\.\d+)([eE][+-]?[0-9]+)?i?
Hexadecimals โœ“
// 0[xX][0-9a-fA-F]+
Octals โœ“
// 0[oO][0-7]+
Conditionals โœ“
Constants โœ“
Classes โœ“
While Loops โœ“
Strings โœ“ "
"Hello world"
MultiLine Comments โœ“ /* */
/* A comment
*/
Print() Debugging โœ“ writeln
Line Comments โœ“ //
// A comment
Comments โœ“
Case Insensitive Identifiers X
Semantic Indentation X

View source

- Build the next great programming language ยท About ยท Resources ยท Acknowledgements ยท Part of the World Wide Scroll