frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: A deterministic I Ching engine, cross-validated against another impl

https://github.com/yaomancy/liuyao-engine
2•Jincheng-xie•1h ago
I built a deterministic engine for I Ching (六爻 / Liu Yao) hexagram casting and open-sourced the core (Apache-2.0). I want to be upfront that the interesting part here is not the divination — it's a testing problem, and I'd like feedback on how I handled it.

The engine takes a moment in time plus a coin toss and mechanically derives a fully annotated chart: the hexagram, its palace, the stem-branch (najia) assignments, the "six relatives," moving lines, void days, and the line-strength skeleton. It does not interpret anything — it only emits hard, mechanical facts.

The problem that made this interesting: the rules are ~3000 years old, written in classical Chinese, and different schools contradict each other. There is no official answer key, and human experts disagree and are sometimes wrong. So the tests I'd naturally write just encode the same assumptions my code does — if I misread a rule, the code and its test are wrong together and both stay green. The self-validation paradox.

My way out was differential testing against independent oracles. I diff every field of the chart against `najia` (a separate MIT implementation) and a second machine-readable rule table, over random-but-seeded samples in CI. A field is only trusted when all three agree. The calendar layer (which is zero-tolerance — a day-pillar off by one silently corrupts everything downstream) gets its own diff, sxtwl vs lunar-python, focused on the nasty boundaries: solar-term month divisions, the 23:00 day change, and cross-timezone casting.

That principle ended up driving the design: anything that can't be independently cross-validated doesn't enter the core. That's why the traditional "auspicious stars" (神煞), true-solar-time correction, and school-mixing are all deliberately excluded — not because they're "wrong," but because I have no way to prove the code computes them correctly.

I'm in UTC+8 (China) so replies from me may lag by a few hours during your daytime — but I'll be around all day when I'm awake. Happy to go deep on any of it.

Show HN: Getting GLM 5.2 running on my slow computer

https://github.com/JustVugg/colibri
855•vforno•2d ago•211 comments

Show HN: Tinyreplay – lightweight session replay without analytics/cloud

https://github.com/kzekiue/tinyreplay
2•kzekiue•1h ago•0 comments

Show HN: Dotenv-Diff v3.0.0

https://github.com/Chrilleweb/dotenv-diff
4•chrillemn•3d ago•0 comments

Show HN: A deterministic I Ching engine, cross-validated against another impl

https://github.com/yaomancy/liuyao-engine
2•Jincheng-xie•1h ago•0 comments

Show HN: Wyrm – Solve algebra by touch, built on an open-source soundness engine

https://github.com/dicroce/wyrm_math
74•dicroce•1d ago•14 comments

Show HN: 18 Words

https://18words.com/
1100•pompomsheep•1d ago•351 comments

Show HN: Reverse-engineering web apps into agent tools

82•pancomplex•1d ago•34 comments

Show HN: Frugon – Find which LLM calls a cheaper model could handle (local, MIT)

https://github.com/Rodiun/frugon
60•jarodrh•3d ago•11 comments

Show HN: Reviving my 2001 college band with AI

https://www.fadingmaize.com
53•jacobgraf•1d ago•58 comments

Show HN: Abralo – Free, easy way to run several Claude Code agents in one window

https://abralo.com/
34•cwbuilds•2d ago•25 comments

Show HN: SubjectiveZero, an open-source agentic node editor for creative coding

https://sxp.studio/apps/subz
23•tasoeur•18h ago•4 comments

Show HN: Krbn, a pencil-style 3D renderer with SVG output

https://github.com/vpalos/Krbn
2•vpalos•4h ago•0 comments

Show HN: Runloom – Go-style coroutines for Python free-threaded

https://github.com/robertsdotpm/runloom
45•Uptrenda•20h ago•28 comments

Show HN: Phobos – A tiny scale-free kernel language with tile-DAG support

https://www.joa-ebert.com/posts/2026-07-07-phobos-lang/
7•joajoa•3d ago•1 comments

Show HN: Analog Watch

https://analog.watch
103•ezekg•1d ago•95 comments

Show HN: I mapped 8.5M research papers into an interactive atlas

https://tomesphere.com/atlas
79•leonickson•2d ago•24 comments

Show HN: Velocity – a keyless 3D globe that fuses 15 live Intel feeds

https://github.com/AndrewCTF/osint-geospatial-console
3•AndrewCTF•7h ago•0 comments

Show HN: @playbykey/theory - Music theory TypeScript engine and MCP server

https://theory-engine.docs.playbykey.com/
2•codewithbre•7h ago•4 comments

Show HN: FableCut – A browser video editor AI agents can drive (zero deps)

https://github.com/ronak-create/FableCut
96•ronak_parmar•1d ago•58 comments

Show HN: Rubiks Cube Solver

https://speedcube.com.br/
23•wozzp•1d ago•13 comments

Show HN: Follow London Trains in 3D

https://ride.nexttrain.london/
154•mgranados•6d ago•62 comments

Show HN: I built a web tool to see and edit what an AI thinks before it answers

https://lucid.earthpilot.ai
33•ada1981•1d ago•8 comments

Show HN: Microsoft releases Flint, a visualization language for AI agents

https://microsoft.github.io/flint-chart/#/
344•chenglong-hn•2d ago•136 comments

Show HN: LastShelf – an emergency map of your family's documents bills& contacts

https://www.lastshelf.ai/
47•sbrown12•1d ago•32 comments

Show HN: RandoFont – A browser for Google Fonts

https://randofont.alesh.com
24•aleshh•1d ago•3 comments

Show HN: Sighthound - open-source vulnerability scanner for source code

https://github.com/Corgea/Sighthound
19•asadeddin•1d ago•0 comments

Show HN: Neil the Seal Game

https://neiltheseal.app/
97•dalemhurley•5d ago•88 comments

Show HN: Yamanote.fun – A complete soundscape for Tokyo's Yamanote line

https://www.yamanote.fun/
236•madebymagnolia•3d ago•52 comments

Show HN: Devthropology – Better Insights for GitHub Repos

https://devthropology.com/demo
37•dpc94•1d ago•10 comments

Show HN: Pylon Sync, an agent-first full-stack realtime framework

https://www.pylonsync.com
12•ericc59•1d ago•4 comments