Editing 1646: Twitter Bot

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
  
 
==Explanation==
 
==Explanation==
A Twitter {{w|Internet bot|bot}} is a program that can post automatically to {{w|Twitter}}. Although Twitter bots can be very elaborate, a lot of people write simple bots for fun that simply engage in automated wordplay.
+
{{incomplete|Edited by a HUMAN!!!}}
  
[[Cueball]] thinks he'll write a Twitter bot, figuring out it won't be too hard. The web searches he makes tell what happens next, i.e. the bot balloons in complexity until it starts {{w|Technological singularity|following its own goals}} and Cueball no longer has any control over its actions.
+
A Twitter bot is a program that can post automatically to Twitter. Although Twitter bots can be very elaborate, a lot of people write simple bots for fun that simply engage in automated wordplay. However, each web search reveals an additional level of complexity:
  
This comic examines how a seemingly simple task can often balloon in complexity if all of the requirements are not understood, while at the same time presenting the stereotypical scenario where an unassuming idea results in the accidental creation of malevolent {{w|AI}}, which then attempts to destroy humanity.
+
* ''PYTHON TWITTER LIBRARY'': The {{w|Python (programming language)|Python}} programming language has a nice "library" (i.e., a specially written collection of functions) that [https://pypi.python.org/pypi/twitter interface with the Twitter API]. This does all the tricky work of authenticating the bot's identity and sending the messages, so the user can concentrate on the fun parts.
 +
* ''MACHINE LEARNING'': {{w|Machine learning}} is the basis of artificial intelligence.
 +
* ''CLOUD HOSTING'': While it's possible to host a Twitter bot on your server, you can also have it hosted by someone else - such as Amazon - in order to take advantage of their powerful computers and robust internet connection.
 +
* ''BOT TROUBLESHOOTING'': Cueball is having some trouble with his bot and is looking for some information about resolving the problem.
 +
* ''LOCKED OUT OF EC2 INSTANCE'': EC2 is Amazon's cloud hosting service (it's short for {{w|Amazon Elastic Compute Cloud}}).  Cueball has been locked out of his EC2 instance and is attempting to determine why.
 +
* ''BOT CHANGED OWN PASSWORD?'': This suggests that Cueball has determined that the bot has managed to change the Twitter log-on details, totally cutting Cueball out.
 +
* ''HOW TO FIGHT A BOT'': Cueball is trying to physically fight the bot, but he's apparently unsuccessful and the fight results in a loud "BOOM!".
 +
* ''CHEAP FLIGHTS AUSTRALIA'': Cueball has completely given up the possibility of regaining control of the bot, so he flees to Australia instead. It is understood Australia sounds like a far, far away land for Cueball.
 +
* ''PYTHON FLAG ENABLE THREE LAWS'' (title text):
 +
this is a reference to sci-fi author {{w|Isaac Asimov}}'s famous {{w|Three Laws of Robotics}}, also seen in [[1613: The Three Laws of Robotics]].  In this case it's used to indicate fictitious Python flag that could presumably be used to easily ensure that any robots developed with it would follow the laws as they are defined and would have avoided the unfortunate result that occurred. The hope for such flag does not seem too far fetched as python does have an antygravity import ([[353: Python]])
  
