60 points · by eslaught · 10y ago · 19 comments
So far I've focused on HPC users. I think focusing on a niche carries some risk that the language might be too narrow (and this is particularly true of HPC). But one thing I like about HPC is that HPC users really know what they're talking about when it comes to performance.
It gets me a server error. Is it still online ?
But did you find it was hard to implement enough of a language to run useful benchmarks?
In my experience, porting a ~5k line application is usually a week or two worth of work, and usually most of that is spent trying to understand what the original code is doing, rather than writing a lot of new code. Regent code is usually fairly compact compared to the sorts of things we benchmark against (C++ and MPI codes).
But I'm also curious about the parallelization costs, and other costs incurred by the programming model. The best way to explore those costs are to compare against an optimized sequential version that solves the same problem. Do you have any experiments which do that?
Understanding what it is useful for will probably help programmers apply it somewhere.
Here are a couple representative examples of what we've done so far:
* A hydrodynamics simulation on a 2D unstructured mesh (a pointer data structure): https://github.com/StanfordLegion/legion/blob/master/languag...
* A simulation of an electric circuit (a graph): https://github.com/StanfordLegion/legion/blob/master/languag...
(We have smaller toy examples that work with linked lists, trees, matrices, etc.: https://github.com/StanfordLegion/legion/tree/master/languag...)
var grid = ispace(int2d, { x = 4, y = 4 })
var matrix = region(grid, float)
But beyond that, most things are left to the programmer. E.g., if you want to build a mesh data structure, it's up to you to decide exactly how to build it. (Do you build a graph with pointers? Do you make it an N-dimensional grid? etc.) But my impression talking to application programmers is that most of the time, they want to make those decisions themselves anyway. A standard library might be nice, but it's never going to fit all use cases. So the first job of any language design is to make sure the abstractions are general enough to describe what users want.