Tuesday, June 9, 2015

Transcript - Hands-On Robotics

Class: Informatics, Computing, and the Future
Instructor: Dan Berleant
Transcriber: Brooke Yu
Date: Thursday, April 11, 2013

Professor:  Okay, so we'll talk about those in a minute.  First I just want to go over where we are in the course.  We're getting to the end of the semester, so today we're going to start on our robotics unit.  That's what those things are. 

Many people signed up for presentations, so we're down to 15 minutes per presentation. 

Can we interrupt you?  For the VMware, we have mark here

If any of you are getting knocked off and have to log back in, if I could get a screenshot of the error, send it to me. 

We really wanted to fix it tomorrow. 

Send it to mhpace@ualr.edu

I'll put it on the board. 

It's mhpace@ualr.edu. 

Female Student:  It has been kicking me off today, but no error message. 

Yeah, some people get it and I need to see the message. 

Thank you! 

Professor:  They're not going to be logging in to use these things.  They'll be using the local machine. 

Male Student:  I'll just keep VMware open. 

Alright, thank you! 

Male Student:  I noticed earlier too it seemed like other computers doing it.  It's not just VMware. 

Okay, thank you. 

Professor:  Okay, so sign up for presentations if you haven't yet.  If you have, your name should be here.  What else?  There's a homework due next Tuesday, then there will be one more homework, and a last homework which is a test, but it counts like a homework. 

The test is really for our accreditation for the course.  So take it seriously, and that will be the last assignment for the course.  Then we have presentations. 

So we're sort of in the home stretch.  Any questions about the project or anything?  Test?  Anything?  No?  We won't meet for the final unless you have to make up assignments. 

Okay, so let's talk about robots. 

I'm going to show you stuff, but instead of me for just standing up here, I'd like everyone to get their own robot.  So just come up and get one.  You can pick it up by the handle, or just grab it.  They're all charged.  I've been charging them all morning. 

Male Student:  It can't talk, can it? 

Professor:  Haha, no.  Well, one year I found a sudent who found a speech interface for it.  Anyway, these this looks sort of like a rhumba.  And it's made by the same company.  So I like to say it's similar, but it doesn't have a vacuum.  It just rolls around.   And you can program this one. 

So let's look at the parts.  First, it has a handle so you can pick it up.  It has an omnidirectional IR receiver.  What is omnidirectional?  All directions.  What does IR stand for?  Infrared.  Does anyone know what that means? 

You know, there's the colors.   Like the rainbow goes from red up to blue in a layer.  This is the frequency of the light- how fast the light waves are going.  Past blue, what's that? 

Male Student:  Yellow? 

Professor:  Yellow, I think is here

Male Student:  Orange? 

Professor:  Right between yellow and red. 

Male Student:  White? 

Professor:  That's the combination of all colors. 

Professor:  Do you ever hear the term black light?  That's the same as ultra violet.   It really is light, but you can't see it. 

So what's under ultraviolet?  Violet, which is purple light.  You have blue color receptors in your eyes, but no violet color receptors.  It looks that way because it starts activating the red receptors.  It activates both blue and red receptors at the same time.  Ultra means beyond, so infra means below, so infrared means below red

So these robots, if you look at this thing on the front, it has a clear plastic layer undue rathe disk.  That clear plastic is a way that this thing receives and transmits infrared light. 
It communicates by infrared light. 

And notice it's clear plastic all around- well, thats' because it's omnidirectional.  It doesn't transmit, it just receives.  That why it has a periscope in the front so it can communicate with things like the charging base. 

If you'll notice the charging base has a similar circular clear plastic thing.  This is a transmitter.   The robot can sense it and the robot and come and dock and get charged. 

In fact, I'll show you.  

Plug it in. 

You might want to stand up, or come around here and see how it works

Might as well, otherwise I'll just have to tell you. 

Male Student:  These are the same ones we used in the ethics class. 

Professor:  Yeah.  Alright.  It's trying to dock, and this thing is emitting infrared light and it's trying to adjust its path so it can dock.  Now it's charging.  You can see the charging light is on and it's able to dock because of that omnidirectional IR receiver. 

Alright.  So it also has a cargo bay.  Why do you want a cargo bay?  People do all kinds of research with these robots and people have done things like build structures into the bay that have a hand or something that can grab a beer out of the fridge.  Plus it's not a vacuum cleaner, so they have extra space

Inside it has a cargo bay connector.  See that?  It's so you can connect this to a computer that sends arbitrary C code to control what the robot does.  If you don't want a wire connected to it, you can set up a radio transmitter.  So you can use this to do arbitrary complex programs like taking the beer out of the fridge

Or it can be set up to water tomato plants in a lab.  You can still program it to 100 bytes.  We'll do that maybe next time. 

Cargo bay connector- charging socket.  It's right on the side.  See if you can find it. 

So I showed you how it docks.  Does everyone see it?  It has a lightning thing.  If you don't have a docking device, this charger is what gives it the juice, and you can plug it right into the thing. 

Look at the green light.  When I plug it in, it turns red and pulses.  When it's fully charged, this light will turn green again. 

You can also plug it into the charger docking station and then it'll be docked that way. 

Okay, if you look above the charging socket, there's something cayley death serial port.  Here's the charging port, and above it is the serial port.  We're going to plug this into the computer to send programming commands.  Did everyone find the serial port?  If you look at the serial port, you can see how you can only plug the cable in one kind of orientation.  It's easy to bend these pins.  It's not really made for school use, so when I give you pins, don't force them in the wrong way. 

