{"action":"closed","number":759,"pull_request":{"url":"https://api.github.com/repos/ocaml/ocaml/pulls/759","id":81023511,"html_url":"https://github.com/ocaml/ocaml/pull/759","diff_url":"https://github.com/ocaml/ocaml/pull/759.diff","patch_url":"https://github.com/ocaml/ocaml/pull/759.patch","issue_url":"https://api.github.com/repos/ocaml/ocaml/issues/759","number":759,"state":"closed","locked":false,"title":"Add new module Targetint","user":{"login":"nojb","id":113560,"avatar_url":"https://avatars.githubusercontent.com/u/113560?v=3","gravatar_id":"","url":"https://api.github.com/users/nojb","html_url":"https://github.com/nojb","followers_url":"https://api.github.com/users/nojb/followers","following_url":"https://api.github.com/users/nojb/following{/other_user}","gists_url":"https://api.github.com/users/nojb/gists{/gist_id}","starred_url":"https://api.github.com/users/nojb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nojb/subscriptions","organizations_url":"https://api.github.com/users/nojb/orgs","repos_url":"https://api.github.com/users/nojb/repos","events_url":"https://api.github.com/users/nojb/events{/privacy}","received_events_url":"https://api.github.com/users/nojb/received_events","type":"User","site_admin":false},"body":"As per the discussion of #755, this PR introduces a new module `Targetint`, internal to the compiler which represents the native integers of the target processor.  The interface is almost exactly the same as the one of `Nativeint`, except that there are conversions to/from both `int32` and `int64` (modulo the target bit size), plus an additional function\r\n```ocaml\r\nval of_int_exn: int -> t\r\n```\r\nwhich raises a fatal compiler error if the `int` (which is `Sys.word_size` bits wide) cannot be represented exactly in the target bit size.\r\n\r\nNote that currently `Targetint.size` is exactly `Sys.word_size`.  Later on, the configure script could set this number to support a cross-compilation scenario.","created_at":"2016-08-11T20:18:15Z","updated_at":"2016-08-16T06:29:24Z","closed_at":"2016-08-16T06:29:24Z","merged_at":"2016-08-16T06:29:24Z","merge_commit_sha":"7bd658718078e899c3819460e40ccb7db7fe4b5b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ocaml/ocaml/pulls/759/commits","review_comments_url":"https://api.github.com/repos/ocaml/ocaml/pulls/759/comments","review_comment_url":"https://api.github.com/repos/ocaml/ocaml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ocaml/ocaml/issues/759/comments","statuses_url":"https://api.github.com/repos/ocaml/ocaml/statuses/8b1b81c8e5bf01f0b5549238251c19751a2a2da7","head":{"label":"nojb:targetint","ref":"targetint","sha":"8b1b81c8e5bf01f0b5549238251c19751a2a2da7","user":{"login":"nojb","id":113560,"avatar_url":"https://avatars.githubusercontent.com/u/113560?v=3","gravatar_id":"","url":"https://api.github.com/users/nojb","html_url":"https://github.com/nojb","followers_url":"https://api.github.com/users/nojb/followers","following_url":"https://api.github.com/users/nojb/following{/other_user}","gists_url":"https://api.github.com/users/nojb/gists{/gist_id}","starred_url":"https://api.github.com/users/nojb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nojb/subscriptions","organizations_url":"https://api.github.com/users/nojb/orgs","repos_url":"https://api.github.com/users/nojb/repos","events_url":"https://api.github.com/users/nojb/events{/privacy}","received_events_url":"https://api.github.com/users/nojb/received_events","type":"User","site_admin":false},"repo":{"id":20289314,"name":"ocaml","full_name":"nojb/ocaml","owner":{"login":"nojb","id":113560,"avatar_url":"https://avatars.githubusercontent.com/u/113560?v=3","gravatar_id":"","url":"https://api.github.com/users/nojb","html_url":"https://github.com/nojb","followers_url":"https://api.github.com/users/nojb/followers","following_url":"https://api.github.com/users/nojb/following{/other_user}","gists_url":"https://api.github.com/users/nojb/gists{/gist_id}","starred_url":"https://api.github.com/users/nojb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nojb/subscriptions","organizations_url":"https://api.github.com/users/nojb/orgs","repos_url":"https://api.github.com/users/nojb/repos","events_url":"https://api.github.com/users/nojb/events{/privacy}","received_events_url":"https://api.github.com/users/nojb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nojb/ocaml","description":"Read-only mirror of INRIA SVN","fork":true,"url":"https://api.github.com/repos/nojb/ocaml","forks_url":"https://api.github.com/repos/nojb/ocaml/forks","keys_url":"https://api.github.com/repos/nojb/ocaml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nojb/ocaml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nojb/ocaml/teams","hooks_url":"https://api.github.com/repos/nojb/ocaml/hooks","issue_events_url":"https://api.github.com/repos/nojb/ocaml/issues/events{/number}","events_url":"https://api.github.com/repos/nojb/ocaml/events","assignees_url":"https://api.github.com/repos/nojb/ocaml/assignees{/user}","branches_url":"https://api.github.com/repos/nojb/ocaml/branches{/branch}","tags_url":"https://api.github.com/repos/nojb/ocaml/tags","blobs_url":"https://api.github.com/repos/nojb/ocaml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nojb/ocaml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nojb/ocaml/git/refs{/sha}","trees_url":"https://api.github.com/repos/nojb/ocaml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nojb/ocaml/statuses/{sha}","languages_url":"https://api.github.com/repos/nojb/ocaml/languages","stargazers_url":"https://api.github.com/repos/nojb/ocaml/stargazers","contributors_url":"https://api.github.com/repos/nojb/ocaml/contributors","subscribers_url":"https://api.github.com/repos/nojb/ocaml/subscribers","subscription_url":"https://api.github.com/repos/nojb/ocaml/subscription","commits_url":"https://api.github.com/repos/nojb/ocaml/commits{/sha}","git_commits_url":"https://api.github.com/repos/nojb/ocaml/git/commits{/sha}","comments_url":"https://api.github.com/repos/nojb/ocaml/comments{/number}","issue_comment_url":"https://api.github.com/repos/nojb/ocaml/issues/comments{/number}","contents_url":"https://api.github.com/repos/nojb/ocaml/contents/{+path}","compare_url":"https://api.github.com/repos/nojb/ocaml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nojb/ocaml/merges","archive_url":"https://api.github.com/repos/nojb/ocaml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nojb/ocaml/downloads","issues_url":"https://api.github.com/repos/nojb/ocaml/issues{/number}","pulls_url":"https://api.github.com/repos/nojb/ocaml/pulls{/number}","milestones_url":"https://api.github.com/repos/nojb/ocaml/milestones{/number}","notifications_url":"https://api.github.com/repos/nojb/ocaml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nojb/ocaml/labels{/name}","releases_url":"https://api.github.com/repos/nojb/ocaml/releases{/id}","deployments_url":"https://api.github.com/repos/nojb/ocaml/deployments","created_at":"2014-05-29T09:45:11Z","updated_at":"2016-08-11T13:20:35Z","pushed_at":"2016-08-15T11:15:45Z","git_url":"git://github.com/nojb/ocaml.git","ssh_url":"git@github.com:nojb/ocaml.git","clone_url":"https://github.com/nojb/ocaml.git","svn_url":"https://github.com/nojb/ocaml","homepage":null,"size":157112,"stargazers_count":1,"watchers_count":1,"language":"OCaml","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"trunk"}},"base":{"label":"ocaml:trunk","ref":"trunk","sha":"8d0dcd72b3bce8e7f314159f9bfc43c8de59d103","user":{"login":"ocaml","id":1841483,"avatar_url":"https://avatars.githubusercontent.com/u/1841483?v=3","gravatar_id":"","url":"https://api.github.com/users/ocaml","html_url":"https://github.com/ocaml","followers_url":"https://api.github.com/users/ocaml/followers","following_url":"https://api.github.com/users/ocaml/following{/other_user}","gists_url":"https://api.github.com/users/ocaml/gists{/gist_id}","starred_url":"https://api.github.com/users/ocaml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocaml/subscriptions","organizations_url":"https://api.github.com/users/ocaml/orgs","repos_url":"https://api.github.com/users/ocaml/repos","events_url":"https://api.github.com/users/ocaml/events{/privacy}","received_events_url":"https://api.github.com/users/ocaml/received_events","type":"Organization","site_admin":false},"repo":{"id":6786166,"name":"ocaml","full_name":"ocaml/ocaml","owner":{"login":"ocaml","id":1841483,"avatar_url":"https://avatars.githubusercontent.com/u/1841483?v=3","gravatar_id":"","url":"https://api.github.com/users/ocaml","html_url":"https://github.com/ocaml","followers_url":"https://api.github.com/users/ocaml/followers","following_url":"https://api.github.com/users/ocaml/following{/other_user}","gists_url":"https://api.github.com/users/ocaml/gists{/gist_id}","starred_url":"https://api.github.com/users/ocaml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocaml/subscriptions","organizations_url":"https://api.github.com/users/ocaml/orgs","repos_url":"https://api.github.com/users/ocaml/repos","events_url":"https://api.github.com/users/ocaml/events{/privacy}","received_events_url":"https://api.github.com/users/ocaml/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ocaml/ocaml","description":"The core OCaml system: compilers, runtime system, base libraries","fork":false,"url":"https://api.github.com/repos/ocaml/ocaml","forks_url":"https://api.github.com/repos/ocaml/ocaml/forks","keys_url":"https://api.github.com/repos/ocaml/ocaml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ocaml/ocaml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ocaml/ocaml/teams","hooks_url":"https://api.github.com/repos/ocaml/ocaml/hooks","issue_events_url":"https://api.github.com/repos/ocaml/ocaml/issues/events{/number}","events_url":"https://api.github.com/repos/ocaml/ocaml/events","assignees_url":"https://api.github.com/repos/ocaml/ocaml/assignees{/user}","branches_url":"https://api.github.com/repos/ocaml/ocaml/branches{/branch}","tags_url":"https://api.github.com/repos/ocaml/ocaml/tags","blobs_url":"https://api.github.com/repos/ocaml/ocaml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ocaml/ocaml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ocaml/ocaml/git/refs{/sha}","trees_url":"https://api.github.com/repos/ocaml/ocaml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ocaml/ocaml/statuses/{sha}","languages_url":"https://api.github.com/repos/ocaml/ocaml/languages","stargazers_url":"https://api.github.com/repos/ocaml/ocaml/stargazers","contributors_url":"https://api.github.com/repos/ocaml/ocaml/contributors","subscribers_url":"https://api.github.com/repos/ocaml/ocaml/subscribers","subscription_url":"https://api.github.com/repos/ocaml/ocaml/subscription","commits_url":"https://api.github.com/repos/ocaml/ocaml/commits{/sha}","git_commits_url":"https://api.github.com/repos/ocaml/ocaml/git/commits{/sha}","comments_url":"https://api.github.com/repos/ocaml/ocaml/comments{/number}","issue_comment_url":"https://api.github.com/repos/ocaml/ocaml/issues/comments{/number}","contents_url":"https://api.github.com/repos/ocaml/ocaml/contents/{+path}","compare_url":"https://api.github.com/repos/ocaml/ocaml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ocaml/ocaml/merges","archive_url":"https://api.github.com/repos/ocaml/ocaml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ocaml/ocaml/downloads","issues_url":"https://api.github.com/repos/ocaml/ocaml/issues{/number}","pulls_url":"https://api.github.com/repos/ocaml/ocaml/pulls{/number}","milestones_url":"https://api.github.com/repos/ocaml/ocaml/milestones{/number}","notifications_url":"https://api.github.com/repos/ocaml/ocaml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ocaml/ocaml/labels{/name}","releases_url":"https://api.github.com/repos/ocaml/ocaml/releases{/id}","deployments_url":"https://api.github.com/repos/ocaml/ocaml/deployments","created_at":"2012-11-20T22:18:22Z","updated_at":"2016-08-15T17:47:23Z","pushed_at":"2016-08-16T06:29:24Z","git_url":"git://github.com/ocaml/ocaml.git","ssh_url":"git@github.com:ocaml/ocaml.git","clone_url":"https://github.com/ocaml/ocaml.git","svn_url":"https://github.com/ocaml/ocaml","homepage":"","size":245153,"stargazers_count":889,"watchers_count":889,"language":"OCaml","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":277,"mirror_url":null,"open_issues_count":130,"forks":277,"open_issues":130,"watchers":889,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/ocaml/ocaml/pulls/759"},"html":{"href":"https://github.com/ocaml/ocaml/pull/759"},"issue":{"href":"https://api.github.com/repos/ocaml/ocaml/issues/759"},"comments":{"href":"https://api.github.com/repos/ocaml/ocaml/issues/759/comments"},"review_comments":{"href":"https://api.github.com/repos/ocaml/ocaml/pulls/759/comments"},"review_comment":{"href":"https://api.github.com/repos/ocaml/ocaml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ocaml/ocaml/pulls/759/commits"},"statuses":{"href":"https://api.github.com/repos/ocaml/ocaml/statuses/8b1b81c8e5bf01f0b5549238251c19751a2a2da7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mshinwell","id":1315488,"avatar_url":"https://avatars.githubusercontent.com/u/1315488?v=3","gravatar_id":"","url":"https://api.github.com/users/mshinwell","html_url":"https://github.com/mshinwell","followers_url":"https://api.github.com/users/mshinwell/followers","following_url":"https://api.github.com/users/mshinwell/following{/other_user}","gists_url":"https://api.github.com/users/mshinwell/gists{/gist_id}","starred_url":"https://api.github.com/users/mshinwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshinwell/subscriptions","organizations_url":"https://api.github.com/users/mshinwell/orgs","repos_url":"https://api.github.com/users/mshinwell/repos","events_url":"https://api.github.com/users/mshinwell/events{/privacy}","received_events_url":"https://api.github.com/users/mshinwell/received_events","type":"User","site_admin":false},"comments":13,"review_comments":3,"commits":4,"additions":291,"deletions":1,"changed_files":4}}
{"actor":{"display_login":"mshinwell"}}