Various fixes to 0.2.0 release.#37
Merged
Merged
Conversation
Curried 2-arg primitives for binary file I/O, enabling entropy from /dev/urandom. ⧏ 8 "/dev/urandom" returns [8]I64 of byte values 0–255. ⧐ writes a byte array to a file path. Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Implement fold as 3-arg primitive (f acc arr) with evaluator access for calling closures, intercepted in apply_once before prim dispatch. Unicode alias ⌿. - Add bitwise primitives: bitand, bitor, bitxor/⊻, shl, shr. All operate on I64 with currying support. Co-Authored-By: Claude Opus 4.5 <[email protected]>
… polymorphic option/result, apply_type - #8: Remove duplicate functions between prelude/math/list stdlib modules - isEven/isOdd removed from math.goth (authoritative in prelude) - clamp removed from math.goth (authoritative in prelude) - pair/fst/snd/mapPair removed from list.goth (authoritative in prelude) - #10: Fix LANGUAGE.md false claims - Replace -- comments with # in all code examples - Add ℤ, ℕ, F, String to primitive types table - Fix integer description from "64-bit signed" to "arbitrary precision (i128)" - Change all example signatures from I64 to ℤ (idiomatic type) - Fix let binding syntax from ← to = (both accepted, = is primary) - Update primitives reference signatures to use ℤ - #11: Rewrite option.goth and result.goth with generic polymorphic API - option.goth: 74 monomorphic functions → 28 generic functions - result.goth: 81 monomorphic functions → 32 generic functions - Eliminates type suffix explosion (someI/someF/someB → some, etc.) - Uses 0 as universal dead placeholder for None/unused slots - Works because evaluator is type-erased at runtime - none takes ⟨⟩ arg (type variable in bare constant becomes closure) - #12: Fix apply_type in subst.rs to handle all Type variants - Add Variant, Exists, App, Effectful, Interval cases - Remove catch-all _ => ty.clone() fallback (now exhaustive) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Type checker: cast validation (as? returns Option), record update, LetRec annotations, do-block type threading, fresh Forall variables. Safety: replace unsafe static mut terminal state with Mutex + atexit + catch_unwind. eval_filter propagates predicate errors instead of silently dropping elements. Closure equality includes captured env. New: fromChars primitive for string round-tripping. OpDecl pretty printing (was todo!() panic). Operator precedence delegates to single source of truth. Docs: CHANGELOG.md, 8 undocumented operators in LANGUAGE.md, integer type clarification. Deps: thiserror 1.0 → 2.0. Cargo.toml metadata. Remove empty example directories. Co-Authored-By: Claude Opus 4.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.