Avoid bending pins.  But I haven't given you the cables yet, so you'll see that later. 

The trick is to align the arrows.  The cables have an arrow on them, and you want to align them so you know you won't bend them.  Does anyone have a cover over the serial port?  When they come new they're covered.  I took them off though for today. 

Okay, now I'm going to hand out some cables and you can plug the cables in.  Before I do that, I want to show you how to do it. 

Okay, so here is the robot.  And here's the serial port.  There's a cable that plugs in.  Notice that the cable has an arrow on it.  So you can twist it so that the arrow is facing the right way- it should be facing out so you can see it.  Then you know you're plugging it in the right way.   Does that make sense?  You want the arrow to be sort of facing outward from the robot and then it'll plug in properly.  Let me go ahead and pass these out. 

So take your time plugging them in.  It's really the one thing people are most likely to break on these- the cable.  So really try to be careful. 

Make sure you see the arrow before you try to plug it in. 

Alright.  Is it going okay?  Any questions? 

The next step is to plug the other end of the cable which is a rectangular shape into your computer.  The computers have right over on the left side over here is the socket for that. 

So you got a cable that's marked fragile.  But you have it all set right. 

Okay.  Everybody all set?  Any questions?  Well, let's continue our process here.  If you'll notice, it has three buttons on the robot.  One has a symbol that looks like this [On board.]  

Someone already pressed their power button. 

That's the power button.  Does anyone know why it has this symbol? 

Male Student:  Isn't it like input/output/ 

Professor:  Yeah, it's the 1 0 kind of thing.  For computers, that means on and off.  This is the standard symbol for a power switch. 

Oh, I see.  It's per IEEE standard 1621.  It'll make a beep.  Go ahead and press it.  And the light turns on.  It should be a green light. 

If it's amber, your batter is only partially charged.  If it's red it really needs charging.  If it doesn't come on, it's dead how many have green? 

Anybody have amber or anything else? 

I charged them earlier. 

Good what else?  The power button has LEDs in it.  Who knows what that stand for? 

Male Student:  Light emitting diode. 

Professor:  Right.  That's where lightbulbs are going too.  We talked about how lightbulbs will all be LED soon.  The power button has a red one and a green one in there.  If the green one is on it's charged.  If it's not charged, it lights up the red one instead.  Or if it's partially charged they both light up.  It also has some other buttons.  It has a play button. 

That's the arrow in the middle, and it has an LED associated with it. 

So you can just try... if you press it, your robot will move.  Don't press it yet.  It has an advance button.   You've seen these before. 

So there's a bunch of demos. 

We're going to go outside for this.  You have to unplug them.  Bring them out here and I'll demonstrate. 

Professor:  So how many people found out what the music playing demos were?  It has some cool motion abilities too. 

Okay.  Any questions so far?  Comments? 

Alright.  So I showed you the home base here where it can dock for recharging.  If you look under the robot by the front wheel, it has these two shiny pads.  That matches up with the contacts on the home base so it can charge.  Does everyone see those pads there?  Metal is expensive.  More expensive than plastic.  So why not change money by making those contact pads out of plastic? 

Male Student:  Doesn't conduct electricity. 

Professor:  Right.  I saw someone noticed that it wouldn't fall down the stairs.  I hope you were there to catch it.  The reason is because it has cliff sensors so it won't fall off of tables or down stairs.  If you look at it, it has rectangular holes by the pads.  Those are cliff sensors. 

So my question is- are these spring loaded feelers or are they electronic? 

Male Student:  I imagine they're electronic. 

Professor:  Okay, how could you tell? 

Male Student:  Spring? 

Professor:  Yeah, you know, like springy things that fall down to detect? 

Male Student:  I see wires.  No springs. 

Professor:  Okay.  If you shake it, you don't see any springs dropping down.  So yeah, they're electronic cliff sensors. 

Turn it upside down.  We'll look at the batter.  It's similar to a batter for your computer or something.  It's called- everyone see it?  Take out the batter.  You press on the ends.  There's little finger holes and you can lift the battery out.  To put it back in, drop it into place and press on both ends and make sure you hear two clicks. 

You should hear two clicks and you're good to go. 

Okay, our next step is to send commands to the robot to make it do things go ahead and plug the cable back in, being careful that the arrow is straight out so it won't break.  Remember, the arrow faces out. 

And everyone got that connected?  If you go to your computer- you don't have to log in.  It's on the local machine.   You don't have to log in.  

So if you go to your computer, there's a program called real term.  It comes up with a black window. 

You can download real term at home.  I don't know if we have it on this machine.  Probably not. 

How many people found it?  Oh, you got it.  There are people running it.  Anyone not have it yet? 

Okay.  Are you already sending commands? 

Male Student:  I learned how to do it in ethics class. 

Professor:  Right!  Okay.  So there's a bunch of tabs.  Click the "Send" tab because we want to send commands. 

So click the send tab. 

In the window, there's a little window.... I don't have a picture.  There's a type in window for sending commands.  What does it say- it says "send numbers."  So you'll want to send two numbers.  128 space 132.  Type them, but don't click send yet.  Then power cycle your robot tget to the initial state.  Turn it off then turn it on. 

When you send the numbers, watch the power light.  It should go off. 

So give it a try.  When you send those numbers, the power LED should turn off. 

Okay.  Raise your hand if you're running into problems. 

128 132. 

On the same line. 

128 132. 

Click send. 

And it turned off. 

If you want to try again, you can

