{"action":"created","comment":{"url":"https://api.github.com/repos/indutny/blog.ng/pulls/comments/41588951","id":41588951,"diff_hunk":"@@ -0,0 +1,327 @@\n+---\n+title: Sea of Nodes\n+date: 2015-10-08\n+---\n+\n+## Outline\n+\n+1. Compilers are translating\n+2. Text, AST - not ok for optimizations, need for data-flow graph\n+3. Usually control graph is totally separated from data-flow graph, CFG\n+4. Sea-of-nodes - same graph, two kinds of edges\n+5. Graph reductions\n+6. Reachability + const prop example\n+7. Scheduling stuff back in blocks\n+8. Generating machine code\n+\n+## Brief intro\n+\n+This post is going to be about the sea-of-nodes compiler concept that I have\n+recently learned.\n+\n+While it is completely not necessary, it may be useful to take a peek at the\n+some of my previous posts on JIT-compilers before reading this:\n+\n+* [How to start JIT-ting][0]\n+* [Allocating numbers][1]\n+* [SMIs and Doubles][2]\n+* [Deoptimize me not, v8][3]\n+\n+## Compilers = translators\n+\n+Compilers is something that every Software Engineer uses several times a day.","path":"src/d.sea-of-nodes.md","position":32,"original_position":32,"commit_id":"cf3db8617f7d4fbf3fc14bb3848d658bbbfaab0d","original_commit_id":"cf3db8617f7d4fbf3fc14bb3848d658bbbfaab0d","user":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"body":"Ack.","created_at":"2015-10-09T01:14:01Z","updated_at":"2015-10-09T01:14:01Z","html_url":"https://github.com/indutny/blog.ng/pull/1#discussion_r41588951","pull_request_url":"https://api.github.com/repos/indutny/blog.ng/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/indutny/blog.ng/pulls/comments/41588951"},"html":{"href":"https://github.com/indutny/blog.ng/pull/1#discussion_r41588951"},"pull_request":{"href":"https://api.github.com/repos/indutny/blog.ng/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/indutny/blog.ng/pulls/1","id":47181455,"html_url":"https://github.com/indutny/blog.ng/pull/1","diff_url":"https://github.com/indutny/blog.ng/pull/1.diff","patch_url":"https://github.com/indutny/blog.ng/pull/1.patch","issue_url":"https://api.github.com/repos/indutny/blog.ng/issues/1","number":1,"state":"open","locked":false,"title":"sea-of-nodes: review","user":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-08T17:23:38Z","updated_at":"2015-10-09T01:14:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"178f5ec5c01396f2609596aacd7b1aa5b1767d31","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/indutny/blog.ng/pulls/1/commits","review_comments_url":"https://api.github.com/repos/indutny/blog.ng/pulls/1/comments","review_comment_url":"https://api.github.com/repos/indutny/blog.ng/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indutny/blog.ng/issues/1/comments","statuses_url":"https://api.github.com/repos/indutny/blog.ng/statuses/cf3db8617f7d4fbf3fc14bb3848d658bbbfaab0d","head":{"label":"indutny:post/sea-of-nodes","ref":"post/sea-of-nodes","sha":"cf3db8617f7d4fbf3fc14bb3848d658bbbfaab0d","user":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"repo":{"id":43851254,"name":"blog.ng","full_name":"indutny/blog.ng","owner":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indutny/blog.ng","description":"Next version of blog","fork":false,"url":"https://api.github.com/repos/indutny/blog.ng","forks_url":"https://api.github.com/repos/indutny/blog.ng/forks","keys_url":"https://api.github.com/repos/indutny/blog.ng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indutny/blog.ng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indutny/blog.ng/teams","hooks_url":"https://api.github.com/repos/indutny/blog.ng/hooks","issue_events_url":"https://api.github.com/repos/indutny/blog.ng/issues/events{/number}","events_url":"https://api.github.com/repos/indutny/blog.ng/events","assignees_url":"https://api.github.com/repos/indutny/blog.ng/assignees{/user}","branches_url":"https://api.github.com/repos/indutny/blog.ng/branches{/branch}","tags_url":"https://api.github.com/repos/indutny/blog.ng/tags","blobs_url":"https://api.github.com/repos/indutny/blog.ng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indutny/blog.ng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indutny/blog.ng/git/refs{/sha}","trees_url":"https://api.github.com/repos/indutny/blog.ng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indutny/blog.ng/statuses/{sha}","languages_url":"https://api.github.com/repos/indutny/blog.ng/languages","stargazers_url":"https://api.github.com/repos/indutny/blog.ng/stargazers","contributors_url":"https://api.github.com/repos/indutny/blog.ng/contributors","subscribers_url":"https://api.github.com/repos/indutny/blog.ng/subscribers","subscription_url":"https://api.github.com/repos/indutny/blog.ng/subscription","commits_url":"https://api.github.com/repos/indutny/blog.ng/commits{/sha}","git_commits_url":"https://api.github.com/repos/indutny/blog.ng/git/commits{/sha}","comments_url":"https://api.github.com/repos/indutny/blog.ng/comments{/number}","issue_comment_url":"https://api.github.com/repos/indutny/blog.ng/issues/comments{/number}","contents_url":"https://api.github.com/repos/indutny/blog.ng/contents/{+path}","compare_url":"https://api.github.com/repos/indutny/blog.ng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indutny/blog.ng/merges","archive_url":"https://api.github.com/repos/indutny/blog.ng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indutny/blog.ng/downloads","issues_url":"https://api.github.com/repos/indutny/blog.ng/issues{/number}","pulls_url":"https://api.github.com/repos/indutny/blog.ng/pulls{/number}","milestones_url":"https://api.github.com/repos/indutny/blog.ng/milestones{/number}","notifications_url":"https://api.github.com/repos/indutny/blog.ng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indutny/blog.ng/labels{/name}","releases_url":"https://api.github.com/repos/indutny/blog.ng/releases{/id}","created_at":"2015-10-07T23:45:46Z","updated_at":"2015-10-07T23:56:05Z","pushed_at":"2015-10-08T17:23:39Z","git_url":"git://github.com/indutny/blog.ng.git","ssh_url":"git@github.com:indutny/blog.ng.git","clone_url":"https://github.com/indutny/blog.ng.git","svn_url":"https://github.com/indutny/blog.ng","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"indutny:master","ref":"master","sha":"0985166ed04896c2055b5697b878084fba767afe","user":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"repo":{"id":43851254,"name":"blog.ng","full_name":"indutny/blog.ng","owner":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indutny/blog.ng","description":"Next version of blog","fork":false,"url":"https://api.github.com/repos/indutny/blog.ng","forks_url":"https://api.github.com/repos/indutny/blog.ng/forks","keys_url":"https://api.github.com/repos/indutny/blog.ng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indutny/blog.ng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indutny/blog.ng/teams","hooks_url":"https://api.github.com/repos/indutny/blog.ng/hooks","issue_events_url":"https://api.github.com/repos/indutny/blog.ng/issues/events{/number}","events_url":"https://api.github.com/repos/indutny/blog.ng/events","assignees_url":"https://api.github.com/repos/indutny/blog.ng/assignees{/user}","branches_url":"https://api.github.com/repos/indutny/blog.ng/branches{/branch}","tags_url":"https://api.github.com/repos/indutny/blog.ng/tags","blobs_url":"https://api.github.com/repos/indutny/blog.ng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indutny/blog.ng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indutny/blog.ng/git/refs{/sha}","trees_url":"https://api.github.com/repos/indutny/blog.ng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indutny/blog.ng/statuses/{sha}","languages_url":"https://api.github.com/repos/indutny/blog.ng/languages","stargazers_url":"https://api.github.com/repos/indutny/blog.ng/stargazers","contributors_url":"https://api.github.com/repos/indutny/blog.ng/contributors","subscribers_url":"https://api.github.com/repos/indutny/blog.ng/subscribers","subscription_url":"https://api.github.com/repos/indutny/blog.ng/subscription","commits_url":"https://api.github.com/repos/indutny/blog.ng/commits{/sha}","git_commits_url":"https://api.github.com/repos/indutny/blog.ng/git/commits{/sha}","comments_url":"https://api.github.com/repos/indutny/blog.ng/comments{/number}","issue_comment_url":"https://api.github.com/repos/indutny/blog.ng/issues/comments{/number}","contents_url":"https://api.github.com/repos/indutny/blog.ng/contents/{+path}","compare_url":"https://api.github.com/repos/indutny/blog.ng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indutny/blog.ng/merges","archive_url":"https://api.github.com/repos/indutny/blog.ng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indutny/blog.ng/downloads","issues_url":"https://api.github.com/repos/indutny/blog.ng/issues{/number}","pulls_url":"https://api.github.com/repos/indutny/blog.ng/pulls{/number}","milestones_url":"https://api.github.com/repos/indutny/blog.ng/milestones{/number}","notifications_url":"https://api.github.com/repos/indutny/blog.ng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indutny/blog.ng/labels{/name}","releases_url":"https://api.github.com/repos/indutny/blog.ng/releases{/id}","created_at":"2015-10-07T23:45:46Z","updated_at":"2015-10-07T23:56:05Z","pushed_at":"2015-10-08T17:23:39Z","git_url":"git://github.com/indutny/blog.ng.git","ssh_url":"git@github.com:indutny/blog.ng.git","clone_url":"https://github.com/indutny/blog.ng.git","svn_url":"https://github.com/indutny/blog.ng","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/indutny/blog.ng/pulls/1"},"html":{"href":"https://github.com/indutny/blog.ng/pull/1"},"issue":{"href":"https://api.github.com/repos/indutny/blog.ng/issues/1"},"comments":{"href":"https://api.github.com/repos/indutny/blog.ng/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/indutny/blog.ng/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/indutny/blog.ng/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indutny/blog.ng/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/indutny/blog.ng/statuses/cf3db8617f7d4fbf3fc14bb3848d658bbbfaab0d"}}}}