Tales of the Ruby Grimoire - Part One - The Grimoire
Tags: ruby, haskell, javascript, scala
Published: 2019-08-04 05:46:50

---
title: Tales of the Ruby Grimoire - Part One - The Grimoire
published: true
description: Dark tales of Ruby magics from beyond what any sane Rubyist would teach in a book of legends, opened by a particularly curious young lemur named Red.
tags: Ruby, Haskell, Javascript, Scala
cover_image: https://thepracticaldev.s3.amazonaws.com/i/futtxx7b03da48p7wd32.png
series: Tales of the Ruby Grimoire
---

This is a text version of a talk given at Southeast Ruby 2019, and the first of many tales of the legendary Ruby Grimoire, a great and terrible book of Ruby dark magics.

Want to see how it was made? I've written a post explaining just that:

https://dev.to/baweaver/how-it-s-made-tales-of-the-ruby-grimoire-2lgp

I've broken it into sectional parts so as to not overwhelm, as the original talk was very image heavy. If you wish to skip to other parts, the table of contents is here:

**Table of Contents**

1. [Part One - The Grimoire](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-one-the-grimoire-2712)
2. [Part Two - The Lemurs of Scala](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-two-the-lemurs-of-scala-3d1e)
3. [Part Three - The Lemurs of Javascript](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-three-the-lemurs-of-javascript-5ac9)
4. [Part Four - The Lemurs of Haskell](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-four-the-lemurs-of-haskell-3p4f)
5. [Part Five - On the Nature of Magic](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-five-on-the-nature-of-magic-g63)


# Tales of the Ruby Grimoire - Part One - The Grimoire

Gather ye round, my friends, for the beginnings of what is known as a book of legends, a grimoire of wisdoms long considered forbidden in the lands of the Ruby lemurs.

Knowledges great and terrible, and secrets not for the feint of heart. These are the tales of the Ruby Grimoire, and the knowledges found within.

## Introduction