Okay, what's going on here is that these are programs in the programming language.  128 is the start command.  It tells it to get ready to accept software 132 gives you control over the robot.  If you say go forward, it'll go forward over the edge of the table.  So you have to use your power carefully. 

Okay.  Let's try something else.  Try this command here.  It's three commands with three arguments.  Try sending this command and watch what happens. 

Someone tell me what happens. 

Male Student:  The play button turns green. 

Professor:  Okay, so it should turn on the middle light and everything else should be off.  The 139 command is a light controlling command.  2 0 0 are three arguments.  Okay.  The first argument is the one that controls the light that just turned on.  If you... let's see how to say that.  If you give it an 8 instead of 2, it'll light up differently. 

Male Student:  The forward button turns on. 

Professor:  Right.  So 2 makes one button turn on.  There's one bit that stands for the 2, the third bit stands for 8.  But the cool thing- if you use 10 instead of 8, 10 is 2 + 8 and that's like sending both 2 and 8 at the same time, so it'll light up both lights.  I see some of you are ahead of me. 

That's good. 

Alright.  That's just the first argument. 

Tuns out that the first argument is for two of the lights and the second two are all for one light. 

So we've lit up the play and advance light.  Let's play with the power light, which can be red, green, and amber.  That's why you need two arguments for that one. 

It turns out that one of the arguments- there's three arguments.  Here's three arguments.  0, 0, 255.   First argument, we already played with.  The second is for power, and the third is for brightness.  So try this one- the mouse is pointing to.  This line of commands.  That will turn on the light at maximum brightness- 255 is the max brightness. 

And it'll light up with color 0.  So find out what color 0 is in the second argument. 

Male Student:  Green. 

Professor:  Okay, so everyone gets green.  So if you change it, you should be able to make it change color. 

If you want to have red and green at the same time, or something between red and green- it'll look like yellow.  So if you turn them on at the same time, you should get a yellow light.  Or something that's reddish or greenish.  [On screen.]  The question is what value between 0 and 255 gives you a pure yellow light- not orangey or greenish yellow.  Experiment with it and find the number that gives you a great yellow light. 

Raise your hand if you have questions and I'll stop by. 

Is it going okay? 

You want to use that exact line of code which I had on the board. 

This line right here. 
Type those 6 numbers in. 

Okay, now send the commands.  Did you send it?  No, no.  Click here.  Okay, now change that second 0... type 255. 

 Then another space and another 255. 

Okay, anyone get yellow yet? 



Male Student:  Is this yellow? 

Professor:  That's pretty good.  I claim that red and green make yellow.  You should see a little red and green light in the button.  When you back off, it should look yellow.  You see it? 

There's a red and green in there.  There's nothing yellow in there at all. 

Okay.  What number gives you a pretty good yellow? 

Male Student:  10

Professor:  Anyone get another number? 

Male Student:  13

Professor:  You'd think it would be 128 or 127.  I don't know why, but one LED gets brighter quicker, so to get a good balance, it's more like a very low number like 10 or 20. 

Okay.  Any questions? 

Alright, let's move right along. 

Another command is for the sensors.  The command 142 is for reading sensors.  142 has an argument- 1 argument, they put in the 9.  But it can have many arguments.  9 is the left cliff sensor.  If you do number 9, that's the left cliff sensor.  It'll return the result of reading that sensor in the black window when you send it. 

The cliff sensor has not been activated.  If you lift the left side of the robot and resend this command, it'll resend a 1 instead of 0 since you activated the sensor. 

Male Student:  For a while it kept saying null. 

Professor:  Maybe your hand was under the cliff sensor. 

Male Student:  Maybe.  Is everyone getting the NUL or the SOl?  Okay. 

So let's see.  Oh, maybe it's SOH, not SOL. 

If you want to see how many sensors there are, send a 6 instead of a 9.  Then you can count the returns to see how many sensors it has. 



Male Student:  Quite a few. 

Professor:  Yeah, your screen is filling up with junk- that means you're reading all the sensors. 

Any other questions about this?

Male Student:  Is it okay if I leave early?  There's an event that's happening at 5:30. 

Professor:  Okay.  For those who are had this exercise before, this is new.  So new command.  Command 158 is wait for an event and don't do anything until afterwards.  And then which event you wait for- 5 is a bump on the bumper.  There's a bunch of them.  You could do a wheel drop or whatever.  You know after this command, then you put the light changing command and it won't do it until you hit the bumper

We'll do more with that in a little bit. 

So let's talk about the music capabilities of the robot

As usual, you want to send these commands to get the start command.  Then you can load a song.  Here's a song, so comamnd 140 says load a song, then it has arugments for how the song goes

140 is load, 141 is play.  So you have to initialize with the 128 132.  So try loading, then try playing.  

Someone got it. 

Professor:  Let me tell you a little about what's going on here.  It's a complicated set of numbers to describe the song. 

140 is the command that says define a song.  You can define several songs.  Each has a name, and the number of this song is 0.  You can play song 1 or 2, but we're labeling it 0.  4 says how many notes in the song.  It has four notes.  What are the four notes?  Note 1, note 2, note 3, note 4 [On board.]  

Let's look at note 1.  The 12 is 12 64ths of a second, the 68 is the frequency.  So that's three 16ths of a second, and 68 is a standard number for describing frequency.  So remember the song went.... it was 74, so that means it was a little longer.  So you can control the frequency and you can control the length of each note and you can even control.... sorry, I made a big mistake. 

This is the note, this is the length of the note.  Frequency, length, frequency, length.  And you can even control the number notes. 

Make it a 3 and have it shorter.   Just make this work and see if you can get another song.  So this is a composing class today for a few minutes. 

