{"id":15107631,"url":"https://github.com/hernanmd/libshoco","last_synced_at":"2026-02-28T11:34:02.110Z","repository":{"id":71141063,"uuid":"520206717","full_name":"hernanmd/libshoco","owner":"hernanmd","description":"Pharo wrapper for Shoco string compression C library","archived":false,"fork":false,"pushed_at":"2022-08-15T20:38:19.000Z","size":109,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T06:16:54.576Z","etag":null,"topics":["pharo","pharo-smalltalk","short-string","smalltalk","storage-saving","string-compression","string-compression-algorithms"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","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/hernanmd.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":"2022-08-01T17:40:31.000Z","updated_at":"2023-12-27T22:22:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e0d6b4a-e210-4f70-9daf-fbaaeb6d7e38","html_url":"https://github.com/hernanmd/libshoco","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"eeb3e5d1c510215aec71a92736b08a846f4a3028"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hernanmd/libshoco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanmd%2Flibshoco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanmd%2Flibshoco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanmd%2Flibshoco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanmd%2Flibshoco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hernanmd","download_url":"https://codeload.github.com/hernanmd/libshoco/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hernanmd%2Flibshoco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29931797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["pharo","pharo-smalltalk","short-string","smalltalk","storage-saving","string-compression","string-compression-algorithms"],"created_at":"2024-09-25T21:40:35.487Z","updated_at":"2026-02-28T11:34:02.044Z","avatar_url":"https://github.com/hernanmd.png","language":"Smalltalk","readme":"[![license-badge](https://img.shields.io/badge/license-MIT-blue.svg)](https://img.shields.io/badge/license-MIT-blue.svg)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\n[![GitHub Workflow Status](https://github.com/hernanmd/libshoco/actions/workflows/CI.yml/badge.svg)](https://github.com/hernanmd/libshoco/actions/workflows/CI.yml)\n[![Coverage Status](https://coveralls.io/repos/github/hernanmd/libshoco/badge.svg?branch=master)](https://coveralls.io/github/hernanmd/libshoco?branch=master)\n\n# Table of Contents\n\n- [Description](#description)\n- [Installation](#installation)\n  - [How to compile the library](#how-to-compile-the-library)\n  - [Baseline String](#baseline-string)\n- [Usage](#usage)\n- [Contribute](#contribute)\n  - [Version management](#version-management)\n- [License](#license)\n\n# Description\n\nShoco is a MIT-licensed C library which provides fast compressor for short strings optimized by default for English words, but customizable to other alphabet models based on your own data. Compression is performed using [entropy encoding](https://en.wikipedia.org/wiki/Entropy_encoding). Shoco exposes two functions, one to compress an input String and another one to decompress. Please read the [library documentation](https://ed-von-schleck.github.io/shoco/) for use cases and technical notes.\n\n# Installation\n\n```smalltalk\nEpMonitor disableDuring: [ \n\tMetacello new\t\n\t\tbaseline: 'LibShoco';\t\n\t\trepository: 'github://hernanmd/libshoco/src';\t\n\t\tload ].\n```\n\nThe library should be already detected automatically for your platform. If it is not the case, please open an [issue](https://github.com/hernanmd/libshoco/issues).\n\n## How to compile the library\n\nInstead of using the library provided in this repository, you can compile your own version in your box. In that case first make sure you have clang installed and clone the shoco repository:\n\n### macOS\n\n```bash\ngit clone https://github.com/Ed-von-Schleck/shoco.git\ncd shoco\nclang -shared -undefined dynamic_lookup -o libshoco.dylib shoco.c\n```\n### Windows\n\n```bash\ngit clone https://github.com/yogo1212/shoco.git\ncd shoco/; git checkout python3\nclang -shared -o libshoco.dll shoco.c \n```\n\n### Linux\n\nTBD\n\nYou should end with a library file (.dylib in macOS, .dll in Windows or .so in Linux) which you should have to copy to your Pharo.image path. If your image is already running, you need to reload the library or re-launch Pharo.\n\n## Baseline String \n\nIf you want to add the LibShoco to your Metacello Baselines or Configurations, copy and paste the following expression:\n\n```smalltalk\n\t\" ... \"\n\tspec\n\t\tbaseline: 'LibShoco' \n\t\twith: [ spec repository: 'github://hernanmd/libshoco/src' ];\n\t\" ... \"\n```\n\n# Usage\n\nYou can verify its working by sending decompress over a compressed String:\n\n```smalltalk\nFFIShocoLib uniqueInstance shocoDecompress: \n  (FFIShocoLib uniqueInstance shocoCompress: 'The city shark is at the dark end of the alleyway').\n```\n\n# Contribute\n\n**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)\n\nIf you have discovered a bug or have a feature suggestion, feel free to create an issue on Github.\nIf you have any suggestions for how this package could be improved, please get in touch or suggest an improvement using the GitHub issues page.\nIf you'd like to make some changes yourself, see the following:    \n\n  - Fork this repository to your own GitHub account and then clone it to your local device\n  - Do some modifications\n  - Test.\n  - Add \u003cyour GitHub username\u003e to add yourself as author below.\n  - Finally, submit a pull request with your changes!\n  - This project follows the [all-contributors specification](https://github.com/kentcdodds/all-contributors). Contributions of any kind are welcome!\n\n## Version management \n\nThis project use semantic versioning to define the releases. This means that each stable release of the project will be assigned a version number of the form `vX.Y.Z`. \n\n- **X** defines the major version number\n- **Y** defines the minor version number \n- **Z** defines the patch version number\n\nWhen a release contains only bug fixes, the patch number increases. When the release contains new features that are backward compatible, the minor version increases. When the release contains breaking changes, the major version increases. \n\nThus, it should be safe to depend on a fixed major version and moving minor version of this project.\n\n# License\n\t\nThis software is licensed under the MIT License.\n\nCopyright Hernán Morales Durand, 2022.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n# Authors\n\nHernán Morales Durand\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhernanmd%2Flibshoco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhernanmd%2Flibshoco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhernanmd%2Flibshoco/lists"}