{"id":15373116,"url":"https://github.com/vi/lpaq1_stream","last_synced_at":"2026-04-28T05:39:11.534Z","repository":{"id":5451232,"uuid":"6644891","full_name":"vi/lpaq1_stream","owner":"vi","description":"Modified lpaq1 compressor for some additional features [hacky]","archived":false,"fork":false,"pushed_at":"2015-07-12T21:42:44.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T06:04:51.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vi.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":"2012-11-11T21:35:49.000Z","updated_at":"2024-04-23T05:43:00.000Z","dependencies_parsed_at":"2022-09-10T21:22:22.259Z","dependency_job_id":null,"html_url":"https://github.com/vi/lpaq1_stream","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/vi%2Flpaq1_stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Flpaq1_stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Flpaq1_stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Flpaq1_stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/lpaq1_stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243099816,"owners_count":20236265,"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":"2024-10-01T13:54:19.221Z","updated_at":"2025-12-25T05:12:35.154Z","avatar_url":"https://github.com/vi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"lpaq1_stream\n============\n\nThere [lpaq1](http://encode.ru/threads/874-lpaq1-is-here) - simplified PAQ compressor.\n\nHere are some funny modes to it to play with the compression:\n\n* lpaq1_stream: Other archive format, suitable for intermediate flushing;\n* lpaq1_stream: \"Preloading\" of other archives to assist compression of little files;\n* lpaq1_stream: \"Analyse\" mode for ouputting entropy of each line. With pre-loaded file it can regognise \"familiar\" lines from new ones.\n* lpaq1: Removed filesize restriction (now can [de]compress to/from pipe);\n* lpaq1: \"Stream decompress mode\" to extract files with unknown filesize (with some garbade at the end);\n* lpaq1: Fuzz decompression (deliverately misdecompress files to see broken content);\n* lpaq1: Autonomous mode (after normal decompression, keep decompressing ad infinum from random data);\n* lpaq1: Guess mode (output bits based only on prediction. Lets you to see which parts of file are more compressible).\n\nDemos\n---\n\n```\n$ lpaq1_stream 3 | ./lpaq1_stream -d\ndsaf\ndsaf\n123456\n123456\n\n$ lpaq1_stream 3 \u003c lpaq1_stream.cpp \u003e lpaq1_stream.cpp.lps\n$ lpaq1_stream 3 \u003c lpaq1.cpp \u003e lpaq1.cpp.lps\n$ LPAQ_PRELOAD_FILE=lpaq1_stream.cpp.lps lpaq1_stream 3 \u003c lpaq1_stream.cpp \u003e lpaq1_stream.cpp.lps2\n$ LPAQ_PRELOAD_FILE=lpaq1_stream.cpp.lps lpaq1_stream 3 \u003c lpaq1.cpp \u003e lpaq1.cpp.lps2\n$ du -b lpaq1*.cpp*lps* lpaq1*.cpp\n9418  lpaq1.cpp.lps\n1130\tlpaq1.cpp.lps2\n9449\tlpaq1_stream.cpp.lps\n86\tlpaq1_stream.cpp.lps2\n32786\tlpaq1.cpp\n33621\tlpaq1_stream.cpp\n\n\n\n$ lpaq1 3 lpaq1.cpp lpaq1.cpp.lpq\n$ lpaq1 a lpaq1.cpp.lpq /dev/stdout  | uniq | head -n 970 | tail -n 20\n    3+(MEM\u003e\u003e20)*3);\n\n  return len;\n      }\n    }\n  }\n  if (in), ftell(out), double(clock()-start)/CLOCKS_PER_SEC, \n      }\n    }\n  }\n  if (in), ftell(out), double(clock()-starw#24;\n    ftell(in), ftell(out), double(clock()-start)/CLOCKS_PER_SEC, \n      }\n    }\n  }\n  if (in), ftell(out), double(clock()/M@{clock())\\ufffd\\n\");\n    }\n  }\n  if (in), ftell(out), double(clock())\\ufffd\\n\");\n    }\n    \n    \n$ lpaq1 g lpaq1.cpp.lpq /dev/stdout | head -n 300 | tail -n 10\nilefine gephstate$?}fe statetable[#tateO;#}du-\nm\no/'/////////////////////////(state]ap\u0026 9pM o/////////////////////////-\n\n//(Y`stateMap(~etp`k`bontext(`k q`bbobability$  [apac~c*-\n/-\n// StateTap(gse~5 qfeate# a`stateMap uith c0aontext3 dsang s=\u003e`ci4es gamory\u0026-\n/ Wsh\"ap$ ac(`geoit$ contert# gdate`k`(lam\u0026=$s= dk c probability(hq..w !5u\u0026-\n// p ` $het dhe gext a! \u003e $rtataog dhe prebious`vbetiction eith c lq..4=$-\n//     wemit h1\u003c.17$3\u003c 0evmt~d``243- es dhe ~epimum eoent hor aoo`qta~g {m\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Flpaq1_stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Flpaq1_stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Flpaq1_stream/lists"}