Female Student:  Mine won't either.  It'll turn off every time. 

Okay. 

Alright, type in 141 on the next line.  Down a line.  Down a line.  Go down.  Move the cursor to the next. 

141 0 now try sending that second line. 

Okay.  So the 140 loads, 141 plays. 
Alright? 

Now you can mess with these numbers to change the parameters of the notes. 

So you two things you could try.  Be creative and try to come up with a cool song, add notes, find the lowest note that will play, or the highest.  Oddly enough, if you get the frequency too high, older people like me won't be able to hear it but younger people probably will.  Has anyone heard about ringtones for your cell phone that are super high frequency and teachers and adults can't hear it but you can?  If you did it in class I wouldn't be able to hear it.  We have ten minutes left.  I don't want to go onto something new. 

So come up with a better tune- more notes, higher notes, lower notes.  In about 7 minutes we'll have a concert and each person can play their tune.  We'll have a recital. 

He said you can just change the numbers around to experiemnt with the sounds. 

So our concert is schedule for about 6 or 7 minutes from now.  In the meantime, you can practice your piece. 

Professor:  So this is a pretty lousy computer language for programming, but that's how they do it.  So let's have our concert. 

Alright.  Everybody ready? 

Okay.  Hold your horses.  We'll take turns. 

Okay, you programmed a whole bunch of notes. 

Professor:  Okay.  Alright. 

Female Student:  Mine's not working.   This is all I have. 

Professor:  Okay. 

You guys. 

Okay. 


Alright, well, we're not talking about mozart here, but you can do it.  You can do some pretty cool things.  Next time we'll pick up here and go with motion stuff.  Turn off your robots and put them back on the cart.  We'll do more next time.  

Transcript - Singularity

Class: Informatics, Computing, and the Future
Instructor: Dan Berleant
Transcriber: Brooke Yu
Date: Tuesday, April 09, 2013

Professor:  Okay folks, so here's where we are in the course.  We're getting real close to where the student presentations start.  In fact, so many people registered for the course that we'll do three presentations per class.  But I don't think we should do that.  Let's change them to be shorter so we'll get 4 people per class.  They'll be 15 minutes each. 

If all four people want to spend 20 minutes, we'll go over time so we won't do that.  We'll try to get 4 people per class.  We can take people any time.  If we do the last four classes, that would work.  If you want to go before then, that will work.  If you really want to feel you'd be better off doing your presentation during the final- there won't be an exam- but you can come to class and do your presentation, if you like.  I know the homework that's due on the 16th, which is a week from today, asks you to pick a slot, but that won't be soon enough. 

I'm going to pass around some sheets of paper, so if you haven't signed up, go ahead and pick a day.  Pick three from most favored to third favored and I'll see what I can do to get you into your favorite slot. 

It's all written on the other side.  It's just scrap paper.  Use the other side. 

Male Student:  Our group- we're thinking about doing ours in a group of 4.  

Male Student:  Do we have to present for a full hour?

Professor:  Yeah, 15 minutes per person. 

Male Student:  Oh, okay. 

Professor:  Okay, so pick your first choice, second choice, and third.  Any time between next time until the final exam period. 

Oh, and write your name, of course. 

And when you're done, just hold them up and I'll come get them. 

Male Student:  Can we go this Thursday? 

Professor:  Yeah, you can go then if you want. 

Anybody else want to hand theirs in? 

Male Student:  I don't think we'll hit an hour, so we'll probably just present individually. 

Professor:  Any more forms?  Alright. 

I can't guarantee that if everyone signed up for the same days you'll get the day you want.  A few people are not here, and they're not signing up, so they'll get last choice.  Any questions about anything at this point? 

Alright, so where are we?  We're going to finish talking about the singularity today.  Supposedly it's not coming for 30 years. 

Did anybody sign up for Thursday?  We'll do some robotics on Thursday or whatever.  I'll have to rearrange based on when you signed up. 

Male Student:  We just had to write down three dates, right? 

Professor:  Right. 

Male Student:  Alright. 

Professor:  Okay, so at this point we're moving into the end of the semester.  I was about to apologize for cramming you down to fifteen minutes, but I don't think too many people are upset about it.  More people are in this class than last time, so we have to schedule accordingly. 

Let's talk about the singularity.  That's what the movie was about, right?  What's your conception of the singularity?  Or what did you take away from the movie?  What's your person concept of the singularity? 

Well, let me ask this- according to his projected timeline, will the singularity be in your lifetime?  Yeah.  Your life expectancy is such that it will be. 

In fact, he's even got it so that assuming he gets to live for a long time- he thinks it'll be in his lifetime.  So a lot of people who want to see the profits of the singularity- they all think it's going to happen when they're alive.  So that makes you... I think it detracts from the for how much you can believe it. 

They kind of change their thoughts accordingly. 

But with to in mind, let's see.  So anybody remember what the singularity was from the movie? 

Male Student:  Like the description of it? 

Professor:  Yeah. 

Male Student:  Eventually we'll enter a time frame when technology have evolved so much that it could replace life and the fact that, you know, we can transcend humanity- like think of... there's an aspect of immortality.  Technology will have grown so fast to become that. 

Professor:  Anyone else want to add details?  Yeah, that's sort of what he was talking about.  You ask what that all boils down to- technology, as they say, will change our world so much that we really can't predict what it's going to be like.  I've shown you models like the exponential curve, but if there's a singularity, you can't know what's going to be after that. 

If things go up too fast, you don't know what will happen.  That's what the singularity means- things will be so different that you can't predict what they'll be like.  But they try, and they come up with ideas like immortality. 

