{"action":"created","issue":{"url":"https://api.github.com/repos/acplt/open62541/issues/222","labels_url":"https://api.github.com/repos/acplt/open62541/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/acplt/open62541/issues/222/comments","events_url":"https://api.github.com/repos/acplt/open62541/issues/222/events","html_url":"https://github.com/acplt/open62541/issues/222","id":68947288,"number":222,"title":"Offlay Namespace node creation into an isolated header/c source","user":{"login":"ichrispa","id":2773265,"avatar_url":"https://avatars.githubusercontent.com/u/2773265?v=3","gravatar_id":"","url":"https://api.github.com/users/ichrispa","html_url":"https://github.com/ichrispa","followers_url":"https://api.github.com/users/ichrispa/followers","following_url":"https://api.github.com/users/ichrispa/following{/other_user}","gists_url":"https://api.github.com/users/ichrispa/gists{/gist_id}","starred_url":"https://api.github.com/users/ichrispa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichrispa/subscriptions","organizations_url":"https://api.github.com/users/ichrispa/orgs","repos_url":"https://api.github.com/users/ichrispa/repos","events_url":"https://api.github.com/users/ichrispa/events{/privacy}","received_events_url":"https://api.github.com/users/ichrispa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acplt/open62541/labels/easy%20hack","name":"easy hack","color":"0052cc"},{"url":"https://api.github.com/repos/acplt/open62541/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-16T15:22:21Z","updated_at":"2015-04-16T18:18:27Z","closed_at":null,"body":"Currently the servers namespace is being initialized based on hardcoded node creation in src/server/ua_server.c:UA_Server_new(void), mixing namespace creation up with the actual server init.\r\n\r\nI would like to request that the code after line 303 in ua_server.c, beginning at the bootstrapping of the namespace, is removed from Server_new() and isolated in a standalone header/c file. If this namespace is to be automatically generated, this header and c source will be overwritten. The Server_new() function would only call something akin to server_ns0_nodestore_initialize(server) (the function being in a standalone c file described by its own header).\r\n\r\nThis is only code relocation and should not influence any existing functions or concepts."},"comment":{"url":"https://api.github.com/repos/acplt/open62541/issues/comments/93806713","html_url":"https://github.com/acplt/open62541/issues/222#issuecomment-93806713","issue_url":"https://api.github.com/repos/acplt/open62541/issues/222","id":93806713,"user":{"login":"Stasik0","id":469170,"avatar_url":"https://avatars.githubusercontent.com/u/469170?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasik0","html_url":"https://github.com/Stasik0","followers_url":"https://api.github.com/users/Stasik0/followers","following_url":"https://api.github.com/users/Stasik0/following{/other_user}","gists_url":"https://api.github.com/users/Stasik0/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasik0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasik0/subscriptions","organizations_url":"https://api.github.com/users/Stasik0/orgs","repos_url":"https://api.github.com/users/Stasik0/repos","events_url":"https://api.github.com/users/Stasik0/events{/privacy}","received_events_url":"https://api.github.com/users/Stasik0/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T18:18:27Z","updated_at":"2015-04-16T18:18:27Z","body":"@jpfr: right, there is no difference between c++ and lua in this matter\n\nI just suggest to reuse code for compile and runtime parsing. Where runtime parsing implies a powerfull hardware\n\n> Am 16.04.2015 um 20:10 schrieb Julius Pfrommer <notifications@github.com>:\n> \n> @uleon this approach would generate code at compile time?\n> That's good for embedded targets then.\n> \n> @Stasik0 Only more powerful boxes (with an operating system) would parse the XML off a file at runtime. Instead of going for C++, why not add a nice'n'small scripting language (lua??) and expose just enough of the C-API to add the nodes...\n> Having a (functional + garbage-collected) scripting language with good libs makes non-speed-critical runtime work a lot less painful.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}