Lecture 7: Side Effects - Richard Buckland UNSW 2008

Sdílet
Vložit
  • čas přidán 28. 06. 2024
  • The Adversary and adversary models of computation: an all powerful force out to get you.
    Side Effects: in machine code, in c functions, in general. Returning a value from main.
    Also: ASCII, talking in lectures, mars bars and Marco Polo and the emperor of china.
    Music: Triohatala by Stimmhorn (not really vikings)

Komentáře • 18

  • @YoeyYutch
    @YoeyYutch Před 5 lety +3

    @UNSWelearning Oh no! Lecture 7 was replaced by a stub video! I was so excited to share Professor's impersonation of the computer(see comment below from a year ago). He does such a great job keeping things lively. This was honestly one of my favorite videos of all time. Please reupload if you can. Thanks!

    • @YoeyYutch
      @YoeyYutch Před 3 lety

      @hammertapping download from where? Thanks.

    • @YoeyYutch
      @YoeyYutch Před 3 lety

      ​@hammertapping This video is only three minutes long. The hour-long lecture video was removed and this video was put in its place. In order to download the original video I would need that url.... unless I'm missing something. No big deal. I just like his little spiel about returning zero from main. It's in the transcript...

    • @YoeyYutch
      @YoeyYutch Před 3 lety

      32:47
      if it's not there what's your operating
      32:49
      system gonna do what's that
      32:52
      whatever it's allowed to do whatever
      32:54
      wants I mean maybe there's a bit of
      32:56
      rubbish stored there there's it's
      32:58
      expecting this function to return a
      33:00
      number it's set aside a little spot
      33:01
      inside it's much precious area and
      33:03
      thinking I think the function finishes
      33:05
      they'll put a number there and that's
      33:07
      your whole program when it finishes is
      33:09
      summarized everything else your program
      33:11
      does is a side-effect when your program
      33:13
      finishes the only thing that summarizes
      33:15
      the behavior of the program is the
      33:16
      number it returns everything else is a
      33:18
      side-effect so the operating system it
      33:20
      doesn't know what you're doing it just
      33:21
      knows at the end it gonna give me a
      33:22
      number when they finished you don't give
      33:26
      it the number your party says he's
      33:28
      finished I'm gonna look in the precious
      33:30
      spot and see what number he returned oh
      33:32
      nine million three hundred and twenty
      33:34
      six thousand eight hundred and seventeen
      33:36
      - because that's cuz that's a random bit
      33:39
      of rubbish it was sitting in X it hasn't
      33:41
      been initialized yet oh that means he
      33:44
      wants me to explode

    • @YoeyYutch
      @YoeyYutch Před 3 lety

      It's funnier when he says it :)

  • @DIABLOVT12
    @DIABLOVT12 Před 15 lety

    Man, I love Richard. This is what teaching should be like. We need more Richards! :p :)

  • @YoeyYutch
    @YoeyYutch Před 7 lety

    32:57 He's so funny when he impersonates computers. I like how excited the computer is to get its int value returned.

  • @martinledermann1862
    @martinledermann1862 Před 8 lety

    Does anyone know the answer to the question regarding why the 24th instruction isn't named "Instruction #16"?

  • @mauricio0guaruja
    @mauricio0guaruja Před 9 měsíci

    Video is not working, stops after minute 3

  • @evillemonkey
    @evillemonkey Před 15 lety

    I read it :-)

  • @JoanneMoo
    @JoanneMoo Před 11 lety

    Mozart - Symphony No. 25 in G minor!!

  • @ASeventhSign
    @ASeventhSign Před 13 lety

    -9,326,817!!!
    Oh! That means he wants me to explode!

  • @faux0pas
    @faux0pas Před 11 lety

    I was hoping the viking music was going to be Turisas, Alestorm, Ensiferum .... Yodeling Lmao

  • @CerberusDawg
    @CerberusDawg Před 2 lety

    What happened to this video? It was about 1 hour long and I watched it for about 10 minutes when I had to go off and do other things. Now it's suddenly only 3 minutes long and I can't watch the rest?

    • @CerberusDawg
      @CerberusDawg Před 2 lety

      Ah, it’s back and it seems to be complete now at around 39 minutes. From other comments it looks like this happened before. Weird. Anyway, great lecture as always. I am learning a lot!

    • @adityapatane6789
      @adityapatane6789 Před 6 měsíci

      @@CerberusDawg from where did you get the whole lecture?

    • @CerberusDawg
      @CerberusDawg Před 6 měsíci

      ⁠@@adityapatane6789it is a playlist on the channel. Should be the oldest playlist called “CS1: Higher computing”. Chapter 37 is missing but can be found on Richard Buckland’s own channel

    • @adityapatane6789
      @adityapatane6789 Před 6 měsíci

      @@CerberusDawg i was trying to do 7th lecture . but the whole lecture is not available only the 3 mins lecture. Where can I access 7th full lecture?