{"action":"created","comment":{"url":"https://api.github.com/repos/sondrele/thesis/pulls/comments/32347183","id":32347183,"diff_hunk":"@@ -669,13 +669,16 @@ \\subsection{Unsafe Code} % (fold)\n The borrow-checker can never be disabled, but for certain operations it will simply not work.\n \\autoref{lst:unsafe_reference} demonstrates this with the same example that was used in \\autoref{ssec:lifetimes}.\n We can see from this example that it is not allowed to return a reference to something that is allocated \\emph{within} an unsafe block, as this can result in use-after-free issues.\n-This also tells us that using an unsafe block is not the same as disabling the compiler, it is merely a mechanism for the programmer to handle the safety of a program in the cases where the compiler is unable to.\n+This also tells us that using an unsafe block is not the same as disabling the compiler, it is merely a mechanism for the programmer to take responsibility for the safety of part of the program in the cases where the compiler is unable to.","path":"background/rust.tex","position":14,"original_position":14,"commit_id":"f9cbb9ad94756f9a6a1e741a7e6f148636a23269","original_commit_id":"f9cbb9ad94756f9a6a1e741a7e6f148636a23269","user":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"body":"hva med:\r\n\"This also tells us that using an {\\unsafe} block is not the same as disabling the compiler, it is merely a mechanism for the programmer to `take responsibility for safety in the parts of the program where the compiler is unable to.`\"\r\n\r\nLitt rar setning generelt, men tror det blir bedre\r\n","created_at":"2015-06-12T19:33:12Z","updated_at":"2015-06-12T19:33:12Z","html_url":"https://github.com/sondrele/thesis/pull/104#discussion_r32347183","pull_request_url":"https://api.github.com/repos/sondrele/thesis/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/comments/32347183"},"html":{"href":"https://github.com/sondrele/thesis/pull/104#discussion_r32347183"},"pull_request":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/sondrele/thesis/pulls/104","id":37543066,"html_url":"https://github.com/sondrele/thesis/pull/104","diff_url":"https://github.com/sondrele/thesis/pull/104.diff","patch_url":"https://github.com/sondrele/thesis/pull/104.patch","issue_url":"https://api.github.com/repos/sondrele/thesis/issues/104","number":104,"state":"open","locked":false,"title":"Unsafe","user":{"login":"havardh","id":451855,"avatar_url":"https://avatars.githubusercontent.com/u/451855?v=3","gravatar_id":"","url":"https://api.github.com/users/havardh","html_url":"https://github.com/havardh","followers_url":"https://api.github.com/users/havardh/followers","following_url":"https://api.github.com/users/havardh/following{/other_user}","gists_url":"https://api.github.com/users/havardh/gists{/gist_id}","starred_url":"https://api.github.com/users/havardh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havardh/subscriptions","organizations_url":"https://api.github.com/users/havardh/orgs","repos_url":"https://api.github.com/users/havardh/repos","events_url":"https://api.github.com/users/havardh/events{/privacy}","received_events_url":"https://api.github.com/users/havardh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-12T08:49:49Z","updated_at":"2015-06-12T19:33:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"242aa8835353a2730eb33c5b03fc65902cce30ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sondrele/thesis/pulls/104/commits","review_comments_url":"https://api.github.com/repos/sondrele/thesis/pulls/104/comments","review_comment_url":"https://api.github.com/repos/sondrele/thesis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sondrele/thesis/issues/104/comments","statuses_url":"https://api.github.com/repos/sondrele/thesis/statuses/f9cbb9ad94756f9a6a1e741a7e6f148636a23269","head":{"label":"sondrele:unsafe","ref":"unsafe","sha":"f9cbb9ad94756f9a6a1e741a7e6f148636a23269","user":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"repo":{"id":29209107,"name":"thesis","full_name":"sondrele/thesis","owner":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sondrele/thesis","description":"","fork":false,"url":"https://api.github.com/repos/sondrele/thesis","forks_url":"https://api.github.com/repos/sondrele/thesis/forks","keys_url":"https://api.github.com/repos/sondrele/thesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sondrele/thesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sondrele/thesis/teams","hooks_url":"https://api.github.com/repos/sondrele/thesis/hooks","issue_events_url":"https://api.github.com/repos/sondrele/thesis/issues/events{/number}","events_url":"https://api.github.com/repos/sondrele/thesis/events","assignees_url":"https://api.github.com/repos/sondrele/thesis/assignees{/user}","branches_url":"https://api.github.com/repos/sondrele/thesis/branches{/branch}","tags_url":"https://api.github.com/repos/sondrele/thesis/tags","blobs_url":"https://api.github.com/repos/sondrele/thesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sondrele/thesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sondrele/thesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/sondrele/thesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sondrele/thesis/statuses/{sha}","languages_url":"https://api.github.com/repos/sondrele/thesis/languages","stargazers_url":"https://api.github.com/repos/sondrele/thesis/stargazers","contributors_url":"https://api.github.com/repos/sondrele/thesis/contributors","subscribers_url":"https://api.github.com/repos/sondrele/thesis/subscribers","subscription_url":"https://api.github.com/repos/sondrele/thesis/subscription","commits_url":"https://api.github.com/repos/sondrele/thesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/sondrele/thesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/sondrele/thesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/sondrele/thesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/sondrele/thesis/contents/{+path}","compare_url":"https://api.github.com/repos/sondrele/thesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sondrele/thesis/merges","archive_url":"https://api.github.com/repos/sondrele/thesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sondrele/thesis/downloads","issues_url":"https://api.github.com/repos/sondrele/thesis/issues{/number}","pulls_url":"https://api.github.com/repos/sondrele/thesis/pulls{/number}","milestones_url":"https://api.github.com/repos/sondrele/thesis/milestones{/number}","notifications_url":"https://api.github.com/repos/sondrele/thesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sondrele/thesis/labels{/name}","releases_url":"https://api.github.com/repos/sondrele/thesis/releases{/id}","created_at":"2015-01-13T20:20:06Z","updated_at":"2015-04-29T14:20:58Z","pushed_at":"2015-06-12T19:28:32Z","git_url":"git://github.com/sondrele/thesis.git","ssh_url":"git@github.com:sondrele/thesis.git","clone_url":"https://github.com/sondrele/thesis.git","svn_url":"https://github.com/sondrele/thesis","homepage":null,"size":8104,"stargazers_count":0,"watchers_count":0,"language":"TeX","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":37,"forks":0,"open_issues":37,"watchers":0,"default_branch":"master"}},"base":{"label":"sondrele:master","ref":"master","sha":"6c1bb8e23dadb287e28f43e49c7e260e8bdff418","user":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"repo":{"id":29209107,"name":"thesis","full_name":"sondrele/thesis","owner":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sondrele/thesis","description":"","fork":false,"url":"https://api.github.com/repos/sondrele/thesis","forks_url":"https://api.github.com/repos/sondrele/thesis/forks","keys_url":"https://api.github.com/repos/sondrele/thesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sondrele/thesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sondrele/thesis/teams","hooks_url":"https://api.github.com/repos/sondrele/thesis/hooks","issue_events_url":"https://api.github.com/repos/sondrele/thesis/issues/events{/number}","events_url":"https://api.github.com/repos/sondrele/thesis/events","assignees_url":"https://api.github.com/repos/sondrele/thesis/assignees{/user}","branches_url":"https://api.github.com/repos/sondrele/thesis/branches{/branch}","tags_url":"https://api.github.com/repos/sondrele/thesis/tags","blobs_url":"https://api.github.com/repos/sondrele/thesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sondrele/thesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sondrele/thesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/sondrele/thesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sondrele/thesis/statuses/{sha}","languages_url":"https://api.github.com/repos/sondrele/thesis/languages","stargazers_url":"https://api.github.com/repos/sondrele/thesis/stargazers","contributors_url":"https://api.github.com/repos/sondrele/thesis/contributors","subscribers_url":"https://api.github.com/repos/sondrele/thesis/subscribers","subscription_url":"https://api.github.com/repos/sondrele/thesis/subscription","commits_url":"https://api.github.com/repos/sondrele/thesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/sondrele/thesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/sondrele/thesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/sondrele/thesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/sondrele/thesis/contents/{+path}","compare_url":"https://api.github.com/repos/sondrele/thesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sondrele/thesis/merges","archive_url":"https://api.github.com/repos/sondrele/thesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sondrele/thesis/downloads","issues_url":"https://api.github.com/repos/sondrele/thesis/issues{/number}","pulls_url":"https://api.github.com/repos/sondrele/thesis/pulls{/number}","milestones_url":"https://api.github.com/repos/sondrele/thesis/milestones{/number}","notifications_url":"https://api.github.com/repos/sondrele/thesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sondrele/thesis/labels{/name}","releases_url":"https://api.github.com/repos/sondrele/thesis/releases{/id}","created_at":"2015-01-13T20:20:06Z","updated_at":"2015-04-29T14:20:58Z","pushed_at":"2015-06-12T19:28:32Z","git_url":"git://github.com/sondrele/thesis.git","ssh_url":"git@github.com:sondrele/thesis.git","clone_url":"https://github.com/sondrele/thesis.git","svn_url":"https://github.com/sondrele/thesis","homepage":null,"size":8104,"stargazers_count":0,"watchers_count":0,"language":"TeX","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":37,"forks":0,"open_issues":37,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/104"},"html":{"href":"https://github.com/sondrele/thesis/pull/104"},"issue":{"href":"https://api.github.com/repos/sondrele/thesis/issues/104"},"comments":{"href":"https://api.github.com/repos/sondrele/thesis/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/sondrele/thesis/statuses/f9cbb9ad94756f9a6a1e741a7e6f148636a23269"}}}}