Passez à l'illimité avec Magzter GOLD

Passez à l'illimité avec Magzter GOLD

Obtenez un accès illimité à plus de 9 000 magazines, journaux et articles Premium pour seulement

$149.99
 
$74.99/Année

Essayer OR - Gratuit

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.

PLUS D'HISTOIRES DE WIRED

WIRED

WIRED

THE FIGHT OF HER LIFE

Surrogate pregnancy is all the rage in Silicon Valley and beyond. What happens when it goes horribly wrong?

time to read

25 mins

November - December 2025

WIRED

WIRED

SPACE EMPEROR

ELON MUSK CONTROLS THOUSANDS OF INTERNET SATELLITES AND MORE THAN HALF THE WORLD'S ROCKET LAUNCHES. CAN ANYONE STOP HIM?

time to read

20 mins

November - December 2025

WIRED

THE IMPROBABLE

Tech billionaire Mike Lynch made probability his life's work, until his wildly unlikely death at sea. Now, many of his friends and associates-and survivors of the disaster-are speaking about what happened for the first time.

time to read

25 mins

November - December 2025

WIRED

OUT WITH THE OLD

Introducing WIRED's 2025 Political Power Users-the 22 very online creators, podcasters, and pundits who will blow up the next electoral era.

time to read

14 mins

November - December 2025

WIRED

POLITICS GETS WIRED

IT'S BEEN ONE year since Donald Trump took back the White House.

time to read

2 mins

November - December 2025

WIRED

WIRED

FAHRENHEIT 5G

INSIDE THE MIND OF THE MOST PROLIFIC VIOLENCE OF OUR ERA. ANTI-TECHNOLOGY ARSONIST IN AMERICAAND THE CONSPIRACY-DRIVEN POLITICAL

time to read

23 mins

November - December 2025

WIRED

WIRED

KAT'S OUT OF THE BAG

At 26 years old, Kat Abughazaleh thinks she's uniquely qualified for Congress. But running for office is a different sort of influencing.

time to read

13 mins

November - December 2025

WIRED

WIRED

MOV'D BY THE SPIRIT

Whether your chip runs an old computer game or a new DeepSeek model, it'll reward you for speaking its native tongue: assembly.

time to read

5 mins

November - December 2025

WIRED

WIRED

SKELETON CREW

Somewhere out in the countryside, hidden behind a copse of trees, are fields full of dead human bodies. These corpses have been strategically laid out in rows, naked as the day they were born, and left to the mercy of the elements until all that's left of them are bones.

time to read

3 mins

November - December 2025

WIRED

WIRED

QUEEN OF CHIPS

Lisa Su has built AMD into a chipmaking phenom. And as the US-China tech war rages on, she's at the center of it all.

time to read

8 mins

November - December 2025

Listen

Translate

Share

-
+

Change font size