{"action":"created","issue":{"url":"https://api.github.com/repos/bjornharrtell/jsts/issues/178","labels_url":"https://api.github.com/repos/bjornharrtell/jsts/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/bjornharrtell/jsts/issues/178/comments","events_url":"https://api.github.com/repos/bjornharrtell/jsts/issues/178/events","html_url":"https://github.com/bjornharrtell/jsts/issues/178","id":79553808,"number":178,"title":"Automatic port","user":{"login":"bjornharrtell","id":141030,"avatar_url":"https://avatars.githubusercontent.com/u/141030?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornharrtell","html_url":"https://github.com/bjornharrtell","followers_url":"https://api.github.com/users/bjornharrtell/followers","following_url":"https://api.github.com/users/bjornharrtell/following{/other_user}","gists_url":"https://api.github.com/users/bjornharrtell/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornharrtell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornharrtell/subscriptions","organizations_url":"https://api.github.com/users/bjornharrtell/orgs","repos_url":"https://api.github.com/users/bjornharrtell/repos","events_url":"https://api.github.com/users/bjornharrtell/events{/privacy}","received_events_url":"https://api.github.com/users/bjornharrtell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bjornharrtell","id":141030,"avatar_url":"https://avatars.githubusercontent.com/u/141030?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornharrtell","html_url":"https://github.com/bjornharrtell","followers_url":"https://api.github.com/users/bjornharrtell/followers","following_url":"https://api.github.com/users/bjornharrtell/following{/other_user}","gists_url":"https://api.github.com/users/bjornharrtell/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornharrtell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornharrtell/subscriptions","organizations_url":"https://api.github.com/users/bjornharrtell/orgs","repos_url":"https://api.github.com/users/bjornharrtell/repos","events_url":"https://api.github.com/users/bjornharrtell/events{/privacy}","received_events_url":"https://api.github.com/users/bjornharrtell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bjornharrtell/jsts/milestones/18","html_url":"https://github.com/bjornharrtell/jsts/milestones/1.0.0","labels_url":"https://api.github.com/repos/bjornharrtell/jsts/milestones/18/labels","id":1110728,"number":18,"title":"1.0.0","description":"","creator":{"login":"bjornharrtell","id":141030,"avatar_url":"https://avatars.githubusercontent.com/u/141030?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornharrtell","html_url":"https://github.com/bjornharrtell","followers_url":"https://api.github.com/users/bjornharrtell/followers","following_url":"https://api.github.com/users/bjornharrtell/following{/other_user}","gists_url":"https://api.github.com/users/bjornharrtell/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornharrtell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornharrtell/subscriptions","organizations_url":"https://api.github.com/users/bjornharrtell/orgs","repos_url":"https://api.github.com/users/bjornharrtell/repos","events_url":"https://api.github.com/users/bjornharrtell/events{/privacy}","received_events_url":"https://api.github.com/users/bjornharrtell/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2015-05-14T19:01:47Z","updated_at":"2015-09-30T16:46:36Z","due_on":"2016-09-27T22:00:00Z","closed_at":null},"comments":45,"created_at":"2015-05-22T18:11:25Z","updated_at":"2015-10-14T04:13:16Z","closed_at":null,"body":"It would be nice and probably possible to convert the upstream Java source to JavaScript using automatic methods. I've got a prototype up and running (https://github.com/bjornharrtell/jsts/tree/1.0.0-wip) using java2estree and astring to convert the original source.\r\n\r\nSome changes to the original source was needed, recording them here:\r\n* Removal of circular dependencies involving class hierarchies (i.e Geometry operation methods)\r\n* Do not use on demand imports (import with * symbol)\r\n* Rename fields to not have the same name as methods\r\n* Remove deprecations (reduces complex constructor overloads)\r\n* Remove reliance on null argument resolution for overloads (GeometryFactory methods and friends when creating empty geometries)\r\n* Avoid overloading on methods with more than 3 arguments (addFillet in OffsetSegmentGenerator)\r\n* If overloading inherited method(s), all inherited method signatures must be defined in subclass (CoordinateList)\r\n* Use push/pop on Stack not add (BufferSubgraph)\r\n\r\nModified original source:\r\nhttps://github.com/bjornharrtell/jts-topo-suite/tree/no_circular_deps\r\n\r\njava2estree:\r\nhttps://github.com/bjornharrtell/java2estree"},"comment":{"url":"https://api.github.com/repos/bjornharrtell/jsts/issues/comments/147930199","html_url":"https://github.com/bjornharrtell/jsts/issues/178#issuecomment-147930199","issue_url":"https://api.github.com/repos/bjornharrtell/jsts/issues/178","id":147930199,"user":{"login":"dr-jts","id":3529053,"avatar_url":"https://avatars.githubusercontent.com/u/3529053?v=3","gravatar_id":"","url":"https://api.github.com/users/dr-jts","html_url":"https://github.com/dr-jts","followers_url":"https://api.github.com/users/dr-jts/followers","following_url":"https://api.github.com/users/dr-jts/following{/other_user}","gists_url":"https://api.github.com/users/dr-jts/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-jts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-jts/subscriptions","organizations_url":"https://api.github.com/users/dr-jts/orgs","repos_url":"https://api.github.com/users/dr-jts/repos","events_url":"https://api.github.com/users/dr-jts/events{/privacy}","received_events_url":"https://api.github.com/users/dr-jts/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T04:13:16Z","updated_at":"2015-10-14T04:13:16Z","body":"Bjorn, could this technology be used to transpile JTS to languages other than JS?  Say Go or  C++  ?"}}