frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: I simulated closing the Strait of Hormuz on real oil trade data

https://globaloilnetwork.staffinganalytics.io/
5•eliotho•9h ago

Comments

eliotho•9h ago
Author here. What started as a numerical experiment for a paper turned out to be something else.

The model: I take UN Comtrade data for crude trade flows, build an oil flow routing matrix (with countries as nodes, extending it to include maritime chokepoints) and simulate how the network is stressed by the closure of the Strait of Hormuz. Each country has oil reserves that deplete sequentially, in an event-driven simulation.

The math is basically Eisenberg-Noe interbank contagion, but for oil. Instead of bank defaults, nodes are limited by their “capped” production limits. The inventories evolve as a multi-dimensional Skorokhod problem, which sounds complicated but just means "inventory can't go negative and the shortfall propagates through the routing matrix."

What’s really surprising: In the Hormuz scenario, even though France’s sourcing doesn’t come from Hormuz at all, the endogenous pricing mechanism (prices spike, so every country inflates its safety-stock targets) pushes its reserve depletion 4.5 weeks EARLIER than in a fixed-price model. Nothing physical happened to it, deliveries dropped 0.0%. Its buffer gets eaten purely by the precautionary math of its own hedging policy responding to the global price. Meanwhile the countries that actually got hit (Japan loses 85% of flow) survive slightly LONGER, because high prices destroy demand and stretch their reserves.

Preemptive comments: - “Exporter reserves depleting in 5 weeks is absurd." Yes if you consider them as storage. Here, they are export-capacity slack (calibrated as a percentage of geological reserves). Importer buffers are the real story (IEA 90-day stockholding mandates). - There is no sanctioned/unreported trade: Fair, for example Iran-China trade is underrepresented. The tool is a stress-test and not a forecast. Adding the data is potentially an interesting follow-up exercise. - There is not explicit rationing, buffers drain mechanically: The model is just a baseline. - Costs are constant: In reality they are variable and a function of the oil price.

Engineering notes (since it’s HN): Frontend is globe.gl, backend is ~600 lines of Flask with LLM assistance from the manuscript numerical example (outputs reproduce the paper’s tables)

