<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mike Loukides on Medium]]></title>
        <description><![CDATA[Stories by Mike Loukides on Medium]]></description>
        <link>https://medium.com/@mikeloukides?source=rss-4f5ec5f4f86a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*boQSVmgIb10k714p.jpg</url>
            <title>Stories by Mike Loukides on Medium</title>
            <link>https://medium.com/@mikeloukides?source=rss-4f5ec5f4f86a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:15:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mikeloukides/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why I won’t whitelist your site]]></title>
            <link>https://medium.com/the-wtf-economy/why-i-wont-whitelist-your-site-ee5b730b960d?source=rss-4f5ec5f4f86a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee5b730b960d</guid>
            <category><![CDATA[adblocker]]></category>
            <category><![CDATA[publishing]]></category>
            <category><![CDATA[advertising]]></category>
            <dc:creator><![CDATA[Mike Loukides]]></dc:creator>
            <pubDate>Fri, 02 Feb 2018 20:44:29 GMT</pubDate>
            <atom:updated>2018-02-02T21:36:57.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_SXJhTrFzlS4dV1vR5oETw.jpeg" /><figcaption>Pure eye-candy, but you can imagine that the bird is looking skeptically at a publisher.</figcaption></figure><p>Many Internet users — perhaps most — use an ad blocker. I’m one of them. All of us are familiar with the sites that won’t let us in without whitelisting them, or (only somewhat better) that repeatedly nag us to whitelist.</p><p>I’m not whitelisting anyone. I don’t have any fundamental problem with advertising; I wish ads weren’t as intrusive, and I believe advertisers would be better served by advertisement that had more respect for their viewers. But that’s not really why I use an ad blocker.</p><p>The real problem with ads is that they’re a <a href="https://en.wikipedia.org/wiki/Malvertising">vector for malware</a>. It’s relatively easy to fold malware into otherwise-innocent advertisement, and that malware executes even if you don’t click on the ad. I’ve received malware from sites as otherwise legitimate as the BBC, and there are reports of malware from virtually every major online publisher‐including sites like <a href="https://www.engadget.com/2016/01/08/you-say-advertising-i-say-block-that-malware/">Forbes</a> that won’t let you in if you don’t whitelist them. The New York Times, Reuters, MSN, and many others have <a href="https://www.avg.com/en/signal/what-is-malvertising">all spread malware</a>.</p><p>And no one takes responsibility for the advertisements or the damage they cause. The publishers just say “hey, we don’t control the ads; that’s the ad placement company.” The advertisers similarly say “hey, our ads come from a marketing firm, and they use some kind of web contractor to do the coding.” And the ad placement companies and marketing firms? All you get from them is the sound of silence.</p><p>Here’s the deal. I’m willing to whitelist any online publisher that will agree to a license in which they take responsibility for any code that they run on my systems. Call it a EULA for using my browser on my computer. If you deliver malware, you will pay for the damages: my lost time, my lost data. If the idea catches on, managing all the contracts sounds like a problem, but I think it’s a business opportunity. Something would be needed to track all the licenses in an authoritative ledger. This sounds like an application for a blockchain. Maybe even a blockchain startup.</p><p>If I really need to read something on your site, and you won’t let me in because I am running an ad-blocker, I might read your site anyway. That’s trivial — I have four or five browsers on all of my machines, and not all of them have ad-blockers installed. But I won’t link to you, quote you, or tweet you. You’re dead to me.</p><p>I’ve been asked whether I have any proposals for a business model other than advertising. Not really. Though my employer, O’Reilly Media, does a bit of online publishing, and we don’t take advertising. But advising publishers on their business model isn’t my job — and they’ve yet to ask me for advice, anyway. My job is keeping my systems safe, and that requires keeping malware out.</p><p>Again, I have nothing against advertising as a business model. However, that model (and businesses relying on it) deserves to fail if publishers won’t take responsibility for the ads they deliver. While I understand that publishers don’t control the ads, and don’t have the technical expertise to inspect the ads they deliver, they are the ones who deliver the ads. They bear the responsibility for damages.</p><p>Could this be a movement? Can we imagine a future with ad-blockers that would let ads through if, and only if, the publisher has agreed to a license that allows users to recover damages from advertising-spread malware?</p><p>I’m in.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee5b730b960d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-wtf-economy/why-i-wont-whitelist-your-site-ee5b730b960d">Why I won’t whitelist your site</a> was originally published in <a href="https://medium.com/the-wtf-economy">From the WTF? Economy to the Next Economy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The evolution of DevOps]]></title>
            <link>https://medium.com/@mikeloukides/the-evolution-of-devops-9d101124aa2e?source=rss-4f5ec5f4f86a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d101124aa2e</guid>
            <category><![CDATA[operations]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[velocity]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Mike Loukides]]></dc:creator>
            <pubDate>Wed, 06 Sep 2017 18:00:02 GMT</pubDate>
            <atom:updated>2017-09-06T18:00:02.466Z</atom:updated>
            <content:encoded><![CDATA[<p>A few years ago, I wrote that DevOps is <a href="https://www.oreilly.com/ideas/what-is-devops-yet-again?intcmp=il-webops-confsched-info-vlny17_new_site_the_evolution_of_devops_b1">the movement that doesn’t want to be defined</a>. That’s still true, though being cryptic doesn’t help executives who need to understand what’s going on in their industries, or who want to make their digital operations more productive. You may already have people in your company who are “doing DevOps,” or who want to. What are they doing? What do they want?</p><p>Let’s start with origins. Back in 2007, a Belgian engineer named Patrick Debois became frustrated by the friction between developer and operations teams. As a developer and a member of the Agile community, Debois saw an opportunity to use Agile methodologies to manage infrastructure management process, much like developers manage development process. He initially described this concept as Agile Infrastructure but later coined the phrase DevOps, a portmanteau of development and operations.</p><p>Then, in 2008, O’Reilly Media ran the first <a href="https://conferences.oreilly.com/velocity?intcmp=il-webops-confsched-info-vlny17_new_site_the_evolution_of_devops_b2">Velocity conference</a>. Velocity was founded on the same insight: that web developers and web operations teams were often in conflict, yet shared the same goals and the same language. It was an effort to <a href="http://radar.oreilly.com/2011/06/velocity-operations-performance-mobile.html?intcmp=il-webops-na-article-vlny17_new_site_the_evolution_of_devops_b3">gather the tribe into one room</a>, to talk with each other and share insights. Much of the DevOps movement grew out of <a href="https://www.youtube.com/watch?v=LdOe18KhtT4">the early Velocity conferences</a>, and shares the same goal: breaking down the invisible wall that separates developers from IT operations.</p><p>Why break down that wall? Because, as websites became larger and more complex, it was painfully obvious that the wall was hindering, rather than helping. DevOps grew up with the largest sites on the web; the ideas behind it came from sites like Amazon, Google, Flickr, Facebook, and YouTube, and from learning how to deal with these sites as they became monsters. It’s based on the hard-earned experience of seeing websites grow from one server, to a dozen, to thousands.</p><p>As websites became larger and more complex, the business consequences of downtime, or of poor performance, skyrocketed. The business realities of running these giant sites forced developers and operations to unite. Operations wasn’t something you could let the Ops group worry about when you declared your project finished. The boundary between development and operations was blurring. To build sites that perform well, scale to millions of users, and are always up, you can’t separate development from operations.</p><p>You also can’t build websites that perform well and scale if you’re working with development processes that are more appropriate to shrink-wrapped software. Working at “web speed” demands frequent updates: to fix bugs and improve performance, sure, but also to add new features and stay ahead of the competition. When you’re working at web speed, standing still is moving backwards. These sites were quick to develop the processes that became known as continuous deployment (CD), in which software is deployed to the field frequently — often many times a day. CD also requires developers to write software that could be put into production directly; they had to understand how operations works, and how their software fits into an automated deployment pipeline. They couldn’t throw software over a wall and let another team spend time getting it working in the field.</p><p>Cloud computing appeared at roughly the same time, and made the boundary between development and operations even more fuzzy. You can’t develop for the cloud without understanding operations, and you can’t operate software in the cloud without understanding development. You never touch the servers; it’s all software.</p><p>So that’s how DevOps began: by eliminating the barrier between the people who develop the software and the people who operate it. Push the words together and call it a movement. That simple origin myth hides a lot of complexity, but it will suffice.</p><h3>Automation and operations at scale</h3><p>DevOps was the inevitable outcome of building and operating the sites that became the web’s giants. It’s a native in the world of complex distributed systems and the cloud. And to understand DevOps, you need to think about how every site — not just the Internet monsters — has changed over the past two decades.</p><p>When I started at O’Reilly, Tim O’Reilly pointed to a PC sitting on a chair and said, “That’s oreilly.com.” He can’t do that anymore. Nobody can. Like any successful business, O’Reilly runs across many servers: at co-location facilities, at Amazon and at Google, at CDNs like Akamai and Fastly. Some bits of it are in-house; most of it isn’t. Some of it isn’t even ours: we rely on many external services. Our reliability and performance depend as much on these services as on the services we own and control. It’s a complex, multi-tiered distributed system.</p><p>When oreilly.com was a single computer sitting on a chair, someone could log in on a console terminal and install updates, fix things, or reboot if something went wrong. (If memory serves, that console terminal was sitting on another chair, next to the one with the computer.) Now that oreilly.com is thousands of computers distributed world-wide, you can’t just log in and do an upgrade. You can’t give a few commands and reload the site.</p><p>At this scale, automation isn’t an option. It’s a requirement. The slogan goes <a href="https://www.safaribooksonline.com/library/view/infrastructure-as-code/9781491924334/?intcmp=il-webops-books-videos-product-vlny17_new_site_the_evolution_of_devops_b4">infrastructure as code</a>; the reality is that infrastructure <em>is</em> code. Software has eaten the hardware. You need the ability to install and update software across your whole network. It’s no longer a matter of pushing an update to the web server or the database server by hand; it’s pushing updates to thousands of servers, and doing it correctly every time. It’s no longer taking a new computer out of a box and installing an operating system and application software by hand; it’s dealing with physical machines by the rack, or with virtual machines and Amazon instances by the gross. It’s ensuring that all of these machines are configured correctly and identically. That can only be done by automating the process. And the way we automate is to write software.</p><p>System administrators used to be heavily involved with shipping and receiving: receiving new hardware, setting it up, configuring it, with each box likely to have a custom configuration. These days, operations staff may rarely see a computer other than their laptop: the machines that do the work are virtual, they live at Amazon or at Microsoft or at Google or at IBM. The job is no longer “racking and stacking”; it’s writing and managing the infrastructure software that keeps everything going. Yes, physical infrastructure still exists, somewhere. But the code that keeps that infrastructure running is what’s important.</p><p>In this new world, developers can’t just build new features in the lab, and then expect operations to take over and deploy the new software. Developers also need to understand how the systems are configured and how the software is deployed, because it’s being installed across thousands of machines, both virtual and physical. They need to work with the Ops team to build and maintain the deployment process, because that process is now software.</p><h3>Continuous deployment</h3><p>The practice of <a href="https://www.safaribooksonline.com/library/view/continuous-delivery-reliable/9780321670250/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b5">continuous deployment</a> (an extension of <a href="https://www.safaribooksonline.com/library/view/continuous-delivery/9780134389363/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b6">continuous delivery</a>), or CD, came out of the seminal websites. CD is built on ideas from the Agile movement, for which a key idea was frequent software releases: every week or two. CD pushes the idea of “frequent releases” a lot farther; releases can take place many times a day. How many times a day? New software developers at Facebook typically push a change to the site <a href="https://blog.capabiliti.co/employee-onboarding-facebook-google-apple/">their first day on the job</a>. Given the number of developers Facebook hires, that’s a lot of updates — but more than that, developers are trained from day one to push changes to production frequently. Updates at that scale can’t happen by hand. Not only is it impractical, it’s error-prone, even at scales much smaller than Facebook’s. Updates must be tested and pushed to servers automatically. Frequently, updates are only sent to a small number of servers until it’s clear that the update is stable, or that it actually improves the user’s experience.</p><p>Each update represents a single small change to the system. Because each update is only a small, easily understood change, there’s minimal risk in deploying it. It’s just a single bug fix or enhancement, not a year’s worth of fixes rolled up into a major release. If something goes wrong, it’s easy to roll back. If there’s an A/B testing framework in place, it’s easy to deploy the change to a few servers, and see if performance (by whatever metric is appropriate: raw speed, click-through, user satisfaction) improves. The biggest advantage of frequent, small changes, though, is that they’re small: they’re easily understood, they don’t “break the world.”</p><p>Continuous deployment requires, minimally, a revision control system; tools for continuous integration and testing; and tools for automated configuration and deployment. There are open source and commercial products for all of these functions.</p><p>It’s possible to push continuous deployment a lot further. Containers such as <a href="https://www.safaribooksonline.com/library/view/learning-path-delivering/9781491989012/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b7">Docker</a> go a long way towards minimizing the gap between development systems and production systems; developers can work on their laptop in an environment that’s almost identical to production, and can ship software that has been packaged to fit seamlessly into the production environment. <a href="https://www.safaribooksonline.com/library/view/kubernetes-up-and/9781491935668/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b20">Kubernetes</a> helps to manage large numbers of containers in production. <a href="https://www.safaribooksonline.com/library/view/the-principles-of/9781491935811/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b8">Microservice</a> architectures split complex software systems into groups of independent services, each of which can be developed and deployed separately. Serverless architectures, based on services like <a href="https://aws.amazon.com/lambda/">AWS Lambda</a>, push the concept of microservices down to individual functions.</p><p>You don’t need to push to the coolest, most buzzword-compliant development practices and architectures. But you do need the ability to update your software systems reliably and confidently at a moment’s notice. That’s what continuous deployment is all about.</p><h3>Performance and reliability</h3><p>When you’re talking about thousands of systems delivering your services, you also need to know that they’re running properly. Monitoring is critical to modern operations: How do you know all your servers are running? How do you know they’re healthy? How do you know that your network connections are all working? Are your users leaving because they’re tired of waiting for the site to load? If you have 1000 servers and 2 are down, will there be 500 down in 10 minutes? Or can you just start a couple of new AWS instances and consider the problem solved?</p><p>A modern site has to be concerned with performance, even when all the systems are running. A groundbreaking <a href="https://www.youtube.com/watch?v=bQSE51-gr2s">talk</a> from Velocity 2009 showed that delays as small as 100 milliseconds — too small to be consciously noticeable — caused measurable numbers of users to click away. Time is money, indeed; and developers and Ops staff need to work together to ensure that their sites deliver good, consistent performance. Customers are even less willing to wait online than in brick-and-mortar stores.</p><p>Performance and reliability are issues that DevOps deals with constantly. When you have a complex system that’s spread across the globe, you can’t measure performance and uptime by logging into your servers by hand. You need automation, but automation isn’t enough by itself. You also need tools that can measure performance as your users see it. It’s not enough just to prove that your servers are still online. That requires <a href="https://www.safaribooksonline.com/library/view/practical-monitoring/9781491957349/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b21">state-of-the-art systems for logging and monitoring</a>.</p><p>Capacity planning is critical to keeping your customers satisfied. Can your site handle a 100-fold increase in load on Black Friday? What happens if a new product is unexpectedly successful? Performance and reliability aren’t just a matter of making the site run well during normal conditions; it’s knowing that your systems can handle peak loads without degraded performance. It isn’t enough to say that the site is fine, and your customers will tolerate it if it’s occasionally bad, because they won’t. They’ll go away — just when you want them most. Capacity planning is about knowing that you can handle both normal and abnormal loads: that you can bring additional servers online, and get them running quickly. Cloud computing may simplify the problem, but it certainly doesn’t eliminate it.</p><p>Even if you don’t think your business is a web business, it has almost certainly grown to a scale where you’re running dozens of servers at multiple locations. This is a DevOps world.</p><h3>Failure is inevitable</h3><p>Perhaps the most thankless task of any operations group is getting things working again after something has gone wrong. Operations groups have to be concerned with performance and resilience. What happens if network outages occur, or a disk drive suddenly fails? If the database server dies, can you survive?</p><p>There are many ways to make sites more resilient. Netflix has pioneered the most intriguing: they advocate a practice called <a href="http://www.oreilly.com/webops-perf/free/chaos-engineering.csp?intcmp=il-webops-na-lp-vlny17_new_site_the_evolution_of_devops_b9">chaos engineering</a>, in which software periodically and randomly “breaks things”: it shuts down servers, misconfigures networks, and so on. Chaos engineering acknowledges that outages are a part of normal operation, and that practice is the only way to deal with them. A team that’s aware that something could break at any moment, and that is confident it can fix whatever problems arise, will deal with problems promptly and effectively. Chaos engineering also acknowledges that you can’t fix problems that you’re not aware of, and that in a complex system, it’s difficult to predict trouble areas in advance. Breaking things at random is a more effective way to flush out trouble spots than having meetings to discuss what might fail. While chaos engineering sounds terrifying, it’s very difficult to argue with Netflix’s success in maintaining a stable, high-performance platform.</p><h3>The culture of DevOps</h3><p>There’s a continual debate within the DevOps community about whether DevOps is fundamentally about culture, or whether it’s about processes (like CD) and tools. I’m sympathetic to the idea that DevOps is first and foremost about creating a culture in which developers and Ops staff work with each other with mutual respect. But to take either side of this debate by itself invites trouble. <a href="https://www.safaribooksonline.com/library/view/effective-devops/9781491926291/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b10"><em>Effective DevOps</em></a> is a good resource for balancing the roles of culture, methodology, and tools.</p><p>Many tools are associated with DevOps. I’ve mentioned some of them (in a very general way). But one of the biggest mistakes management can make is mistaking the tools for the reality. “We use Chef to automate deployment” doesn’t mean you’re doing DevOps. All too often, we see organizations that “automate deployment” without changing anything about how they work: they’re using the tool, but they’re still doing big, complex, multi-feature releases. Or they’re using the tool in production, but not in development. Managers need to avoid “cargo culting” at all costs: adopting the terminology and the tools without changing anything significant.</p><p>A less common, but equally fatal, mistake is to swallow uncritically the line that DevOps is about culture, not tools. So gather all your devs and Ops staff around a campfire and sing Kum Bah Yah. DevOps is all about automating everything that can reasonably be automated, and that inevitably involves tooling. You’ll see tools for testing, for continuous integration, for automated configuration and deployment, for creating containers, for managing your services, and more — even for randomly breaking things. The tools can’t be ignored.</p><p>Focus entirely on culture, or entirely on tools, and you’ll lose. You need both.</p><h3>Blameless postmortems</h3><p>Complex systems fail. Any operations group needs to deal with system failure, and to evaluate what happened after a failure. All too often, postmortem analysis takes the form of assigning blame: figuring out who or what caused the event, and in the process, being blind to the complex nature of what happened.</p><p>Blameless postmortems are an important cultural practice for dealing with system failure. The appropriate response to failure isn’t figuring out who to blame, finding a single root cause, or putting in place procedures that try to prevent what just happened from happening again. A postmortem is about understanding exactly what happened, piecing together the complex chain of events that led up to the failure, so that the system as a whole can be improved. In modern distributed systems, most outages are a result of a “perfect storm”: several events, none of which would be a problem in itself, combine to bring the system down. Analyzing the storm can’t happen when people are afraid of being blamed. And without understanding what happened, you can’t make the system more resilient: more resistant to failure, and easier to manage correctly.</p><h3>OtherOps</h3><p>The ideas behind DevOps have been extended into other fields, so you will often see other words mashed up with Ops. Here are a few; you’ll undoubtedly find more.</p><h3>NetworkOps</h3><p>The most natural extension of DevOps is <a href="http://www.networkworld.com/article/3187405/lan-wan/netops-can-networks-be-both-available-and-agile.html">NetworkOps</a>. DevOps started with web servers, and with the mantra “configuration as code.” But the network operations staff lived in a different world. The world of network operations was dominated by heavy iron and miles of cable that could only be managed by going to a physical console and typing commands in a proprietary configuration language.</p><p>Network infrastructure has become much more manageable in the last decade. There’s no reason that network operations can’t take advantage of the configuration and deployment tools used by the rest of your staff. Store your network configurations in a revision control system, and automate the process of changing configurations, so it’s easy to back out changes that don’t work. If your application lives in the cloud, you may have to manage a VPN on Amazon, and the only way to do that is through software.</p><p>The development of software-defined networking and network function virtualization takes this trend several steps further. Network configuration can be incorporated directly into the application. You don’t manage your network through proprietary configuration languages, such as Cisco’s IOS and Juniper Networks’ JunOS; you call libraries from Python or Java. The network is code; the wires and the big expensive hardware are all secondary. And since the network is code, network operations becomes part of the whole DevOps cycle.</p><h3>DataOps</h3><p>Structurally, data science isn’t all that different from the web. You have programmers and developers who build software that runs on a complicated infrastructure: many different databases, platforms like Hadoop and Spark, libraries and frameworks ranging from basic statistics to AI.</p><p>It isn’t surprising, then, that a distinction between data developers and data operations has appeared. It’s still common for a developer to create a small-scale prototype, and hand it over to a data engineer to be turned into a product and deployed at scale. However, we’re seeing data operations integrated into data science groups. There’s even a new specialty, called “<a href="https://www.oreilly.com/ideas/what-are-machine-learning-engineers?intcmp=il-webops-na-article-vlny17_new_site_the_evolution_of_devops_b11">machine learning engineer</a>,” that deals with the transition between prototypes and well-engineered products that run at scale. ML engineering includes tasks that are unique to data science, such as monitoring applications to determine when models need to be updated.</p><p>As with DevOps, distinct specialties aren’t a problem; problems arise when the specialties become silos that prevent communication.</p><h3>DevOpsSec</h3><p><a href="https://www.oreilly.com/ideas/what-are-machine-learning-engineers?intcmp=il-webops-free-na-vlny17_new_site_the_evolution_of_devops_b12">DevOpsSec</a> brings security into the DevOps world. Superficially, it seems that security should go hand-in-hand with slow, careful inspection of code, auditing, and careful and painstaking adherence to requirements. You’ve probably noticed: that isn’t working. There’s certainly an argument to be made that security is better served by the ability to make and deploy changes rapidly. There’s also an argument to be made that rapid deployment without security is suicidal. And it’s certainly true that automating deployment is less error-prone, and exposes all the details of your configuration, so nothing is left to chance. If you’re installing patches in response to an incident, you need to be confident that the patches are installed correctly, and don’t leave you more vulnerable than you were before.</p><p>There’s also a cultural argument for DevOpsSec. In many companies, security teams are isolated from development and operations groups; not only do they not work together, at many companies they dislike each other intensely. Fixing the divide between security, development, and operations staff is the first step towards security that works.</p><h3>NoOps</h3><p>A few years ago, some people in the operations community pointed to the possibility of putting all the servers in the cloud, and automating all the administrative tasks, so that an operations group wasn’t needed. NoOps: everything would run itself. More recently, we’ve heard the same thing about “serverless”: If we’re building serverless architectures, there are no servers, and hence no need for operations. Right?</p><p>Wrong. You can (and should) do as much as you reasonably can to automate operations. I don’t think anyone would disagree with that. But <a href="http://radar.oreilly.com/2012/06/what-is-devops.html?intcmp=il-webops-na-article-vlny17_new_site_the_evolution_of_devops_b13">don’t think that you’re eliminating Ops as a result</a>. Operations never disappears; it changes shape.</p><p>What you’re really doing when you automate everything and move it to the cloud isn’t eliminating operations. You’re increasing the size of the system that can be managed by a fixed-sized operations staff. You’re giving staff the time they need to work on more serious, long-term problems rather than firefighting. Over the years, we’ve seen the ratio of computers to sysadmins go from one-to-many (more operators and administrators than computers) to thousands-to-one (many computers managed by a small staff). That’s a good thing. Nobody in DevOps disagrees with that. But it doesn’t make operations go away; there are still going to be traffic spikes, bugs, network failures, other infrastructure failures, security incidents, and so on.</p><p>The <a href="http://www.oreilly.com/programming/free/what-is-serverless.csp?intcmp=il-webops-free-lp-vlny17_the_evolution_of_devops_b22">serverless computing</a> (a.k.a. “Function as a Service”) paradigm presents a slightly different set of issues, but the big picture is the same. When you break applications up into individual functions running in the cloud, what you really have is more servers, rather than fewer. The resulting architecture is likely to be more complex, not less. Yes, the cloud provider can do a lot to make your platform scale automatically, deal with failure, and all of that. But making sure the whole system works and is responsive is your job, and it isn’t going away. This isn’t to say that serverless isn’t important; it is. It just doesn’t make operations disappear. At its best, serverless enables a fixed-sized team to manage an even larger, more complex application.</p><h3>SRE: It’s not even called Ops</h3><p>You’ll probably see the term <a href="https://www.safaribooksonline.com/library/view/site-reliability-engineering/9781491929117/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b14">site reliability engineering</a> (SRE). SRE is Google’s flavor of DevOps. There are some insignificant squabbles about whether DevOps developed from SRE, or the other way around. Ignore that noise.</p><p>Compared to DevOps, SRE is more formal. It’s certainly appropriate at Google scale. If you’re not at Google scale, it’s something to aspire to. It shouldn’t surprise anyone that Google has some ideas about making extremely large software systems work. And one of the most important changes in DevOps over the last decade is the fact that Google is now talking openly about how they make their systems work. Even if you’re nowhere near Google’s scale, take advantage of their work: learn from them and adapt what you can to your situation.</p><h3>BizOps</h3><p>One of many rarely-stated themes in DevOps is the necessity of living with constant change. Continuous deployment, cloud infrastructure that’s allocated and deployed at a moment’s notice, microservice architectures: these are all great for the technical teams, but frequently leave the business side behind. How do you get alignment between the organization’s business requirements and its DevOps practice? How do you budget and plan in a world where everything is constantly changing? As Leon Fayer <a href="http://fayerplay.com/devopsdays-bizops-and-you/">writes</a>, the goal of DevOps isn’t to build cool stuff; it’s to support the business. That’s BizOps.</p><h3>Even more Ops</h3><p>I’ve also seen HROps, MarketingOps, FinanceOps, and several other Ops. These ideas tend to borrow a lot from the Lean Software movement. If there’s a single theme, it’s about helping these groups to work in an environment of constant change. How do you market when tomorrow’s product may be different from today’s? Even in traditional business, the reality of planning is that plans are necessary, but plans never survive their confrontation with reality: change is a constant. Can you turn distrust of change into an advantage by stressing agility and responsiveness? If you’re interested, I strongly recommend <a href="https://www.safaribooksonline.com/library/view/lean-enterprise/9781491946527/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b15"><em>Lean Enterprise</em></a> and <a href="https://www.safaribooksonline.com/library/view/lean-ux-2nd/9781491953594/?utm_source=oreilly&amp;utm_medium=newsite&amp;utm_campaign=the_evolution_of_devops_b16"><em>Lean UX</em></a>.</p><h3>Doing DevOps</h3><p>How do you get an organization “doing DevOps”? “Doing DevOps” isn’t that good a phrase, but there are some answers. Don’t go out and hire a bunch of “DevOps specialists.” Thinking about DevOps as a distinct specialty misses the point: DevOps is about getting existing groups working together, not about creating a new specialty or a new group. Definitely don’t go out and pick new DevOps-friendly office furniture. (I won’t give you the link, but that’s not a joke.) Seriously: mistakes like these send the message that you don’t know what you’re looking for, and will drive away the people you really want to hire. Though you may end up with better office decor.</p><p>If you want to get started with DevOps, start small. It started as a grassroots movement, so let it be a grassroots movement at your company. Pick a project — perhaps something new, perhaps something that’s been a problem in the past — and see what happens when you get the development and the operations groups working together. See what happens when you build pipelines for continuous deployment, use modern tools for monitoring, and get your developers and operations staff talking to one another. A top-down “We are now going to do DevOps across the company” message is likely to fail. Instead, start small, and let everyone see the results. The report <a href="http://www.oreilly.com/webops-perf/free/devops-in-practice.csp?intcmp=il-webops-free-na-vlny17_new_site_the_evolution_of_devops_b17"><em>DevOps in Practice</em></a> shows how DevOps was introduced at Nordstrom and the Texas state government.</p><p>You don’t need to start with the project that’s most excited about doing DevOps — that might backfire. It’s hard to evaluate your progress if everyone is heavily invested in seeing a new practice succeed. By the same token, you should probably avoid groups that are resistant to change, or that see ideas like DevOps as a fate worse than death. They’ll only be convinced when they see results in other groups.</p><p>It doesn’t matter a whole lot where you start, as long as you start. DevOps isn’t about heroes, rock stars, ninjas, or unicorns; it’s about regular developers and Ops staff getting out of their silos and working with each other. It’s about automating everything that can reasonably be automated, because doing so reduces the time spent fighting fires and increases the time you can spend improving your products and services. Ultimately, that’s what’s important.</p><p><a href="https://conferences.oreilly.com/velocity/vl-ny?cmp=mp-webops-confreg-update-vlny17_medium_evolution_of_devops">Register for the O’Reilly Velocity Conference</a>, taking place Oct. 1–4 in New York, to learn more about applying DevOps at your organization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d101124aa2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The ethics of artificial intelligence]]></title>
            <link>https://medium.com/best-of-oreilly-radar/the-ethics-of-artificial-intelligence-6f1f20a802c4?source=rss-4f5ec5f4f86a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f1f20a802c4</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[civil-society]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Mike Loukides]]></dc:creator>
            <pubDate>Mon, 14 Nov 2016 12:00:00 GMT</pubDate>
            <atom:updated>2016-11-21T18:47:07.568Z</atom:updated>
            <content:encoded><![CDATA[<h4>A framework for thinking about AI.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRY0_FbipZ6KsoGNyUjvRA.jpeg" /><figcaption>Compass. Via <a href="https://pixabay.com/en/vintage-sign-nautical-ship-compass-1064142/">Pixabay</a>.</figcaption></figure><p>In this industry, it’s a tired old cliche to say that we’re building the future. But that’s true now more than at any time since the Industrial Revolution. The proliferation of personal computers, laptops, and cell phones has changed our lives, but by replacing or augmenting systems that were already in place. Email supplanted the post office; online shopping replaced the local department store; digital cameras and photo sharing sites such as Flickr pushed out film and bulky, hard-to-share photo albums. AI presents the possibility of changes that are fundamentally more radical: changes in how we work, how we interact with each other, how we police and govern ourselves.</p><p>Fear of a mythical “evil AI” derived from reading too much sci-fi won’t help. But we do need to ensure that AI works <em>for</em> us rather than against us; we need to think ethically about the systems that we’re building. Microsoft’s CEO, Satya Nadella, <a href="http://www.slate.com/articles/technology/future_tense/2016/06/microsoft_ceo_satya_nadella_humans_and_a_i_can_work_together_to_solve_society.html">writes</a>:</p><blockquote><em>The debate should be about the values instilled in the people and institutions creating this technology. In his book </em><a href="https://www.amazon.com/dp/B00OP06CRG/">Machines of Loving Grace</a><em>, John Markoff writes, ‘The best way to answer the hard questions about control in a world full of smart machines is by understanding the values of those who are actually building these systems.’ It’s an intriguing question, and one that our industry must discuss and answer together.</em></blockquote><p>What are our values? And what do we want our values to be? Nadella is deeply right in focusing on discussion. Ethics is about having an intelligent discussion, not about answers, as such — it’s about having the tools to think carefully about real-world actions and their effects, not about prescribing what to do in any situation. Discussion leads to values that inform decision-making and action.</p><p>The word “ethics” comes from “ethos,” which means character: what kind of a person you are. “Morals” comes from “mores,” which basically means customs and traditions. If you want rules that tell you what to do in any situation, that’s what customs are for. If you want to be the kind of person who executes good judgment in difficult situations, that’s ethics. Doing what someone tells you is easy. Exercising good judgement in difficult situations is a much tougher standard.</p><p>Exercising good judgement is hard, in part, because we like to believe that a right answer has no bad consequences; but that’s not the kind of world we have. We’ve damaged our sensibilities with medical pamphlets that talk about effects and side effects. There are no side effects; there are just effects, some of which you might not want. All actions have effects. The only question is whether the negative effects outweigh the positive ones. That’s a question that doesn’t have the same answer every time, and doesn’t have to have the same answer for every person. And doing nothing because thinking about the effects makes us uncomfortable is, in fact, doing something.</p><p>The effects of most important decisions aren’t reversible. You can’t undo them. The myth of Pandora’s box is right: once the box is opened, you can’t put the stuff that comes out back inside. But the myth is right in another way: opening the box is inevitable. It will always be opened; if not by you, by someone else. Therefore, a simple “we shouldn’t do this” argument is always dangerous, because someone will inevitably do it, for any possible “this.” You may personally decide not to work on a project, but any ethics that assumes people will stay away from forbidden knowledge is a failure. It’s far more important to think about what happens after the box has been opened. If we’re afraid to do so, we will be the victims of whoever eventually opens the box.</p><p>Finally, ethics is about exercising judgement in real-world situations, not contrived situations and hypotheticals. Hypothetical situations are of very limited use, if not actually harmful. Decisions in the real world are always more complex and nuanced. I’m completely uninterested in whether a self-driving car should run over the grandmothers or the babies. An autonomous vehicle that can choose which pedestrian to kill surely has enough control to avoid the accident altogether. The real issue isn’t who to kill, where either option forces you into unacceptable positions about the value of human lives, but how to prevent accidents in the first place. Above all, ethics must be realistic, and in our real world, bad things happen.</p><p>That’s my rather abstract framework for an ethics of AI. I don’t want to tell data scientists and AI developers what to do in any given situation. I want to give scientists and engineers tools for thinking about problems. We surely can’t predict all the problems and ethical issues in advance; we need to be the kind of people who can have effective discussions about these issues as we anticipate and discover them.</p><h3>Talking through some issues</h3><p>What are some of the ethical questions that AI developers and researchers should be thinking about? Even though we’re still in the earliest days of AI, we’re already seeing important issues rise to the surface: issues about the kinds of people we want to be, and the kind of future we want to build. So, let’s look at some situations that made the news.</p><h3>Pedestrians and passengers</h3><p>The self-driving car/grandmother versus babies thing is deeply foolish, but there’s a variation of it that’s very real. Should a self-driving car that’s in an accident situation protect its passengers or the people outside the car? That’s a question that is already being discussed in corporate board rooms, as it was at <a href="http://www.autoexpress.co.uk/mercedes/97345/mercedes-autonomous-cars-will-protect-occupants-before-pedestrians">Mercedes recently,</a> which decided that the company’s duty was to protect the passengers rather than pedestrians. I suspect that Mercedes’ decision was driven primarily by accounting and marketing: who will buy a car that will sacrifice the owner to avoid killing a pedestrian? But Mercedes made an argument that’s at least ethically plausible: they have more control over what happens to the person inside the car, so better to save the passenger than to roll the dice on the pedestrians. One could also argue that Mercedes has an ethical commitment to the passengers, who have put their lives in the hands of their AI systems.</p><p>The bigger issue is to design autonomous vehicles that can handle dangerous situations without accidents. That’s the real ethical choice. How do you trade off cost, convenience, and safety? It’s possible to make cars that are more safe or less safe; AI doesn’t change that at all. It’s impossible to make a car (or anything else) that’s completely safe, at any price. So, the ethics here ultimately come down to a tradeoff between cost and safety, to ourselves and to others. How do we value others? Not grandmothers or babies (who will inevitably be victims, just as they are now, though hopefully in smaller numbers), but passengers and pedestrians, Mercedes’ customers and non-customers? The answers to these questions aren’t fixed, but they do say something important about who we are.</p><h3>Crime and punishment</h3><p>COMPAS is commercial software used in many state courts to recommend prison sentences, bail terms, and parole. In 2016, ProPublica published an <a href="https://www.propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing">excellent article</a> showing that COMPAS consistently scores blacks as greater risks for re-offending than whites who committed similar or more serious crimes.</p><p>Although COMPAS has been secretive about the specifics of their software, ProPublica published the data on which their reports were based. Abe Gong, a data scientist, followed up with a <a href="https://medium.com/@AbeGong/ethics-for-powerful-algorithms-1-of-3-a060054efd84">multi-</a><a href="https://medium.com/@AbeGong/ethics-for-powerful-algorithms-3-of-4-8dcb91365b49">part</a> <a href="https://medium.com/@AbeGong/ethics-for-powerful-algorithms-2-of-3-5bf750ce4c54">study</a>, using ProPublica’s data, showing that the COMPAS results were not “biased.” Abe is very specific: he means “biased” in a technical, statistical sense. Statistical bias is a statement about the relationship between the outputs (the risk scores) and the inputs (the data). It has little to do with whether we, as humans, think the outputs are fair.</p><p>Abe is by no means an apologist for COMPAS or its developers. As he says, “Powerful algorithms can be harmful and unfair, even when they’re unbiased in a strictly technical sense.” The results certainly had disproportionate effects that most of us would be uncomfortable with. In other words, they were “biased” in the non-technical sense. “Unfair” is a better word that doesn’t bring in the trapping of statistics.</p><p>The output of a program reflects the data that goes into it. “Garbage in, garbage out” is a useful truism, especially for systems that build models based on terabytes of training data. Where does that data come from, and does it embody its own biases and prejudices? A program’s analysis of the data may be unbiased, but if the data reflects arrests, and if police are more likely to arrest black suspects, while letting whites off with a warning, a statistically unbiased program will necessarily produce unfair results. The program also took into account factors that may be predictive, but that we might consider unfair: is it fair to set a higher bail because the suspect’s parents separated soon after birth, or because the suspect didn’t have access to higher education?</p><p>There’s not a lot that we can do about bias in the data: arrest records are what they are, and we can’t go back and un-arrest minority citizens. But there are other issues at stake here. As I’ve said before, I’m much more concerned about what happens behind closed doors than what happens in the open. <a href="https://www.amazon.com/dp/B019B6VCLO">Cathy O’Neil</a> has frequently argued that secret algorithms and secret data models are the real danger. That’s really what COMPAS shows. It is almost impossible to discuss whether a system is unfair if we don’t know what the system is and how it works. We don’t just need open data; we need to <a href="https://mathbabe.org/2012/01/11/open-models-part-1/">open up</a> <a href="https://mathbabe.org/2012/03/01/open-models-part-2/">the models</a> that are built from the data.</p><p>COMPAS demonstrates, first, that we need a discussion about fairness, and what that means. How do we account for the history that has shaped our statistics, a history that was universally unfair to minorities? How do we address bias when our data itself is biased? But we can’t answer these questions if we don’t also have a discussion about secrecy and openness. Openness isn’t just nice; it’s an ethical imperative. Only when we understand what the algorithms and the data are doing, can we take the next steps and build systems that are fair, not just statistically unbiased.</p><h3>Child labor</h3><p>One of the most penetrating remarks about the history of the internet is that it was “built on child labor.” <a href="https://en.wikipedia.org/wiki/IPv4">The IPv4 protocol suite</a>, together with the first implementations of that suite, was developed in the 1980s, and was never intended for use as a public, worldwide, commercial network. It was released well before we understood what a 21st century public network would need. The developers couldn’t forsee more than a few tens of thousands of computers on the internet; they didn’t anticipate that it would be used for commerce, with stringent requirements for security and privacy; putting a system on the internet was difficult, requiring handcrafted static configuration files. Everything was immature; it was “child labor,” technological babies doing adult work.</p><p>Now that we’re in the first stages of deploying AI systems, the stakes are even higher. Technological readiness is an important ethical issue. But like any real ethical issue, it cuts both ways. If the public internet had waited until it was “mature,” it probably would never have happened; if it had happened, it would have been an awful bureacratic mess, like the abandoned <a href="https://en.wikipedia.org/wiki/OSI_protocols">ISO-OSI protocols</a>, and arguably no less problematic. Unleashing technological children on the world is irresponsible, but preventing those children from growing up is equally irresponsible.</p><p>To move that argument to the 21st century: my sense is that Uber is pushing the envelope too hard on autonomous vehicles. And we’re likely to pay for that — in vehicles that perhaps aren’t as safe as they should be, or that have serious security vulnerabilities. (In contrast, Google is being very careful, and that care may be why they’ve <a href="https://www.bloomberg.com/news/articles/2016-09-12/google-car-project-loses-leaders-and-advantage-as-rivals-gain">lost some key people to Uber</a>.) But if you go to the other extreme and wait until autonomous vehicles are “safe” in every respect, you’re likely to end up with nothing: the technology will never be deployed. Even if it is deployed, you will inevitably discover risk factors that you didn’t forsee, and couldn’t have forseen without real experience.</p><p>I’m not making an argument about whether autonomous vehicles, or any other AI, are ready to be deployed. I’m willing to discuss that, and if necessary, to disagree. What’s more important is to realize that this discussion needs to happen. Readiness itself is an ethical issue, and one that we need to take seriously. Ethics isn’t simply a matter of saying that any risk is acceptable, or (on the other hand) that no risk is acceptable. Readiness is an ethical issue precisely because it isn’t obvious what the “right” answer is, or whether there is any “right” answer. Is it an “ethical gray area”? Yes, but that’s precisely what ethics is about: discussing the gray areas.</p><h3>The state of surveillance</h3><p>In a chilling article, <a href="http://www.theverge.com/2016/10/11/13243890/facebook-twitter-instagram-police-surveillance-geofeedia-api">The Verge reports</a> that police in Baltimore used a face identification application called Geofeedia, together with photographs shared on Instagram, Facebook, and Twitter, to identify and arrest protesters. The Verge’s report is based on a more detailed <a href="https://www.aclunc.org/blog/facebook-instagram-and-twitter-provided-data-access-surveillance-product-marketed-target">analysis by the ACLU</a>. Instagram and the other companies quickly terminated Geofeedia’s account after the news went public, though they willingly provided the data before it was exposed by the press.</p><p>Applications of AI to criminal cases quickly get creepy. We should all be nervous about the consequences of building a surveillance state. People post pictures to Instagram without thinking of the consequences, even when they’re at demonstrations. And, while it’s easy to say “anything you post should be assumed to be public, so don’t post anything that you wouldn’t anyone to see,” it’s difficult, if not impossible, to think about all the contexts in which your posts can be put.</p><p>The <a href="https://www.aclu.org/blog/free-future/facebook-instagram-and-twitter-provided-data-access-surveillance-product-marketed">ACLU suggests</a> putting the burden on the social media companies: social media companies should have “clear, public, and transparent policies to prohibit developers from exploiting user data for surveillance.” Unfortunately, this misses the point: just as you can’t predict how your posts will be used or interpreted, who knows the applications to which software will be put? If we only have to worry about software that’s designed for surveillance, our task is easy. It’s more likely, though, that applications designed for innocent purposes, like finding friends in crowds, will become parts of surveillance suites.</p><p>The problem isn’t so much the use or abuse of individual Facebook and Instagram posts, but the scale that’s enabled by AI. People have always seen other people in crowds, and identified them. Law enforcement agencies have always done the same. What AI enables is identification at scale: matching thousands of photos from social media against photos from drivers’ license databases, passport databases, and other sources, then taking the results and crossing them with other kinds of records. Suddenly, someone who participates in a demonstration can find themselves facing a summons over an old parking ticket. Data is powerful, and becomes much more powerful when you combine multiple data sources.</p><p>We don’t want people to be afraid of attending public gatherings, or in terror that someone might take a photo of them. (A prize goes to anyone who can find me on the cover of Time. These things happen.) But it’s also unreasonable to expect law enforcement to stick to methodologies from the 80s and earlier: crime has certainly moved on. So, we need to ask some hard questions — and “should law enforcement look at Instagram” is not one of them. How does automated face recognition at scale change the way we relate to each other, and are those changes acceptable to us? Where’s the point at which AI becomes harassment? How will law enforcement agencies be held accountable for the use, and abuse, of AI technologies? Those are the ethical questions we need to discuss.</p><h3>Our AIs are ourselves</h3><p>Whether it’s fear of losing jobs or fear of a superintelligence deciding that humans are no longer necessary, it’s always been easy to conjure up fears of artificial intelligence.</p><p>But marching to the future in fear isn’t going to end well. And unless someone makes some fantastic discoveries about the physics of time, we have no choice but to march into the future. For better or for worse, we will get the AI that we deserve. The bottom line of AI is simple: to build better AI, be better people.</p><p>That sounds trite, and it is trite. But it’s also true. If we are unwilling to examine our prejudices, we will implement AI systems that are “unfair” even if they’re statistically unbiased, merely because we won’t have the interest to examine the data on which the system is trained. If we are willing to live under an authoritarian government, we will build AI systems that subject us to constant surveillance: not just through Instagrams of demonstrations, but in every interaction we take part in. If we’re slaves to a fantasy of wealth, we won’t object to entrepreneurs releasing AI systems before they’re ready, nor will we object to autonomous vehicles that preferentially protect the lives of those wealthy enough to afford them.</p><p>But if we insist on open, reasoned discussion of the tradeoffs implicit in any technology; if we insist that both AI algorithms and models are open and public; and if we don’t deploy technology that is grossly immature, but also don’t suppress new technology because we fear it, we’ll be able to have a healthy and fruitful relationship with the AIs we develop. We may not get what we want, but we’ll be able to live with what we get.</p><p>Walt Kelly <a href="https://en.wikipedia.org/wiki/Pogo_(comic_strip)">said it best</a>, back in 1971: “we have met the enemy and he is us.” In a nutshell, that’s the future of AI. It may be the enemy, but only if we make it so. I have no doubt that AI will be abused and that “evil AI” (whatever that may mean) will exist. <a href="https://www.safaribooksonline.com/library/view/oreilly-ai-conference/9781491973912/video260722.html">As Tim O’Reilly has argued</a>, large parts of our economy are already managed by unintelligent systems that aren’t under our control in any meaningful way. But evil AI won’t be built by people who think seriously about their actions and the consequences of their actions. We don’t need to forsee everything that might happen in the future, and we won’t have a future if we refuse to take risks. We don’t even need complete agreement on issues such as fairness, surveillance, openness, and safety. We do need to talk about these issues, and to listen to each other carefully and respectfully. If we think seriously about ethical issues and build these discussions into the process of developing AI, we’ll come out OK.</p><p>To create better AI, we must be better people.</p><p><a href="http://www.oreilly.com/ai/newsletter.html?cmp=mp-data-newsletter-info-newsltr_medium_ethics_of_artificial_intelligence_body_text_cta"><strong>Subscribe to the O’Reilly Artificial Intelligence newsletter for AI insights and analysis</strong></a><strong>.</strong></p><p><em>Mike Loukides is Vice President of Content Strategy for O’Reilly Media, Inc. He’s edited many highly regarded books on technical subjects that don’t involve Windows programming. He’s particularly interested in programming languages, Unix and what passes for Unix these days, system and network administration. Mike is the author of System Performance Tuning and a coauthor of Unix Power Tools.</em></p><p><em>Originally published at </em><a href="https://www.oreilly.com/ideas/the-ethics-of-artificial-intelligence"><em>www.oreilly.com</em></a><em> on November 14, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f1f20a802c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/best-of-oreilly-radar/the-ethics-of-artificial-intelligence-6f1f20a802c4">The ethics of artificial intelligence</a> was originally published in <a href="https://medium.com/best-of-oreilly-radar">Best of O’Reilly Radar</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial creativity]]></title>
            <link>https://medium.com/best-of-oreilly-radar/artificial-creativity-69b7049c238a?source=rss-4f5ec5f4f86a------2</link>
            <guid isPermaLink="false">https://medium.com/p/69b7049c238a</guid>
            <category><![CDATA[art]]></category>
            <category><![CDATA[industry]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[music]]></category>
            <dc:creator><![CDATA[Mike Loukides]]></dc:creator>
            <pubDate>Tue, 01 Nov 2016 11:00:00 GMT</pubDate>
            <atom:updated>2016-11-21T18:48:07.888Z</atom:updated>
            <content:encoded><![CDATA[<h4>Is it possible for an AI to create revolutionary art?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opT99reruApLOqhAa95m9g.jpeg" /><figcaption>A 19th Century print depicting the first Performance of Beethoven’s 9th symphony with Beethoven drawn in the middle of his orchestra. Via <a href="https://commons.wikimedia.org/wiki/File:19th_Century_Print_of_the_first_performance_of_Beethoven%27s_Ninth_Symphony.jpg">Wikimedia Commons</a></figcaption></figure><p>With the progress we’ve seen in artificial intelligence over the past year, there’s been a lot of excited talk about AI and creativity. Can we make AI systems that are creative? And what does that mean? We’ve seen AIs that can write relatively formulaic newspaper stories, <a href="http://www.npr.org/sections/alltechconsidered/2016/04/06/473265273/a-new-rembrandt-from-the-frontiers-of-ai-and-not-the-artists-atelier">paint new Dutch Masters</a>, <a href="https://www.theguardian.com/technology/2015/sep/02/computer-algorithm-recreates-van-gogh-painting-picasso">apply Van Gogh’s style to arbitrary pictures</a>, and <a href="https://www.wired.com/2016/03/two-moves-alphago-lee-sedol-redefined-future/">and play Go brilliantly</a>. But is that creativity? As the clichéd question goes, “Is it art?”</p><p>Questions about creativity are tough because we don’t really know what “creativity” is. We have industries devoted to the production of formulaic pieces for mass consumption. We talk about the “movie industry” and the “music industry,” and those terms are absolutely right, because while movies and music are undeniably creative at some level, the industries are primarily about pushing out a lot of product and getting people to buy it. This year’s “the same” isn’t exactly the same as last year’s “the same,” but art that’s produced and marketed for mass consumption can’t afford to be too different or strange.</p><p>On the other hand, we have a notion that an artist is someone who creates taste rather than reflects it, someone who breaks the rules, who creates things of a kind that didn’t exist before. These are the artists who create radical art.</p><p>It’s worth looking at a radically creative artist to see what this fuss is about. As a classical pianist, I’ll choose Beethoven, who was probably the most radical composer in the history of music. What made Beethoven unique in the first place? Could a computer create music that’s equally groundbreaking?</p><p>Everybody is familiar with Beethoven’s 5th symphony, and that’s the problem: we’re so familiar with it that we’ve forgotten how strangely it starts. The first movement is built entirely from a theme that’s really just a four-note fragment. Da-da-da-DUH. Then those four notes again, in another key. And again, and again, and again. Where are you going to go with that? This is not Papa Haydn.</p><p>Likewise, the Waldstein piano sonata has a <a href="http://cdn.oreillystatic.com/radar/radar-podcast/Waldstein.mp3">20 note theme</a>, in which the first chord (C major) is repeated 16 times. Then the same chord again, but in another key. What’s going on? Beethoven frequently takes a relatively uninteresting tune, breaks it down into tiny pieces, and reassembles it in amazing ways. What’s he doing? He was never as good with a melody as Mozart; is he working from his weakness? Is he turning his deafness into an advantage? Maybe it’s not surprising that a composer who was going deaf would start a piece by pounding out the same chord repeatedly. It’s certainly no surprise that many of Beethoven’s contemporaries considered this noise.</p><p>The Opus 110 piano sonata is one of Beethoven’s late masterpieces. Like most piano sonatas, it looks like it has three movements. But does it? The second movement really moves <a href="http://cdn.oreillystatic.com/radar/radar-podcast/op101-transition.mp3">straight ahead into the third, without a break</a>. The so-called third movement starts with a long bridge that nobody knows how to play (the notation in measures four and five doesn’t make sense) into a lament. Then in measure 27, the lament suddenly becomes a <a href="http://cdn.oreillystatic.com/radar/radar-podcast/op101-fugue.mp3">fugue</a>, also without a break. Then the lament comes back in the middle of measure 114; the fugue comes back in 137, with the theme turned upside down; and then all the parts scatter around in strange, uncoordinated ways to introduce a final section based on the fugue theme, but with big chords above a moving bass line. So: is this two, three, four, five, or six movements?</p><p>I can’t answer that question; there isn’t an answer, and that’s the point. Beethoven has turned the traditional sonata form into a problem. He’s taken it as far as it can go, and moved way, way beyond it. He broke it, and has done something profoundly new.</p><p>It wouldn’t surprise me at all if an AI trained on Beethoven’s works could “write” synthetic Beethoven symphonies or piano sonatas. I’m sure an AI would be good at breaking a larger theme up into parts and reassembling them in clever ways. It could certainly pick up characteristic gestures, like suddenly moving from fortissimo to pianissimo, or using the extreme ends of the piano’s range. But the ability of AI to imitate isn’t really the question. Imitation has never been all that hard. If you trained an AI with the entire body of Western music prior to Beethoven’s birth in 1770, could it come up with something equally radical? Or, if you had all the music up until 1960, would you get Hendrix, the Beatles, and Zappa? All of these musicians were working out of traditions and styles that came before, whether the high classical music of Mozart and Haydn, or the blues of Leadbelly and Blind Lemon Jefferson. But they also took those earlier traditions, broke them apart, and built something new and different.</p><p>But whether an AI can push an artistic tradition to a new level is only the start of the problem. Art is ultimately about humans: even if humans don’t create it, they’re the ones who look at it, listen to it, and decide whether or not they like it. With that in mind, it’s worth thinking about the reception of any radical art. There’s a common pattern: early on, a few cognoscenti love it, but the masses find it too difficult and hate it. Years or decades later, we worship it; then we find it boring. Chuck Berry’s <a href="https://en.wikipedia.org/wiki/Roll_Over_Beethoven">“Roll over, Beethoven”</a> is ironically good commentary on this process: Beethoven became boring precisely because he was worshipped, and that worship transformed performances into stodgy, grandiose parodies of “great art.” But there’s nothing unique about Beethoven. Talking about the decline of the music industry, <a href="http://www.cartoonbrew.com/ideas-commentary/frank-zappa-explains-why-cartoons-today-suck-10513.html">Frank Zappa says</a>:</p><blockquote><em>One thing that did happen during the 60s was some music of an unusual or experimental nature did get recorded or did get released. Now look at who the executives were in those companies at those times. Not hip young guys. These were cigar-chomping old guys who looked at the product that came and said, ‘I don’t know. Who knows what it is. Record it. Stick it out. If it sells, alright.’ We were better off with those guys than we are now with the supposedly hip young executives who are making the decisions of what people should see and hear in the marketplace.</em></blockquote><p>We were lucky to get the Beatles; if the record execs hadn’t said, “I don’t get it. What the hell.”, music would have taken a different course. Beethoven survived because, frankly, he was one of the biggest assholes in history, and nobody was going to tell him what to do. He had his fans amoung the avant garde, of course, but he certainly wasn’t easy listening for your typical concertgoer. And he didn’t care.</p><p>Now we’re at the heart of the problem of AI creativity. You can talk as much as you like about automating creativity, but the human is never out of the loop. At some point, humans have to look at whatever art works AI produces and decide whether they want more. That’s not a technical requirement; it’s a human one. If humans don’t like it, they’ll pull the plug. What happens to the algorithms when the listeners turn thumbs up or thumbs down? Will Spotify and Pandora (or, more precisely, their algorithms) take risks on challenging music? Or will the AI’s managers tweak the algorithm and retrain until the results are more marketable? If an AI wrote the 5th symphony, would a music exec say “pretty good, could be better, let’s tweak the model and get something people will really like”?</p><p>It won’t make a difference if the AI has a Beethoven-like ego. It won’t have the ability to forge ahead regardless of what contemporaries think. It will be at the mercy of record execs and program managers who aren’t likely to say “Who knows what it is… if it sells, alright.” Best case, we’ll end up with occasional bits of brilliance sprinkled through yottabytes of unwanted music in cold storage. And nobody will have the time or patience to go through it.</p><p>There’s a deeper point here. Is it important that this art was created by humans? With music, you could argue that we only want something to entertain us. There is certainly room for music-as-product; you need something to listen to in elevators. And you could even argue that when you’re listening to or performing Beethoven, you don’t care where the music came from. But there are art forms for which that isn’t true. Earlier this year, the Guardian published an article about <a href="https://www.theguardian.com/technology/2016/may/17/googles-ai-write-poetry-stark-dramatic-vogons">computers writing poetry</a>. Although these attempts were laughably bad (the Guardian called it <a href="http://hitchhikers.wikia.com/wiki/Vogon_poetry">Vogon Poetry</a>), we can assume that future attempts will be much better. But why is poetry important to us? Is it because it’s a pleasing arrangement of words, or is it precisely because a human created those words? Music can be Muzak, but there’s no poetic equivalent, except perhaps greeting card verse. Greeting cards can be written by AI: I really don’t care. But I don’t think I’d care about the poems of Keats or the plays of Shakespeare if they hadn’t been written by a human. If Keats’ <a href="https://www.poetryfoundation.org/poems-and-poets/poems/detail/44468">Bright Star</a> were just a pleasing arrangement of words coming out of a carefully tuned neural network, would we be interested in them? I don’t think so.</p><p>By the same token, I don’t at all see why we need imitation Rembrandts or Van Goghs. Yes, there is a market for Elvis on Velvet, and perhaps even paintings in doctors’ offices. But art as product gets boring quickly. While I’m sure that AI systems can produce an endless stream of pop songs, fake Dutch Masters, and sentimental poetry, and while AI may even be able to reproduce the relatively minor changes that go from period to the next, I don’t think it’s likely that AI will be able to produce revolutionary art.</p><p>Could AI produce the next Beethoven, or the next Beatles, as opposed to just synthetic Beethoven or Beatles? I’m not saying that it can’t, but that’s a qualitatively different, and much more difficult, problem. At ZeitGeist, Mark Rumsen (as tweeted by Tim O’Reilly) said that <a href="https://twitter.com/timoreilly/status/778046267033128961">“Anyone who says they can tell you what the future of music is is either lying, or they are from the future.”</a> I certainly can’t predict the future of music, or of any other art form. But neither can an artificial intelligence. I’m confident that great art will continue to break rules and leap out in front of human cognition. It will be about breaking with established norms and making something new. Making those leaps will be difficult (though maybe not impossible) for an AI. But appreciating and understanding those leaps will be even more difficult for the humans who ultimately have to decide whether to let the AI continue creating. Nobody pulled Beethoven’s plug.</p><p><a href="http://www.oreilly.com/ai/newsletter.html?cmp=mp-data-newsletter-info-newsltr_medium_artificial_creativity_body_text_cta"><strong>Subscribe to the O’Reilly Artificial Intelligence newsletter for AI insights and analysis.</strong></a></p><p><em>Mike Loukides is Vice President of Content Strategy for O’Reilly Media, Inc. He’s edited many highly regarded books on technical subjects that don’t involve Windows programming. He’s particularly interested in programming languages, Unix and what passes for Unix these days, and artificial intelligence. Mike is the author of System Performance Tuning and a coauthor of Unix Power Tools.</em></p><p><em>Originally published at </em><a href="https://www.oreilly.com/ideas/artificial-creativity"><em>www.oreilly.com</em></a><em> on November 1, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69b7049c238a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/best-of-oreilly-radar/artificial-creativity-69b7049c238a">Artificial creativity</a> was originally published in <a href="https://medium.com/best-of-oreilly-radar">Best of O’Reilly Radar</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>