TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: EBNF Specification of the BBC Shipping Forecast

136 pointsby jamespwilliamsover 3 years ago

17 comments

vincent-manisover 3 years ago
A long time ago, two Canadian computer scientists published a paper where they had written a 1-page Lisp program that got a passing grade on the British Columbia written driver&#x27;s exam. It relied on the fact that in those days, all questions on the exam that started with “Must...” had the answer “yes”, questions starting with “May...” had the answer “no”, any question containing “pedestrian” was answered with “stop, the pedestrian has the right of way”, and a few others. “Immediately notify the Superintendent of Motor Vehicles” was the default answer.<p>As I say, this program passed the exam, and the result was presented at a Canadian AI conference. They&#x27;ve changed the exam since then.<p>By the way, when I did my exam (long before this experiment), the person in front of me failed.
unfocussed_mikeover 3 years ago
This is the cutest thing I have seen in weeks.<p>For those outside the UK who are unfamiliar, the shipping forecast is the most British thing possible. A concise forecast that reads as pure poetry, and before it, <i>Sailing By</i>:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=dFdas-kMF74" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=dFdas-kMF74</a>
评论 #30240848 未加载
评论 #30240257 未加载
评论 #30238075 未加载
评论 #30239064 未加载
hanozover 3 years ago
This has just given me the epiphany that if the BBC is ever put out to grass, which does now seem to be in the offing, then the preservation of the shipping forecast at least, would be only a few weather APIs and some speech synthesis away.<p>Which would be good &#x2F; occasionally moderate.
评论 #30242627 未加载
评论 #30242844 未加载
FearNotDanielover 3 years ago
The &quot;strict&quot; definition used here is not strict enough. Presumably it is based on the prose description in the linked Wikipedia page, which omits one crucial fact about the area forecasts: each area is included exactly once, and always in the same order (approximately clockwise starting from &#x27;Viking&#x27; in the North East). Culturally speaking, it&#x27;s an important part of the poetry that groups such as &quot;Forth, Tyne, Dogger, German Bite&quot; always appear in the same order, though the rhythm&#x2F;groupings can be broken up differently depending on the weather patterns.<p>I&#x27;m still not happy that they renamed Finistere to FitzRoy, and that was 20 years ago now.
kitdover 3 years ago
From my random forecast:<p><i>Faeroes, Wight, and FitzRoy. East hurricane force 12 to violent storm 11. Heavy snow. Poor, becoming good. Severe icing. Sole and Forties. East 2 to hurricane force 12, becoming cyclonic northeast severe gale 9 later. Wintry showers. Very poor, becoming poor. Severe icing.</i><p>Yikes! Might stay inside.
jsmith99over 3 years ago
Excellent. Although the real shipping forecast is full of helpful forecasts like &#x27;Moderate to good, occasionally very poor&#x27;, which does seem to cover all the possibilities.
melissalobosover 3 years ago
Is there any source that has all(or at least 1000+) of the historic shipping forecasts? I have an old tool to do probabilistic parsing that I would like to try on this.
blipvertover 3 years ago
Clip up some samples, Markov chain generator; endless fantasy SF for the insomniac …
评论 #30237651 未加载
anitilover 3 years ago
What a brilliant idea! I had heard that people find listening to the shipping forecast very relaxing, but I didn&#x27;t realise they had such a strict format
gnufxover 3 years ago
Now for a version for &quot;professional idiot&quot; Les Barker&#x27;s Shipping Forecast variations. As well as video of Les reciting it, you can find a version read by Brian Perkins in his normal delivery.<p>Edit: The Perkins version is video G9QumF93PpY on youtube^Wan invidious instance. Check out more of Barker&#x27;s stuff while you&#x27;re at it.
bmsleight_over 3 years ago
This is my got to fall sleep radio. It the most British thing, it is actually (only really used it one) useful if you go sailing.<p>My partner complained last night I was snooring whilst this was too loud on my headphones, but I think of the map, the weather in that place - and off to sleep I got.
评论 #30242118 未加载
nivertechover 3 years ago
Any tools to generate a railroad diagram from EBNF? Preferably CLI.
fsheeover 3 years ago
Huh, great idea. Might (attempt to) do one of these for metars.
stuaxoover 3 years ago
Fantastic - I wonder if any of the automated voices you could hook it up to could have the same relaxing quality as the real thing ?
tedunangstover 3 years ago
Pressure tops out at 999?
satellite2over 3 years ago
Hour can only go from 0 to 19. Is this on purpose?
评论 #30237453 未加载
DC-3over 3 years ago
Wonderful, thanks for sharing.