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/
33•eliotho•1d ago
OP here: I created this visualization tool as the byproduct of a supply chain class I taught at Columbia. The pedagogical exercise grew into a full blown visualization and paper about global oil trade.

The model: The mechanics are the same as the financial network Eisenberg-Noe: Instead of banks, every country consumes oil interconnected via bilateral trading. Shocks propagate throughout the network, depleting oil reserves when bottleneck nodes (such as the Strait of Hormuz) are blocked.

Insights: The interesting part is the mechanics of how the crisis unfolds: for example, France receives 0 oil from Hormuz directly, yet their reserves are depleted faster because other countries reactively increase their safety oil stock, increasing oil price, making stockouts more expensive for everyone.

The model also gives price dynamics which are interesting on their own: the price increase is not immediate, it follows sequentially as countries reserves deplete.

Some caveats: 1. For producer nodes, depletion means their export slack is reduced/exhausted. 2. No sanctioned trade (UN Comtrade data)

Technical Details: The visualization is 600 lines of flask plus js frontend (LLM assisted visualization with ground-truth matching the original numerical exercise of the paper)

Paper with proofs/theory: https://arxiv.org/abs/2607.17491

Comments

HarHarVeryFunny•1d 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•1d 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)

refulgentis•56m ago
I really do appreciate the effort but the data doesn’t reflect current conditions, and it’s falsified given it’s been virtually closed for months, certainly the same as 30% throughout that is the models default parameter, and we didn’t see ex. prices at $150/barrel 3 weeks in, or a host of other things it predicts.

EDIT: I’m not saying it doesn’t matter the strait is closed - it does! - it’s just, what are we to do with a model that generically tells us oil barrel prices is at $150 3 weeks in, when we are months in?

eliotho•54m ago
That's kind of the point because it hasn't been totally 100% closed. There's both sanctioned and unsanctioned oil flowing, which is the point of the scenarios in the simulation. Also it's more of a simulation/stress tool at a sustained closure than a prediction one
firasd•43m ago
Very interesting. Here in India people were very concerned about potential cooking gas shortages (LPG) when the disruptions began which is also a good example of usually-overlooked dependencies on the the Strait
eliotho•39m ago
and the interesting thing is that the common factor is that all these crises (oil, financial, gas) spread silently until a node collapses and there is a domino effect over the whole network
kingjimmy•37m ago
Are emergency stockpiles calculated correctly? China should not be the first to be exposed.
eliotho•35m ago
For the importer nodes those are IEA mandates. In the specific China case, the UN Comtrade data doesn't report sanctioned oil (Iran)
repeekad•15m ago
China hides its stockpile numbers, and estimates are only what we can see. After buying loads of sanctioned oil for stockpiles, they are perfectly positioned to take advantage of trumps blunders in the straight and likely will get to set the price of oil if they aren’t already..
eliotho•12m ago
Which is the interesting game-theoretic aspect of the whole conflict. China really hasn't revealed their hand
sebzuddas•35m ago
What modelling approach are you using, and where can I learn more about it? Really cool, btw.
eliotho•30m ago
Thanks, the modeling is similar math to the financial banking networks paper by Eisenberg and Noe Systemic Risk in Financial Systems (used as a stress tool by regulators after the 2008 financial crisis). My adaptation is combining this with the inventory management part in my article: https://arxiv.org/abs/2607.17491
tamimio•18m ago
But in reality this won’t happen, because China won’t be happy and will force Iran to a deal like last time or they will lose all the parts and intelligence tech they are providing to them.
eliotho•15m ago
Exactly, which is what makes the simulation interesting because nobody really knows China's reserves clock.

But with the tool, you can put your guess number and see that the game of chicken also has an expiration date for them

Claude Opus 5

https://www.anthropic.com/news/claude-opus-5
1151•alvis•5h ago•623 comments

Postgres LISTEN/NOTIFY actually scales

https://www.dbos.dev/blog/postgres-listen-notify-scalability
147•KraftyOne•3h ago•28 comments

My security camera shipped a GitHub admin token in its login page

https://hhh.hn/hanwha-github-token/
475•hhh•10h ago•165 comments

India's first privately-developed rocket reaches orbit on debut launch

https://arstechnica.com/space/2026/07/indias-first-privately-developed-rocket-reaches-orbit-on-dr...
447•sohkamyung•4d ago•131 comments

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

