Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayushpradhan9/chapel-examples
Chapel language examples
https://github.com/ayushpradhan9/chapel-examples
chapel chapel-language
Last synced: 10 days ago
JSON representation
Chapel language examples
- Host: GitHub
- URL: https://github.com/ayushpradhan9/chapel-examples
- Owner: AyushPradhan9
- Created: 2020-03-22T05:02:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T08:12:07.000Z (over 4 years ago)
- Last Synced: 2024-10-25T09:47:57.130Z (about 2 months ago)
- Topics: chapel, chapel-language
- Language: Chapel
- Size: 1.73 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chapel
[Chapel](https://chapel-lang.org/) is a modern programming language that is...
- parallel: contains first-class concepts for concurrent and parallel computation
- productive: designed with programmability and performance in mind
- portable: runs on laptops, clusters, the cloud, and HPC systems
- scalable: supports locality-oriented features for distributed memory systems
- open-source: hosted on [GitHub](https://github.com/chapel-lang/), permissively [licensed](https://chapel-lang.org/license.html)As I got to know the language more, I found it much simpler and familiar language. It is very much similiar to the python/C++ programming languages and people who already learnt or in process of learning should try this language out.
## Compilaton
All programs are compiled by the following command-
chpl -o array array.chpl### Note-
Installation of chapel and setting the path from the terminal is required for compilation of chapel programs.## Examples
- 2Darray -
Implementation of 2D array and nested for loop is displayed in the example. Also by this example, we can understand multi-array mechanism in Chapel.
- array -
Implementation of array and simple for loop can be seen here.
- Basic maths operations
Implementation of basic mathematical operations like sum, difference, product and division is present in this example.
- classes -
Implementation of classes to find fibonacci series
- dataTypes -
Different primitive data types are implemented in this example.
- nestedIfElse -
Implementation of nested If-Else can be seen in this example.
- procedures -
Procedures/function can be seen in this example, also how a main procedure/function can also be seen in the example.
- select -
Implementation of "select case"/"switch case"