docs: update status for completed JS backend and package manager
- JS_WASM_BACKEND_PLAN: Mark phases 1-5 complete, deprioritize WASM - LANGUAGE_COMPARISON: Update package manager status - OVERVIEW: Add completed features list - ROADMAP: Mark JS backend and package manager complete - Add PACKAGES.md documenting the package system Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@ Based on 2025 research, languages succeed through:
|
||||
|
||||
**Winners:** Python (AI/ML libraries), JavaScript (npm), Rust (Cargo rated 71% admiration)
|
||||
|
||||
**Lux Status:** Limited. Built-in stdlib only. No package manager ecosystem.
|
||||
**Lux Status:** Growing. Has `lux pkg` with git/path dependencies. No central registry yet.
|
||||
|
||||
### 2. Developer Experience
|
||||
> "TypeScript has won... it catches an absurd number of bugs before they hit production."
|
||||
@@ -327,7 +327,7 @@ run app() with { Http = mockHttp, Database = inMemoryDb }
|
||||
|
||||
| Gap | Why It Matters | Priority | Status |
|
||||
|-----|----------------|----------|--------|
|
||||
| **Ecosystem/Packages** | "You rarely build from scratch" (Python's success) | P0 | ❌ Missing |
|
||||
| **Ecosystem/Packages** | "You rarely build from scratch" (Python's success) | P0 | ⚠️ Basic (`lux pkg`) |
|
||||
| **Generics** | Can't write reusable `List<T>` functions | P0 | ✅ Complete |
|
||||
| **String Interpolation** | Basic usability | P1 | ✅ Complete |
|
||||
| **File/Network IO** | Can't build real applications | P1 | ✅ Complete |
|
||||
@@ -349,9 +349,9 @@ run app() with { Http = mockHttp, Database = inMemoryDb }
|
||||
|
||||
| Gap | Why It Matters | Status |
|
||||
|-----|----------------|--------|
|
||||
| No package registry | Can't share/reuse code | ❌ Missing |
|
||||
| No package registry | Central repo for packages | ⚠️ `lux pkg` works, registry missing |
|
||||
| No HTTP library | Can't build web services | ✅ Http effect |
|
||||
| No database drivers | Can't build real backends | ❌ Missing |
|
||||
| No database drivers | Can't build real backends | ❌ Missing (package opportunity) |
|
||||
| No JSON library | Can't build APIs | ✅ Json module |
|
||||
| No testing framework | Can't ensure quality | ✅ Test effect |
|
||||
|
||||
@@ -385,12 +385,13 @@ run app() with { Http = mockHttp, Database = inMemoryDb }
|
||||
|
||||
| Domain | Why Not | Better Choice |
|
||||
|--------|---------|---------------|
|
||||
| Web Frontend | No JS compilation | Elm, TypeScript |
|
||||
| Systems/Embedded | Needs low-level control | Rust, Zig, C |
|
||||
| AI/ML | No ecosystem | Python |
|
||||
| Mobile | No compilation target | Kotlin, Swift |
|
||||
| Quick Scripts | Overhead not worth it | Python, Bash |
|
||||
|
||||
**Note:** Web Frontend is now viable with the complete JS backend (Dom effect, Html module, TEA runtime).
|
||||
|
||||
---
|
||||
|
||||
## Part 7: Lessons from Language Adoption
|
||||
@@ -437,7 +438,7 @@ run app() with { Http = mockHttp, Database = inMemoryDb }
|
||||
|
||||
### Medium-Term (Make It Attractive)
|
||||
|
||||
5. **Package Manager** - Learn from Cargo's success
|
||||
5. **Package Registry** - Central repo for sharing (package manager done)
|
||||
6. **Standard HTTP Library** - Enable web backends
|
||||
7. **Full JS Compilation** - Enable web deployment
|
||||
8. **Comprehensive Documentation** - Examples, tutorials, cookbook
|
||||
|
||||
Reference in New Issue
Block a user