frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How an Oil Refinery Works

https://www.construction-physics.com/p/how-an-oil-refinery-works
79•chmaynard•1h ago

Comments

jmyeet•1h ago
This is a really good overview of oil refining. I'll add a few things.

1. The light and heavy distinction is covered by a measure called API gravity [1]. The higher the API gravity, the lighter the crude;

2. Refiners mix different crude types depending on what kind of refined products they want to produce;

3. Heavy crude tends to be less valuable although it's essential for some applications. Lighter crude produces generally more valuable products like gasoline, diesel and avgas. But heavy crude goes into construction (eg roads) and fuel for ships (ie bunkers));

4. Most refineries in the US are very old and are very polluting. They don't need to be this way. A new refiner would produce vastly less pollution but they're almost impossible to get permission to build now. One exception is the Southern Rock refinery currently being built in Oklahoma [2], which will be powered by largely renewable energy and produce a lot less emissions than an equivalent older refinery with the same capacity;

5. There are different blends of gasoline that the US produces. The biggest is so-called summer and winter blends. What's the differene? Additives are added to summer blends (in particular) to increase the boiling point so less of the gasoline is in gas form because that produces more smog;

6. California uses their own blends so in 2021-2022 when CA gas went to $8+, it wasn't just "gouging". It doesn't really work that way. CA requires a particular blend that only CA refineries produce so it's simple supply and demand as no new capacity gets added to CA refineries and demand goes up with population growth.

The reason for the CA blend goes back to the 80s and 90s when smog was a much bigger problem. Better vehicle emissions standards since then as well as improvements in the blends the rest of the country uses have largely made the CA blend obsolete so CA is really paying $1+/gallon more for literally no reason; and

7. California doesn't build pipelines so is entirely dependent on seaborne oil imports (~75%) despite the US being a net energy exporter. Last I checked, ~20% of that foreign oil comes through the Strait (from Iraq, mostly) so, interestingly, CA is more vulnerable to the Strait of Hormuz closure than the rest of the country.

I guess I'll add a disclaimer: I'm very much pro-renewables, particular solar. I think solar is the future. But we currently live in a world that has huge demand for oil and no alternatives for many of those uses (eg diesel, plastics, construction, industrial, avgas) so we should at least be smart about how we go forward.

[1]: https://en.wikipedia.org/wiki/API_gravity

[2]: https://www.oklahoman.com/story/news/2023/05/24/5-6-billion-...

alephnerd•50m ago
> Most refineries in the US are very old and are very polluting

India's Reliance is also investing $300B [0] in a Texas megarefinery [1] in specifically for cleaner and more efficient shale refining.

This is deeply technical and complex but low margins work (semiconductor fabrication falls in the same boat) which saw this industry leave for abroad in the 2000s and 2010s when other states like China and India subsidized their refinery industries to build domestic capacity for a number of petroleum byproducts with industrial applications.

This is the same strategy Japan, South Korea, and Taiwan used in the 1960s-90s as well.

[0] - https://www.bloomberg.com/opinion/articles/2026-03-17/ambani...

[1] - https://www.bloomberg.com/news/articles/2026-03-11/reliance-...

criddell•15m ago
Looking at the chart in the article I was kind of surprised at how small wind and solar are globally and that coal is still ~25%.
vel0city•10m ago
> they're almost impossible to get permission to build now

While I do agree there's a ton of regulatory hurdle to cross to build a new refinery, lots of interviews with oil executives have stated the economics of building a new refinery aren't always great. The reasons why they aren't building isn't necessarily because the regulatory hurdles are too high, its that they don't think they'll end up making any money building them. The future demand of many refined products are uncertain, adding a lot of new capacity is quite a capital risk.

I'd love to see a lot of our ancient refineries shut down and replaced with far more modern designs, but the oil industry isn't going to do it because it probably won't be profitable.

It will be interesting to see the economics of these few new refineries coming online actually play out in the coming years.

t_tsonev•20m ago
The article is quick to point out the huge role of oil in the modern energy mix. It also fails to note that most of the energy ends up us waste heat. The so called "Primary energy fallacy". Other than that, it's a great read.
arlobish•18m ago
When people talk about “transitioning off oil” it's not just about replacing gasoline in cars but disrupting this entire global infra.

Show HN: ComicInk – AI tool that turns a prompt into a full comic book

https://www.comicink.ai
1•comicink•1m ago•0 comments

Furry

1•PhiPawWolf•1m ago•0 comments

Spain's parliament will act against massive IP blockages by LaLiga

https://www.democrata.es/en/politics/congress-and-senate/congress-will-act-against-massive-ip-blo...
1•akyuu•3m ago•0 comments

City Learns Flock Accessed Cameras in Children's Gym Room as a Sales Pitch Demo

