Title: Notes · Issue #176 · nodegit/nodegit · GitHub
Open Graph Title: Notes · Issue #176 · nodegit/nodegit
X Title: Notes · Issue #176 · nodegit/nodegit
Description: @3y3 these notes might be handy to you: -- className - hardcoded - filename - generated from keyName + .h - jsClassName - generated from className minus any leading Git - cppClassName - generated from className - functions - generated by...
Open Graph Description: @3y3 these notes might be handy to you: -- className - hardcoded - filename - generated from keyName + .h - jsClassName - generated from className minus any leading Git - cppClassName - generated f...
X Description: @3y3 these notes might be handy to you: -- className - hardcoded - filename - generated from keyName + .h - jsClassName - generated from className minus any leading Git - cppClassName - generated f...
Opengraph URL: https://github.com/nodegit/nodegit/issues/176
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Notes","articleBody":"@3y3 these notes might be handy to you:\n\n``` markdown\n-- className - hardcoded\n- filename - generated from keyName + .h\n- jsClassName - generated from className minus any leading Git\n- cppClassName - generated from className\n\n- functions - generated by iterating the functions object, verify `file` attribute\n - cFunctionName - generated by keyName\n - jsFunctionName - generated from lowercased functionName\n - cppFunctionName - generated from functionName\n -- isAsync - hardcoded\n -- isConstructorMethod - harcoded\n -- functionName -hardcoded\n - return - generated from return\n - cType - generated from return.type\n - cppClassName - (TODO create dictionary of cType to cppClassName)\n - jsClassName - (TODO create dictionary of cType to jsClassName)\n -- isErrorCode - hardcoded for now\n -- args\n -- name - generated from args.name\n -- ctype - generated from args.ctype\n -- cppClassName - (TODO create dictionary of cType to cppClassName)\n -- jsClassName - (TODO create dictionary of cType to jsClassName)\n -- comment - comment\n\n\nis true when the first argument is the base type and **\n isConstructorMethod: true\n\n is !isConstructorMethod always\n isPrototypeMethod: false\n\n\n\n----------\n\n\nmissing isErrorCode\ncpp and js class names were backward\n\n- had to find the cType by hand for every class. created each one automatically. was able to tweak code with settings.\n\nnew2 -\u003c\u003c rename this somehow, collision in C++ land\n\nmissing sys calls, looks like these are necessary for proper backends support\n\nchange base.cc to nodegit.cc to avoid future conflicts\n\n-----\n\n\n- Compile libgit2 with emscripten.\n- Generate JS bindings for Node.\n- Generate JS bindings for Browser.\n\n----\n\nLook into gifsicle emscripten for webworker information\n\ncurrently mounting the exact file path inside of emscripten instead of binding\nto a randomly generated location that will not conflict and then mapping\nmanually.\n\n- need browser.js to handle browserify build\n\n--- Resources\nhttp://www.rehanjaffer.com/compiling-c-to-javascript-jquery-with-emscripten/\n\n-- threads.init could spawn webworkers.\n\n\n\n-------------------------------------------------------------------------------\n\ndependencies are missing stuff like node_buffer. how to detect?\n\nisSelf:\n - if not the first argument and the same type as the file cType, then it's self.\n\nisReturn:\n - if the first argument and the same type as the file cType, then it's return.\n\nisErrorCode: \n - if there is an isReturn in the arguments and the return value is an int, it's an\n errorCode\n\nisAsync:\n - has an isReturn argument, if the return value is not an int, it's synchronous\n\nshouldAlloc:\n - wtf is this?\n\nisFree:\n - No idea??? investigate in templates\n\ncopy:\n - investigate in templates\n\nshouldAlloc:\n - investigate in templates\n\njsName:\n - investigate in templates\n\nsize:\n - investigate in templates\n\nisOptional:\n - investigate in templates\n\nadditionalCast:\n - set on a per error basis\n\nisPayload:\n - investigate in templates\n\narrayElementCppClassName:\n - investigate in templates\n\n-----\n\nfields:\n- \"jsFunctionName\": \"name\", | inferred from name\n- \"cppFunctionName\": \"Name\", | inferred from name\n- \"name\": \"name\", | set\n- \"cType\": \"const char *\", | set\n- \"cppClassName\": \"String\", | inferred from cType\n- \"jsClassName\": \"String\" | inferred from cType\n```\n","author":{"url":"https://github.com/tbranyen","@type":"Person","name":"tbranyen"},"datePublished":"2014-06-12T04:19:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/176/nodegit/issues/176"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:98028f67-80c8-03b5-2dea-31062054e394 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99E6:34F2D1:3A92B:4AF72:6A5E653E |
| html-safe-nonce | 5589ba5020097ada8efeacf583246e5e4788975fee69b62ceb8186a5aa2adf56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUU2OjM0RjJEMTozQTkyQjo0QUY3Mjo2QTVFNjUzRSIsInZpc2l0b3JfaWQiOiI3ODAxMDI1MDA2NDY2MzkzNDA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4deeabb0887dfba8cb21d49edda1ef02db62cf975a9f19628101f489f2f06a6f |
| hovercard-subject-tag | issue:35549095 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86d7bfb670232cfd5848fe96f902b2e16ef962dab1954209b37bd3ed9f4df491/nodegit/nodegit/issues/176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86d7bfb670232cfd5848fe96f902b2e16ef962dab1954209b37bd3ed9f4df491/nodegit/nodegit/issues/176 |
| og:image:alt | @3y3 these notes might be handy to you: -- className - hardcoded - filename - generated from keyName + .h - jsClassName - generated from className minus any leading Git - cppClassName - generated f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tbranyen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5684292e6b02f9c72a31f9bc29d1fa47afbeda5424e76fb5f0b7c08766757177 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d151d247da13e8abadf6fd7f5a5f8659dae9a8d0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width