frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Caslib – Computer Algebra Calculator (Hack Club Project)

https://github.com/breynard0/caslib
1•breynard•1m ago

At Age 25, Wikipedia Refuses to Evolve

https://spectrum.ieee.org/wikipedia-at-25
1•asdefghyk•2m ago•1 comments

Show HN: ReviewReact – AI review responses inside Google Maps ($19/mo)

https://reviewreact.com
1•sara_builds•2m ago•0 comments

Why AlphaTensor Failed at 3x3 Matrix Multiplication: The Anchor Barrier

https://zenodo.org/records/18514533
1•DarenWatson•3m ago•0 comments

Ask HN: How much of your token use is fixing the bugs Claude Code causes?

1•laurex•7m ago•0 comments

Show HN: Agents – Sync MCP Configs Across Claude, Cursor, Codex Automatically

https://github.com/amtiYo/agents
1•amtiyo•8m ago•0 comments

Hello

1•otrebladih•9m ago•0 comments

FSD helped save my father's life during a heart attack

https://twitter.com/JJackBrandt/status/2019852423980875794
2•blacktulip•12m ago•0 comments

Show HN: Writtte – Draft and publish articles without reformatting, anywhere

https://writtte.xyz
1•lasgawe•14m ago•0 comments

Portuguese icon (FROM A CAN) makes a simple meal (Canned Fish Files) [video]

https://www.youtube.com/watch?v=e9FUdOfp8ME
1•zeristor•15m ago•0 comments

Brookhaven Lab's RHIC Concludes 25-Year Run with Final Collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
2•gnufx•18m ago•0 comments

Transcribe your aunts post cards with Gemini 3 Pro

https://leserli.ch/ocr/
1•nielstron•21m ago•0 comments

.72% Variance Lance

1•mav5431•22m ago•0 comments

ReKindle – web-based operating system designed specifically for E-ink devices

https://rekindle.ink
1•JSLegendDev•24m ago•0 comments

Encrypt It

https://encryptitalready.org/
1•u1hcw9nx•24m ago•1 comments

NextMatch – 5-minute video speed dating to reduce ghosting

https://nextmatchdating.netlify.app/
1•Halinani8•25m ago•1 comments

Personalizing esketamine treatment in TRD and TRBD

https://www.frontiersin.org/articles/10.3389/fpsyt.2025.1736114
1•PaulHoule•26m ago•0 comments

SpaceKit.xyz – a browser‑native VM for decentralized compute

https://spacekit.xyz
1•astorrivera•27m ago•0 comments

NotebookLM: The AI that only learns from you

https://byandrev.dev/en/blog/what-is-notebooklm
2•byandrev•27m ago•1 comments

Show HN: An open-source starter kit for developing with Postgres and ClickHouse

https://github.com/ClickHouse/postgres-clickhouse-stack
1•saisrirampur•28m ago•0 comments

Game Boy Advance d-pad capacitor measurements

https://gekkio.fi/blog/2026/game-boy-advance-d-pad-capacitor-measurements/
1•todsacerdoti•28m ago•0 comments

South Korean crypto firm accidentally sends $44B in bitcoins to users

https://www.reuters.com/world/asia-pacific/crypto-firm-accidentally-sends-44-billion-bitcoins-use...
2•layer8•29m ago•0 comments

Apache Poison Fountain

https://gist.github.com/jwakely/a511a5cab5eb36d088ecd1659fcee1d5
1•atomic128•31m ago•2 comments

Web.whatsapp.com appears to be having issues syncing and sending messages

http://web.whatsapp.com
1•sabujp•31m ago•2 comments

Google in Your Terminal

https://gogcli.sh/
1•johlo•33m ago•0 comments

Shannon: Claude Code for Pen Testing: #1 on Github today

https://github.com/KeygraphHQ/shannon
1•hendler•33m ago•0 comments

Anthropic: Latest Claude model finds more than 500 vulnerabilities

https://www.scworld.com/news/anthropic-latest-claude-model-finds-more-than-500-vulnerabilities
2•Bender•38m ago•0 comments

Brooklyn cemetery plans human composting option, stirring interest and debate

https://www.cbsnews.com/newyork/news/brooklyn-green-wood-cemetery-human-composting/
1•geox•38m ago•0 comments

Why the 'Strivers' Are Right

https://greyenlightenment.com/2026/02/03/the-strivers-were-right-all-along/
1•paulpauper•39m ago•0 comments

Brain Dumps as a Literary Form

https://davegriffith.substack.com/p/brain-dumps-as-a-literary-form
1•gmays•39m ago•0 comments
Open in hackernews

Show HN: Decision-layer – your refund logic doesn't belong in Slack

https://github.com/data-riot/decision-layer
2•emt00•6mo ago
You know the drill.

Some mix of product, support and eng decides how refunds work. It lives in a Notion doc. Then Slack. Then hardcoded as a bunch of if statements. No tests. No trace. No version control.

decision-layer is a small framework to clean that up.

You write the logic in YAML. Run it like code. Test it. Trace it.

What it does: - Versioned YAML policies - CLI to run and test them - Trace output with every rule fired - Examples: refunds, escalation, tiering

All in plain Python. No weird dependencies. Just testable logic defined clearly.

⸻

Would love to hear what confuses, breaks or annoys you. (Or what would make this usable where you work.)

Comments

emt00•6mo ago
Thanks for checking this out.

I built this after one too many rounds of debugging refund logic that lived partly in code, partly in Slack/Notion and in human HDD.

What it is: A minimal framework to define decisions (refunds, escalation, tiering) in YAML, run them in Python, and trace exactly what rule fired.

Not trying to be: - A full-blown policy engine - A DSL replacement - A product

Just something useful for when your business logic needs versioning, traceability, and tests but you don’t want to build all that infra from scratch.

Trace output → shows you exactly which rule fired and why Versioning → write your policies like code, diff them, roll back Testable → run them with real inputs, locally or in CI

Happy to answer: Why YAML? (it’s config, not code) How this fits in a real app What I’d add next if people use it

Use it. Abuse it. Feedback very welcome.

zahlman•6mo ago
Nice concept. It doesn't seem to live up to the promise, though.

In particular, the apparent logic for determining whether the example order "is_late" a) is in the "Order" model (in entities.py), not in the YAML; b) apparently just checks whether the customer claims the order was late, rather than actually comparing the order and delivery dates. It appears that everything is hard-coded around provided Customer and Order models; I get that you aren't trying to be fully general, but people are going to have more data on their customers than this, and business logic that cares about that data.

The CLI doesn't seem production-ready either. "3.2" is a strange default for policy version (presumably chosen to make the test pass), and if you have multiple required arguments on the command line it isn't usual to make them all keyworded.

Oh, and to apply the MIT license properly you should have such a file in the repository and appropriate metadata in pyproject.toml.

You might also consider:

* Publishing an installable wheel, so that people don't have to do a "development"-type installation. Tools like uv and pipx can even set up a new environment from scratch for such a wheel; you already include the same abstract requirements in pyproject.toml after all. BTW, pip can now install from PEP 735 "requirement groups" described in pyproject.toml, and is soon expected to install from PEP 751 lockfiles. Regarding the licensing, you should also definitely check out PEP 639 https://peps.python.org/pep-0639/ .

* Accepting TOML as a third input format (it natively supports dates; support is built in since 3.11, and the original library they incorporated is available for earlier Python versions and is a small amount of native Python code, unlike pyyaml which may bring in a couple megabytes of compiled C).

* Allowing for mixing and matching of input formats (they're all fairly interchangeable anwyay).