Title: Directory names should have a standard naming convention. · Issue #31 · scijava/native-lib-loader · GitHub
Open Graph Title: Directory names should have a standard naming convention. · Issue #31 · scijava/native-lib-loader
X Title: Directory names should have a standard naming convention. · Issue #31 · scijava/native-lib-loader
Description: I might add one or another pull request at a later time which will sort out the folder names (retaining compatiblity, of course). Standard path name proposal Somethink like os-arch-bitness[-special] could work nicely and is a bit more ex...
Open Graph Description: I might add one or another pull request at a later time which will sort out the folder names (retaining compatiblity, of course). Standard path name proposal Somethink like os-arch-bitness[-special...
X Description: I might add one or another pull request at a later time which will sort out the folder names (retaining compatiblity, of course). Standard path name proposal Somethink like os-arch-bitness[-special...
Opengraph URL: https://github.com/scijava/native-lib-loader/issues/31
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Directory names should have a standard naming convention.","articleBody":"I might add one or another pull request at a later time which will sort out the folder names (retaining compatiblity, of course).\r\n\r\n## Standard path name proposal\r\n\r\nSomethink like `os-arch-bitness[-special]` could work nicely and is a bit more extensible. \r\n\r\n## Implementation details\r\n\r\nA small singleton instance (using an enum since we are on Java 6 now) would suffice for the default mappings. The Map could hold something like this: Map\u003cOsInfo, List\u003cString\u003e\u003e where the OsInfo is a simple POJO which holds the OS name, arch and bitness, and optionally a `special` fragment (like fp on ARM). The value is a list of search paths. The enum instance would only hold the defaults, though.\r\n\r\n## Configuration options\r\n\r\n* Users could supply additional paths via config file.\r\n* Users could also supply additional search paths dynamically by providing a new OsInfo object and a List of path fragments.\r\n* The new `Config` class would then load the defaults from the enum and add the additional entries.\r\n\r\n## Example entries for the defaults\r\n\r\n * Windows 64 x86-64\r\n * windows-amd64-64\r\n * windows_64 (for compatiblity)\r\n * Windows 32\r\n * windows-x86-32\r\n * windows_32 (for compatiblity)\r\n * Linux 64 bit\r\n * linux-amd64-64\r\n * linux_64 (compat)\r\n * Linux arm64\r\n * linux-armv7l-64\r\n\r\netc.\r\n\r\n## Other advantages\r\n\r\nWe could replace the big and unmaintainable `switch` statement with this lookup table. In fact, this is the main issue.\r\n\r\n\r\nI might create a pull request in the future for this.","author":{"url":"https://github.com/bmarwell","@type":"Person","name":"bmarwell"},"datePublished":"2019-04-03T09:54:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/31/native-lib-loader/issues/31"}
| 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:79b0d787-4320-80c8-dbca-50c2da01eb3d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C796:DD5F6:17926F0:2102FEF:69692284 |
| html-safe-nonce | 6532a3b3ecabb7270ab4367cb13dcd7eda0c4d9713d1897aec934061a136362e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzk2OkRENUY2OjE3OTI2RjA6MjEwMkZFRjo2OTY5MjI4NCIsInZpc2l0b3JfaWQiOiI4NjM3ODM1MzkzMzU4MTc2OTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5be7231a590499459a90ced806bdc526605f4f7ad093ddfeae16980615fb958e |
| hovercard-subject-tag | issue:428673841 |
| 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/scijava/native-lib-loader/31/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d13bc78b328270d095c8dac4481d50f5a098c19a390c8a56f0b32bca14fd63f/scijava/native-lib-loader/issues/31 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d13bc78b328270d095c8dac4481d50f5a098c19a390c8a56f0b32bca14fd63f/scijava/native-lib-loader/issues/31 |
| og:image:alt | I might add one or another pull request at a later time which will sort out the folder names (retaining compatiblity, of course). Standard path name proposal Somethink like os-arch-bitness[-special... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bmarwell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/native-lib-loader git https://github.com/scijava/native-lib-loader.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3805074 |
| octolytics-dimension-repository_nwo | scijava/native-lib-loader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3805074 |
| octolytics-dimension-repository_network_root_nwo | scijava/native-lib-loader |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width