jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • X10
  • XTENLANG-963

Remove Rail / Array distinction

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: X10 2.0.1
  • Fix Version/s: X10 2.2
  • Component/s: Class Libraries
  • Labels:
    None

Description

The Rail class is essentially a restricted case (one-dimensional, zero-based, convex) of Array. Assuming we would also like immutable arrays (see XTENLANG-787), then ValRail is a restricted case of an immutable Array.

At the moment, code using {{Array(1){zeroBased}}} suffers a significant performance penalty compared to using Rail or ValRail. It would be nice if application programmers did not need to worry about this distinction, i.e. if Rail, ValRail were just high performance concrete implementations within the Array type hierarchy, created in the same way as other arrays.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    arrayLiteralPatch.txt
    13/Sep/10 3:47 PM
    9 kB
    David Grove

Issue Links

is depended upon by

Task - A task that needs to be done. XTENLANG-962 Array library redesign

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
David Grove added a comment - 16/Jul/10 10:30 AM

Major goal of 2.1.0 is to make this change, so marking it as critical.

Show
David Grove added a comment - 16/Jul/10 10:30 AM Major goal of 2.1.0 is to make this change, so marking it as critical.
Hide
Permalink
David Grove added a comment - 13/Sep/10 3:47 PM

Patch to compiler/runtime to interpret [a,b,c,...] as an Array literal instead of a ValRail literal.

Can't commit yet because some work needs to be done in the implementation of RectRegion first to avoid infinite regress....RectRegion to be changed to use an IndexedMemoryChunk[int] to hold the backing ints. not a ValRail (which in 2.1 will become an Array).

Show
David Grove added a comment - 13/Sep/10 3:47 PM Patch to compiler/runtime to interpret [a,b,c,...] as an Array literal instead of a ValRail literal. Can't commit yet because some work needs to be done in the implementation of RectRegion first to avoid infinite regress....RectRegion to be changed to use an IndexedMemoryChunk[int] to hold the backing ints. not a ValRail (which in 2.1 will become an Array).
Hide
Permalink
David Grove added a comment - 15/Dec/10 11:01 AM

bulk move of all unresolved issues from 2.1.1 to 2.1.2

Show
David Grove added a comment - 15/Dec/10 11:01 AM bulk move of all unresolved issues from 2.1.1 to 2.1.2
Hide
Permalink
David Grove added a comment - 08/Feb/11 10:49 AM

defer remaining 2.1.2 issues to 2.2.0

Show
David Grove added a comment - 08/Feb/11 10:49 AM defer remaining 2.1.2 issues to 2.2.0
Hide
Permalink
David Grove added a comment - 04/Apr/11 9:03 PM

r21145 changed Rail.x10 to

public type Rail[T] = Array[T]{self.rank==1,self.zeroBased,self.rect,self.rail};
Show
David Grove added a comment - 04/Apr/11 9:03 PM r21145 changed Rail.x10 to
public type Rail[T] = Array[T]{self.rank==1,self.zeroBased,self.rect,self.rail};
Hide
Permalink
David Grove added a comment - 22/May/11 8:36 AM

bulk close of all 2.2.0 resolved issues.

Show
David Grove added a comment - 22/May/11 8:36 AM bulk close of all 2.2.0 resolved issues.

People

  • Assignee:
    David Grove
    Reporter:
    Josh Milthorpe
Vote (0)
Watch (0)

Dates

  • Created:
    08/Feb/10 10:20 PM
    Updated:
    22/May/11 8:36 AM
    Resolved:
    04/Apr/11 9:03 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.