https://globaloilnetwork.staffinganalytics.io/
33•eliotho•1d ago•14 comments

Nvidia, Microsoft, Meta warn against overregulating open-weight models

https://www.cnbc.com/2026/07/24/nvidia-microsoft-meta-open-weight-ai-models.html
433•louiereederson•9h ago•206 comments

Designing an Ethernet Switch ASIC

https://essenceia.github.io/projects/ethernet_switch_asic/
53•random__duck•4d ago•12 comments

Opus 5 is currently #1 on Artificial Analysis Intelligence Leaderboard

https://artificialanalysis.ai/models
28•aarondong•3h ago•14 comments

Fil-C: Garbage In, Memory Safety Out [video]

https://www.youtube.com/watch?v=5F-2Y1LPRek
84•Bootvis•1d ago•77 comments

An old patent inspired the new "Y-zipper", a three-sided fastener

https://news.mit.edu/2026/three-sided-y-zipper-design-0504
89•crescit_eundo•2d ago•25 comments

The Secret Origins of Amazon's Alexa

https://www.wired.com/story/how-amazon-made-alexa-smarter/
25•Anon84•3d ago•4 comments

Gsxui – Shadcn-style components for Go

https://ui.gsxhq.dev/
50•jackielii•4h ago•8 comments

If coding has been solved, why does software keep getting worse?

https://ptrchm.com/posts/nothing-works-and-everyone-is-euphoric/
399•pchm•13h ago•329 comments

Half-Life 2 running natively on HaikuOS

https://discuss.haiku-os.org/t/haiku-nvidia-porting-nvidia-driver-for-turing-gpus/16520?page=18
243•m0do1•10h ago•43 comments

Marimo now runs in PyCharm

https://marimo.io/blog/pycharm
53•cantdutchthis•2d ago•10 comments

Kimi K3 exploited the latest Redis server

https://twitter.com/fried_rice/status/2080059356322918777
102•Alifatisk•1d ago•29 comments

Firefox Containers Preview

https://blog.mozilla.org/en/firefox/firefox-containers-preview/
179•twapi•3d ago•70 comments

Don't Take the Black Pill [video]

https://www.youtube.com/watch?v=zLZwpH5lCD4
95•signa11•6h ago•61 comments

Unitree As2-W

https://www.unitree.com/As2-W/
82•MehrdadKhnzd•6h ago•37 comments

I got into YC Startup School by hacking it

https://obaid.wtf/jotbook/2026/07/18/how-i-got-into-yc-by-hacking-it.html
90•speckx•4h ago•55 comments

Be skeptical of OpenAI's rogue hacker agent story

https://www.theguardian.com/technology/2026/jul/24/openai-rogue-hacker
362•rwmj•6h ago•192 comments

The footprints of every building in NYC

https://www.beautifulpublicdata.com/the-footprints-of-every-building-in-nyc/
35•jonathanmkeegan•4d ago•4 comments

How to Write a Quine

https://czterycztery.pl/slowo/quine-EN.html
4•mci•1d ago•0 comments

Show HN: Max Studio Tools – C++ DSP Modules for Max and Ableton Live

https://github.com/apresta/max-studio-tools
8•apresta•1h ago•0 comments

Flux 3 X Mimic: The Next Generation of Video-Action Models

https://bfl.ai/blog/flux-3-mimic
304•kensai•13h ago•48 comments

Future euro banknote design proposals

https://www.ecb.europa.eu/euro/banknotes/future_banknotes/html/all-design-proposals.en.html
101•robin_reala•13h ago•98 comments

Government orders GitHub to remove Bluetooth-based chat app Bitchat: Jack Dorsey

https://www.thehindu.com/news/national/government-orders-github-to-remove-bluetooth-based-chat-ap...
333•rootkea•8h ago•251 comments

Programming language file extensions that match ISO 3166-1 alpha-2 country codes

https://www.bruh.ltd/blog/programming-language-file-extensions-that-match-an-iso-3166-1-alpha-2-c...
29•speckx•10h ago•17 comments

IRGC claims it destroyed Amazon's Bahrain data center

https://houseofsaud.com/irgc-claims-destroyed-amazon-bahrain-data-center/
216•thisislife2•13h ago•271 comments

The case for MUDs in modern times (2018)

https://www.andrewzigler.com/feed/the-case-for-muds-in-modern-times
64•bw86•11h ago•64 comments