{"id":16686160,"url":"https://github.com/oldratlee/hellokt","last_synced_at":"2025-04-10T00:15:36.252Z","repository":{"id":55052238,"uuid":"407834330","full_name":"oldratlee/HelloKt","owner":"oldratlee","description":"HelloKt 😸, my kotlin playground 🎡","archived":false,"fork":false,"pushed_at":"2025-04-09T04:54:15.000Z","size":187,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T00:15:29.447Z","etag":null,"topics":["hello-kt","kata","kotlin","modern-tech","playground","practice"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/oldratlee.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":"2021-09-18T10:54:18.000Z","updated_at":"2025-04-09T04:54:13.000Z","dependencies_parsed_at":"2024-08-23T05:30:13.458Z","dependency_job_id":"dd43d0bc-6bff-492b-9c91-25ba3e946448","html_url":"https://github.com/oldratlee/HelloKt","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":0.4423076923076923,"last_synced_commit":"1505c4e26afe228e8935942309f4225d6e0978b9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldratlee%2FHelloKt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldratlee%2FHelloKt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldratlee%2FHelloKt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldratlee%2FHelloKt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oldratlee","download_url":"https://codeload.github.com/oldratlee/HelloKt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131316,"owners_count":21052819,"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":["hello-kt","kata","kotlin","modern-tech","playground","practice"],"created_at":"2024-10-12T15:04:50.533Z","updated_at":"2025-04-10T00:15:36.210Z","avatar_url":"https://github.com/oldratlee.png","language":"Kotlin","readme":"# HelloKt 😸\n\nMy Kotlin playground:\n\n- new kotlin version\n- Gradle Kts\n- kotest\n\n## Playground \n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [🍺 `WeakHashMap`: `ConcurrentModificationException` and `GC`](#-weakhashmap-concurrentmodificationexception-and-gc)\n- [🍺 `WeakHashMap`: the copy overhead of `WeakHashMap`](#-weakhashmap-the-copy-overhead-of-weakhashmap)\n- [🍺 the queue time of tasks in `ThreadPoolExecutor`](#-the-queue-time-of-tasks-in-threadpoolexecutor)\n- [🍺 `AhoCorasickDoubleArrayTrie` performance demo](#-ahocorasickdoublearraytrie-performance-demo)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n### 🍺 `WeakHashMap`: `ConcurrentModificationException` and `GC`\n\nwhen `WeakHashMap` key is `gc`ed in the `WeakHashMap` iteration,\n`WeakHashMap` iteration will throw `ConcurrentModificationException`?\n\nDemo Result: NO.\n\nDemo code: [`WeakHashMapGcIteration`](src/test/kotlin/playground/weakhashmap/WeakHashMapGcIteration.kt)\n\n```sh\n./gradlew execTestMain -P mainClass=playground.weakhashmap.WeakHashMapGcIterationKt\n```\n\n### 🍺 `WeakHashMap`: the copy overhead of `WeakHashMap`\n\nDemo Result: copy ~30M items per second.  \ntest on my MacBookPro16(Intel Core i9).\n\nDemo code: [`WeakHashMapCopyOverheadDemo`](src/test/kotlin/playground/weakhashmap/WeakHashMapCopyOverheadDemo.kt)\n\n```sh\n./gradlew execTestMain -P mainClass=playground.weakhashmap.WeakHashMapCopyOverheadDemoKt\n```\n\n### 🍺 the queue time of tasks in `ThreadPoolExecutor`\n\nResult:\n\naverage queue time = queue size / maximumPoolSize * average task execution time\n\nDemo code: [`TaskQueueTimeThreadPoolExecutorDemo`](src/test/kotlin/playground/threadpool/TaskQueueTimeThreadPoolExecutorDemo.kt)\n\n```sh\n./gradlew execTestMain -P mainClass=playground.threadpool.TaskQueueTimeThreadPoolExecutorDemoKt\n```\n\n### 🍺 `AhoCorasickDoubleArrayTrie` performance demo\n\n[`AhoCorasickDoubleArrayTrie`](https://github.com/hankcs/AhoCorasickDoubleArrayTrie) performance simple demo.\n\nResult: hit search ~O(1) to the size of search dictionary.\n\nDemo code: [`AhoCorasickDoubleArrayTrieDemo`](src/test/kotlin/playground/text/AhoCorasickDoubleArrayTrieDemo.kt)\n\n```sh\n./gradlew execTestMain -P mainClass=playground.text.AhoCorasickDoubleArrayTrieDemoKt\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldratlee%2Fhellokt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foldratlee%2Fhellokt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldratlee%2Fhellokt/lists"}