frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Clojuring the web application stack: Meditation One

https://www.evalapply.org/posts/clojure-web-app-from-scratch/index.html
8•adityaathalye•6h ago

Comments

adityaathalye•6h ago
The ongoing discussion for Biff [1] prompted me to re-share my post because I'd like more people to understand this "other way". Outside Clojureville, it is not obvious most of these Clojure "frameworks" are not monoliths.

The consummate Clojurist's default (and very normal-feeling way) to build a web application (or any application for that matter) is to roll their own web stack from production-grade libraries.

Of course, this state of affairs is a double-edged sword, just like is true for traditional web frameworks. In my post, I try to go into the whys and the wherefores, building upward from first principles.

[1] Biff – a batteries-included web framework for Clojure https://news.ycombinator.com/item?id=44037426

andersmurphy•5h ago
A fantastic post! Enjoyed re-reading it.

I'd say the nice thing with the Clojure way of building your own stack is it becomes quite easy to swap parts out. On a previous project we swapped out our web server three different times with minimal changes (jetty -> aleph -> httpkit) as for the most part they all shared the same interface.

After a while you get good at seeing where you want things to be configurable and where you don't. It also gives you the confidence to roll your own micro stack/framework which means you are not dependent on third party aggregates to adopt new features.

adityaathalye•3h ago
Thank you for the kind appreciation. Made my day :)

Yes; next to the sheer stability of parts, their fungibility is a business-critical feature of the Clojure ecosystem. Of course said fungibility does not magically manifest. However the effort to get there is "not much", I'd say. The use of "system" libraries, with some well-reasoned module design brings it pretty close to magic.

As in the post, a fungible, production-grade part can be just a multimethod (e.g. the router in the post). Why? Because "production" comes in all sizes. A small SaaS with a few hundred customers may chug along happily with a bunch of functions.

Thousands ordered to shelter in place as chemical leak spreads across Texas

https://www.dailymail.co.uk/sciencetech/article-14731919/Thousands-ordered-shelter-place-chemical-leak-spreads-Texas.html
1•Bender•32s ago•0 comments

Samsung Back to Working on Upstreaming Tesla FSD SoC Support in the Linux Kernel

https://www.phoronix.com/news/Samsung-Tesla-FSD-PCIe-SoC-2025
1•Bender•46s ago•0 comments

Together Code Sandbox

https://www.together.ai/blog/code-sandbox
1•handfuloflight•46s ago•0 comments

The Lost Decade of Small Data? (Article on DuckDB)

https://duckdb.org/2025/05/19/the-lost-decade-of-small-data.html
1•oli200110•1m ago•0 comments

What If Every Picture You've Ever Seen Exists?

1•cin4ed•1m ago•0 comments

The Tech Industry Is Huge–and Europe's Share of It Is Small

https://www.wsj.com/tech/europe-big-tech-ai-1f3f862c
1•danielcampos93•2m ago•0 comments

Is "Specification Repair" the AI Endgame?

https://aboard.com/is-specification-repair-the-ai-endgame/
1•gbseventeen3331•2m ago•0 comments

Alone and Adrift in the Pacific

https://www.theatlantic.com/magazine/archive/2025/06/commercial-fisherman-shipwreck/682580/
1•anarbadalov•4m ago•0 comments

The Evolution of the Alpha Male Aesthetic

https://www.bloomberg.com/features/2025-maga-man-style-history/
1•mooreds•5m ago•1 comments

Behind Netflix's UK launch: Why now, why no DVDs, and what's next? (2012)

https://www.wired.com/story/netflix-reed-hastings-feature/
1•microsoftedging•6m ago•1 comments

Show HN: AI Agent for Documentation and other apps

https://sitegui.com/agent/platform_assistant
1•ciaovietnam•7m ago•0 comments

Nonprofit news media leaders are struggling to stop leaning on foundations

https://theconversation.com/nonprofit-news-media-leaders-are-struggling-to-stop-leaning-on-the-foundations-that-say-they-should-branch-out-more-255821
2•rntn•9m ago•0 comments

Why figuring out what's behind a big gender paradox won't be easy (2018)

https://arstechnica.com/science/2018/10/gender-differences-in-personality-are-bigger-in-egalitarian-countries/
1•Tomte•9m ago•0 comments

Why does Taylor Swift write so many one-note melodies? (2017)

https://www.bbc.com/news/entertainment-arts-41886475
1•Tomte•9m ago•0 comments

Why Windows 11’s most important new feature is post-quantum cryptography

https://arstechnica.com/security/2025/05/heres-how-windows-11-aims-to-make-the-world-safe-in-the-post-quantum-era/
1•Ivan92•10m ago•0 comments

Show HN: Bricks – One Click Dashboards from Your Data Using AI

https://app.thebricks.com/sign-up
1•manpreetsgarha•10m ago•0 comments

Financial Datasets: Connect your LLM to the stock market

https://www.financialdatasets.ai/
1•handfuloflight•12m ago•0 comments

Enter the maze of Hong Kong's tech wonderland

https://restofworld.org/2022/tech-markets-hong-kong/
1•outrunner•12m ago•0 comments

Show HN: A Social Media Feed for Busy B2B SaaS Founders

https://getmentio.com/
3•Mredfox•14m ago•1 comments

Starfish Space announces plans for first commercial satellite docking

https://www.nasaspaceflight.com/2025/05/starfish-plans-first-commercial-satellite-docking/
1•LorenDB•15m ago•0 comments

Computational Public Space [video]

https://www.youtube.com/watch?v=PixPSNRDNMU
1•coloneltcb•16m ago•0 comments

Optional Rust-in-FreeBSD Support May 2025 Status Report

https://hardenedbsd.org/article/shawn-webb/2025-05-20/optional-rust-freebsd-support-may-2025-status-report
2•todsacerdoti•16m ago•0 comments

Show HN: I made a SaaS to generate viral scripts for faceless Shorts

https://zeroface.ai/
1•maximedupre•17m ago•0 comments

Hosting SQLite databases on GitHub Pages – (or IPFS or any static file hoster) (2021)

https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/
2•thunderbong•18m ago•0 comments

Do electric cars need a gearbox?

https://www.youtube.com/watch?v=YAryICHkKjA
2•janosch_123•19m ago•1 comments

Agentic AI Systems – Tools, System Design, and Resources for AI Agents

https://github.com/alirezadir/Agentic-AI-Systems
2•alirezadeer•19m ago•0 comments

Pushing a whole stack of branches with a single Git command

https://andrewlock.net/pushing-a-whole-stack-of-branches-with-a-single-git-command/
1•bpugh•21m ago•0 comments

Docker Launches Hardened Images, Intensifying Secure Container Market

https://thenewstack.io/docker-launches-hardened-images-intensifying-secure-container-market/
1•CrankyBear•21m ago•0 comments

Can You Fool the Audience?

https://www.honest-broker.com/p/can-you-fool-the-audience
1•paulpauper•25m ago•0 comments

We Run on Junk

https://natejh.com/We-Run-On-Junk
2•ausbah•25m ago•0 comments