docs(readme): list C# and PHP as AST-compressed, drop quarantined Perl

The CodeCompressor language list in README (and the matching lists in
wiki/transforms.md and the code_compressor.py module docstring) predate
two changes on main:

- C# (#1664, #1926) and PHP (#201, #2423) are first-class LangConfig
  entries in CodeAwareCompressor but were never added to the lists.
- Perl has been quarantined from code-aware compression since #2204
  (refs #2185): _get_parser() refuses the perl grammar and compress()
  routes Perl to the Kompress fallback / passthrough, so "AST-aware for
  ... Perl" was no longer true.

All four lists now match the canonical docs site
(docs/content/docs/code-compression.mdx): Python, JS/TS, Go, Rust, Java,
C/C++, C#, PHP.
This commit is contained in:
jecacs
2026-08-23 16:02:49 +02:00
parent 34a5517562
commit 5a323bd839
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ troubleshooting.
<summary><b>What's inside</b></summary>
- **SmartCrusher** — universal JSON: arrays of dicts, nested objects, mixed types.
- **CodeCompressor** — AST-aware for Python, JS/TS, Go, Rust, Java, C/C++, Perl.
- **CodeCompressor** — AST-aware for Python, JS/TS, Go, Rust, Java, C/C++, C#, PHP.
- **Kompress-v2-base** — our HuggingFace model, trained on agentic traces.
- **Image compression** — 40–90% reduction via trained ML router.
- **CacheAligner** - detects and warns about volatile content that can bust provider KV cache prefixes; never rewrites prompts.
+1 -1
View File
@@ -16,7 +16,7 @@ Supported Languages (Tier 1):
- Python, JavaScript, TypeScript
Supported Languages (Tier 2):
- Go, Rust, Java, C, C++
- Go, Rust, Java, C, C++, C#, PHP
Compression Strategy:
1. Parse code into AST using tree-sitter
+2 -2
View File
@@ -155,7 +155,7 @@ AST-based compression for source code using tree-sitter.
- **Syntax validity guaranteed** — Output always parses correctly
- **Preserves critical structure** — Imports, signatures, types, error handlers
- **Multi-language support** — Python, JavaScript, TypeScript, Go, Rust, Java, C, C++
- **Multi-language support** — Python, JavaScript, TypeScript, Go, Rust, Java, C, C++, C#, PHP
- **Lightweight** — ~50MB vs ~1GB for the ML compressor
### Installation
@@ -228,7 +228,7 @@ print(f"Syntax valid: {result.syntax_valid}") # True
| Tier | Languages | Support Level |
|------|-----------|---------------|
| 1 | Python, JavaScript, TypeScript | Full AST analysis |
| 2 | Go, Rust, Java, C, C++ | Function body compression |
| 2 | Go, Rust, Java, C, C++, C#, PHP | Function body compression |
### Memory Management