{"action":"created","issue":{"url":"https://api.github.com/repos/moai/luamongo/issues/39","labels_url":"https://api.github.com/repos/moai/luamongo/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/moai/luamongo/issues/39/comments","events_url":"https://api.github.com/repos/moai/luamongo/issues/39/events","html_url":"https://github.com/moai/luamongo/pull/39","id":54832955,"number":39,"title":"LuaJIT implementation","user":{"login":"iryont","id":1970983,"avatar_url":"https://avatars.githubusercontent.com/u/1970983?v=3","gravatar_id":"","url":"https://api.github.com/users/iryont","html_url":"https://github.com/iryont","followers_url":"https://api.github.com/users/iryont/followers","following_url":"https://api.github.com/users/iryont/following{/other_user}","gists_url":"https://api.github.com/users/iryont/gists{/gist_id}","starred_url":"https://api.github.com/users/iryont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iryont/subscriptions","organizations_url":"https://api.github.com/users/iryont/orgs","repos_url":"https://api.github.com/users/iryont/repos","events_url":"https://api.github.com/users/iryont/events{/privacy}","received_events_url":"https://api.github.com/users/iryont/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T01:28:09Z","updated_at":"2015-01-20T08:43:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/moai/luamongo/pulls/39","html_url":"https://github.com/moai/luamongo/pull/39","diff_url":"https://github.com/moai/luamongo/pull/39.diff","patch_url":"https://github.com/moai/luamongo/pull/39.patch"},"body":"There is an additional change of \"-fno-strict-aliasing\" which is simply required for a certain version of gcc due to error: \"dereferencing type-punned pointer will break strict-aliasing rules\"\r\n\r\nAlso, we are still missing the ability to chose between LuaJIT / Lua5.1 and Lua5.2 (some changes in Makefile are required)."},"comment":{"url":"https://api.github.com/repos/moai/luamongo/issues/comments/70621200","html_url":"https://github.com/moai/luamongo/pull/39#issuecomment-70621200","issue_url":"https://api.github.com/repos/moai/luamongo/issues/39","id":70621200,"user":{"login":"pakozm","id":2655921,"avatar_url":"https://avatars.githubusercontent.com/u/2655921?v=3","gravatar_id":"","url":"https://api.github.com/users/pakozm","html_url":"https://github.com/pakozm","followers_url":"https://api.github.com/users/pakozm/followers","following_url":"https://api.github.com/users/pakozm/following{/other_user}","gists_url":"https://api.github.com/users/pakozm/gists{/gist_id}","starred_url":"https://api.github.com/users/pakozm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pakozm/subscriptions","organizations_url":"https://api.github.com/users/pakozm/orgs","repos_url":"https://api.github.com/users/pakozm/repos","events_url":"https://api.github.com/users/pakozm/events{/privacy}","received_events_url":"https://api.github.com/users/pakozm/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T08:43:21Z","updated_at":"2015-01-20T08:43:21Z","body":"I think LuaJIT is compatible with modules compiled with Lua 5.1, Is it true? If this is the case, we can modify the Makefile to have a variable, for example `LUAVERSION` which can be initialized as:\r\n```\r\nLUAVERSION = `( lua -e 'print(_VERSION)' || lua5.2 -e 'print(_VERSION)' || lua5.1 -e 'print(_VERSION)' || luajit -e 'print(_VERSION') ) | cut -d' ' -f 2`\r\n```\r\n\r\nThis statement can initialize the LUAVERSION as 5.1 or 5.2 depending in the installation in the system. In case the user wants to force a value, it can be given to `make LUAVERSION=5.1`\r\nI will annotate some lines in the makefile to make clear the changes."}}