{"action":"created","issue":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/11749","repository_url":"https://api.github.com/repos/chapel-lang/chapel","labels_url":"https://api.github.com/repos/chapel-lang/chapel/issues/11749/labels{/name}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/issues/11749/comments","events_url":"https://api.github.com/repos/chapel-lang/chapel/issues/11749/events","html_url":"https://github.com/chapel-lang/chapel/issues/11749","id":386409438,"node_id":"MDU6SXNzdWUzODY0MDk0Mzg=","number":11749,"title":"Should Chapel users be able to request byte or codepoint indexing explicitly?","user":{"login":"dmk42","id":20049827,"node_id":"MDQ6VXNlcjIwMDQ5ODI3","avatar_url":"https://avatars0.githubusercontent.com/u/20049827?v=4","gravatar_id":"","url":"https://api.github.com/users/dmk42","html_url":"https://github.com/dmk42","followers_url":"https://api.github.com/users/dmk42/followers","following_url":"https://api.github.com/users/dmk42/following{/other_user}","gists_url":"https://api.github.com/users/dmk42/gists{/gist_id}","starred_url":"https://api.github.com/users/dmk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmk42/subscriptions","organizations_url":"https://api.github.com/users/dmk42/orgs","repos_url":"https://api.github.com/users/dmk42/repos","events_url":"https://api.github.com/users/dmk42/events{/privacy}","received_events_url":"https://api.github.com/users/dmk42/received_events","type":"User","site_admin":false},"labels":[{"id":496591534,"node_id":"MDU6TGFiZWw0OTY1OTE1MzQ=","url":"https://api.github.com/repos/chapel-lang/chapel/labels/area:%20Libraries","name":"area: Libraries","color":"d4c5f9","default":false},{"id":112762321,"node_id":"MDU6TGFiZWwxMTI3NjIzMjE=","url":"https://api.github.com/repos/chapel-lang/chapel/labels/type:%20Design","name":"type: Design","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-01T01:53:01Z","updated_at":"2018-12-03T22:45:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Current status\r\nChapel users can request byte or codepoint indexing explicitly.\r\n\r\n### Advantages\r\nWith string data stored in a multibyte format such as UTF-8, random access can occur faster when done by byte.  Codepoint indexing requires traversing the string to count the number of codepoints, yet is still useful for many situations.  Also, being able to specify the unit of indexing makes Chapel more flexible, and able to handle more situations, such as strings that contain data other than multibyte characters.\r\n\r\n### Disadvantages\r\nIf the only way to index is by byte, slow indexing will not be an issue.  If the only way to index is by codepoint, strings that contain only multibyte characters can be indexed by codepoint less verbosely."},"comment":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/comments/443899483","html_url":"https://github.com/chapel-lang/chapel/issues/11749#issuecomment-443899483","issue_url":"https://api.github.com/repos/chapel-lang/chapel/issues/11749","id":443899483,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzg5OTQ4Mw==","user":{"login":"gbtitus","id":7740880,"node_id":"MDQ6VXNlcjc3NDA4ODA=","avatar_url":"https://avatars3.githubusercontent.com/u/7740880?v=4","gravatar_id":"","url":"https://api.github.com/users/gbtitus","html_url":"https://github.com/gbtitus","followers_url":"https://api.github.com/users/gbtitus/followers","following_url":"https://api.github.com/users/gbtitus/following{/other_user}","gists_url":"https://api.github.com/users/gbtitus/gists{/gist_id}","starred_url":"https://api.github.com/users/gbtitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbtitus/subscriptions","organizations_url":"https://api.github.com/users/gbtitus/orgs","repos_url":"https://api.github.com/users/gbtitus/repos","events_url":"https://api.github.com/users/gbtitus/events{/privacy}","received_events_url":"https://api.github.com/users/gbtitus/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T22:45:01Z","updated_at":"2018-12-03T22:45:01Z","author_association":"MEMBER","body":"Allowing both seems nice from a functionality point of view, and assuming that whatever we have to do to not rule out codepoint indexing doesn't harm the speed of byte indexing."}}
{"actor":{"display_login":"gbtitus"}}