GitHub PullRequestReviewCommentEvent at 2014-06-13 03:28:00
Repository: nit
Actor: Morriar
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/privat/nit/pulls/comments/13737447","id":13737447,"diff_hunk":"@@ -0,0 +1,62 @@\n+# This file is part of NIT ( http://www.nitlanguage.org ).\n+#\n+# Copyright 2012 Jean Privat <jean@pryen.org>\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# The Nit virtual machine launcher\n+module nitvm\n+\n+import vm\n+\n+# Create a tool context to handle options and paths\n+var toolcontext = new ToolContext\n+toolcontext.tooldescription = \"Usage: nitvm [OPTION]... <file.nit>...\\nExecutes Nit programs with a virtual machine.\"\n+# Add an option \"-o\" to enable compatibility with the tests.sh script\n+var opt = new OptionString(\"compatibility (does noting)\", \"-o\")\n+toolcontext.option_context.add_option(opt)\n+var opt_mixins = new OptionArray(\"Additionals module to min-in\", \"-m\")","path":"src/nitvm.nit","position":28,"original_position":28,"commit_id":"61245227b53b83228ed92b3477949105a6878caa","original_commit_id":"61245227b53b83228ed92b3477949105a6878caa","user":{"login":"Morriar","id":583144,"avatar_url":"https://avatars.githubusercontent.com/u/583144?","gravatar_id":"45235bde1575071487435f6b0c4e44d7","url":"https://api.github.com/users/Morriar","html_url":"https://github.com/Morriar","followers_url":"https://api.github.com/users/Morriar/followers","following_url":"https://api.github.com/users/Morriar/following{/other_user}","gists_url":"https://api.github.com/users/Morriar/gists{/gist_id}","starred_url":"https://api.github.com/users/Morriar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morriar/subscriptions","organizations_url":"https://api.github.com/users/Morriar/orgs","repos_url":"https://api.github.com/users/Morriar/repos","events_url":"https://api.github.com/users/Morriar/events{/privacy}","received_events_url":"https://api.github.com/users/Morriar/received_events","type":"User","site_admin":false},"body":"*Additional modules?","created_at":"2014-06-13T03:28:00Z","updated_at":"2014-06-13T03:28:00Z","html_url":"https://github.com/privat/nit/pull/497#discussion_r13737447","pull_request_url":"https://api.github.com/repos/privat/nit/pulls/497","_links":{"self":{"href":"https://api.github.com/repos/privat/nit/pulls/comments/13737447"},"html":{"href":"https://github.com/privat/nit/pull/497#discussion_r13737447"},"pull_request":{"href":"https://api.github.com/repos/privat/nit/pulls/497"}}},"pull_request":{"url":"https://api.github.com/repos/privat/nit/pulls/497","id":17055615,"html_url":"https://github.com/privat/nit/pull/497","diff_url":"https://github.com/privat/nit/pull/497.diff","patch_url":"https://github.com/privat/nit/pull/497.patch","issue_url":"https://api.github.com/repos/privat/nit/issues/497","number":497,"state":"open","title":"Subtyping test with perfect hashing in the Nit vm","user":{"login":"jpages","id":2535352,"avatar_url":"https://avatars.githubusercontent.com/u/2535352?","gravatar_id":"197ba0933e01ded1675867bc1eea0052","url":"https://api.github.com/users/jpages","html_url":"https://github.com/jpages","followers_url":"https://api.github.com/users/jpages/followers","following_url":"https://api.github.com/users/jpages/following{/other_user}","gists_url":"https://api.github.com/users/jpages/gists{/gist_id}","starred_url":"https://api.github.com/users/jpages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpages/subscriptions","organizations_url":"https://api.github.com/users/jpages/orgs","repos_url":"https://api.github.com/users/jpages/repos","events_url":"https://api.github.com/users/jpages/events{/privacy}","received_events_url":"https://api.github.com/users/jpages/received_events","type":"User","site_admin":false},"body":"This pull request contains the first files for the Nit virtual machine.\r\n\r\nIn this PR, the vm constructs runtime structures for each MClass of the model. These structures represent virtual tables for classes. When constructed, the virtual tables only reserve memory for method pointer but the method call is made with the naive_interpreter mechanisms.   \r\n\r\nThe virtual machine can now performs subtyping test with the perfect hashing approach.\r\n\r\nIn the perfect_hashing module, numbering of items now start at 1 instead of 0.\r\n\r\n","created_at":"2014-06-12T13:50:15Z","updated_at":"2014-06-13T03:28:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56956de9117ea7bf0ffaa6135d4427a508aa369c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/privat/nit/pulls/497/commits","review_comments_url":"https://api.github.com/repos/privat/nit/pulls/497/comments","review_comment_url":"https://api.github.com/repos/privat/nit/pulls/comments/{number}","comments_url":"https://api.github.com/repos/privat/nit/issues/497/comments","statuses_url":"https://api.github.com/repos/privat/nit/statuses/61245227b53b83228ed92b3477949105a6878caa","head":{"label":"jpages:vm","ref":"vm","sha":"61245227b53b83228ed92b3477949105a6878caa","user":{"login":"jpages","id":2535352,"avatar_url":"https://avatars.githubusercontent.com/u/2535352?","gravatar_id":"197ba0933e01ded1675867bc1eea0052","url":"https://api.github.com/users/jpages","html_url":"https://github.com/jpages","followers_url":"https://api.github.com/users/jpages/followers","following_url":"https://api.github.com/users/jpages/following{/other_user}","gists_url":"https://api.github.com/users/jpages/gists{/gist_id}","starred_url":"https://api.github.com/users/jpages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpages/subscriptions","organizations_url":"https://api.github.com/users/jpages/orgs","repos_url":"https://api.github.com/users/jpages/repos","events_url":"https://api.github.com/users/jpages/events{/privacy}","received_events_url":"https://api.github.com/users/jpages/received_events","type":"User","site_admin":false},"repo":{"id":19516956,"name":"nit","full_name":"jpages/nit","owner":{"login":"jpages","id":2535352,"avatar_url":"https://avatars.githubusercontent.com/u/2535352?","gravatar_id":"197ba0933e01ded1675867bc1eea0052","url":"https://api.github.com/users/jpages","html_url":"https://github.com/jpages","followers_url":"https://api.github.com/users/jpages/followers","following_url":"https://api.github.com/users/jpages/following{/other_user}","gists_url":"https://api.github.com/users/jpages/gists{/gist_id}","starred_url":"https://api.github.com/users/jpages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpages/subscriptions","organizations_url":"https://api.github.com/users/jpages/orgs","repos_url":"https://api.github.com/users/jpages/repos","events_url":"https://api.github.com/users/jpages/events{/privacy}","received_events_url":"https://api.github.com/users/jpages/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpages/nit","description":"Nit language","fork":true,"url":"https://api.github.com/repos/jpages/nit","forks_url":"https://api.github.com/repos/jpages/nit/forks","keys_url":"https://api.github.com/repos/jpages/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpages/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpages/nit/teams","hooks_url":"https://api.github.com/repos/jpages/nit/hooks","issue_events_url":"https://api.github.com/repos/jpages/nit/issues/events{/number}","events_url":"https://api.github.com/repos/jpages/nit/events","assignees_url":"https://api.github.com/repos/jpages/nit/assignees{/user}","branches_url":"https://api.github.com/repos/jpages/nit/branches{/branch}","tags_url":"https://api.github.com/repos/jpages/nit/tags","blobs_url":"https://api.github.com/repos/jpages/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpages/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpages/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpages/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpages/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/jpages/nit/languages","stargazers_url":"https://api.github.com/repos/jpages/nit/stargazers","contributors_url":"https://api.github.com/repos/jpages/nit/contributors","subscribers_url":"https://api.github.com/repos/jpages/nit/subscribers","subscription_url":"https://api.github.com/repos/jpages/nit/subscription","commits_url":"https://api.github.com/repos/jpages/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpages/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpages/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpages/nit/issues/comments/{number}","contents_url":"https://api.github.com/repos/jpages/nit/contents/{+path}","compare_url":"https://api.github.com/repos/jpages/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpages/nit/merges","archive_url":"https://api.github.com/repos/jpages/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpages/nit/downloads","issues_url":"https://api.github.com/repos/jpages/nit/issues{/number}","pulls_url":"https://api.github.com/repos/jpages/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/jpages/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/jpages/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpages/nit/labels{/name}","releases_url":"https://api.github.com/repos/jpages/nit/releases{/id}","created_at":"2014-05-07T01:32:41Z","updated_at":"2014-06-12T13:55:55Z","pushed_at":"2014-06-12T13:55:56Z","git_url":"git://github.com/jpages/nit.git","ssh_url":"git@github.com:jpages/nit.git","clone_url":"https://github.com/jpages/nit.git","svn_url":"https://github.com/jpages/nit","homepage":"http://nitlanguage.org","size":40825,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"privat:master","ref":"master","sha":"03e36705d408d94c7c867ec5ee7e5e1ddefc7a3f","user":{"login":"privat","id":135828,"avatar_url":"https://avatars.githubusercontent.com/u/135828?","gravatar_id":"df707b6dfe51fbc364583485afd0a943","url":"https://api.github.com/users/privat","html_url":"https://github.com/privat","followers_url":"https://api.github.com/users/privat/followers","following_url":"https://api.github.com/users/privat/following{/other_user}","gists_url":"https://api.github.com/users/privat/gists{/gist_id}","starred_url":"https://api.github.com/users/privat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privat/subscriptions","organizations_url":"https://api.github.com/users/privat/orgs","repos_url":"https://api.github.com/users/privat/repos","events_url":"https://api.github.com/users/privat/events{/privacy}","received_events_url":"https://api.github.com/users/privat/received_events","type":"User","site_admin":false},"repo":{"id":328597,"name":"nit","full_name":"privat/nit","owner":{"login":"privat","id":135828,"avatar_url":"https://avatars.githubusercontent.com/u/135828?","gravatar_id":"df707b6dfe51fbc364583485afd0a943","url":"https://api.github.com/users/privat","html_url":"https://github.com/privat","followers_url":"https://api.github.com/users/privat/followers","following_url":"https://api.github.com/users/privat/following{/other_user}","gists_url":"https://api.github.com/users/privat/gists{/gist_id}","starred_url":"https://api.github.com/users/privat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privat/subscriptions","organizations_url":"https://api.github.com/users/privat/orgs","repos_url":"https://api.github.com/users/privat/repos","events_url":"https://api.github.com/users/privat/events{/privacy}","received_events_url":"https://api.github.com/users/privat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/privat/nit","description":"Nit language","fork":false,"url":"https://api.github.com/repos/privat/nit","forks_url":"https://api.github.com/repos/privat/nit/forks","keys_url":"https://api.github.com/repos/privat/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/privat/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/privat/nit/teams","hooks_url":"https://api.github.com/repos/privat/nit/hooks","issue_events_url":"https://api.github.com/repos/privat/nit/issues/events{/number}","events_url":"https://api.github.com/repos/privat/nit/events","assignees_url":"https://api.github.com/repos/privat/nit/assignees{/user}","branches_url":"https://api.github.com/repos/privat/nit/branches{/branch}","tags_url":"https://api.github.com/repos/privat/nit/tags","blobs_url":"https://api.github.com/repos/privat/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/privat/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/privat/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/privat/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/privat/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/privat/nit/languages","stargazers_url":"https://api.github.com/repos/privat/nit/stargazers","contributors_url":"https://api.github.com/repos/privat/nit/contributors","subscribers_url":"https://api.github.com/repos/privat/nit/subscribers","subscription_url":"https://api.github.com/repos/privat/nit/subscription","commits_url":"https://api.github.com/repos/privat/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/privat/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/privat/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/privat/nit/issues/comments/{number}","contents_url":"https://api.github.com/repos/privat/nit/contents/{+path}","compare_url":"https://api.github.com/repos/privat/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/privat/nit/merges","archive_url":"https://api.github.com/repos/privat/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/privat/nit/downloads","issues_url":"https://api.github.com/repos/privat/nit/issues{/number}","pulls_url":"https://api.github.com/repos/privat/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/privat/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/privat/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/privat/nit/labels{/name}","releases_url":"https://api.github.com/repos/privat/nit/releases{/id}","created_at":"2009-10-06T15:03:00Z","updated_at":"2014-06-13T01:04:10Z","pushed_at":"2014-06-13T00:57:16Z","git_url":"git://github.com/privat/nit.git","ssh_url":"git@github.com:privat/nit.git","clone_url":"https://github.com/privat/nit.git","svn_url":"https://github.com/privat/nit","homepage":"http://nitlanguage.org","size":52275,"stargazers_count":21,"watchers_count":21,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":27,"mirror_url":null,"open_issues_count":52,"forks":27,"open_issues":52,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/privat/nit/pulls/497"},"html":{"href":"https://github.com/privat/nit/pull/497"},"issue":{"href":"https://api.github.com/repos/privat/nit/issues/497"},"comments":{"href":"https://api.github.com/repos/privat/nit/issues/497/comments"},"review_comments":{"href":"https://api.github.com/repos/privat/nit/pulls/497/comments"},"review_comment":{"href":"https://api.github.com/repos/privat/nit/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/privat/nit/pulls/497/commits"},"statuses":{"href":"https://api.github.com/repos/privat/nit/statuses/61245227b53b83228ed92b3477949105a6878caa"}}}}