Making Web Testing Pleasant in Scheme: Schematra 0.4
Posted2 months agoActive2 months ago
schematra.comTechstory
supportivepositive
Debate
20/100
SchemeWeb TestingSchematra
Key topics
Scheme
Web Testing
Schematra
The release of Schematra 0.4 brings new features to make web testing more pleasant in Scheme, with the community showing interest and appreciation for the project.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
4m
Peak period
2
0-1h
Avg / period
1.7
Key moments
- 01Story posted
Oct 28, 2025 at 12:05 AM EDT
2 months ago
Step 01 - 02First comment
Oct 28, 2025 at 12:09 AM EDT
4m after posting
Step 02 - 03Peak activity
2 comments in 0-1h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 28, 2025 at 9:38 AM EDT
2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45729116Type: storyLast synced: 11/17/2025, 8:06:21 AM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Testing ergonomics: Went from 15+ lines of boilerplate to a one-liner by introducing structural testing. Routes can now return S-expressions (chiccup) instead of rendered HTML, so you test against data structures, not string parsing.
Structural middleware: Since routes return S-expressions and rendering happens at the framework boundary, middleware can inspect and transform the DOM structure before it becomes HTML. Want to inject CSRF tokens into every form? It's just an S-expression transform with sxml-transforms. No template engine plugins needed. (see the post for a complete example)Performance notes: I benchmarked chiccup rendering at 145k ops/sec average (339k for simple elements, 2k for 50-row tables). Even worst case is 0.5ms - way below database/network latency, so no caching layer needed, at least not for now.
What's next: Besides the Redis-backed job queue and rqlite-based ORM mentioned in the full post, I'm working on improving route handling with automatic path parameter extraction:
Schematra is a Sinatra-inspired web framework for CHICKEN Scheme. Still pre-1.0, API is evolving based on real-world use.Full post: https://schematra.com/blog/whats-new-in-schematra-0-4
Source: https://github.com/schematra/schematra
Benchmarks: https://github.com/schematra/schematra/tree/main/benchmarks
But for Guile in particular there's https://artanis.dev/ that's a pretty close cousin.
https://rqlite.io