{"id":13761182,"url":"https://github.com/mrichards42/bulb","last_synced_at":"2025-05-10T12:31:17.694Z","repository":{"id":75259878,"uuid":"376410775","full_name":"mrichards42/bulb","owner":"mrichards42","description":"A \"core\" library for Fennel","archived":false,"fork":false,"pushed_at":"2022-01-11T02:31:46.000Z","size":122,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-16T18:34:23.641Z","etag":null,"topics":["fennel","lua"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrichards42.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}},"created_at":"2021-06-13T01:03:43.000Z","updated_at":"2022-10-23T10:21:56.000Z","dependencies_parsed_at":"2023-06-05T22:32:40.924Z","dependency_job_id":null,"html_url":"https://github.com/mrichards42/bulb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichards42%2Fbulb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichards42%2Fbulb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichards42%2Fbulb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichards42%2Fbulb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrichards42","download_url":"https://codeload.github.com/mrichards42/bulb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253415404,"owners_count":21904846,"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":["fennel","lua"],"created_at":"2024-08-03T13:01:42.278Z","updated_at":"2025-05-10T12:31:17.182Z","avatar_url":"https://github.com/mrichards42.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# Bulb\n\nA \"core\" library for [Fennel][fennel]. Very much a work-in-progress.\n\n## Inspirations and comparisons\n\n### [Cljlib][cljlib]\n\nCljlib reproduces much much of clojure.core than Bulb does. It includes a\nnumber of features, data structures, and macros that Bulb does not, e.g.\nmulti-arity functions, sets, multimethods, when-let (and relatives).\n\nBulb is not nearly as fully-featured as Cljlib, though it is also inspired by\nClojure. A main difference between the two libraries is that Cljlib's sequences\nare primarily based around tables (and are more or less eager), while Bulb's\nare implemented using Lua iterators, making them lazy.\n\n### [Luafun][luafun]\n\nBulb and Luafun have a lot of overlap in terms of both functionality and -- in\nmy own benchmarking -- speed (similar on Luajit, and Bulb seems to be a bit\nfaster on Lua 5.4, perhaps since luafun is optimized for Luajit).\n\nLuafun uses a slightly different iteration protocol, storing state in the\n[control variable][control-var] that you are supposed to ignore. This allows\nLuafun to return state*less* iterators (as long as the source iterator is\nstateless), which have some [benefits][luafun-under-the-hood].\n\nBulb works exclusively with state*ful* iterators, and returns iterators that\nwork with Lua's normal iteration protocol (i.e. you can use then with the\ngeneric `for`), though you have to wrap Lua's stateless iterators (e.g. `pairs`\nand `ipairs`) in order to use them.\n\n## License\n\nCopyright © 2021 Mike Richards\n\nReleased under the MIT license.\n\n\n[fennel]: https://fennel-lang.org\n[cljlib]: https://gitlab.com/andreyorst/fennel-cljlib/\n[luafun]: https://github.com/luafun/luafun\n[control-var]: https://www.lua.org/pil/7.2.html\n[luafun-under-the-hood]: https://luafun.github.io/under_the_hood.html#iterator-types\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrichards42%2Fbulb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrichards42%2Fbulb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrichards42%2Fbulb/lists"}