Author Topic: Important life algorithms  (Read 31007 times)

0 Members and 1 Guest are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Important life algorithms
« on: November 10, 2014, 02:30:36 pm »
Today I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :

Code: [Select]
while(oreo)
    oreo--;

Did you discover things like this ?

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Important life algorithms
« Reply #1 on: November 10, 2014, 04:54:59 pm »
Oh yes, most definitely.
Code: [Select]
while(time_until_test_minutes > 240)
       procrastinate;
freak_out();
I'm not a nerd but I pretend:

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: Important life algorithms
« Reply #2 on: November 10, 2014, 10:57:09 pm »
Oh yes, most definitely.
Code: [Select]
while(time_until_test_minutes > 240)
       procrastinate;
freak_out();
Hey! That's my IP! :P
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Important life algorithms
« Reply #3 on: November 11, 2014, 02:27:21 am »
Today I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :

Code: [Select]
while(oreo)
    oreo--;

Did you discover things like this ?

Assuming you mean Oreo biscuits, I think the following would be closer to reality :P


Code: [Select]
oreoPurchase := 3
oreoEaten := 0
hospital :=0
WHILE 1 DO
oreoEaten = oreoEaten + 1;
oreoPurchase = oreoPurchase ^ 2;
IF oreoEaten > 256 THEN
hospital := 1;
END;
END;
« Last Edit: November 11, 2014, 03:30:12 am by DJ Omnimaga »

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Important life algorithms
« Reply #4 on: November 11, 2014, 02:49:19 am »
Code: [Select]
while(1):
 if(time()<0600): sleep(0400);
 for task in todo:
  if task.due < time(): panic()
  elif task.due - time() < 200: panicdo(task)
  else: sleep(0200)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Important life algorithms
« Reply #5 on: November 11, 2014, 04:29:25 am »
Today I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :

Code: [Select]
while(oreo)
    oreo--;

Did you discover things like this ?

Assuming you mean Oreo biscuits, I think the following would be closer to reality :P


Code: [Select]
oreoPurchase := 3
oreoEaten := 0
hospital :=0
WHILE 1 DO
oreoEaten = oreoEaten + 1;
oreoPurchase = oreoPurchase ^ 2;
IF oreoEaten > 256 THEN
hospital := 1;
END;
END;
Well... that escalated quickly ^^'
I'm not a nerd but I pretend:

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Important life algorithms
« Reply #6 on: November 12, 2014, 01:07:32 am »
Oh yes, most definitely.
Code: [Select]
while(time_until_test_minutes)
       procrastinate;
go_to_test_unprepared_but_perfectly_cool();
Ftfy. :P

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Important life algorithms
« Reply #7 on: November 12, 2014, 01:40:40 am »
Today I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :

Code: [Select]
while(oreo)
    oreo--;

Did you discover things like this ?

Assuming you mean Oreo biscuits, I think the following would be closer to reality :P


Code: [Select]
oreoPurchase := 3
oreoEaten := 0
hospital :=0
WHILE 1 DO
oreoEaten = oreoEaten + 1;
oreoPurchase = oreoPurchase ^ 2;
IF oreoEaten > 256 THEN
hospital := 1;
END;
END;
Well... that escalated quickly ^^'
And in HP PPL it escalates instantly. :P The speed at which ClassPad II Basic gets executed might be closer to reality.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Important life algorithms
« Reply #8 on: November 12, 2014, 02:19:57 pm »
And in HP PPL it escalates instantly. :P The speed at which ClassPad II Basic gets executed might be closer to reality.
Lol at that one. :P

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: Important life algorithms
« Reply #9 on: November 19, 2014, 08:55:35 pm »
Today I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :

Code: [Select]
while(oreo)
    oreo--;

Did you discover things like this ?

Assuming you mean Oreo biscuits, I think the following would be closer to reality :P


Code: [Select]
oreoPurchase := 3
oreoEaten := 0
hospital :=0
WHILE 1 DO
oreoEaten = oreoEaten + 1;
oreoPurchase = oreoPurchase ^ 2;
IF oreoEaten > 256 THEN
hospital := 1;
END;
END;
Y U NO USE IFTE OR MAKELIST?!?!?! OPTAMAIZE!
Code: [Select]
oreoPurchase := 3
oreoEaten := 0
hospital :=0
BEGIN f() oreoPurchase = oreoPurchase ^ 2; oreoEaten := oreoEaten+1; END;
MAKELIST(f(), O, 0, 255);
hospital := 1;
END;
« Last Edit: November 19, 2014, 11:40:25 pm by bb010g »
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Important life algorithms
« Reply #10 on: November 20, 2014, 12:42:28 am »
while(sorunome.isAwake()){
        sorunome.beTired()
}

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Important life algorithms
« Reply #11 on: November 20, 2014, 05:48:50 am »
Code: [Select]
#include "streetwalrus.h"
#include <life.h>
#include <time.h>

int main(void)
{
    while (streetwalrus_alive)
    {
        day_spend(geeky_stuffs);
        sleep(INSANELY_LATE_HOUR);
    }

    // Hopefully we don't reach this point anytime soon
    return streetwalrus_age;
}

Offline ordelore

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +7/-0
  • Genius and Friend
    • View Profile
    • ordelore8x
Re: Important life algorithms
« Reply #12 on: November 20, 2014, 05:28:40 pm »
Code: [Select]
Lbl 1
Sleep
Goto 1
Code: [Select]
While it's the hour before school starts
Do homework
End
I am a friend.
I mine Bitcoins.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Important life algorithms
« Reply #13 on: November 20, 2014, 05:30:38 pm »
Code: [Select]
while(pimath_is_on_computer)
    checkOmnimaga();
I am Bach.

Offline ImZealot

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +0/-0
    • View Profile
Re: Important life algorithms
« Reply #14 on: November 20, 2014, 05:33:34 pm »
That moment while you really wish you got these jokes, and you kinda do, but you don't cause you can't code, and you wish you knew simple code like this.
hi.
osu! - ImZealot
Twitter - @andre69lopes
League - Gay Taric (EUW)