{"id":27057883,"url":"https://github.com/mrange/bprintf","last_synced_at":"2025-04-05T11:33:55.737Z","repository":{"id":149116866,"uuid":"12192396","full_name":"mrange/bprintf","owner":"mrange","description":"Variadic printf focused on extendability and performance","archived":false,"fork":false,"pushed_at":"2015-10-04T21:52:24.000Z","size":240,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T02:09:04.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/mrange.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}},"created_at":"2013-08-18T08:18:43.000Z","updated_at":"2024-11-05T12:59:44.000Z","dependencies_parsed_at":"2023-04-09T02:55:07.447Z","dependency_job_id":null,"html_url":"https://github.com/mrange/bprintf","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/mrange%2Fbprintf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrange%2Fbprintf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrange%2Fbprintf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrange%2Fbprintf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrange","download_url":"https://codeload.github.com/mrange/bprintf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332058,"owners_count":20921849,"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":"2025-04-05T11:33:54.436Z","updated_at":"2025-04-05T11:33:55.728Z","avatar_url":"https://github.com/mrange.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"bprintf\n=======\n\nbprintf is intended to be a better printf. Better in this context means type-safe, extensible and performant.\n\nThere are many attempts to fix printf's lack of type-safety notably boost::format.\n\nHowever, all alternatives I've found have usually is beaten quite severely by printf in terms of performance.\n\nWith bprintf I want the performance to be at least as good as with printf.\n\nIn addition bprintf adopts the formatting concept from C# in order to provide extensibility for your own types.\n\nSample\n```c++\n    bprintf (\n        \"Hi there %0% %1%!\\n%0% you are %2:g% years old\\n\"\n      , \"John\"\n      , std::string (\"Doe\")\n      , 34.5\n      );\n```\n\nTODO\n----\n\n1. Support C++11\n2. Remove sprintf usage\n3. Implement double formatting\n4. Fix how bprintf can be extended to support custom types (feels cludgy now)\n5. Manually inline code if it gives performance improvement\n6. Implement chrono formatting\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrange%2Fbprintf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrange%2Fbprintf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrange%2Fbprintf/lists"}