frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Making web testing pleasant in Scheme: Schematra 0.4

https://schematra.com/blog/whats-new-in-schematra-0-4
3•funkaster•2h ago

Comments

funkaster•2h ago
I just shipped Schematra 0.4 with some updates based on some usage and feedback.

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.

  ;; Assert against structure, not HTML strings
  (test "returns greeting"
    '(ccup [h1 "Hello"])
    (test-route-body app 'GET "/hello"))
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:

  (get "/posts/:id/comments"
    ;; :id automatically becomes a local variable
    (display id))  ; just works, no (alist-ref 'id params) needed
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

dannyobrien•2h ago
Thank you for writing this! Do you know how much work it would be to generalise to other Schemes, like say Guile?

A 17th-Century Crypt Shines a Light on Milan's Most Impoverished

https://www.nytimes.com/2025/10/28/science/archaeology-milan-crypt.html
1•quapster•1m ago•0 comments

Bangladesh Bank Cyber Heist (2016)

https://en.wikipedia.org/wiki/Bangladesh_Bank_robbery
1•sans_souse•1m ago•0 comments

There isn't another choice: Signal CEO explains why they rely on AWS

https://www.theverge.com/news/807147/signal-aws-outage-meredith-whittaker
1•raybb•4m ago•0 comments

Practical Defenses Against Technofascism

https://micahflee.com/practical-defenses-against-technofascism/
1•pabs3•5m ago•0 comments

Show HN: AmbrosAI – An AI longevity companion for nutrition, sleep, and stress

https://ambrosai.life/
1•nbochenko•7m ago•0 comments

From Prompt Survival to Proof: Building a Real-World Model for AI Visibility

https://www.aivojournal.org/from-prompt-survival-to-proof-building-a-real-world-model-for-ai-visi...
1•businessmate•7m ago•0 comments

Note to my slightly older self

https://yewjin.substack.com/p/note-to-my-slightly-older-self
1•cmpit•12m ago•0 comments

Ask HN: Could we create a license to make AI companies pay for your content?

1•lilerjee•14m ago•1 comments

A Tool for Working with Git Worktrees

https://www.dzombak.com/blog/2025/10/a-tool-for-working-with-git-worktrees/
1•ingve•16m ago•0 comments

We'll pay you $10k to DE-shitify this Samsung refrigerator [video]

https://www.youtube.com/watch?v=DaWpVDFcXgc
1•archargelod•17m ago•0 comments

What Happens When You Press 'Send' to ChatGPT

https://blog.bytebytego.com/p/what-actually-happens-when-you-press
1•kiyanwang•18m ago•0 comments

Harvard College's Grading System Is 'Failing,' Report on Grade Inflation Says

https://www.thecrimson.com/article/2025/10/27/grading-workload-report/
1•EvgeniyZh•19m ago•0 comments

We Built an Easier Way to Connect MCP Servers to OpenAI's Agent Platform

https://go.mcptotal.io/blog/agentkit-connected-to-mcptotal
1•agentictime•22m ago•0 comments

Claude as My External Brain: Autistic, ADHD, and Supported

https://zackproser.com/blog/claude-external-brain-adhd-autistic
1•ingve•26m ago•1 comments

The Evolving Landscape of Yocto Project Setup: Bitbake-Setup vs. KAS

https://sigma-star.at/blog/2025/10/the-evolving-landscape-of-yocto-project-setup-bitbake-setup-vs...
1•gdgghhhhh•27m ago•0 comments

Tutorial: How to simulate the wave equation [video]

https://www.youtube.com/watch?v=pN-gi_omIVE
1•pillars•28m ago•0 comments

Vercel vs. Railway

https://simpletechguides.com/comparisons/vercel-vs-railway/
2•ritzaco•39m ago•1 comments

82% of Avocado Oil Rancid or Adulterated (2020)

https://www.ucdavis.edu/food/news/study-finds-82-percent-avocado-oil-rancid-or-mixed-other-oils
2•mgh2•43m ago•1 comments

Show HN:Interactive RISC-V CPU Visualizer (Sequential and Pipelined)

https://mostlykiguess.github.io/RISC-V-Processor-Implementation/
1•mostlyk•57m ago•0 comments

Show HN: Write Node.js code in Rust to achieve massive HTTP throughput

https://www.npmjs.com/package/brahma-firelight
3•StellaMary•1h ago•0 comments

US judge decertifies Apple App Store class action

https://www.reuters.com/sustainability/boards-policy-regulation/us-judge-decertifies-apple-app-st...
7•aspenmayer•1h ago•1 comments

Show HN: Publish beautiful websites in two ticks

https://www.twoticks.io/
5•codinginjammies•1h ago•0 comments

Drug themes in science fiction (1974)

https://gutenberg.org/cache/epub/77131/pg77131-images.html
3•petethomas•1h ago•0 comments

Picture gallery: Amiga prototype "Lorraine" at the Amiga 40 event

https://www.amiga-news.de/en/news/AN-2025-10-00110-EN.html
13•doener•1h ago•0 comments

Show HN: Ordered – A sorted collection library for Zig

2•habedi0•1h ago•0 comments

Show HN:What Is the Best Free File Transfer Site in 2025?

https://openbeam.cloud/blog/what-is-the-best-free-file-transfer-site-in-2025
2•gray_wolf_99•1h ago•0 comments

Emu68 Goes PowerPC

https://www.patreon.com/posts/141985279
2•doener•1h ago•0 comments

Should I have become a radiologist? The hype versus reality of radiology AI

https://ameyarad.github.io/RadiologyAI/
2•Liquidity•1h ago•0 comments

I built the same app 10 times: Evaluating frameworks for mobile performance

https://www.lorenstew.art/blog/10-kanban-boards/
44•0xblinq•1h ago•15 comments

Milvus Cloud– Open-source vector database now available on AWS Marketplace

https://aws.amazon.com/marketplace/pp/prodview-iqbidum7feuio?trk=2f1d77f8-02e3-48b9-95ff-345ad5ab...
1•katherine_23840•1h ago•0 comments