Well, it's kind of a fuzzy and intuitive concept.  Let's try to break it down. 

One kind of singularity is the technological singularity. 

It simply says that technology will change faster and faster until it has changed so much so quickly that we can't predict what it will be like.  It'll be different.  That's pretty vague. 

There's another called the AI singularity. 

Has anyone ever heard that term? 

Did anyone read the story yet that I passed out?  Okay, so that's really the AI singularity in that story.  So it says that if we can make a computer that's smarter than a person, that means we can create something smarter than ourselves.  Well, what could that entity do?  If we could create something smarter than us, then it could create something smarter than it.  If we could reach that point, the process will just continue- it'll step-wise continue because each computer will build even smarter computers and it will spiral out of control and who knows where it will end.  We don't know.  It's a little different because it says there will be no known limit on the robots.  That's kind of a brainstopper.  It's really weird, you know? 

I mean, it means if we can make a computer that's 1% smarter than a person, then there will be computers any amount smarter than a person because it'll keep going. 

Male Student:  Yeah, what about computers that just learn from each other and just exponentially grow smarter from each other? 

Professor:  Now you're making it more complicated. 

Male Student:  I mean, if someone made one that could learn from themselves. 

Professor:  You all get smarter everyday because you're in school and have life experiences.  A person's intelligence increases over time.  So there are those details that aren't modeled by this simple concept of the spiraling. 

So what do you think?  Do you think an AI singularity will happen? 

If you were to guess, how many would say yes, no, and not sure? 

How many would vote for yes? 

How many for no? 

How many for maybe?  6. 

Interesting.  Of course, many of you are computer students.  So no one voted for no, but most people are not sure.  So it might, right?  And it'll be weird.  Everyone agree with that?  Life will be different.  So by a vote of 9 to 0, people think life may be very different at some point.  I guess 3 people will say life will be different, and 6 say it may be different. 

Well, let me give you some notes. 

The root of the concept of what is the singularity comes from physics and mathematics.  It's intended to capture the idea that you can make a mathematical calculation and there's no answer.  Has anyone ever seen this before on their calculator?  It stands for not a number

If you try to divide by 0 or something, you might get that. 

I don't know what excel does.  Let's find out.  I'm going to do this.  It didn't give me a number, and it didn't say NaN.  It just said divided by 0.  Because it's not a numerical answer either. 

Okay, so let's, you know, in physics they like to model the universe using mathematics, right? 

Let's suppose we're interested in a property of matter.  Let's call it density. 

And density is... what's density? 

Anybody? 

Male Student:  Mass in a given volume. 

Professor:  Right.  So to calculate density, we could divide mass by volume.  So if you have 10 pounds in 1 gallon, its density is 10 pounds per gallon, which is probably more than a gallon of milk. 

Well, what does milk weigh in a gallon? 

Male Student:  A little more than 8 pounds. 

Professor:  Okay.   Any kind of oil floats on water, so it would be less than 8 pounds. 

Now if you have gas, you can squish the gas, right?  Like in your car.  When the piston squeezes the air and gas... you know how the piston works?  The piston squeezes it and the spark plug gets hot which pushes the piston.  So if you squeeze gas, the volume decreases by the mass is the same.  If you squish a solid or liquid, it doesn't squish easily, but it can be squished and it gets denser.  If the bottom number gets smaller, the over all fraction gets bigger.  Density gets up.  If you have this in 1/2 a gallon, you have the same amount of mass in a smaller space

If you squish it until it's 0, what's the density? 
Male Student:  Infinity? 
Professor:  Well, that's not a number.  So that's the singularity.  If there was some place where the volume was 0, there would be a singularity there. 

Infinity isn't a number, so the model doesn't predict what it would be.  So that's where the concept comes from in physics.  If you have a situation that doesn't fit the mathematical model and something weird happens like you don't get a numerical result- you've heard you're not allowed to divide by 0 because they don't know what the answer is going to be. 

Here's... you probably think it is infinity and I'm just kidding around.  But supposing you have 10 divided by 1, then we'll make 1 approach 0.  It gets closer to 0.  But if I have 10 over -1, then have it approach 0, the whole thing gets close to what?  10 over something negative as this gets closer to 0... it gets more negative. 

So it ends up being minus infinity.  So it depends on whether you think it's a -1 increasing to 0 or a 1 decreasing to 0

So that's why, you know, if we had a point in space with 0 volume, the density would be a singularity. 

So it's thought that there might.... okay, so the same thing is thought to occur with increasing technology where if you try to calculate the resulting power of technology you get some non-numerical... you know, maybe you'd think it was infinity or something the math wouldn't give you an answer. 

Well, here's another example.  This would be like an economic singularity.  Let's suppose... okay.  Labor productivity is increasing a little bit every year.  How many people knew that?  Anyone learn that in economics?  What does that mean that labor productivity is improving?

Female Student:  We're producing more with less labor. 


Professor:  Right.  Less labor produces more.  Just like you said.  So what happens if that process continues to the point where the required labor to produce something reaches 0? 

What would it be like?  Let's take bread.  Let's suppose the amount of labor to produce a loaf of bread reaches 0.  What will happen?  What would happen if the labor required to produce a loaf of bread was 0? 

Male Student:  No more hunger.  Free bread. 

Professor:  Haha, okay. 

Male Student:  You could make more profit off of it. 

Professor:  Okay, that's an interesting thought.  Supposing you owned a bread factor and you could produce unlimited bread for 0 labor. 

