ReaderTube

AI summary

Yellow marks are automatic key passages. They aren’t personal saved highlights. Select a timestamp to follow along with the video.

Popular programming languages have risen mainly through killer apps, platform exclusivity, and easy upgrade paths rather than through their design, and object orientation appears to be largely coincidental to that success. Java's large marketing campaign and Microsoft's lock-in strategy for C# show how money and ecosystems shape adoption, while the histories of Objective-C, C++, and Ruby suggest that modularity, not objects or inheritance, drove much of the appeal. Functional programming, defined as avoiding mutation and side effects, has not become the norm because it lacks a killer app, is hard to adopt as a quick upgrade, and has not received Java-scale marketing. Its growth is likely to take decades, and how well a language supports that style matters more than whether it is labeled functional.

Why Functional Programming Isn't the Norm

Many developers who discover functional programming wonder why it isn't the dominant paradigm. After years of object-oriented programming, the speaker eventually adopted functional programming and found it so compelling that he began asking the same question. The honest answer is that it is complicated, with no single simple explanation. Tracing how things got this way reveals several factors. The discussion breaks into three parts: language, paradigm, and style. It starts with language. A 2019 developer population report from a company called SlashData compiled usage data from various sources and ranked the top ten programming languages. The list included JavaScript, Python, Java, and others that most developers have heard of. None of the ten were functional programming languages. Looking at this list raises the question of how these languages became so popular. The answer breaks down into three major categories and two exceptions: killer apps, platform exclusivity, and a quick upgrade path. Killer apps are applications so compelling that people adopt the underlying platform or language just to use them. VisiCalc is an early example. Users were so eager to run it that some paid upwards of $10,000 for an Apple II, a machine needed to run a $100 piece of software. In 1980, Byte magazine called VisiCalc the first program responsible for selling entire computer systems. The same pattern appears in programming languages. Adopting a language becomes the cost of getting at an application someone wants. Ruby offers a clear example. Google search trends for Ruby and Rails have the same shape. When Rails arrived in 2005, searches for it spiked, and Ruby's searches spiked in exactly the same way. Both then tapered off together. From this, it is reasonable to conclude that Ruby's place in the top ten is largely explained by Rails, and that Ruby likely would not be among the most popular languages without it. PHP's killer app has changed over time. At first, it was used for making static HTML pages dynamic. Developers could tweak a page, insert some code into the markup, and upload it to a server, and the job was done faster and more easily than with alternatives. Today, PHP's usage has narrowed largely to two applications, WordPress and Drupal. PHP's popularity has declined steadily since 2004, and the total hits for PHP roughly match the combined usage of WordPress and Drupal. This matches anecdotal experience. People still build sites with Drupal and WordPress, but using PHP for personal sites or launching startups built on it is largely finished. Facebook and Slack serve as cautionary tales in this regard. C's killer app was systems programming. When C appeared, the alternatives for writing a kernel or system utilities were assembly language or Pascal. Brian Kernighan, one of C's co-creators, has described how writing systems software in Pascal seemed ludicrous to him. C filled a real need, and its popularity took off as developers reached for it to do systems programming. Functional languages could develop killer apps too. If something sufficiently popular emerges, it may pull its language along with it. Elm UI is one candidate. It lets developers build front-end applications without writing CSS, using a layout system that works well. Closure's Datomic is a database that is independent of programming languages, and if many people adopt it, it could bring Clojure programmers along, much as Rails did for Ruby. Reason ML has Reveal, which lets developers build cross-platform apps with web technologies without running on Electron. Whether these take off remains to be seen. The second pattern is platform exclusivity. Objective-C and Swift are mostly used to build for Apple devices. Apple's platform treats them as the officially supported ways to develop, while other options are technically possible but much harder. Apple sells an enormous number of devices, so the development done in these two languages alone is large enough to place them in the top ten. Under this logic, the design of a language matters less than the size of the platform it serves. Such a language could have been functional, imperative, or object-oriented and still ranked highly. JavaScript follows a similar path, though its platform is the open web rather than a proprietary one. At the web's start, there were two and then quickly three viable options: JavaScript, Java applets, and Flash. Java applets proved miserably slow, and nobody wanted them. Flash had a good run, though it was full of security problems and crashes, and it eventually faded for reasons no one fully understands. Eventually, JavaScript was essentially the only option. Because it held exclusive control over the most widely used application delivery platform in history, it rose to first place, which is surprising. Web Assembly may challenge this, though it faces an uphill battle. C# illustrates platform exclusivity from two angles. In the mid-1990s, as Windows 95 was in development, Sun Microsystems released Java with the slogan "write once, run anywhere." Microsoft disliked this, because if Java ran on any operating system without effort, developers would have less reason to target Windows. Windows and related products generated most of Microsoft's revenue, so Microsoft wanted developers writing for something it controlled. It created C#, a language with a feature set nearly identical to Java's. The goal was lock-in, getting developers to choose Microsoft's language over Java. Microsoft achieved this by tying the language to its extensive, genuinely strong tooling and ecosystem, including MSDN documentation and Visual Studio.

