Repository navigation
Replace Fluture with Wave - #11
Merged
Merged
Conversation
mikearnaldi
force-pushed
the
waveguide
branch
from
November 21, 2019 15:59
035a05e to
f964261
Compare
fubhy
pushed a commit
that referenced
this pull request
Jan 2, 2024
bjacobgordon
pushed a commit
to bjacobgordon/effect
that referenced
this pull request
Oct 31, 2025
Fix critical bug where the pattern was loading entire file into memory instead of actually streaming it in chunks. Changes: - Replace fs.readFileString() with fs.readFile() - Use Stream.decodeText() and Stream.splitLines for proper streaming - File now read in chunks with constant memory usage - Matches the pattern's stated benefits and avoids the anti-pattern Fixes Effect-TS#7 Incorporates fix from PR Effect-TS#11 by @ToliaGuy The pattern now correctly demonstrates: - Constant memory usage regardless of file size - True streaming without loading entire file - Proper use of Effect's streaming primitives
bjacobgordon
pushed a commit
to bjacobgordon/effect
that referenced
this pull request
Oct 31, 2025
Implements Phase 1 of QA improvements to catch semantic bugs: New Features: ✅ Memory validation for streaming patterns ✅ Timing validation for parallel patterns ✅ Concurrency option checking for Effect.all ✅ Automated behavioral test suite Test Categories: - Streaming: Verify constant memory usage - Parallel: Verify actual parallelism vs. claims - General: Basic memory checks for all patterns Fixes: - Fixed Effect.all concurrency in combinator-foreach-all.ts - Added 'test:behavioral' npm script Related: - Addresses root cause of PR Effect-TS#11 (streaming bug) - Addresses root cause of PR Effect-TS#10 (concurrency bug) - Part of QA_GAP_ANALYSIS.md improvements
bjacobgordon
pushed a commit
to bjacobgordon/effect
that referenced
this pull request
Oct 31, 2025
Implements Phase 3 of QA improvements with semantic validation. New Features: ✅ Enhanced QA schema with 4 semantic checks ✅ Memory behavior validation ✅ Concurrency claims verification ✅ Effect idioms checking ✅ API modernization detection Semantic Validation: 1. memory_behavior - Validates streaming uses constant memory 2. concurrency_claims - Verifies parallel has concurrency options 3. effect_idioms - Detects non-idiomatic patterns (catchAll+gen) 4. api_modernization - Flags 10+ deprecated APIs Files Added: - scripts/qa/prompts/qa-schema-enhanced.mdx - Enhanced schema - scripts/qa/test-enhanced-qa.ts - Test script - ENHANCED_QA_GUIDE.md - Complete documentation Integration: - qa-process.sh automatically uses enhanced schema - Falls back to standard schema if enhanced not found - Adds semantic_checks to JSON response - Compatible with existing QA pipeline Would Have Prevented: ✅ PR Effect-TS#11 - memory_behavior check ✅ PR Effect-TS#10 - concurrency_claims check ✅ PR Effect-TS#9 - effect_idioms check Related: - Part of QA_GAP_ANALYSIS.md Phase 3 - Complements test-behavioral.ts (Phase 1) - Works with lint-effect-patterns.ts (Phase 2) - Provides LLM-based semantic analysis
bjacobgordon
pushed a commit
to bjacobgordon/effect
that referenced
this pull request
Oct 31, 2025
Implements Phase 4 of QA improvements with end-to-end tests. New Features: ✅ 4 integration tests for real-world scenarios ✅ Streaming with large files (90MB+) ✅ Parallel vs sequential performance ✅ Error handling under stress ✅ Resource management validation Test Results: • Streaming: 90MB file, 0.84MB memory, 128MB/s • Parallel: 4.22x speedup (607ms vs 2561ms) • Error handling: 4/4 tests passed • Resources: 5 acquired, 5 released (no leaks) Files Added: - scripts/publish/test-integration.ts - Integration test suite - INTEGRATION_TESTING_GUIDE.md - Complete documentation - npm script: test:integration, test:all What It Validates: ✅ Real file I/O operations ✅ Actual parallel execution ✅ Error recovery in practice ✅ Resource cleanup verification ✅ Performance characteristics ✅ Memory usage profiles Performance: - 4 tests in ~5 seconds - Creates 90MB test files - Monitors memory during execution - Automatic cleanup Would Have Caught: ✅ All 3 community bugs (PR Effect-TS#9, Effect-TS#10, Effect-TS#11) ✅ Real-world resource issues ✅ Performance regressions Related: - Completes QA_GAP_ANALYSIS.md all 4 phases - Works with test-behavioral.ts (Phase 1) - Works with lint-effect-patterns.ts (Phase 2) - Works with qa-schema-enhanced.mdx (Phase 3)
bjacobgordon
pushed a commit
to bjacobgordon/effect
that referenced
this pull request
Oct 31, 2025
This PR adds 42 new Effect patterns and implements a comprehensive 4-layer QA validation system that would have prevented all 3 community-reported bugs. New Patterns (42): - Combinators, constructors, data types - Observability, pattern matching - Modern Effect APIs and idioms Community Bug Fixes: - PR Effect-TS#9: Use tapError for logging (not catchAll+gen) - PR Effect-TS#10: Add concurrency options to Effect.all - PR Effect-TS#11: Use actual streaming (not readFileString) QA Validation System (4 Phases): - Phase 1: Behavioral tests (memory, timing, ~1s) - Phase 2: Pattern linter (idioms, APIs, ~30ms) - Phase 3: LLM semantic QA (validation, ~5-10s) - Phase 4: Integration tests (E2E, ~5s) Coverage: ✅ Memory/Streaming validation ✅ Concurrency verification ✅ Effect idiom enforcement ✅ Deprecated API detection ✅ Documentation accuracy ✅ Real I/O operations ✅ Error handling validation ✅ Resource cleanup verification Documentation: - QA_GAP_ANALYSIS.md - EFFECT_LINTER_RULES.md - ENHANCED_QA_GUIDE.md - INTEGRATION_TESTING_GUIDE.md Version: 0.2.1 → 0.3.0 Contributors: @PaulJPhilp, @ToliaGuy
bjacobgordon
pushed a commit
to bjacobgordon/effect
that referenced
this pull request
Oct 31, 2025
- Add comprehensive v0.3.0 release notes - Document 42 new patterns across 6 categories - Detail 3 community bug fixes (PR Effect-TS#9, Effect-TS#10, Effect-TS#11) - Explain 4-layer QA validation system - List 89 TypeScript API fixes - Include statistics and performance metrics
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.
Reasons:
Arguably the final type is very equal to the already implemented
WaveRbut the instances differ, the key difference is the Monad3E and the overloadings for Do that have been tuned to better support R & E overall we would say this implementation pose primary interest on the full data type <R, E, A> where in wave the primary interest on the <E, A>.Additional work is needed to better expose Queue/Managed/etc
Closes #10