Male Student:  But if everyone could do that with 0 labor, everyone would do it. 

Male Student:  No, the companies would get together and set the price. 

Professor:  Well, you might hope that sooner or later someone would say "I'm going to break the fixed price and sell more Bread."  Assuming prices weren't fixed, there would be an unlimited supply of bread.  What if the required labor of producing many things reached 0?  Then there'd be an unlimited amount of lots of things. 

For example, more powerful cell phones are getting cheaper.   If the labor required to make a computer was 0, everyone would have one. 

Comments? 

Male Student:  Would that cause an economic collapse?

Professor:  Well, it might, but it would be an economic singularity because we don't know what would happen.  Economic theory would fall apart because it requires that valuable things cost something to make, and we're saying everything would be free. 

So you know, conventional economic theory would fall apart. 

Male Student:  The bread would be free, but they'd get you at the shipping. 

Professor:  Let's suppose the transportation became 0 too. 

Male Student:  I give up. 

Professor:  So can anyone think of a way labor might become free? 

Male Student:  Socialism. 

Professor:  Well, even in socialist countries you have to pay for stuff. 

Male Student:  Robots would do everything. 

Professor:  Okay, let's suppose that.  If a robot was as smart as a person, robots could do all the work and labor would be free.  Do you think that could really happen? 

Male Student:  Yes.  It's already happening. 

Professor:  Robots are doing more and more things. 

Male Student:  That's why companies are moving back to the US- they don't have to use people. 

Professor:  So we really could have an economic singularity if robots could do the same work people could do.  So if you think a robot could do the same work a person could do, then that cost of labor can become nearly or actually free, which means more could be produced. 

So we could have an economic singularity on our horizon.  I think that's what they mean by a technological singularity- technology becomes so great that things like this happen. 

So things could get really weird if robots could be made to replace people in terms of making things. 

So I think there's a thought that the technological singularity would produce an economic singularity. 

The AI singularity refers to robots building even smarter robots provided we can build one smarter than us. 

Here's another kind of singularity- lifespan singularity. 

One of the things Kurzweil talked about was the hope for immortaility.  What's immortality? 

Male Student:  Living forever. 

Professor:  Okay.  Yeah.  That's exactly what it was.  For thousands of years people have been chasing the fountain of youth.   There was a myth that it would make you younger if you could find it.  People wanted to live forever

And Kurzweil thinks that it's going to happen, and he's not the only one.  He's not the leader of the immortality movement, but he's hoping for it. 

Do you think that would be a good thing?  Immortality if it became available? 

Male Student:  Imagine social security. 

Professor:  And that's a problem.  You're right.  Population would start to increase dramatically, and if people could still retire at age 65, pretty soon everyone would be retired.  Or at least in 65 years, and then that would be a problem. 

Of course, if there's free labor from robots, than maybe it wouldn't be a problem. 

I have a few more words about the lifespan singularity. 

Here's a thought.  This book- the cover was mentioned in the movie.  [On board.]  

That's sort of what the movie was inspired by. 

I mentioned that he founded a university- a place where people can go to take courses called Singularity University. 

Let's talk more about that lifespan singularity. 

So I mentioned Kurzewil is not the main guy in this movement.  It's associated with Aubrey de Grey- the chief proponent of immortality.  This is his idea: his point is that medical science is improving every year- all the time. 

It'll help keep us healthy longer.  The idea is that every year, your expected life expectancy decreases.  He's saying let's suppose that... I'm going to simplify for a moment. 

Let's suppose your life expectancy is 60 more years, then in 1 year it's 59, then two years it's 58.  He's saying medical technology will improve, so instead of decreasing by 1 year each year, your life expectancy will only decrease by a part of a year. 

If you age a year, your life expectancy might eventually stay the same because of medical technology. 

They call this escape velocity.  The amount of time your life expectancy decreases is improved by medical advances.  If you could reverse that, you could live forever.  That's the concept. 

Male Student:  Have you ever seen the move In Time?  Basically, all currency is in time, so on your wrist it'd have the time.  Once your time ran out, you'd died.  So the rich people were basically immortal, but then the lower workers, whenever they punched out from work it'd just add time to their watch.  If they bought food or whatever, it would take time.  It was a really interesting concept.  This guy meets the rich people and takes their time and infiltrates their lives. 

Professor:  That is interesting.  One of the concerns about using medical technology to improve life span is that it could be only accessible to people who have money.  

I think a lot of people think that would be a problem.  What do you think?  You shouldn't be able to buy everything, right?  Seems unfair. 

Male Student:  That's what happened in the movie.  People were making less time than the time they were working because the rich people were controlling it to where they could have all the time and the poor people would just work and die

Professor:  That's pretty interesting. 

Male Student:  Yeah, it was cool. 

Professor:  Okay, I said I'd simplify it and then I would make it more complicated.  So let me do that.  Let's suppose you're 95 years old, and your life expectancy is 1 year. 
Or 2 years.  So you're 95, life expectancy is 2 more years.  You wait 2 more years.  Will all the 95 year olds be dead/ no.   Many will, but some won't be.  What will the life expectancy of a 97 year old be?  Maybe a year and a half. 

So in fact, life expectancy.... calculating life expectancy for a given age is less simple than what I mentioned.  It doesn't decrease quite so cleanly, but I want to show you a spreadsheet where I've modeled how things work. 

Here's some data I downloaded from the web. 

This is life expectancy in the US.  For a newborn, life expectancy is 77.  For a 21 year old, it's 58.8 years.  It's probably lower in Arkansas but higher for college graduates. 

