Hi, > It is not at present within Chapel (one could of course run preprocessors > before passing files to Chapel). We've long planned to have an 'include' > statement (as in C or LaTeX), but were not able to implement it due to our > traditional use of bison. Recent changes in how we use bison are expected to > simplify the implementation of this feature but it's a ways out yet.
Just out of curiosity, have you planned/thought/considered adding some C-like lexical preprocessing capabilities to Chapel, ran very early in compilation? > Regarding your question about higher-order functions - besides the usual > disclaimer that they do not work smoothly... > > Currently, we do not support generic functions as higher-order > functions. See if you can make your example work by making foo() > non-generic, i.e. providing a specific domain for the 'arr' formal. I tried that quickly but couldn't make it work. Well, not a problem anymore, since I figured a more clever way to deal with this and could refactor some large arrays away. However, do you have plans to have better support for higher-order functions? > Yes, I've made progress, but didn't get it in in time for the feature > freeze, and once it became obvious that was the case, I back-burnered it. > I'm going to hope to work on it more in the evenings this week. I think > commenting out those functions is the right thing to do... If you want > to peek over my shoulder, the branch in question is the following: > > https://github.com/bradcray/chapel/tree/arrayViewDomMap > > but that comes with a caution that it's quite a mess (lots of cleanup > required) and may not work when merged with others... Okay, I might have a look. Would you remind me what exact features (reindexing, rank change at least?) those changes are going to affect? And into another topic: do you know if anyone has wrote any graphic library or tools using Chapel? Specifically I'd be interested in functions to plot vector/scalar fields; something similar to what's found in matlab etc. And output to files would be fine, no need for application to create windows and all that hassle. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Chapel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-users
