

Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- > Notice how the decoded values give relative positions, each value represents the difference from the previous position, not absolute coordinates. This is crucial: instead of encoding large column numbers like 27698 in minified files, source maps only store small deltas like +7 or +15, making the encoded strings much more compact.
Wouldn't "offset" be a more apt term?
by tantalor - Delta and offset mean the same thing — the difference between two amounts.
Delta is perhaps slightly more obscure outside of a math setting. Perhaps.
by paulddraper - It sounds equally apt to my ear. I've used both words for this concept in the past.by recursive
- In this case I feel it's like six of one and a half-dozen of the other.
Delta definition 4: (mathematics, physics, engineering) The symbol Δ; A change in a quantity, likely from "d" for "difference"
Offset definition 7: The distance by which one thing is out of alignment with another.
Got these from Wiktionary:
by accrual - Delta Encoding is the common termby hanikesn
- To me, “offset” sounds more like the distance from the start, whereas here the values are relative to the previous segment. Not a native english speaker, so I could be wrong.by manojvivek
- I love it when things are displayed so nicely on mobile. This could've been a pain to read and get through but it was actually quite pleasant.by kayson
- Recent related post where Apple seemingly forgot to disable source maps for the App Store
Apple's App Store Full Front End Source Code
https://news.ycombinator.com/item?id=45804664
edit: formatting
by pseufaux - Tangentially related, but last year I've made a tool to recover original sources from web apps which expose source maps (with the sourcesContent value present), including enumerating all lazily loaded chunks:by zb3