The story, as told by the web searches, is as follows:
+
This comic examines how a seemingly simple tasks can often balloon in complexity if all of the requirements are not understood, while at the same time presenting a scenario where an unassuming idea results in the accidental creation of malevolent AI.
 
 
{|class="wikitable"
 
!Query
 
!Explanation
 
|-
 
|How to write a Twitter bot|| Cueball has no idea where to start, so he just searches for basic advice on writing generic Twitter bots.
 
|-
 
|Python Twitter library|| The {{w|Python (programming language)|Python}} programming language has a nice {{w|Library (computing)|library}} that [https://pypi.python.org/pypi/twitter interfaces with the Twitter API]. This does all the tricky work of authenticating the bot's identity and sending the messages, so the user can concentrate on the fun parts.
 
|-
 
|Machine learning|| {{w|Machine learning}} is the basis of {{w|artificial intelligence}}.
 
|-
 
|Cloud hosting|| While it's possible to host a Twitter bot on your server, you can also have it {{w|Internet hosting service|hosted}} by someone else - such as {{w|Amazon Web Services|Amazon}} - in order to take advantage of their powerful computers and robust internet connection.
 
|-
 
|Bot troubleshooting|| Cueball is having some trouble with his bot and is looking for some information about resolving the problem.
 
|-
 
|Locked out of EC2 instance|| {{w|Amazon Elastic Compute Cloud|EC2}} is a hosting service by Amazon that allows users to run their code in the hosting server. Cueball was running his bot from EC2, but now he's unable to access his account. He's searching for advice on how to regain access.
 
|-
 
|Bot changed own password?|| Cueball is suspecting that the reason he can't access his Amazon EC2 account is that the bot has changed the password without Cueball's knowledge or consent. Since the bot was never programmed to change any passwords at all, the fact that it has done so is pretty scary, as one wonders what other things the bot is doing without being programmed for it.
 
|-
 
|How to fight a bot|| Cueball is trying to physically fight the bot, but he's apparently unsuccessful and the fight results in a loud "boom" and "pew, pew, pew" sounds. The situation is scarier than before, as it starts to resemble the "killbot hellscape" in [[1613: The Three Laws of Robotics]].
 
|-
 
|Cheap flights Australia|| Cueball has completely given up the possibility of regaining control of the bot, so he flees to {{w|Australia}} instead. [[Randall]] lives in {{w|Massachusetts}}, USA, so Australia would be a far, far away land from the bot.
 
|-
 
|'''Title text:''' Python flag enable three laws|| This references that the Python language is known for having easy constructs to perform difficult tasks (see [[353: Python]]). In this case, it is either assumed that (or Cueball is making yet another query to see if) Python has a configuration flag (i.e., a {{w|Boolean data type|boolean}} value) which, when set to "enabled" (or "true", as opposed to "disabled", or "false"), will cause the bot to follow {{w|Isaac Asimov}}'s famous {{w|Three Laws of Robotics}}. This is a simple enough step, and it might have been enough to prevent the "killbot hellscape" scenario, like the rule is depicted doing in the top panel of [[1613: The Three Laws of Robotics]]. It won't cause the bot to stop being in control, however, but if the bot is following the rules strictly it would not be allowed to even make Cueball uncomfortable, which he already becomes when it changes his password! It is unclear if this message is something he actually desperately tries, only searches for (like the rest of the queries) or something (someone shouts at him) that he should have done before creating the bot in the first place. Or the title text is simply Randall's comment on his own comic, like an idea to add that flag in Python. Just in case.
 
|}
 
  
 
==Transcript==
 
==Transcript==
:[Cueball is sitting at a desk using a laptop, his thoughts shown above in a thought bubble. A search query is shown in a frame to indicate what Cueball has searched for with the search button below in gray text:]
+
:[Cueball is sitting at a desk using a laptop.]
:Cueball (thinking): I want to make a Twitter bot. I bet it's not too hard.
+
:Cueball (thinking): I want to make a Twitter Bot. I bet it's not too hard.
:Query: How to write a Twitter bot
+
:[A search query is shown to indicate what Cueball has searched for]
:<font color="gray">Search</font>
+
:Query: How to write a twitter bot
  
:[Cueball is now holding the laptop on his lap, a series of search queries are shown.]
+
:[Cueball is now holding the laptop on his lap, a series of search queries are shown]
 
:Query: Python Twitter library
 
:Query: Python Twitter library
:<font color="gray">Search</font>
+
:Query: Machine Learning
:Query: Machine learning
+
:Query: Cloud Hosting
:<font color="gray">Search</font>
 
:Query: Cloud hosting
 
:<font color="gray">Search</font>
 
  
:[Cueball has placed the laptop back on the desk.  More search queries are shown, each one more ominous than the previous.]
+
:[Cuball has placed the laptop back on the desk.  More search queries are shown, each one more ominous than the previous]
:Query: Bot troubleshooting
+
:Query: Bot Troubleshooting
:<font color="gray">Search</font>
 
 
:Query: Locked out of EC2 instance
 
:Query: Locked out of EC2 instance
:<font color="gray">Search</font>
 
 
:Query: Bot changed own password?
 
:Query: Bot changed own password?
:<font color="gray">Search</font>
 
  
:[Cueball is shown wearing a small backpack and typing on his smartphone while jogging to the right. various noises coming from left and right seem to imply that chaos has begun to erupt around him. The loudest noise is in a ragged frame to the left, coming from off-panel left, it is between the first and second query. Also between these but to the right are other sounds coming from off-panel right.]
 
 
:Query: How to fight a bot
 
:Query: How to fight a bot
:<font color="gray">Search</font>
+
:[Various noises seem to imply that chaos has begun to erupt]
:Noise off-panel left: <big>Boom</big>
+
:Noise off-screen left: Boom!
:Noise off-panel right: ''Pew Pew Pew''
+
:Noise off-screen right: Pew, Pew, Pew
:Query: Cheap flights Australia
+
:[Cuball is shown wearing a small backpack and typing on a phone jogging to the right]
:<font color="gray">Search</font>
+
:Query: Cheap flights to Australia
  
==Trivia==
+
{{comic discussion}}
On March 23, 2016, a month after the release of this comic, {{w|Microsoft}} released the Twitter bot {{w|Tay (bot)|Tay}} causing many controversies and was shut down only 16 hours after its launch. It's unknown if some people at Microsoft were inspired by this comic.
 
  
{{comic discussion}}
 
 
[[Category:Comics featuring Cueball]]
 
[[Category:Comics featuring Cueball]]
 
[[Category:Artificial Intelligence]]
 
[[Category:Artificial Intelligence]]
 
[[Category:Computers]]
 
[[Category:Computers]]
[[Category:Google Search]]
 
[[Category:Robots]]
 
[[Category:Programming]]
 
[[Category:Social networking]]
 
[[Category:Singularity]]
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)