![Red studying, Scarlet enters to tell she's leaving](https://thepracticaldev.s3.amazonaws.com/i/8gi2xud2zhjy42hljhya.png)

The council of 3.0 had been called, and Scarlet was readying to join them to discuss the future of the land of Ruby. With her was her student, Red, carrying out his latest lesson.

"Now be sure to finish the remaining problems by the time I return, Red. I expect I'll have many fun things to tell you of when I return." said Scarlet.

Red nodded, still writing away on his scrolls, but as Scarlet exited the castle a sly sort of grin grew on his face.

![Scarlet leaving the castle](https://thepracticaldev.s3.amazonaws.com/i/ch2f0r9ab5l9ur71dxcp.png)

For you see, dear audience, there are secrets in the castle of Master Scarlet, tightly guarded and kept secret for many a generation.

Red is fully aware of this fact, but with his master gone, there are no protections on such materials that he cannot break.

![Red has a bad idea](https://thepracticaldev.s3.amazonaws.com/i/4ybp97pz9s65l26idai2.png)

So begins the tale of the darkest of magics, forbidden since the days of old, kept under lock and key since before dear Red had drawn his first breath.

## Breaking the Spell

![Red going down forbidden staircase](https://thepracticaldev.s3.amazonaws.com/i/ztkje0d0x1h0sk6yyb4w.png)

So Red journeyed, deeper and deeper into the catacombs of the castle until all light had faded and none was left but the whisper of his candle's flame. There, at the end of the stairwells, was a door thrice locked.

![Red before a giant locked door](https://thepracticaldev.s3.amazonaws.com/i/4l1y4k7schyjqgehs8zg.png)

Once by reduction, twice by composed functions, and thrice by fundamental Ruby.

The locks fell one by one as the gleam in Red's eyes grew to a fervour, the secrets of the tower within his grasp at last!

![Red inside the forbidden room](https://thepracticaldev.s3.amazonaws.com/i/6mw1knfanqgbheu8z6cf.png)

Slowly the door creaked open with an eerie hiss, a musty wind filling his face as the contents of the room came into view. A library, and one grander than even the grandest of libraries of the wise master Violet! Knowledge beyond all comprehension stretching through all eternity with its splendor.

![Red looking into the library](https://thepracticaldev.s3.amazonaws.com/i/mlw59eblzhsyl5azn924.png)

Red lost his breath at the sight of such majesty, but one book in particular caught his eye. A grimoire of no embellish, no fine craftsmanship, but locked and locked tightly, bolted down to its bindings. It spoke to him in its own way, a haunting melody that enchanted and called him to its pages.

![Red holding the book](https://thepracticaldev.s3.amazonaws.com/i/pknfta7bpngs4alral8m.png)

As his hand met the book, light began to suffuse the room in a glorious blue.

![Red opening the book, blue fog](https://thepracticaldev.s3.amazonaws.com/i/yajmb2vkcz4klzkwzzhx.png)

He opened the book, and the words on the page faded and ran away from his vision, frustrating him to no end as he tried to coax knowledge from the book. He would not be beaten, not when he'd finally found it!

...but then something changed.

## The Grimoire Opens

![Red with open book, fog becomes red](https://thepracticaldev.s3.amazonaws.com/i/hoawxiqq6lccox4ytz4t.png)

The air in the room grew suffocating, the words on the page bleeding into the paper as the fog began to glow an angry red. Then, a new phrase came to its pages:

"Welcome to the Ruby Grimoire, and thank you for freeing me young one."

![Red looking up, scared](https://thepracticaldev.s3.amazonaws.com/i/5qkeiykalylbeq7nf0aw.png)

"Freeing!?" questioned Red aloud, "What does it mean freeing?"

...and the words on the page flowed together as if in reply:

"Behold the Dark Lord Crimson!"

...in a harsh and angular font, and when Red looked up, something was standing there.

![The Dark Lord Crimson](https://thepracticaldev.s3.amazonaws.com/i/xfqmcz7eyjvlainmkapv.png)

A specter, a malignant and angry being cloaked in the red fog with eyes aflame and a rumbling voice which shook the room. Each step a clap of thunder as it drew closer and closer still, and Red?

![Red terrified](https://thepracticaldev.s3.amazonaws.com/i/4aczz589bnuy1uoyqtsz.png)

Red reacted how you might expect, terrified of course, but these are whimsical and fun stories and I never cared much for horror, so that's quite enough of that.

## The Dark Lord Crimson Emerges

![What Crimson actually looks like](https://thepracticaldev.s3.amazonaws.com/i/ynt45ecaou39wqunbpsc.png)

The fog coalesced as Crimson stepped out of the shadows, shielding his eyes from the light.

"Keep it down, no need to be rude. I can’t see a thing with that lamp, and it’s been quite a while since I’ve had visitors here." said Crimson, slightly annoyed. "...and quite loud ones at that!"

Red stared back, stupefied.

"Ah! The Grimoire! How long it’s been since there was a lemur strong enough to open it." exclaimed Crimson, staring down at the book in Red's hands.

![Excited Crimson](https://thepracticaldev.s3.amazonaws.com/i/6hh91qjyfxgp1g5wlouu.png)

"Welcome welcome! So so long indeed, a seeker of my knowledges at last, how exciting it is! What lessons shall we learn first! What arts can we attempt, what stories to be told! So much possibility indeed!" Crimson said, almost tripping over his own words in excitement.

![Crimson with Grimoire, showing magics](https://thepracticaldev.s3.amazonaws.com/i/2hobayq1s2uum2rc9qxv.png)

"Tales of the lands beyond the REPL, into the deep shells and languages of old and new alike, power beyond your wildest imaginations all written upon these pages. But I must ask, young one, are you willing to pay the cost of that knowledge?" said Crimson, continuing

![Red excited](https://thepracticaldev.s3.amazonaws.com/i/ii35dh7z9ezfa49o18xn.png)

Red, poor poor Red, was transfixed, nodding vigorously. There were knowledges here beyond him, and knowledges he would learn no matter the cost.

## The True Nature of the Grimoire

![Crimson showing magics with Red](https://thepracticaldev.s3.amazonaws.com/i/roxwubwyx4y3sjdxooce.png)

"The Grimoire is a journal of my journeys into the lands beyond Ruby, where I met several wise ones beyond me or anything that had been seen before..." said Crimson, "...and of all the tales that could be told, we shall start with three, some of my personal favorites."

![Crimson showing books of Scala, Javascript, and Haskell](https://thepracticaldev.s3.amazonaws.com/i/9wm4z7w3awec1zv3gzh3.png)

"Tales of the Lemurs of Scala, of Javascript, and of Haskell. Each bearing knowledge beyond what I’d imagined, and we’ll take a glance at each today." said Crimson

# End of Part One

In the next parts we'll get into the adventures of the Grimoire, and what Red found inside.

**Table of Contents**

1. [Part One - The Grimoire](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-one-the-grimoire-2712)
2. [Part Two - The Lemurs of Scala](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-two-the-lemurs-of-scala-3d1e)
3. [Part Three - The Lemurs of Javascript](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-three-the-lemurs-of-javascript-5ac9)
4. [Part Four - The Lemurs of Haskell](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-four-the-lemurs-of-haskell-3p4f)
5. [Part Five - On the Nature of Magic](https://dev.to/baweaver/tales-of-the-ruby-grimoire-part-five-on-the-nature-of-magic-g63)