mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
225 stars 77 forks source link

implement clikplus like array notations #1041

Open coolya opened 10 years ago

coolya commented 10 years ago

implement array notations like the one from clikplus which is a short cut for many for loop expressions on arrays.

http://www.cilkplus.org/tutorial-array-notation

For instance:

When A is the size of 10.

A[:] = 5;


for (i = 0; i < 10; i++) A[i] = 5;

sirinath commented 10 years ago

OK. Add following comment: Reshaping, re dimensioning, array slicing, indexing and selecting data, concatenating along dimensions, matrix and vector operations, vectorisation, etc. so the associated operations does not get forgotten.

coolya commented 10 years ago

Well don't expect this to happen anytime soon. First of all the team is busy with migrating to eclipse and other mbeddr related projects.

If you want to have this happening soon you will definitely have do it on your own.

sirinath commented 10 years ago

Why don't you stick with MPS only implementation for the time being?

coolya commented 10 years ago

By migrating to eclipse I mean managing the project handover. mbeddr will stick to MPS :)

sirinath commented 10 years ago

OK great.

I can wait for the above sugar. Once you have implemented vectorisation (converting loop to array notations) you can automatically convert the existing ugly loops into the neater concise representation. Functionally they are the same any way but more pleasing to the reader.

Thanks for considering this as a possible addition in the future.

Wouldn't it be the same team who would work on this in the future?