Do The Math - Learn you a Haskell-the spooky, esoteric cult classic of programming languages.
WIRED|July - August 2024
Learn you a Haskell-the spooky, esoteric cult classic of programming languages. Programming paradigms are mainly divided into "imperative programming" and "functional programming." The dichotomy isn't clear-cut, as a growing number of languages support both styles, but for our purposes it may be enough to say that in imperative programming you write code as a series of steps, line by line, while in functional programming you define mathematical functions and let the machine worry about the steps. In terms of actual functionality and usage, imperative programming is the far more common approach.
By Sheon Han- Illustration By Samuel Tomson
Do The Math - Learn you a Haskell-the spooky, esoteric cult classic of programming languages.

In my first job out of college, I was assigned the task of rewriting the autocomplete feature of a search page. The original code, entombed in a decrepit codebase, was a nauseating monstrosity that others wanted no truck with. The plan was to rewrite it in TypeScript-a dialect of JavaScript-drawing on a library that incorporated some handy features from a language called Haskell.

Haskell. It sounded like a good name for a weapon-a well-sharpened blade, like scimitar or katana. The strong German-sounding plosive in its name, as in Nietzsche or Kafka, added a menacing edge. All I really knew about the language was that it was challenging and intended for math PhDs.

The rewrite could be done without knowing Haskell, technically, but I was an overeager graduate with a "challenge accepted" attitude to everything, even when it was absolutely uncalled for. I found a whimsically titled tutorial book –Learn You a Haskell for Great Good! – and spent that winter writing Haskell most evenings after work. It was like learning to program all over again.

Long before Haskell coalesced into a programming language, it was a swarm of theoretical concepts. In 1977, the computer scientist John Backus delivered an influential lecture titled "Can Programming Be Liberated From the Von Neumann Style?" In it, he argued that existing languages were becoming bloated and ineffective. It was a clarion call to evolve "functional programming" from mathematical esoterica to a practical tool.

This story is from the July - August 2024 edition of WIRED.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the July - August 2024 edition of WIRED.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM WIREDView All
Spin Cycle - To study tornadoes, it helps to wear a skirt (and rocket launchers).
WIRED

Spin Cycle - To study tornadoes, it helps to wear a skirt (and rocket launchers).

To study tornadoes, it helps to wear a skirt (and rocket launchers). When the Dominator is about to intercept a tornado, Timmer uses a two-prong system to anchor the vehicle. Air compressors lower the car so its thick rubber skirt nearly touches the ground, and spikes wedge 6 inches into the earth to firmly prevent the vehicle from liftoff. Timmer and ONeal have seen roughly 65 tornadoes in the past six months. It was a historic amount, ONeal says. A lot of meteorological setups are busts, but every day we drove out this year, we felt like we would see a tornado.

time-read
1 min  |
September - October 2024
Fantastic Plastic - a plastic bag might be the most overengineered object in history.
WIRED

Fantastic Plastic - a plastic bag might be the most overengineered object in history.

Stretchy seaweed. Reverse vending machines. QR-coded take-out boxes. To cure our addiction to disposable crap, we'll all need to get a little loony.

time-read
10+ mins  |
September - October 2024
Piece of Mind - This diagram maps 1 cubic millimeter of the brain-but its unprecedented clarity deepens the mysteries of cognition.
WIRED

Piece of Mind - This diagram maps 1 cubic millimeter of the brain-but its unprecedented clarity deepens the mysteries of cognition.

This diagram maps 1 cubic millimeter of the brain-but its unprecedented clarity deepens the mysteries of cognition. Although this image wouldn't look out of place on a gallery wall alongside other splashy works of abstract art, it represents something very real: a 1-cubic-millimeter chunk of a woman's brain, removed during a procedure to treat her for epilepsy. Researchers at Harvard University stained the sample with heavy metals, embedded it in resin, cut it into slices approximately 34 nanometers thick

time-read
1 min  |
September - October 2024
I Am Laura Kipnis-Bot, and I Will Make Reading Sexy and Tragic Again
WIRED

I Am Laura Kipnis-Bot, and I Will Make Reading Sexy and Tragic Again

WHEN A FLATTERING EMAIL ARRIVED inviting me to participate in an AI venture called Rebind that I'd later come to think will radically transform the entire way booklovers read books, I felt pretty sure it was a scam.

time-read
10+ mins  |
September - October 2024
DAMAGE CONTROL
WIRED

DAMAGE CONTROL

According to Léna Lazare, the 26-year-old face of the radical climate movement, they're also acts of joy.

time-read
10+ mins  |
September - October 2024
AN IMPERFECT STORM
WIRED

AN IMPERFECT STORM

CAN THE U.A.E. REALLY MAKE RAIN ON DEMAND OR IS IT SELLING VAPORWARE?

time-read
10+ mins  |
September - October 2024
THE HOLE IN THE MAP OF THE WORLD
WIRED

THE HOLE IN THE MAP OF THE WORLD

ON THE SURFACE, THERE'S NOTHING UNUSUAL ABOUT IT. JUST A SPOT OF OCEAN. BUT BENEATH THE WAVES LURKS SOMETHING INCREDIBLE: A MASSIVE WATERFALL. AND IN ITS MYSTERIOUS DEPTHS, THE FATE OF THE WORLD CHURNS.

time-read
10+ mins  |
September - October 2024
COOLER HEADS
WIRED

COOLER HEADS

The deadliest environmental threat to city dwellers worldwide isn't earthquakes, tornadoes, flooding, or fire. It's heat.

time-read
4 mins  |
September - October 2024
TERMINAL VELOCITY
WIRED

TERMINAL VELOCITY

IT WAS 2 AM at Denver International Airport, and Jared Murphy was only a few hours into a planned 17-hour layover.

time-read
3 mins  |
September - October 2024
THE ETERNAL TRUTH OF MARKDOWN
WIRED

THE ETERNAL TRUTH OF MARKDOWN

If the robots take over, we should at least speak their language.

time-read
4 mins  |
September - October 2024