C# and Microsoft's Platform Lock-In

Microsoft wanted developers to use its own language rather than Java, so it created C#, which had a feature set nearly identical to Java's. Its main tactic was platform exclusivity. Microsoft's extensive, high-quality tools and ecosystem, including MSDN documentation and Visual Studio, were built for C#, not Java. Before Visual Studio Code existed, a developer who wanted a Java-like experience in Microsoft's IDEs had only one option: C#. The strategy worked, and C# became very popular, reaching the top ten. Many developers also considered several of its design features improvements over Java, which added to its success.

The Quick Upgrade Path

The quick upgrade path addresses the factors developers weigh when choosing a programming language. Familiarity matters a great deal because people form snap impressions. A language that looks approachable attracts people, while one that looks like a wall of parentheses may drive them away. The learning curve matters too. A developer may look at a language built on dense theory, such as monads from category theory, and wonder whether they have time to work through those textbooks. Ecosystem access matters as well: can the developer use the large body of code already written for other languages? Migration effort matters, too. How different is the new language from the code they already have, and from the way they are used to writing code? The quick upgrade path tells developers not to worry about these concerns. It presents the language as familiar, with a nearly zero learning curve, full access to the ecosystem, and easy code migration, and it tends to downplay any drawbacks.

CoffeeScript's 'Just JavaScript' Pitch

CoffeeScript was one of the early languages to succeed with this approach. Its tagline was 'it's just JavaScript.' The creators claimed that a JavaScript programmer could learn it in about half an hour, and that existing code could be migrated by running a script that converts JavaScript to CoffeeScript. These promises helped push CoffeeScript to a peak where it was the 11th most popular language on GitHub. The tagline was not fully accurate, since CoffeeScript is a different programming language. However, it is close enough to JavaScript that the claim seemed reasonable in practice.

TypeScript, C++, and Kotlin

TypeScript has a stronger claim to the 'just JavaScript' description. It is a strict superset of JavaScript, so a developer can rename a .js file to .ts and it works right away. New features can then be added gradually. Many developers have adopted TypeScript, and it has become very popular. C++ is arguably the first major example of this approach succeeding. It is a near superset of C, though not a strict one. In many cases, a developer could rename a .c file to .cpp and immediately gain C++'s additional features. Kotlin is a more recent example. It differs substantially from Java, yet it is marketed as fully interoperable with existing Java codebases. Its website emphasizes that migration causes little trouble and that a script can convert Java code to Kotlin. Kotlin has also grown rapidly in popularity.

Java's Marketing Push

Two of the top-ten languages have not been covered yet. The first is Java, which used a marketing strategy that, as far as is known, has never been matched before or since. Throughout the 1990s and early 2000s, Sun Microsystems put large amounts of money behind Java. In 2003, when Sun was in financial difficulty, it launched a new $500 million marketing campaign for Java alone, even though it had already spent heavily when it had plenty of cash and already had millions of Java users.

Sun's Commercials and Targeting C++ Programmers

Some of the campaign's advertising was memorable. A late-1990s Sun commercial called 'The Spy' was a James Bond spoof in which a Q-like character walks through a briefcase full of gadgets, each described as built with Java technology. One gadget was a credit card that ran Java code, though the commercial never explained why this was critical to the spy's success. Another moment showed a woman in a lab coat holding a C++ textbook. This suggested that Java would be a natural choice for C++ programmers, who were a key target audience. Java was designed to feel familiar to C++ programmers. James Gosling said that the team wanted to 'hoodwink them into thinking that Java was something that I already understood.' The campaign was successful enough to influence which language eventually became the most popular in the world.

