{"id":15801303,"url":"https://github.com/ktakashi/r6rs-ulid","last_synced_at":"2026-03-18T16:45:31.338Z","repository":{"id":147044663,"uuid":"457370148","full_name":"ktakashi/r6rs-ulid","owner":"ktakashi","description":"ULID for R6RS Scheme","archived":false,"fork":false,"pushed_at":"2022-02-09T20:10:02.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T22:02:49.587Z","etag":null,"topics":["chez","r6rs","r6rs-scheme","racket","sagittarius","scheme","ulid"],"latest_commit_sha":null,"homepage":"","language":"Scheme","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ktakashi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2022-02-09T13:28:30.000Z","updated_at":"2025-02-16T11:58:58.000Z","dependencies_parsed_at":"2023-06-04T07:13:23.062Z","dependency_job_id":null,"html_url":"https://github.com/ktakashi/r6rs-ulid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ktakashi/r6rs-ulid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktakashi%2Fr6rs-ulid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktakashi%2Fr6rs-ulid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktakashi%2Fr6rs-ulid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktakashi%2Fr6rs-ulid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktakashi","download_url":"https://codeload.github.com/ktakashi/r6rs-ulid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktakashi%2Fr6rs-ulid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chez","r6rs","r6rs-scheme","racket","sagittarius","scheme","ulid"],"created_at":"2024-10-05T01:21:40.649Z","updated_at":"2026-01-30T15:32:22.261Z","avatar_url":"https://github.com/ktakashi.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"ULID for R6SA Scheme\n====================\n\nThis is an implementation of [ULID](https://github.com/ulid/spec) in\nportable R6RS Scheme.\n\nThe library requires the following SRFIs:\n\n- SRFI-19\n- SRFI-27\n\nOr implementation specific libraries for the below helper libraries:\n\n- `(ulid time)`\n- `(ulid random)`\n\nThis library is inspired by [ULID for R7RS Scheme](https://github.com/shirok/scheme-ulid)\n\nTested implementations\n----------------------\n\n- Sagittarius 0.9.8\n- Chez Scheme 9.5.1\n- Racket v8.3 (plt-r6rs)\n\nHow to use\n----------\n\n```scheme\n(import (rnrs)\n        (ulid))\n(define gen-ulid (make-ulid-generator))\n```\n\n`make-ulid-generator` creates a new ULID generator. The procedure may take two\noptional arguments, `random-generator` and `millisecond-generator`.  \nThe first one must take an argument which is an integer indicates how many bits\nof random integer must be returned.  \nThe second one must be a thunk returning a current millisecond.\n\n```scheme\n(gen-ulid) ;; -\u003e #\u003culid\u003e\n```\n\nCalling the generator procedure created with `make-ulid-generator` returns\na new ULID object. You can retrieve its timestamp and randomness fields by\n`ulid-timestamp` and `ulid-randomness`, both in exact nonnegative integers,\nrespectively.\n\nNOTE: This library does increment the randomness field if the timestamp\nof the previous ULID and creating ULID are the same as the ULID specification\nmentioned. Also, it takes a `millisecond-generator` which may return the\nconstant value. If the randomness reaches to the maximum value, `(expt 2 80)`\nthen `\u0026ulid` will be raised. It is user's responsibility not to pass constant\nvalue generator.\n\n```scheme\n(ulid-\u003einteger ulid)    ;; -\u003e an exact integer\n(ulid-\u003ebytevector ulid) ;; -\u003e a bytevector\n(ulid-\u003estring ulid)     ;; -\u003e a Base32 encoded string\n```\nAbove procedures convert the given `ulid` to an exact integer, bytevector\nor string, respectively.\n\n```scheme\n(integer-\u003eulid integer) ;; -\u003e #\u003culid\u003e\n(bytevector-\u003eulid bv)   ;; -\u003e #\u003culid\u003e\n(string-\u003eulid str)      ;; -\u003e #\u003culid\u003e\n```\nAbove procedures convert the given exect integer, bytevector or string to\nULID object, respectively.\n\n```scheme\n(ulid=? ulid0 ulid1 ulid*...)\n(ulid\u003c? ulid0 ulid1 ulid*...)\n(ulid-hash ulid)\n```\nEquality predicate, ordering predicate and hash function.\n\nUnlike the R7RS version of ULID library, this library doesn't provide\nULID comparator.\n\nLimitations\n-----------\n\nOn Chez Scheme, it doesn't provide a good way of initialise a random seed.\nSo, the default random generator generates the same value over and over\nagain.\n\nDefault implementation of random generator uses SRFI-27, which doesn't\nrequire the implementation to provide secure random. Please check your\nimplementation's document which psuedo random algorithm is used and \nreplace with an appropreate alternative if needed.\n\nTesting\n-------\n\nIf your R6RS implementation supports SRFI-64, you can run the\n[`tests/test.scm`](tests/test.scm) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktakashi%2Fr6rs-ulid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktakashi%2Fr6rs-ulid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktakashi%2Fr6rs-ulid/lists"}