Paper with proofs: [https://arxiv.org/abs/2607.17491] Try it yourself! Close Malacca or Suez instead (the sliders also tell an interesting pricing story).

HarHarVeryFunny•8h ago
What concrete predictions does your model make?

What developments in pricing/other would indicate that your model is wrong or incomplete?

Nice website regardless, but I'm a bit skeptical that the dynamics of the global oil/energy market can be accurately predicted.

eliotho•8h ago
>What concrete predictions does your model make?

Well, the model is less of a prediction and more of a stress testing tool. But under the hypothetical closure scenarios it shows the timing the oil reserves of distant countries exhaust, as well as the systemic effects on pricing (the France paradox).

>What developments in pricing/other would indicate that your model is wrong or incomplete? The model has a stylized way of incorporating pricing as a function of the total supply. In practice, when countries ration their oil that's beyond the scope of the model. That being said, the implied pricing trajectory is estimated and could be tested (the staircase graph showing prices constant while countries absorb the shock with their reserves and rebalanced whenever there is a reserve depletion).

>Nice website regardless, but I'm a bit skeptical that the dynamics of the global oil/energy market can be accurately predicted. Thank you! Indeed, but I think having at least a stylized testing tool might be useful for policymakers :$ (assuming decisions are ever data-driven lol)

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

128•adam_rida•2h ago•61 comments

Show HN: Palmier Pro – Open-source macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
94•harrisontin•6h ago•16 comments

Show HN: Claude-thermos – keeps your Claude session warm for you

https://github.com/izeigerman/claude-thermos
48•s0ck_r4w•4h ago•37 comments

Show HN: Trifle – Open-source analytics that stores answers, not events

https://trifle.io/
28•iluzone•1d ago•2 comments

Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents

https://github.com/onecli/onecli
62•Jonathanfishner•6h ago•24 comments

Show HN: Remux – an open-source tmux workspace designed for iPhone

https://github.com/h3nock/remux
78•bitwise42•7h ago•29 comments

Show HN: Advanced Coffee Search Covering Over 17,000 coffees

https://beangenie.coffee/coffee
2•epicwynn•25m ago•0 comments

Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

https://yamafaktory.github.io/whetuu/
44•yamafaktory•7h ago•27 comments

Show HN: macOS menu-bar manager for SSH port forwards

https://github.com/lx2026/RelayBar
37•linxy97•7h ago•5 comments

Show HN: I built a zero-latency developer tool suite in pure Vanilla JavaScript

https://omnideck.cc/
18•AAPD_Studio•7h ago•10 comments

Show HN: Dally – A little every day adds up

https://mctools.site
16•totaldude87•8h ago•1 comments

Show HN: Bento - An entire PowerPoint in one HTML file (edit+view+data+collab)

https://bento.page/slides/
979•starfallg•1d ago•228 comments

Show HN: Notebooker.ai – NotebookLM alternative, your own models, keys, storage

https://notebooker.ai/
3•mistakevin•2h ago•0 comments

Show HN: Flow Matching model inference in C

https://github.com/ecrasevvv/c-fm/tree/master
3•ecrasevvv•4h ago•0 comments

Show HN: Hanky – ETL style framework for loading flash cards into Anki

https://github.com/Haeata-Ash/hanky
10•funfruit•7h ago•0 comments

Show HN: GapQuery – find app-market gaps from 35,600 apps and their reviews

https://www.gapquery.com
6•northify•7h ago•0 comments

Show HN: Syncle – Open-source real-time database synchronization engine

https://github.com/osmanahmadxai/SYNCLE
2•osmanahmadxai•4h ago•0 comments

Show HN: Setoku – Self-hosted knowledge server for AI agents

https://setoku.com/
3•rgbrgb•4h ago•0 comments

Show HN: Historic adobe buildings mapped across America

https://adobepueblo.com/
3•not_wowinter13•4h ago•0 comments

Show HN: Cactus Hybrid: We taught Gemma 4 to know when it's wrong

https://github.com/cactus-compute/cactus-hybrid
183•HenryNdubuaku•1d ago•40 comments

Show HN: I simulated closing the Strait of Hormuz on real oil trade data

https://globaloilnetwork.staffinganalytics.io/
5•eliotho•9h ago•3 comments

Show HN: I made YAFL – a E2EE file handoff for AI agents

https://yafl.dev
4•marcushorndt•7h ago•1 comments

Show HN: What's AI's go-to, public or private healthcare?

https://www.modelbias.ai/prompt/public-or-private-healthcare
8•bnfcl•7h ago•3 comments

Show HN: DeepSQL – A self-hostable DBA agent for Postgres and MySQL

https://deepsql.ai/
50•venkat971•3d ago•29 comments

Show HN: Web swing through midtown NYC

https://www.swingnyc.com/
75•shahahmed•1d ago•26 comments

Show HN: HN Hall of Fame – browse 3,100 legendary Hacker News links

https://www.orangecrumbs.com/hall/
204•oyster143•1d ago•38 comments

Show HN: NeoBox – a native macOS NeoGeo emulator front end

https://neo-box.app
4•harisamin•6h ago•0 comments

Show HN: Find undervalued bikes near you with ML

https://bike.broker
3•azuroscloudapi•6h ago•0 comments

Show HN: A primer for non-coders to design software via structured AI dialogue

https://github.com/CoreGrowthLabs/CoreGrowthPrompting/blob/main/README.en.md
5•CGP_Labs•6h ago•1 comments

Show HN: MinkNote – Native macOS notes and journaling using Markdown files

https://muse23.com/apps/minknote/
2•demianturner•6h ago•0 comments