{"id":21224192,"url":"https://github.com/empathy87/hdk","last_synced_at":"2026-07-17T04:32:55.621Z","repository":{"id":158708351,"uuid":"622460590","full_name":"empathy87/hdk","owner":"empathy87","description":"Hack Development Kit","archived":false,"fork":false,"pushed_at":"2024-11-10T15:10:26.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T13:52:46.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/empathy87.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-02T07:12:37.000Z","updated_at":"2025-02-15T15:09:22.000Z","dependencies_parsed_at":"2024-11-10T16:19:46.527Z","dependency_job_id":"820a4d3f-7c58-4363-bd3f-f8364dfd079a","html_url":"https://github.com/empathy87/hdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/empathy87/hdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathy87%2Fhdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathy87%2Fhdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathy87%2Fhdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathy87%2Fhdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/empathy87","download_url":"https://codeload.github.com/empathy87/hdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathy87%2Fhdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261088352,"owners_count":23107681,"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":[],"created_at":"2024-11-20T22:57:19.232Z","updated_at":"2025-10-17T02:19:30.716Z","avatar_url":"https://github.com/empathy87.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# From NAND to Tetris: Part 2\n\nThis project is an implementation of the second part of the\n\"From NAND to Tetris\" course, which aims to teach computer\nscience from the ground up by building a complete,\nworking computer system from basic logic gates.\nThis project covers the software side of the computer\nsystem, including assembler, virtual machine, the operating\nsystem and the compiler.\n\n\nimport org.rocksdb.*;\n\npublic class BlobDBBenchmark {\n\n    static {\n        RocksDB.loadLibrary();\n    }\n\n    public static void main(String[] args) {\n        Options options = new Options();\n        options.setCreateIfMissing(true);\n        \n        // Enable BlobDB features\n        options.setEnableBlobFiles(true);\n        options.setMinBlobSize(4096); // Example: Only store values \u003e 4 KB in BlobDB\n        options.setBlobFileSize(1024 * 1024 * 128); // Example: Max blob file size 128 MB\n        options.setEnableBlobGarbageCollection(true);\n        options.setBlobGarbageCollectionAgeCutoff(0.25); // 25% of the blob file must be obsolete to trigger GC\n        \n        try (RocksDB db = RocksDB.open(options, \"path/to/db\")) {\n            // Test data loading\n            long startTime = System.currentTimeMillis();\n            \n            for (int i = 0; i \u003c 100000; i++) {\n                byte[] key = (\"key\" + i).getBytes();\n                byte[] value = new byte[8192]; // 8 KB value, stored in blob files\n                db.put(key, value);\n            }\n\n            long endTime = System.currentTimeMillis();\n            System.out.println(\"Data Insertion Time: \" + (endTime - startTime) + \" ms\");\n\n            // Test data retrieval\n            startTime = System.currentTimeMillis();\n            \n            for (int i = 0; i \u003c 100000; i++) {\n                byte[] key = (\"key\" + i).getBytes();\n                db.get(key);\n            }\n\n            endTime = System.currentTimeMillis();\n            System.out.println(\"Data Retrieval Time: \" + (endTime - startTime) + \" ms\");\n\n        } catch (RocksDBException e) {\n            System.err.println(\"Error working with RocksDB: \" + e.getMessage());\n        } finally {\n            options.close();\n        }\n    }\n}\n\n\nimport org.rocksdb.*;\n\npublic class FRocksDBBenchmark {\n\n    static {\n        RocksDB.loadLibrary();\n    }\n\n    public static void main(String[] args) {\n        Options options = new Options();\n        options.setCreateIfMissing(true);\n\n        // Enable BlobDB features in FRocksDB, similar to RocksDB\n        options.setEnableBlobFiles(true);\n        options.setMinBlobSize(4096); // Set minimum blob size, e.g., 4 KB\n        options.setBlobFileSize(1024 * 1024 * 128); // Set blob file size, e.g., 128 MB\n        options.setEnableBlobGarbageCollection(true);\n        options.setBlobGarbageCollectionAgeCutoff(0.25); // 25% cutoff for GC\n\n        try (RocksDB db = RocksDB.open(options, \"path/to/frocksdb_benchmark\")) {\n            // Benchmark write performance\n            long startTime = System.currentTimeMillis();\n            \n            for (int i = 0; i \u003c 100000; i++) {\n                byte[] key = (\"key\" + i).getBytes();\n                byte[] value = new byte[8192]; // 8 KB value, to be stored in blob files\n                db.put(key, value);\n            }\n\n            long endTime = System.currentTimeMillis();\n            System.out.println(\"Data Insertion Time: \" + (endTime - startTime) + \" ms\");\n\n            // Benchmark read performance\n            startTime = System.currentTimeMillis();\n            \n            for (int i = 0; i \u003c 100000; i++) {\n                byte[] key = (\"key\" + i).getBytes();\n                db.get(key);\n            }\n\n            endTime = System.currentTimeMillis();\n            System.out.println(\"Data Retrieval Time: \" + (endTime - startTime) + \" ms\");\n\n        } catch (RocksDBException e) {\n            System.err.println(\"Error working with FRocksDB: \" + e.getMessage());\n        } finally {\n            options.close();\n        }\n    }\n}\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fempathy87%2Fhdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fempathy87%2Fhdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fempathy87%2Fhdk/lists"}