{"action":"created","issue":{"url":"https://api.github.com/repos/kanaka/miniMAL/issues/1","labels_url":"https://api.github.com/repos/kanaka/miniMAL/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kanaka/miniMAL/issues/1/comments","events_url":"https://api.github.com/repos/kanaka/miniMAL/issues/1/events","html_url":"https://github.com/kanaka/miniMAL/issues/1","id":58993818,"number":1,"title":"Parser?","user":{"login":"abritinthebay","id":492797,"avatar_url":"https://avatars.githubusercontent.com/u/492797?v=3","gravatar_id":"","url":"https://api.github.com/users/abritinthebay","html_url":"https://github.com/abritinthebay","followers_url":"https://api.github.com/users/abritinthebay/followers","following_url":"https://api.github.com/users/abritinthebay/following{/other_user}","gists_url":"https://api.github.com/users/abritinthebay/gists{/gist_id}","starred_url":"https://api.github.com/users/abritinthebay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abritinthebay/subscriptions","organizations_url":"https://api.github.com/users/abritinthebay/orgs","repos_url":"https://api.github.com/users/abritinthebay/repos","events_url":"https://api.github.com/users/abritinthebay/events{/privacy}","received_events_url":"https://api.github.com/users/abritinthebay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-26T00:20:07Z","updated_at":"2015-02-27T03:57:59Z","closed_at":null,"body":"Seems like it would be (reasonably) trivial to write a parser for Lisp code (that was Lisp-0 compliant anyhow) by a simple regex.\r\n\r\nSomeone on Hacker News mentioned this for python:\r\n\r\n```def parse(s): return json.loads('['+re.sub('([\")])\\s*([\"(])','\\g<1>,\\g<2>',re.sub('[^()\\s]+','\"\\g<0>\"',s)).replace('(','[').replace(')',']')+']')````\r\n\r\nSeems like most of that should go 1-to-1 into a JSON regex (as naive as it is). \r\n\r\nJust a thought...."},"comment":{"url":"https://api.github.com/repos/kanaka/miniMAL/issues/comments/76326912","html_url":"https://github.com/kanaka/miniMAL/issues/1#issuecomment-76326912","issue_url":"https://api.github.com/repos/kanaka/miniMAL/issues/1","id":76326912,"user":{"login":"kanaka","id":70127,"avatar_url":"https://avatars.githubusercontent.com/u/70127?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaka","html_url":"https://github.com/kanaka","followers_url":"https://api.github.com/users/kanaka/followers","following_url":"https://api.github.com/users/kanaka/following{/other_user}","gists_url":"https://api.github.com/users/kanaka/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaka/subscriptions","organizations_url":"https://api.github.com/users/kanaka/orgs","repos_url":"https://api.github.com/users/kanaka/repos","events_url":"https://api.github.com/users/kanaka/events{/privacy}","received_events_url":"https://api.github.com/users/kanaka/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T03:57:59Z","updated_at":"2015-02-27T03:57:59Z","body":"@abritinthebay I look forward to the pull request with the parser/translator ;-)\r\n\r\nUnfortunately, performance is nowhere near as fast as native JS. The reason is because miniMAL is an interpreter and is not generating/compiling to JS (unlike something like ClojureScript). So even if [\"+\", 2, 3] happens multiple times in the code, there is a lot of miniMAL code that runs to perform the operation every time. "}}