How Java's Hype Shaped JavaScript

JavaScript's early development shows this influence. Brendan Eich, working at Mozilla, was assigned to create a scripting language for the browser that would allow real-time scripts in the user interface. His original design drew on Scheme, a functional Lisp, and this version might have become the most popular language. However, colleagues at Mozilla urged him to take advantage of the Java hype. They suggested putting 'Java' in the language's name, making the syntax resemble Java's, and making the language object-oriented. Eich agreed. As a result, the world's most popular language is object-oriented rather than a functional Lisp. JavaScript would likely still have become enormously popular, since the web was the dominant platform. However, its Lisp-style parentheses might have scared many developers away, so the Java-inspired design probably made a practical difference.

Python's Slow and Steady Growth

Python's story is less dramatic. Its popularity grew slowly and steadily over many years. A useful comparison is Python against two similar languages, Perl and Ruby. In 2005, when Rails was taking off, Ruby surged in popularity because of Rails. At that point, Python was the least popular of the three and was in third place, while Perl was declining. Ruby's popularity later leveled off, while Python kept cruising along. Eventually, Python gained an uptick, and its growth curve rose more steeply. By the present, Python is the second most popular language in the world. It did not jump to the top overnight. Instead, it grew steadily, with small increases that added up over time. This is probably closer to how programming languages would ideally become popular, through good design, people liking them, and gradual adoption over time.

Factors Beyond Design

Real-world popularity is more complicated than design quality. Several other factors matter, and while the stories above are not the only influences, these factors are still important. Syntax, as discussed earlier, shapes people's initial reactions. The job market is another key factor, and it creates a catch-22. Developers avoid learning a language if few employers use it, and employers avoid adopting a language if few developers know it. This favors languages that are already popular and reinforces their popularity. Community can either help or hurt a language's adoption. Ruby's community is widely described as welcoming and friendly, which is a major asset. Functional programming communities are more mixed. Some are considered very welcoming, while others are often seen as arrogant or stuffy. The overall impact of community depends on where a developer looks. Still, these factors are secondary to the main factors discussed earlier.

Why So Many Popular Languages Are Object-Oriented

Given the variety of explanations for how these languages became popular, a question remains. Most of these explanations do not seem to relate to killer apps or similar factors. Apart from C, every language in the top ten is object-oriented. Is there something about object orientation that contributes to this popularity? If this pattern is only a coincidence, it is a rather large one. Investigating this question leads to the concept of paradigms, which is the focus of part two.

Defining Programming Paradigms

Wikipedia defines a paradigm as a way to classify programming languages based on their features. Because features can overlap, paradigms can overlap as well. A language may be imperative, object-oriented, and procedural at the same time, or it may be a hybrid of object-oriented and functional. Understanding how paradigms overlap is the next step toward explaining why object-oriented languages dominate the popularity rankings.

Isolating the features unique to object orientation

Most of the top programming languages other than C are object-oriented, which raises the question of whether object orientation itself explains their popularity. To test this, the analysis narrows the focus to features that belong uniquely to object orientation and do not overlap with other paradigms. The canonical object-oriented features are encapsulation, inheritance, objects, and methods. Inheritance splits into two categories. Interface inheritance is essentially another term for subtyping, which appears in many kinds of languages, so it is not unique to object orientation. Implementation inheritance is what most people simply call inheritance, and it is the form used in the rest of this discussion.

Implementation inheritance as a discouraged practice

Implementation inheritance is widely treated as something to avoid. The phrase 'favor composition over inheritance' is commonly repeated across the field, and it appears to date back to the Gang of Four's design patterns book, a highly influential work on object-oriented design. Today it functions as standard guidance that most experts repeat. Inheritance is found in nearly every object-oriented language, yet it is disfavored in practice. Because inheritance is one of the features that is uniquely object-oriented, it is hard to argue that a feature recommended against as a best practice explains the popularity of these languages. Inheritance therefore does not seem to be the reason.

Modern languages that drop inheritance

Modern languages that describe themselves as supporting object-oriented paradigms show how much they value inheritance. Kotlin needs inheritance because it aims for strong interoperability with Java, which is itself built on inheritance. Go has no such obligation. It is essentially an attempt to build a better C using lessons from the intervening decades. According to Go's FAQ, the language supports an object-oriented style, but it does not include inheritance. Its designers simply decided that inheritance was not worth including.

