{"action":"created","issue":{"url":"https://api.github.com/repos/C0deH4cker/Fission/issues/2","labels_url":"https://api.github.com/repos/C0deH4cker/Fission/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/C0deH4cker/Fission/issues/2/comments","events_url":"https://api.github.com/repos/C0deH4cker/Fission/issues/2/events","html_url":"https://github.com/C0deH4cker/Fission/issues/2","id":72620755,"number":2,"title":"Add debug component","user":{"login":"mbuettner","id":1846708,"avatar_url":"https://avatars.githubusercontent.com/u/1846708?v=3","gravatar_id":"","url":"https://api.github.com/users/mbuettner","html_url":"https://github.com/mbuettner","followers_url":"https://api.github.com/users/mbuettner/followers","following_url":"https://api.github.com/users/mbuettner/following{/other_user}","gists_url":"https://api.github.com/users/mbuettner/gists{/gist_id}","starred_url":"https://api.github.com/users/mbuettner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbuettner/subscriptions","organizations_url":"https://api.github.com/users/mbuettner/orgs","repos_url":"https://api.github.com/users/mbuettner/repos","events_url":"https://api.github.com/users/mbuettner/events{/privacy}","received_events_url":"https://api.github.com/users/mbuettner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-02T09:34:52Z","updated_at":"2015-09-04T07:52:04Z","closed_at":null,"body":"A debug component would be really useful which prints something like\r\n\r\n    Atom at (x,y) at tick t: (mass, energy)\r\n\r\nwithout consuming the atom. I'm happy to implement this and send you a pull request, but I was wondering whether you would like to use a specific of the remaining reserved characters? If not, I propose `` ` ``."},"comment":{"url":"https://api.github.com/repos/C0deH4cker/Fission/issues/comments/137671263","html_url":"https://github.com/C0deH4cker/Fission/issues/2#issuecomment-137671263","issue_url":"https://api.github.com/repos/C0deH4cker/Fission/issues/2","id":137671263,"user":{"login":"C0deH4cker","id":1310775,"avatar_url":"https://avatars.githubusercontent.com/u/1310775?v=3","gravatar_id":"","url":"https://api.github.com/users/C0deH4cker","html_url":"https://github.com/C0deH4cker","followers_url":"https://api.github.com/users/C0deH4cker/followers","following_url":"https://api.github.com/users/C0deH4cker/following{/other_user}","gists_url":"https://api.github.com/users/C0deH4cker/gists{/gist_id}","starred_url":"https://api.github.com/users/C0deH4cker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C0deH4cker/subscriptions","organizations_url":"https://api.github.com/users/C0deH4cker/orgs","repos_url":"https://api.github.com/users/C0deH4cker/repos","events_url":"https://api.github.com/users/C0deH4cker/events{/privacy}","received_events_url":"https://api.github.com/users/C0deH4cker/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T07:52:04Z","updated_at":"2015-09-04T07:52:04Z","body":"I think I've decided on how to implement debugging in Fission (for now at least). I'd like to save actual characters for components that have uses besides debugging, so I won't be adding any new components to help with debugging. Instead, I'll add a new option to the Fission interpreter that allows you to input a second file, a debug info file. This is like a \"shadow\" of the source file, in that it should match the input file's 2D grid but with different contents. What I mean by this is that there will be some character command for printing the atom's (mass, energy) pair, let's just say `X`. If `X` is in row 4 column 3 of the debug info file, then atoms which hit the component at row 4 column 3 in the code file will print their (mass, energy). This is probably best explained with an example:\r\n\r\n```\r\nZ~]Z?L\r\nK  A /\r\n\\!/;\r\n```\r\n\r\nThat's our old friend, tac.fsn (reverse stdin). Let's use this as the debug file:\r\n\r\n```\r\nX.....\r\n......\r\n....\r\n```\r\n\r\nThis would print the (mass, energy) of every atom that hits the top-left Z component, the branch right after popping from the stack. Of course there can be many different debug components, and they will likely trigger at different times (pre/post action). I may even add a way to combine multiple debug output options. Or I could go crazy and allow the user to pass a path of a shared library to be loaded to add its own debug components and actions. Who knows?"}}