Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #1590
| From | Kao Hsiang <0xe0e1e@gmail.com> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Another approach to parallel programming |
| Date | 2015-08-26 13:56 -0400 |
| Organization | Compilers Central |
| Message-ID | <15-08-014@comp.compilers> (permalink) |
In recent years, I have been concerned about parallel programming in a new way.
Gradually I formed an idea about a approach of imperative parallel programming.
-------------
Let f(a,b,c,...) be any function(or subroutine), we define that a,b,c,... can be executed parallelly,
and f depends on a,b,c,... so it executes after its arguments.
and I think it can be a basic primitive of imperative parallel programming.
Next we define block "to{...}" and block "do{...}" (in library)
"to" is a null function with variable arguments to represent parallel sentences.
"do" is a function "do(a,func b()) {b();}" with argments "a" and a closure "b" (continuation-passing style) to represent sequential sentences.
And then the instruction-level parallel programming can be easily implemented based on f.
It can be compiled into vm bytecode/ VLIW architecture code / os-based threads.
------------
Sorry about my broken English. Now I plan to implement a new
language based on the above idea. I think this language will be useful
and convenient for parallel programming.
Gao Xiang <gx@mail.hfut.edu.cn>
Back to comp.compilers | Previous | Next — Next in thread | Find similar | Unroll thread
Another approach to parallel programming Kao Hsiang <0xe0e1e@gmail.com> - 2015-08-26 13:56 -0400 Re: Another approach to parallel programming Kaz Kylheku <kaz@kylheku.com> - 2015-08-26 20:06 +0000
csiph-web