Methods and objects as syntax over procedures

Once inheritance is removed, methods and objects are essentially the same as procedures with added syntax. In Go, objects and methods are largely syntactic sugar. Consider two calls: a method-style call, circle.grow(3), and a procedure-style call, grow(circle, 3). In both cases the same grow logic runs, and grow has access to the circle and the number. Choosing between method style and procedure style is a matter of syntax, not semantics. The only way these two forms could behave differently is if inheritance were involved. This leaves implementation inheritance and possibly encapsulation as the remaining candidates for uniquely object-oriented features.

How Go achieves encapsulation through modularity

If Go supports an object-oriented style without a first-class concept of objects, it must achieve encapsulation another way. This leads to modular programming, which Wikipedia lists among the programming paradigms alongside imperative programming. Modularity lets a program define a public interface while hiding private implementation details. This idea is called information hiding. It originated in a language called Modula, introduced in 1975. Nearly every modern language now has a module system, with C and C++ as the notable exceptions because they were built before modules became standard. C++ modules are reportedly arriving in C++20, so that gap is temporary. Go includes a module system as well.

Encapsulation as a limited form of modularity

Modularity and encapsulation share the same core definition: a public interface with private implementation details. The difference is scope. Encapsulation applies this idea specifically to objects, so it is a weaker, narrower form of modularity. An early language called Simula, designed for running simulations, had encapsulation but no module system. Simula therefore offered some of the benefits of modularity, limited to objects. Simula was itself influenced by Algol, a highly influential language of the 1960s. Simula introduced objects, classes, and inheritance to the world, all of which were new at the time. It did not introduce garbage collection, which John McCarthy had implemented in Lisp earlier. Simula nonetheless continued to use garbage collection, and it strongly influenced Smalltalk.

Smalltalk and the origin of the term object-oriented

Smalltalk is often considered the most famous of the original object-oriented languages, and some regard it as the only true object-oriented language. Alan Kay designed Smalltalk, drawing on Simula among other sources of inspiration, and he coined the term object-oriented. Objects existed before Smalltalk, but the term itself originated with Kay. In Smalltalk, everything is an object. Objects call methods by passing messages to other objects, and the messages are themselves objects. Classes are also objects, so every primitive in Smalltalk is an object. The term fits this design well, and it was widely adopted. Many people came to believe that object-oriented systems meant systems with objects, classes, and inheritance.

Kay's later clarification of the term

Decades later, in 2003, Kay said that object-oriented programming was never really about the features people had attached to it. In his view, the core ideas are messaging, local retention and protection of state, and extreme late binding of all things. By his account, only Smalltalk and Lisp are truly object-oriented, while languages such as C++ and Java are not. Language evolves over time, however, and the meaning of the term has shifted. Kay's original intent may reflect what he truly meant in the 1980s, but the phrase has taken on a different meaning. Object-oriented programming now refers to what most developers commonly understand it to be, which differs from Kay's definition.

Further reading on the history of the term

Readers who want more detail on objects, Alan Kay, and the history of the term object-oriented can consult a blog post by Hillel Wayne. It covers the history in much greater depth than this discussion.

Smalltalk's influence on Objective-C

Smalltalk influenced Objective-C, which is one of the top ten languages. Brad Cox created Objective-C. In an interview, he explained how he came to create it. He worked at ITT, where his team was programming UNIX systems in C, which is where the C influence in Objective-C comes from. Cox was on a productivity team tasked with helping others in the organization become more productive. In the interview, he said he was not happy with C as a productivity foundation and was looking around for anything that could help. At about that time, an issue of Byte magazine appeared with Smalltalk on its cover. Getting on the cover of Byte in the 1980s was a major event, comparable to reaching the front page of Hacker News today, although the web did not yet exist.

Cox's search for modularity

Cox was leafing through the Byte issue and noticed that Smalltalk offered several features that seemed related to his problem. He was particularly interested in encapsulation, which is a subset of modularity. In his view, C handled encapsulation poorly because everything was public, so the code turned into a mess. Cox essentially wanted modularity and a module system. With hindsight, one can say that he could have looked at Modula and found the real thing that the field would later conclude was desirable. He did not have access to that, however. Smalltalk was the option that happened to appear on a magazine cover, so he adopted it as the solution and built Objective-C from it.