Okay.  I modeled it as 60 years for a 20 year old.  I should have said 58.8. 

You can see that for a 25 year old it goes down by 4.7 years.  If you get to 30, it's down by 4.7 more years.  You're not losing 5 years every 5 years. 

But you can see that by the time you get to 100... if you're 95, it's 3 years.  And it'll keep decreasing.  I tried to make a model that would be reasonable to do and so on, and I came up with this.  Let's look at this column.  You have age, life expectancy which is decreasing not by 1 year per year, but by how much?  0.8. 

So that's 0.8 years per year you lose.  I realize this is a simplification of reality, but the results are not too out of whack.  You can see the percent of people surviving gets lower as you get oldie are I have 3% of people left at 95.  So it's a simplified model, but it kind of captures the fact that most people don't make it to 95. 

Alright, well what we need to do is do something about that 0.8 years per year. 

We need to... to reach this escape velocity, we need to use medical technology to reduce this 0.8 to 0 so that age 21 your expectancy is 60 and it stays at 60.  No matter how old you were.  If your life expectancy was 60 years, does that mean everyone is immortal?  Here, we're getting to where people are mistaken about their ideas. 

So if life expectancy was 60 years this year, and then 10 years later it's still 60 years, are you going to live forever? 

Male Student:  No

Professor:  Why not? 

Male Student:  You could get hit by cars and stuff. 

Professor:  Yeah.  That means some people will make it less than or more than 60 years.  Let me make it more intuitive.  Let's suppose life expectancy was 2 years no matter how old you were. 

If a year later it was still 2 years, some people still wouldn't make it two years, but some would make it more than two years. 

So here, this spreadsheet models what will happen if people reach escape velocity and everyones life expectancy was 60 years.  Some people still die from year to year, and... okay.  We're looking at these two columns. 

We're looking at those two and this one with the ages. 

What this shows is how many people die each year will be... if I figure half make it less than 60 years, then half will make it more than 60. 

So that's 100% of the people minus 1/120 of that 100% who don't make it through that year.  So I subtracted 1/120 each time. 

Even if we reach escape velocity, your life expectancy is still 60 years, but by the time we consider 95 year olds, 53% of the people are still alive.  That's a lot better than 3%, but it's still only about half.   No matter how old you are- only about 1/2 of the people will make it to 95. 

Well, that kind of tells you something.  No matter how good medical care would be, you could always get hit by a bus.  Or there's always, you know- it's a matter of averages and some do better and some do worse, so there's no guarantee about immortality.  If you keep this model, how many people make it to... I think older person known to exist was about 120. 

But if life expectancy is 60 no matter how old you are, 43% will make it.  But if you keep going.

How long will it take before practically no one is left alive?  0.5%.  I didn't change the spreadsheet. 

If it's 60 years no matter what, then after 353 years, 6% of people would be left.  So even if we reach escape velocity, no one is going to last forever.  6% would last 353 years, but that's not a lot. 

So my point here is that my idea here is over simplified, and even if we reach escape velocity, you won't live forever.  If life expectancy never decreased, the average age at death would still be 102-103. 

Any comments? 

Alright, let's look at a partial... you know, maybe we're not going to reach escape velocity, but some people say that we're gaining about a quarter of a year every year from medical technology.  Life expectancy gets a quarter of a year better than it would have been without medical technology.  That's what these two columns model. 

So here, what we're gaining over the original column- we're gaining a quarter of a year every year.  So it decreases a quarter of a year less than it would have normally. 

Then let's see what happens.  Let's look at the 50% mark.  Right about here, which would be 78.  The average person would live to be 78. 

Which in fact is about right. 

Okay, so if you read up on de Grey, you'll hear about this concept of escape velocity, but the important lesson is that this doesn't mean automatic immortality for everybody. 

Okay, so the escape velocity concept.  Does it work?  Not really.  Any comments or questions about that?  Okay, let me show you a few graphs. 

Actually, I just want to... we don't have time for everything, but there's more good stuff.  

Let's go back to the economic singularity.  Wouldn't it be nice if the amount of labor to produce a car was 0?  Cars would be really cheap.  And everyone could have a car. 

What would happen if a factory was so automated that it didn't have to have any people.   And they're trying to do that.  They're doing more and more with fewer people.  There's a pasta factory near the town I used to live in.  I heard that it only employed like 10 people in the whole factory. 

If a whole factory could exist without a single person, then the factory could produce output and get money, buy more materials, and it could be self perpetuating.  If it was owned by a person who could take the profits, that would make the output cost something.  But if it was owned by the government, it would essentially produce stuff for free.  That would be pretty cool. 

And anything you could make in a factory that didn't require labor would be almost free.  You'd still have to pay for raw materials, but the output would be limited by the cost of the raw materials.  But if those raw materials were produced by free labor, then they'd be free too. 

So if a given factory had no people working in it, then not everything would be free, but if all production was done by robots, everything would be free. 
So that's what the singularitarians.  Looking forward to- a day when robots would do anything. 

Okay, let's look at some graphs.  I'm going to show you some kurzweil graphs.  He has some good ones

This will show you some of the specific technologies that are increasing exponentially and may help bring about the singularity.  Some of these are redundant, but let's look at a few and see what we can come up with. 

Countdown to the singularity. 

Here, he's showing creation of life 1 billion years ago.  These are all sort of major points in the history of the earth. 

