Announcement

Collapse
No announcement yet.

All nighters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • All nighters

    I just implemented malloc() in one stretch from about 3pm yesterday afternoon to 3am this morning.

    It is possibly the kludgiest implementation imaginable but it still scores full points.

    This project was assigned three weeks ago and is worth ~15% of my grade in the class. It is due at 8am this morning.

  • #2
    So you're saying you could have put off starting it for another 5 hours? What is wrong with you?

    Comment


    • #3
      Being up all night should not become foreign to you, cadet.
      "Flutie was better than Kelly, Elway, Esiason and Cunningham." - Ben Kenobi
      "I have nothing against Wilson, but he's nowhere near the same calibre of QB as Flutie. Flutie threw for 5k+ yards in the CFL." -Ben Kenobi

      Comment


      • #4
        Still haven't had to pull an all nighter! I've gone a few nights with 1-2 hours of sleep, but never without any. Woo 22 credits.

        Comment


        • #5
          I had no classes or other obligations in the morning so I just slept until mid afternoon.

          Comment


          • #6
            It's easy to implement malloc
            Code:
            void* malloc (size_t size) {
               return null;
            }
            "Welp, I guess you were out of memory, not my problem."
            <p style="font-size:1024px">HTML is disabled in signatures </p>

            Comment


            • #7
              My malloc had to work with a heap larger than 0 bytes.

              Comment


              • #8
                I always hated assignments like that. They're so pointless.

                I'd have written malloc to wrap the existing malloc.
                "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                Ben Kenobi: "That means I'm doing something right. "

                Comment


                • #9
                  That's because you are an idiot. I learned a ton implementing malloc in 15-213. It's a valuable exercise. GOOD computer science schools all have a malloc() assignment in their systems course.

                  NOTE: This is because good computer science schools all base their systems course off of the one taught at Carnegie Mellon. Including MIT.
                  Last edited by Hauldren Collider; May 19, 2013, 10:29.
                  If there is no sound in space, how come you can hear the lasers?
                  ){ :|:& };:

                  Comment


                  • #10
                    Originally posted by loinburger View Post
                    It's easy to implement malloc
                    Code:
                    void* malloc (size_t size) {
                       return null;
                    }
                    "Welp, I guess you were out of memory, not my problem."


                    I think that's technically valid...
                    If there is no sound in space, how come you can hear the lasers?
                    ){ :|:& };:

                    Comment


                    • #11
                      Sounds Good...

                      Comment


                      • #12
                        Did you check his work?
                        To us, it is the BEAST.

                        Comment


                        • #13
                          "Welp"

                          my new favorite wordish
                          Monkey!!!

                          Comment


                          • #14
                            Originally posted by Hauldren Collider View Post
                            That's because you are an idiot. I learned a ton implementing malloc in 15-213. It's a valuable exercise. GOOD computer science schools all have a malloc() assignment in their systems course.

                            NOTE: This is because good computer science schools all base their systems course off of the one taught at Carnegie Mellon. Including MIT.
                            I'm the idiot, yet you're the one who apparently did not comprehend my statement. malloc (and more importantly, free) implementations were also in my school's curriculum. I'm sure you learned a ton implementing malloc. I didn't. I didn't need to learn it. I already knew it on my own.

                            I cracked open libc's malloc/free before I even started university to understand how they worked.

                            Some people need grownups to tell them how to think and learn. Others have initiative.

                            Also, I thought you weren't even taking computer science?
                            "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                            Ben Kenobi: "That means I'm doing something right. "

                            Comment


                            • #15
                              What the hell are these people talking about?
                              The genesis of the "evil Finn" concept- Evil, evil Finland

                              Comment

                              Working...
                              X