What might have been

Given that Cox knew only Smalltalk at the time, it is interesting to consider how his choices shaped what followed. Byte magazine ran other covers as well, including one for Lisp. A different cover could have changed the outcome. If Modula had appeared on the cover of Byte instead of Smalltalk, Cox might have produced something like modular C rather than Objective-C. In that case, one of the top ten languages might be a dialect of C built around modules rather than objects.

Objective-C and the Accident of Smalltalk

Objective-C could just as easily have become a dialect of Standard ML. Brad Cox had no access to a broad survey of languages. He had BYTE magazine, and Smalltalk happened to be the language on its cover. He saw it as the solution to his problem, adopted it, and built Objective-C on top of it. It is interesting to consider how much that outcome depended on what he happened to know in the 1980s. He was only aware of Smalltalk because there was no web to search. BYTE ran other language covers, too, including one for Lisp. If the cover had shown a different language, the history of programming could look very different. Objective-C might have been a dialect of a different language, and one of today's top ten languages might be something else entirely.

A Misreading of Objective-C's Origins

Cox wanted modularity above all else, and Smalltalk was the way he knew to get it. Looking back, it is easy to misremember this. We tend to think Objective-C arose from a need for modularity, which modules now solve well, and then conclude that object orientation must be great. That is not really the story. When you examine what Cox said about his goals, object orientation was a means to an end, not the end itself.

Stroustrup and C with Classes

Another language also descends from Simula, this time not through Smalltalk. Its creator is Bjarne Stroustrup, who also created C++. Before C++, Stroustrup created a language called C with Classes. It had a specific goal: to add classes to C, along with a somewhat stronger type system to make type checking more robust. In an interview from the 1980s, Stroustrup explained his thinking. He asked himself why he wanted to add classes to C at all, and his answer came from his own experience. In a previous job, he had used Simula and found its classes genuinely useful for modeling a domain. He wanted something more organized than C, and he remembered that classes had worked well in Simula, so he decided to bring them in.

Simula's Influence and the Medium Success Problem

Stroustrup's previous experience with Simula shaped the design of C with Classes. Once the language existed, it ran into a problem he called a medium success. It worked, a few people were using it, and they were happy with it. The trouble was that Stroustrup was the only maintainer, and there were too few people to share the maintenance burden. He faced a dilemma. He could walk away and abandon the project, but its users were his friends, and he did not want to do that. The only other option he saw was to add more features, making the language more useful to more people, in the hope that it would become popular enough to attract another maintainer.

Adding Features and the C++ Name

Stroustrup took that route. He added non-object-oriented features and renamed the language C++. It became somewhat more popular and kept its smooth upgrade path as a drop-in replacement for C. This history gives a fairly direct test of whether object orientation caused success. Stroustrup added object orientation and a stronger type checker, and that combination was not enough to produce success. Only after he added many more features did the language take off. The experiment suggests that object orientation was not the cause of C++'s success. When the language had only its object-oriented features, it was called C with Classes, a name almost no one in the room had heard of. The object-oriented features did not cause C++'s success.

The Lineage of Object-Oriented Languages

Many programmers wrote C for Unix systems, and it was a powerful systems programming language. Its ergonomics were not ideal, and some programmers simply needed modularity. Adding object orientation to C++ made Stroustrup's life better, and he was happier with the language, but it was not enough to make C++ a rocket ship that jumped into the top ten. It only reached that level after he added non-object-oriented features. Java then deliberately appealed to C++ programmers, which explains why its object orientation looks so familiar to C++ developers. Was Java's object orientation a first-class, essential feature, or was it object oriented because that was familiar to a large group of users? Familiarity and a smooth upgrade path matter a great deal. C# was also intentionally designed to match Java's feature set closely, so it could be presented as a viable alternative. If you trace this lineage back, the object-oriented design across all these languages may come down to a single origin: Stroustrup created C with Classes, it was not popular enough on its own, and other features were added later. Those features get no credit. The one medium-success experiment, with its object orientation, gets all of it in retrospect.

Objective-C, Swift, and the Question of Causation

