About Parallel Execution support and Configurable Default Policy #1731
advaitsoman
started this conversation in
Language design
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I liked the idea of Carbon language and its approach of language evolution,
I was wondering if following point would be useful for language design consideration.
Support for parallel execution policy :-
Now as hardware becoming more heterogeneous and parallel should carbon language add constructs to effectively represent data structure and function attributes so that they can be easily translated into parallel code. (e.g marking function as thread-safe, parallel loops, support for parallel array transform functions)
Support for 'Default Policy'
In the language introduction talk one point was raised is now it is difficult to change C++ language defaults (class members are default private) . To avoid such problems in in future for carbon language, can carbon language introduce 'custom global default policy'
All such decision can be programmatically documented in 'default policy' and user should be allowed to make changes in it.
when no explicit policy is specified, compiler can use 'default' 'default policy' (Or perhaps better name :) )
Beta Was this translation helpful? Give feedback.
All reactions