試す - 無料

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.

WIRED

このストーリーは、WIRED の July - August 2024 版からのものです。

Magzter GOLD を購読すると、厳選された何千ものプレミアム記事や、9,500 以上の雑誌や新聞にアクセスできます。

すでに購読者ですか?

WIRED からのその他のストーリー

WIRED

WIRED

Bloodlines

MASTER THE ART OF CLONING. LOCK DOWN COPIES OF THE WORLD'S GREATEST HORSES. THEN DOMINATE THE SPORT OF KINGS. THAT WAS THE PLAN. BUT SOME TECHNOLOGIES ARE JUST A BREEDING GROUND FOR BETRAYAL.

time to read

21 mins

September - October 2025

WIRED

WIRED

The Dose in the Machine

IS A NEW GENERATION OF AI-DESIGNED DRUGS ABOUT TO ARRIVE?

time to read

15 mins

September - October 2025

WIRED

WIRED

WELLNESS GONE WILD

LEAF SWALLOWING, ICEBERG EXFOLIATION, AND OTHER TECHNIQUES FROM EARTH'S ORIGINAL TREND-SPREADING INFLUENCERS.

time to read

4 mins

September - October 2025

WIRED

WIRED

A.I. LOVE YOU

WHAT'S IT LIKE TO BE DEEPLY, SERIOUSLY IN LOVE WITH A CHATBOT? TO FIND OUT, I ORGANIZED A WEEKEND GETAWAY FOR THREE HAPPY COUPLES. WE BARELY SURVIVED.

time to read

27 mins

September - October 2025

WIRED

WIRED

OPERATION INFLUENCE

A HEAD-TO-TOE MARKETING GAME WHERE EVERYONE-YES, EVERYONE!-IS THE DOCTOR.

time to read

4 mins

September - October 2025

WIRED

WIRED

PERFECT HEALTH

THIS SELECT GEAR WILL KEEP YOU FIT, RESTED AND BALANCED IN BODY AND MIND.

time to read

6 mins

September - October 2025

WIRED

WIRED

THE ENSHITTIFICATION OF AMERICAN POWER

First Google and Facebook, then the whole world.

time to read

6 mins

September - October 2025

WIRED

WIRED

The Chemical Cassandra

IN THE PRESENCE OF CERTAIN SCENTS AND CHEMICALS, MILLIONS OF PEOPLE SUFFER INEXPLICABLE, OFTEN DEBILITATING REACTIONS. MY MOTHER IS ONE. ANOTHER IS THE CONDITION'S LEADING SCIENTIFIC AUTHORITY.

time to read

21 mins

September - October 2025

WIRED

WIRED

HOW TRUMP CRUSHED CANCER RESEARCH

WHEN DONALD TRUMP movedback into the White House, the United States was years into its Cancer Moonshot, a multibillion-dollar Democratic effort to halve cancer deaths by 2047. There was a kind of stalemate: New cases of the disease were emerging about as often as before; deaths were ticking steadily lower; the US Food and Drug Administration was approving new treatments, if not quite as quickly as anyone wanted. But the taps of federal funding were open as never before, from the Department of Defense to the Environmental Protection Agency to the largest funder of cancer research in the world, the National Institutes of Health.

time to read

2 mins

September - October 2025

WIRED

WIRED

The Olympics on Steroids

AT FIRST IT WAS DISMISSED AS A CRAZY JOKE. MAKING THE ENHANCED GAMES A REALITY NEEDED A PETER THIEL POSSE, A COUPLE OF RETIRED SWIMMERS, SOME MAGA MONEY, AND A WHOLE LOT OF DRUGS.

time to read

23 mins

September - October 2025

Listen

Translate

Share

-
+

Change font size