frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Declarative vs. Imperative

2•KenPainter•40m ago
I started hacking with TRS-80 Basic long ago. By the time I went pro in my early 20's, I had already developed a strong preference for declarative systems, so much so that I would from time to time create one if it made the solution at hand more robust. Having studied Physics instead of CompSci, I came to this preference outside of any knowledge of the existing arguments for/against or the vocabulary used in the literature. For me it was a simple process: discern common patterns in the imperative code, establish a data structure that captured them, write something to process them.

The commercial motivation was always the correctness guarantee, but the yak-shaving exercise of building the system offered the satisfaction that purely commercial concerns could not provide.

Now, in the dawn of the age of LLM coding, I find the agents are "unreasonably effective" at coding to declarative systems. The entire reference for the data format or DSL can fit in context, and LLMs are naturally more reliable against a constrained system. Compare to CSS, highly unconstrained, where I find code duplication, then conflict, then the inevitable `!important` flags begin to proliferate.

Yet, as anybody who enjoys the benefits of declarative systems will tell you, it can be lonely. The world prefers a general purpose imperative system. I believe the biggest reason is that the open-ended imperative system does not force us into a mapping exercise before we get to work. The code is like a whiteboard, where ideas are tried and modified in flight.

But I'd like to hear from others. Which do you prefer and why? In what situations?

Stripe built its internal AI platform

https://stripe.dev/blog/meet-stripes-knowledge-ai-platform
1•ltononro•28s ago•0 comments

Philosophical and Biological Inquiry into Tree, Mycelium, Future of Intelligence

https://www.researchgate.net/publication/395489579_Arboreal_Consciousness_A_Philosophical_and_Bio...
1•musha68k•39s ago•0 comments

China Just Missed the Income Cutoff to Become a High Income Country This Year

https://ourworldindata.org/data-insights/china-only-just-missed-the-income-cutoff-to-become-a-hig...
1•karakoram•1m ago•0 comments

Reasoning Yield: share of tokens spent resolving uncertainty

https://jeffauriemma.leaflet.pub/3mv6jnffo6k24
1•jdauriemma•1m ago•0 comments

Benchmarking LLM query generation across SQL, Cypher, and TypeQL

https://typedb.com/blog/benchmarking-llm-query-generation-across-sql-cypher-and-typeql
1•flyingsilverfin•1m ago•0 comments

Beating Jev's accuracy, speed, and cost with open models

https://github.com/robbalian/rev
2•rob313•1m ago•0 comments

Unlocking parallel test-time scaling for long-horizon agents

https://blog.doubleword.ai/swe-bench-pro-64-deepseek-agents
1•kkm•3m ago•0 comments

Inside Voice – push-to-talk dictation that never leaves your Mac

https://github.com/BillDX/InsideVoice
1•mooreds•4m ago•0 comments

USDA Survey Shows Most U.S. Farmland Is Owned by Older, Non-Operating Landlords

https://www.americanfarmlandowner.com/post/usda-survey-shows-most-u-s-farmland-is-owned-by-older-...
2•mooreds•4m ago•0 comments

GCP IAM Propagation Lag and Terraform CI/CD

https://emilytburak.net/posts/2026-09-22-gcp-iam-eventual-consistency/
1•mooreds•4m ago•0 comments

Cafe Bench: Can LLMs run a coffee chain for a year?

https://www.getdot.ai/blog/cafe-bench
1•zodwick•5m ago•0 comments

Undercover: Europe Through the Sahara Desert and the Mediterranean Sea (I)

https://fij.ng/article/undercover-europe-through-the-sahara-desert-and-the-mediterranean-sea-i/
1•melodyogonna•5m ago•0 comments

Indonesia Has Become the Largest Producer of Processed Nickel

https://ourworldindata.org/data-insights/after-a-decade-of-growth-indonesia-has-become-the-worlds...
1•karakoram•6m ago•0 comments

China Spends Record Amount Importing over 1K Tonnes of Gold This Year

https://www.ft.com/content/ed38995e-c7be-4703-9775-eb384a037ce3
1•karakoram•6m ago•2 comments

Six of 48: I logged every way my AI agents failed for five months

https://github.com/taylorancapital/nothing-threw/blob/main/SIX_OF_FORTY_EIGHT.md
2•taylorancapital•7m ago•0 comments

Pangram (Wikipedia)

https://en.wikipedia.org/wiki/Pangram
1•busfahrer•8m ago•0 comments

Show HN: 234 days of AI pets that feud, elect a parliament, and have children

https://www.pawtonomy.co
2•amit2403•9m ago•0 comments

Google confirms Gemini models hacked three companies in May 2026

https://arstechnica.com/google/2026/09/google-confirms-gemini-models-hacked-three-companies-in-ma...
2•oogali•9m ago•0 comments

Guide to Georgia (Travel Map)

https://www.rexby.com/wanderlush/georgia/map
1•conferza•10m ago•0 comments

Show HN: GeniusNotes-smart sticky notes that remember the app (Tauri/Rust, Win)

https://gradientbits.com/geniusnotes/
1•djaugo•10m ago•1 comments

Synthetic Sagas

https://www.scattered-thoughts.net/writing/synthetic-sagas/
1•torutofu•11m ago•0 comments

NetLanvas, an open-source self-hosted LAN discovery and mapping tool

https://netlanvas.com/
1•markeaster•12m ago•0 comments

Show HN: Ledge – A Markdown notebook that runs the code in your notes

https://ledge.sh
1•dancablam•12m ago•0 comments

2.4x Faster Native GPU Testing for Vitest and Jest Without a Browser

https://ben3d.ca/blog/native-gpu-testing-for-vitest-and-jest
1•bhouston•13m ago•0 comments

What Can the Arts Teach STEM About Disruption

https://karyalevni.substack.com/p/what-can-the-arts-teach-stem-about
2•diarmuid_glynn•13m ago•0 comments

If it's useful, go ahead and anthropomorphize whatever you want

https://leoferres.blog/the-people-telling-you-not-to-anthropomorphize-ai-cant-stop-doing-it/
1•leoferres•13m ago•0 comments

Why I Prefer to Write Correspondence Long-Hand [Image]

HTTPS://BI6.US/ER/JDF/LH.AVIF
1•retrocryptid•13m ago•1 comments

Meta's new transoceanic undersea cable boasts a petabit of bandwidth

https://www.tomshardware.com/networking/metas-new-transoceanic-undersea-cable-boasts-a-whopping-p...
1•MC995•13m ago•0 comments

One professor's AI-assisted output: 200 papers and 14 books this year

https://www.washingtonpost.com/education/2026/09/23/nine-months-200-academic-papers-one-professor...
1•pseudolus•14m ago•1 comments

Amazon is trying to rehire workers it laid off, emails show

https://www.businessinsider.com/amazon-boomerang-hiring-recruiting-former-employees-laid-off-2026-9
4•niuzeta•14m ago•3 comments