A similar pattern appears with Objective-C. Cox wanted modularity and says so several times in his interview. What he settled on for modularity happened to be Smalltalk, because that was what he knew at the time. Swift then needed backward compatibility with Objective-C, so it is also an object-oriented language. Looking across this group of languages, object orientation does not appear to have caused their success. The opposite seems closer to the truth. In these cases, the link between object orientation and success looks like a coincidence. Python does not belong to any of these families. It is not a direct descendant of C, except in a loose and somewhat odd sense. Did object orientation cause Python's success? There is no interview that addresses this as directly, but there is a quote from Matz, the creator of Ruby. He said that when he made Ruby, he wanted a scripting language more powerful than Perl and more object-oriented than Python. In Matz's view, Python was not particularly object-oriented, and he wanted something that was much more object-oriented, in a way he liked. He was clearly drawn to Smalltalk ideas, and that influence shows in Ruby.

Ruby's Popularity and the Limits of Object Orientation

If object orientation were essential for success, Ruby should have enjoyed long-term success after becoming more object-oriented than Python. Ruby did briefly surpass Python in popularity, but that was largely because of the Rails boom. Once that faded, its popularity declined. Ruby is a killer-app language, and its popularity depended on one application. Python, by contrast, is popular because its fundamental design is good. Object orientation does not explain why the old languages became the norm. The better explanation is that modularity is a good idea, and these languages happened to get it by chance.

The Final Part: Functional Programming Style

The final part concerns style. The functional programming style, as I will define it without citing evidence, means avoiding mutation and side effects. This definition reflects what many people I have spoken with seem to agree on, though no authoritative source defines the functional style, and nobody is entirely sure what it is. I will proceed with this definition and hope you accept it. No language features are strictly required to write in this style. You could almost do it in assembly, though it would not be pleasant. In theory, you can simply choose not to mutate state or create side effects, and most languages, certainly most procedural ones, allow that choice. Languages do differ in how well they support the style. Some are very conducive to it, while others, such as assembly, make it quite difficult.

Why Functional Style Has Not Yet Become the Norm

One explanation is that functional style simply needs more time in the spotlight. Over time, it may become normal, and eventually it may become the norm. This is a fairly compelling argument. Consider the Kotlin FAQ, which asks whether Kotlin is an object-oriented or a functional language. The answer is that it is both, and the FAQ says you can use both. A 1990s Java dialect FAQ would not have said this, because the idea was not present then. Today, support for the functional style is treated as a selling point. People broadly agree that functional style is good, and Kotlin promises good support for it, while its main pitch is a smooth upgrade path from Java. Swift makes a similar claim. Its documentation lists functional programming patterns such as map and filter among its features. Swift does not need to attract functional programmers the way other languages do, because anyone building for Apple more or less has to use it. Still, Swift presents itself as a modern language, and a modern language needs good support for the functional style. This does not mean functional programming is about to take over the world. It does show that something has changed, since this kind of promotion would not have appeared in the 1990s.

Functional Programming in Books and Publishing

Book publishing offers further evidence. Shelves now hold many titles on functional programming in languages that are not functional but do offer some support for it. There are books on functional JavaScript, functional Java, and functional Python, and these three languages are among the most widely used. Multiple books cover functional programming in C++. This is a real change. None of these books would have been likely to find a publisher in the 1990s, and no publisher would have offered a generous advance for functional programming in C++. Today, the market suggests that people are coming around to the idea that the functional style is valuable. Few people have switched to functional languages yet, but the style is gaining traction. This matters because the field may be in the middle of a transition from object-oriented style to functional style. Hybrid languages may be an intermediate stage on the road to functional programming becoming the norm. That is a plausible possibility. How much time would that take? It is hard to say. This whole talk has been about timescales of decades, so we may be in the middle of the change. The middle could mean another decade, or it could mean much longer.

Uncertain timescale for the shift

Nobody can say with certainty how long the shift will take. The timescales discussed throughout this talk have been measured in decades, so the present may be the middle of a transition, with another decade or two still ahead. What can be said is that something has changed. In the 1990s, functional style was not generally considered a positive quality. That view has since become mainstream.

Functional style reaching mainstream languages

This change can also carry over into widely used languages that support functional programming. Consider a developer who has already concluded that FP style is good and simply chooses to write functional code in JavaScript or Java. At some point, that developer may wish the language had strong support for the style, rather than treating it as an afterthought at best. Once that wish becomes a decision, developers may choose a language that is designed well for functional work on their next project, and not just one that handles it adequately as a side effect, no pun intended. If that choice spreads across many projects, it could eventually change language rankings and influence which languages people use.