[Teacher reading: [On board.]  

Agriculture- 10,000 years. 

Telephone- 100 years ago

I think the idea here is that important things are happening faster and faster. 

Before, things took billions of years.  But to produce the... so I guess the idea is that these dots are equidistant.  Telephone, electricity and radio is the same time span. 

But you see, since this is a logarithmic scale, the distances represent different time frame.  Things are happening faster.  Do you agree?  A lot of people don't like this graph. 

Male Student:  What is homo sapien sapiens? 

Professor:  Yeah, okay.  There used to be different species that were similar to humans but not quite humans.  There were dozens that died off.  We're the only one left.  They say that most modern humans have a couple percent of neanderthal genes.  So we're all part neanderthal.  Besides from that wrinkle, this is our variety of homo sapiens. 

There were other beings that were similar to us, but we look a little different. 

From a biological standpoint, this is a variety, and this is a species.  Modern race categories are not covered here at all.  We're all the same variety from a genetic standpoint. 

Any other questions or disagreements or agreements about this graph? 

So do you agree that things are happening faster and faster?  This is intended to show how the singularity is happening

Soon, the intervals of time will be really short. 

Some people say that well, great.  The dots are about equally spaced, and yes this is billions of years, and this is only 100s.  But if you look at these dots, what are they showing?  Is it really correct to say the development of agriculture and city states is of the same magnitude of going from one celled organisms to reptiles or from apes that walk upright to human beings?  Is that transition the same magnitude of going from radios to computers?  Many people would say these are much bigger changes than these. 

The claim that things are accelerating requires the assumption that all of these represent identically huge changes. 
But inventing the computer was a big deal, but not as big as the creation of reptiles. 

The inventing of printing- that was a big one.  It made books happen.  Of course, now we're moving away from books.  But it wasn't as big a deal as the evolution of primates

We all have the same body shape to some degree.  We don't look like dogs on something.  The complaint people have with this graph is that they would claim that yes, time is accelerating on this axis, but the these dots represent... you know, they're more important here than they are here, and that makes this graph meaningless. 

Well, what do you think?  Are the dots equally important or not? 

Anybody think they're not? 

Male Student:  You can't get to the next one without the one before one

Professor:  True, but is the difference between the invention of printing and the industrial revolution the same as the evolution of the first mammals and the existence of the first primates?  I have my doubts.  I don't think they're the same. 

But time will tell, because if these were all equally spaced, it wouldn't take much longer before things started happening once a month, then once a day, then once an hour.  I don't think that will happen.  This is one of kurzweil's favorite graphs, but I think it has a few problems. 

Let's see if we can find another graph. 

I can't even tell what the graph is until I click it. 

That looked like a good graph.  Let's see.  Okay this shows an exponential curve. 

The date is on the bottom. 

You probably can't read it.  It says 1920, 1940, 1960.  So 20 year increments. 

This was made in 2011

So this shows the power of computers- some computers, not all computers. 

And what it indicates if we look at it- this shows that the current computer... I don't know what they're talkigna but. 

Male Student:  That's a graphics card. 

Professor:  This must be in personal computers or average kind of powered computers.  The power of this computer was lease than the power of the brain of a mouse.  The mouse is here- 2011 we were only about up to here. 

It's the power of computers- probably millions of insturctions per second.  This suggests that we'll have computers that have the processing power of a mouse's brain in that much.... let's see what the date is. 

Male Student:  It's 2015. 

Professor:  Oh, right.  That's not too far off. 

Alright, well, why stop at a mouse?  They're pretty dumb anyway.  Let's talk about a person- a human brain.  We'll have a computer that may not be as intelligent, but will have the processing power of a human brain around 2023, according to this graph.  Things get weirder after this. 

Let's say there are 9 billion people in the world.  So that's the processing power of this times 9 billion.  They think that will happen in 2045. 

So haven't a computer with processing power of one brain is one thing, but if we do one brain, we can do 10 billion brains in 22 more years

Down here, in 2000 we had computers way less smarter than mice.  That's pretty weird to even imagine that in 2045 you'll be around, and according to this graph you'll be able to go buy a computer with the processing power of all brains in the human race.  That's weird, right?  I don't know what we'll have those computers doing.  My personal feeling is that we'll have trouble programming them.  Kurzweil isn't so pessimistic.  They think life will be way different.  Hope I make it that long.  You guys probably will. 

You'll probably be about my age now.  You'll be able to look at this graph and say "well, it did/ or didn't happen. 
Are you convinced?  Do you think it'll really be like this? 

How many people think it might well be like this?  How many people are pessimistic and think it's total BS? 

Male Student:  I think it'll start sloping off, you know what I mean?

Professor:  You hit on an interesting thing.  These people who believe in the singularity think the curve has been exponential, so it'll stay exponential.  But remember in class, we talked about how long term these graphs level off.  We don't know where that point is, but to say it'll go off exponentially forever neglects this fact. 

My opinion is like yours.  I don't see a necessity to limit the power of computers.  I will say that most exponentials don't go up forever.  They do tend to level off.  If you remember back to the beginning of the semester, what did we say if we happened to this longer term.  What does it do? 

Male Student:  Doesn't it go back down? 

Professor:  Yeah, we talked about plateau curves.  The number of people with land line telephones went up exponentially, but now we're probably around there.  No more land lines.  People in underdeveloped countries are now installing cell phone towers.  Does anyone here not own a land line?  Some people? 

Male Student:  My parents still do. 

Professor:  So you're basically living with a cell phone.  When I brought my daughter to college, there was a land line outside of her room, and I told her we should get her a phone.  Then one of her roommates installed a phone but then they got all of these collection calls for the person who used to live there. 


So next time we'll continue and talk about something else.