Day 3 – Christmas Crunching Part I

“Advent is here”, the buzz was all around, the elves were getting nervy and the reindeer pawed the ground.

Rudolph (for it was he) stood in quiet contemplation as the elves increased their pace and the din grew ever louder. As we every other Christmas, he was wondering how to get the job done – checking and rechecking all the flight system and navigation data.

He cracked open his laptop – Linux, of course, for that is the leading nordic OS – and opened a Command Line Terminal session. Being a Raku fan of old, he had caught wind of a new feature in the App::Crag model -> inbuilt support for LLM::DWIM (that famous LLM CLI module by the awesome Brian Duggan) and his hooves started to clack away on the keys.

Light Speed

The first challenge was to work out the total distance to travel on Christmas Day and then to know what speed Santa’s slight would need to average in order to get around the entire Earth in just 24 hours.

Click fullscreen to enlarge text…

Wowee – 3.5% of the speed of light (c), eh?

Also – Rudolph was quite impressed with the new built in App::Crag LLM features … boy those Raku guys knew how to jump on a bandwagon. A command line calculator that can source the value of just about anything right there, convert to units of measurement for dimensional analysis and assign to temporary variables so that unit math is comprehensible and that you can backtrack and amend any mistakes or changes along the way. No need to look up planetary stats, physics constants … or even do a text LLM query for advice on formulae.

[Kids – do not even think about using App::Crag to cheat on your end of term exams]

Lorentz Contraction

And that made him wonder about the Lorentz contraction, would they still be ablt to fir all the gifts into the sleigh? [editor note: Rudolph is genius level for a reindeer, ok!]

Amazing – the sleigh would only contract by 7.4214mm – just a sliver and space for gifts aplenty.

Rudolph nodded sagely and lit his MeerSchaum, it would be alright on the night after all.

Rudolph’s calm and cozy,
no rush, no need to roam—
he’s happily puffing his meerschaum pipe
by the stables’ frosty dome.

Find out if Christmas can go on after all in the next thrilling instalment…

~librasteve


Credits

Some of the App::Crag features in play tonight were:

  • ?<some random LLM query>
  • ^<25 mph> – a standard crag unit
  • ?^<speed of a diving swallow in mph> – put them together to get units
  • 25km – a shortcut if you have simple SI prefixes and units
  • $answer = 42s – crag is just vanilla Raku with no strict applied

Checkout the crag-of-the-day for more – but beware, this is kinda strangely addictive.

One thought on “Day 3 – Christmas Crunching Part I

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.