Why FP is not yet the norm

Several factors explain why functional languages have not become the norm. First, no sufficiently large killer app has appeared for FP languages, although three plausible examples exist. A killer app can emerge from anywhere and does not need exclusive access to a large platform. Still, if a major platform made FP languages its exclusive way to develop, and that platform grew large, adoption could follow. Second, switching is difficult. A language that is substantially different cannot be a quick upgrade, and it cannot be presented as a drop-in replacement. If the language is significantly different, it is not JavaScript, and that will not change. Third, large marketing budgets matter. It is unclear whether FP languages will ever receive a budget on the scale of Java's, though that remains a hope. Finally, FP languages may be growing slowly and steadily, as Python once did, but that kind of growth takes decades, so it may be a long time before they reach that level of popularity.

Object-oriented features are not the cause

Object-oriented features do not explain why languages become popular. Information hiding, also called encapsulation, is not unique to OO languages, because modules can provide it too, and modules appear to be the consensus best approach. Inheritance is more distinctly OO, but best practice in every language is to favor composition over inheritance. Without inheritance, objects and methods are not fundamentally different from structs and procedures. Therefore, OO does not cause languages to become popular. Its association with popular languages is a coincidence, something that simply came along for the ride.

Closing remarks and the start of questions

As for why FP style is not yet the norm, the answer comes down mostly to time. FP style is becoming the norm, and that is a development worth appreciating and looking forward to. The talk ends with thanks, and the floor opens to questions.

Where Lisp fits in the classification debate

One question asked how Lisp fits into this picture, and whether it should be considered a functional or non-functional programming language. The talk was originally around two and a half hours of material, trimmed to 40 minutes, and classification came up repeatedly in discussions with other people. Deciding whether a language is functional quickly becomes confusing, because each proposed test invites a counterexample. Some suggest first-class functions, but Java has those without being considered functional. Purity is another proposed test, but it excludes languages that are generally regarded as functional. Immutability by default is also proposed, and Rust comes up as an example, but that does not settle the question either.

Classification is fuzzy and less important than style

One suggestion was a scoring system, where a language becomes functional once it crosses a threshold of checked-off features. Ultimately, classifying languages as functional or not is arbitrary and fuzzy. It matters less than discussing a language's style and how well it supports avoiding mutation and side effects while still offering a good experience for developers.

Whether Lisp counts as functional

To answer the Lisp question directly, Lisp can be considered a good functional programming language, but the answer depends on the specific language. If every part of the standard library requires mutation and side effects, it does not fit the style well. Clojure, by contrast, is definitely functional. In general, whether a language counts as functional depends on that language itself.

Performance as a secondary concern

A question then noted that C++ is meant to be fast, and that FP is often discussed in terms of performance. Performance is a secondary concern that does not usually determine whether a language becomes popular. Instead, it shapes the domains where a language can be used. Some applications need the fine control over memory that C and C++ provide, and a functional language is unlikely to be the choice in those cases.

Memory control and garbage collection

Rust is one of the first viable new competitors in that space in a long time, challenging the position of C and C++. If an application needs direct memory management, a garbage-collected language is probably not the right choice either. However, many domains do not require that level of control. In fact, nearly all of the other top-ten languages are garbage-collected, with C and C++ as the exceptions.

Performance needs depend on the domain

Backend server development shows how performance needs vary. Python is a perfectly acceptable choice there, even though it is not as fast as Go. Many developers find it good enough, since the network and the database usually dominate performance anyway. Performance is therefore domain-specific. Overall, it is a real consideration, but it remains secondary to the other factors discussed earlier.

Performance myths and closing thanks

In this view, the idea that functional languages are inherently slow is a myth. If mutation is available everywhere, certain algorithms become possible that otherwise would not be. But if those algorithms are not used, that difference does not matter. Some performance optimizations are also available only when a language provides certain functional guarantees. The session then closes with thanks.

Turn your watchlist into a reading routine

Bring your YouTube videos together, read summaries with key passages marked, and explore the full transcript. Save your own highlights with Pro.

Start with 5 free batteries. Each covers up to 30 minutes of a new summary.

New summaries depend on video availability and demand; processing may take time or require retry.