Repository navigation
docs: point ReScript guidance to AffineScript #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ The following files in `.machine_readable/` contain structured project metadata: | |
|
|
||
| | Language/Tool | Use Case | Notes | | ||
| |---------------|----------|-------| | ||
| | **ReScript** | Primary application code | Compiles to JS, type-safe | | ||
| | **AffineScript** | Primary application code | Compiles to JS, type-safe | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| | **Bun** | JS runtime & package management (tier 1) | Default for all new work. Runs compiled ESM/JS directly — no bundler step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. | | ||
| | **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools | | ||
| | **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI | | ||
|
|
@@ -37,13 +37,13 @@ The following files in `.machine_readable/` contain structured project metadata: | |
|
|
||
| | Banned | Replacement | | ||
| |--------|-------------| | ||
| | TypeScript | ReScript | | ||
| | TypeScript | AffineScript | | ||
| | Deno | Bun | | ||
| | Node.js | Bun | | ||
| | npm | Bun | | ||
| | pnpm/yarn | Bun | | ||
| | Go | Rust | | ||
| | Python | Julia/Rust/ReScript | | ||
| | Python | Julia/Rust/AffineScript | | ||
| | Java/Kotlin | Rust/Tauri/Dioxus | | ||
| | Swift | Tauri/Dioxus | | ||
| | React Native | Tauri/Dioxus | | ||
|
|
@@ -53,7 +53,7 @@ The following files in `.machine_readable/` contain structured project metadata: | |
|
|
||
| **No exceptions for Kotlin/Swift** - use Rust-first approach: | ||
|
|
||
| 1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0 | ||
| 1. **Tauri 2.0+** - Web UI (AffineScript) + Rust backend, MIT/Apache-2.0 | ||
| 2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0 | ||
|
|
||
| Both are FOSS with independent governance (no Big Tech). | ||
|
|
@@ -64,7 +64,7 @@ Both are FOSS with independent governance (no Big Tech). | |
| 2. **Use `package.json` + `bun.lock` for JS runtime deps** - Bun is npm-compatible; a manifest is REQUIRED | ||
| 3. **`bun install --production --frozen-lockfile` for production deps** - resolved from `package.json` and pinned via `bun.lock`; `--frozen-lockfile` makes a lockfile mismatch a build failure rather than a silent re-resolve | ||
| 4. **No Go code** - Use Rust instead | ||
| 5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, ReScript for apps | ||
| 5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps | ||
| 6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus | ||
|
|
||
| ### Package Management | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: hyperpolymath/poly-ssg
Length of output: 41755
Script executed:
Repository: hyperpolymath/poly-ssg
Length of output: 4452
Correct the AffineScript output target, or add a build step that produces it.
The AffineScript row at
.claude/CLAUDE.md:22states that the language "Compiles to JS". The upstream AffineScript description names WebAssembly as the compile target and does not describe a JavaScript target. The PR copied this note from the ReScript row when it changed the language name.The repository has no configured AffineScript build step. The build, task, and package configuration does not reference AffineScript, although
.affinesource files exist undersrc/andmcp/src/. The Bun row at line 23 states that Bun runs compiled ESM/JS directly. A contributor who writes new application code in AffineScript therefore has no repository-owned path that produces JS for that runtime.Correct the AffineScript row so that it states only the output target that the repository supports. Add a repository-owned build step for
.affineapplication code before the row names AffineScript as the primary application language for JS output.