Does a library implementation or a user defined type have any explicit or implicit negative performance implications relative to native types?
Regards, --Jeff Kuehn, ORNL Igor Peshansky wrote: > Hi, Jeff, > > There is no built-in support for either of those features. > However, X10 1.7 has more advanced support for user-defined > functionality, which allows expressing them as derived > constructs. > > In 1.7, you can define your own unsigned integer type, and > overload the arithmetic and comparison operators appropriately. > > As for 64-bit array indices, the 1.7 language does allow you to > define a Rail with 64-bit indexing (after all, array indexing in > 1.7 is just function application, and one can overload that). > > I realise that this is a major inconvenience, and we will > certainly look into providing a more integrated solution (though > no promises on the timeframe). As stated above, any solution we > come up with will make these part of the libraries, rather than > alter the language spec. I'll let Nate expound on the plans for > adding these features to the standard libraries. > > Happy New Year! > Igor > > Jeff Kuehn <ku...@ornl.gov> wrote on 01/08/2009 02:58:04 PM: > >> Between December 2007 and July of 2008 we carried on a series of > exchanges >> regarding the addition of unsigned types to the X10 language. On > rereading >> the exchange, it seemed that we were disposed in favour of adding this >> feature. However, on reviewing the 1.7 specification, there does not > appear >> to be any reference to unsigned integers, nor does the 1.7.x version of > the >> compiler seem to support them. Will unsigned types be added to the > language? >> Also, in the same series of discussions, we noted a need for 64bit array > >> indices to accommodate large Rails. The discussion seemed to finalize > with >> "yes, but we need to think about how to do it right". Will 64 bit array >> indices be added to the language? >> >> Best Regards, >> --Jeff Kuehn, ORNL >> >> -------- Original Message -------- >> Subject: Unsigned Integer Types? >> Date: Wed, 12 Dec 2007 13:48:47 -0500 >> From: Jeff Kuehn <ku...@ornl.gov> >> Reply-To: ku...@ornl.gov >> To: x10-us...@lists.sf.net >> >> Has any thought been directed toward the addition of 32 bit and 64 bit >> unsigned integer types? (unsigned int, unsigned long) >> >> Regards, >> --Jeff >> >> -- >> Jeffery A. Kuehn >> Senior HPC Evaluation Researcher >> Future Technologies Group, Computer Science and Mathematics Division and >> Scientific Computing Group, National Center for Computational Sciences >> Oak Ridge National Laboratory >> One Bethel Valley Road MS6173 >> Oak Ridge, TN 37831 >> P:865.241.6134 F:865.241.2650 >> >> "The ability to advance the leading edge of technology is >> constrained by the ability to prune the trailing edge." >> -- Charles Dickens of Stanford University >> >> >> -- >> ======================================================================== >> Jeffery A. Kuehn, Senior HPC Evaluation Researcher >> Computer Science and Mathematics Division, Application Performance Tools >> National Center for Computational Sciences, Scientific Computing Group >> Institute for Advanced Architectures and Algorithms >> Extreme Scale System Center >> Oak Ridge National Laboratory >> One Bethel Valley Road MS6164 >> Oak Ridge, TN 37831 >> P:865.241.6134 F:865.241.4811 >> ======================================================================== >> "The most exciting phrase to hear in science, the one that heralds new >> discoveries, is not 'Eureka!' (I found it!) but 'That's funny....'" >> --Isaac Asimov ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users