{"id":24756721,"url":"https://github.com/randomhashtags/swift-optimal-memory-layout","last_synced_at":"2025-03-23T07:29:42.016Z","repository":{"id":273155539,"uuid":"918849985","full_name":"RandomHashTags/swift-optimal-memory-layout","owner":"RandomHashTags","description":"Declare your Swift variables using a Macro for optimal Memory Layout.","archived":false,"fork":false,"pushed_at":"2025-02-03T16:14:27.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T11:45:02.812Z","etag":null,"topics":["memory-management","optimization","swift","swift-macro"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RandomHashTags.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-19T02:47:14.000Z","updated_at":"2025-02-03T16:14:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"975b576b-3f5d-4c51-84aa-32e62a95161e","html_url":"https://github.com/RandomHashTags/swift-optimal-memory-layout","commit_stats":null,"previous_names":["randomhashtags/swift-optimal-memory-layout"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomHashTags%2Fswift-optimal-memory-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomHashTags%2Fswift-optimal-memory-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomHashTags%2Fswift-optimal-memory-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomHashTags%2Fswift-optimal-memory-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RandomHashTags","download_url":"https://codeload.github.com/RandomHashTags/swift-optimal-memory-layout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245070819,"owners_count":20556184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["memory-management","optimization","swift","swift-macro"],"created_at":"2025-01-28T14:20:07.870Z","updated_at":"2025-03-23T07:29:42.007Z","avatar_url":"https://github.com/RandomHashTags.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sorts stored property declarations in the optimal layout so they don't waste memory.\n\n\u003ca href=\"https://swift.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-5.9+-F05138?style=\u0026logo=swift\" alt=\"Requires at least Swift 5.9\"\u003e\u003c/a\u003e \u003cimg src=\"https://img.shields.io/badge/Platforms-Any-gold\"\u003e \u003ca href=\"https://discord.com/invite/VyuFQUpcUz\"\u003e\u003cimg src=\"https://img.shields.io/badge/Chat-Discord-7289DA?style=\u0026logo=discord\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/RandomHashTags/swift-htmlkit/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache_2.0-blue\" alt=\"Apache 2.0 License\"\u003e\u003c/a\u003e\n\n## Limitations\n\nCurrent limitations of Swift Macros doesn't enable this library to support custom objects, only values found in the Standard Library (and Foundation).\n\nHowever, it does support custom objects but you have to supply the literal memory layout (no reference or stored value) using the correct macro.\n\nThis library organizes custom objects at the bottom, just above objects that have a 1,1,1 (alignment,size,stride) memory layout.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomhashtags%2Fswift-optimal-memory-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandomhashtags%2Fswift-optimal-memory-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomhashtags%2Fswift-optimal-memory-layout/lists"}