https://www.404media.co/city-learns-flock-accessed-cameras-in-childrens-gymnastics-room-as-a-sale...
2•pavel_lishin•4m ago•0 comments

Can You Trust It? Open Source Framework

https://github.com/springfield40xdm/canyoutrustit
1•OpenIdiot•4m ago•0 comments

Official SAP NPM packages compromised to steal credentials

https://www.bleepingcomputer.com/news/security/official-sap-npm-packages-compromised-to-steal-cre...
3•Brajeshwar•5m ago•0 comments

Recursive Refinement

https://dheer.co/recursive-refinement/
1•bushido•5m ago•0 comments

Sources: Anthropic could raise a new $50B round at a valuation of $900B

https://techcrunch.com/2026/04/29/sources-anthropic-could-raise-a-new-50b-round-at-a-valuation-of...
3•yakkomajuri•7m ago•0 comments

I Mean, Why Shouldn't We All Smoke Cigarettes Again?

https://www.thecut.com/article/should-we-start-smoking-cigarettes-again.html
2•robtherobber•8m ago•0 comments

Fed's key inflation gauge hits 3.5% as Iran war pushes up gas prices

https://www.cnn.com/2026/04/30/economy/us-pce-fed-inflation-spending-march
1•MilnerRoute•9m ago•0 comments

Democracy's Missing Quarter

https://blog.danielyj.com/blog/demeny-voting
1•bear_with_me•10m ago•0 comments

Show HN: A 11.7KB Weather Widget Built with Vanilla JavaScript and Shadow DOM

https://wordpress.org/plugins/wfy24-weather-widget/
1•weatherfun•10m ago•0 comments

Show HN: Npx LLM-safe-haven – harden your AI coding agent in 60 seconds

https://github.com/pleasedodisturb/llm-safe-haven
1•pleasedodisturb•11m ago•0 comments

US Economy Grows 2%, Boosted by Surging AI Investment

https://www.bloomberg.com/news/articles/2026-04-30/us-gdp-rose-2-in-early-2026-in-sign-of-economy...
3•alephnerd•12m ago•2 comments

AI Hallucinations Put South Africa on the Spot

https://www.bloomberg.com/news/articles/2026-04-30/ai-hallucinations-put-two-south-african-minist...
1•1vuio0pswjnm7•14m ago•0 comments

The 1960s Art School Experiment That Redefined Creativity

https://thereader.mitpress.mit.edu/the-1960s-art-school-experiment-that-redefined-creativity/
2•pseudolus•14m ago•0 comments

Runtime-Loaded Translations in Angular

https://medium.com/@tomasreznar/why-we-moved-from-angulars-static-aot-i18n-to-runtime-loaded-tran...
1•anianz•15m ago•0 comments

I sequenced my genome at home

https://iwantosequencemygenomeathome.com/
2•vikrum•16m ago•0 comments

Show HN: Sampletext.store/ We built a dumb web shop and we cannot look away

https://sampletext.store/
2•smrtfckrr•17m ago•0 comments

Show HN: Video as Code for Agents

https://github.com/zPy52/video-as-code-for-agents
2•dontoni•18m ago•0 comments

Show HN: I made a Chrome extension for sharing news article quotes as images

https://www.peekd.app/
3•herrj•19m ago•0 comments

Critical cPanel and WHM bug exploited as a zero-day, PoC now available

https://www.bleepingcomputer.com/news/security/critical-cpanel-and-whm-bug-exploited-as-a-zero-da...
4•Brajeshwar•19m ago•0 comments

Show HN: Hexlock – Replace PII in text with fake data that has the same format

https://github.com/ttarvis/hexlock
4•lemaudit•19m ago•0 comments

Show HN: Flocklist, minimalist graph-based task tracker

https://flocklist.app/?onboarding=true
4•ilqr_jb•20m ago•0 comments

An opinionated, interactive map of the open standards in the data world

https://www.data-landscape.com/
3•simonharrer•21m ago•1 comments

Show HN: Shuck – a fast shell linter written in Rust

https://github.com/ewhauser/shuck
3•ewhauser421•21m ago•0 comments

Ways in which GenAI has changed the way I write code so far

https://lengrand.fr/ways-in-which-genai-has-changed-my-coding-so-far/
2•speckx•24m ago•0 comments

FeurStagram: Open-source Android Instagram patched with distraction blocking

https://github.com/jean-voila/FeurStagram
2•jean-voila•25m ago•0 comments

How to make SSE token streams resumable, cancellable, and multi-device

https://zknill.io/posts/everyone-said-sse-token-streaming-was-easy/
2•zknill•25m ago•0 comments

PyTorch Lightning project quarantined by PyPI

https://pypi.org/project/lightning/
5•grepLeigh•25m ago•3 comments