POV-Ray : Newsgroups : povray.off-topic : code readability Server Time
7 Sep 2024 13:21:58 EDT (-0400)
  code readability (Message 64 to 73 of 73)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: code readability
Date: 28 Jun 2008 15:14:41
Message: <48668da0@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> >   You had a C compiler in a machine with 8k of memory? Which one was that?

> PDP-11?  I had a machine with a COBOL compiler that ran in 8K of 
> real-live core memory.  And, like, it ran banks and stuff. :-)

  An entire C or COBOL compiler which can run and compile with only
8 kilobytes of memory puts those 4k intros into shame, IMO. :P

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: code readability
Date: 28 Jun 2008 15:40:52
Message: <486693c4$1@news.povray.org>
Warp wrote:
>   An entire C or COBOL compiler which can run and compile with only
> 8 kilobytes of memory puts those 4k intros into shame, IMO. :P

What's a 4k intro?

(Of course, it had lots of passes. And a 50-line program took maybe 10 
or 15 minutes to compile. But there was no VM either, for what that's 
worth to the discussion. :-)

-- 
Darren New / San Diego, CA, USA (PST)
  Helpful housekeeping hints:
   Check your feather pillows for holes
    before putting them in the washing machine.


Post a reply to this message

From: Warp
Subject: Re: code readability
Date: 29 Jun 2008 03:08:59
Message: <4867350b@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
> >   An entire C or COBOL compiler which can run and compile with only
> > 8 kilobytes of memory puts those 4k intros into shame, IMO. :P

> What's a 4k intro?

http://en.wikipedia.org/wiki/Demo_(computer_programming)#Intros

  It's rather incredible what you can squeeze into that amount of bytes.

-- 
                                                          - Warp


Post a reply to this message

From: Orchid XP v8
Subject: Re: code readability
Date: 29 Jun 2008 04:53:42
Message: <48674d96$1@news.povray.org>
Warp wrote:

> http://en.wikipedia.org/wiki/Demo_(computer_programming)#Intros
> 
>   It's rather incredible what you can squeeze into that amount of bytes.

Yarr, back then, coders were *real* coders! Haharrr!

Mmm, can't see me entering any Haskell programs in a 4KB demo 
competition... The Haskell runtime engine alone is ~500KB, and that's 
before you add any *functionallity*. o_O

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Darren New
Subject: Re: code readability
Date: 29 Jun 2008 13:26:55
Message: <4867c5df@news.povray.org>
Warp wrote:
>   It's rather incredible what you can squeeze into that amount of bytes.

Indeed. It used to be 32K was plenty for some rather sophisticated video 
games. :-)  Lots of the old arcade games had less than that, too.

-- 
Darren New / San Diego, CA, USA (PST)
  Helpful housekeeping hints:
   Check your feather pillows for holes
    before putting them in the washing machine.


Post a reply to this message

From: Orchid XP v8
Subject: Re: code readability
Date: 29 Jun 2008 13:52:11
Message: <4867cbcb$1@news.povray.org>
For some reason I'm reminded of the demo of Uridium 2 I got to play on 
my dad's Amiga.

You insert the disk into the drive, you hear a click, and instantly the 
screen lights up in neon colours. First a set of blue bars appear, then 
a set of thinner, transparent green bars scroll down over the top of 
these, and then transparent red bars scroll up over both. The end result 
is a myriad of colours. And all the time this is happening, electronic 
music is playing, and the computer is still loading the *real* game from 
disk.

Basically, the entire audio-visual candy-fest fits into the boot sector. 
And well it might; the technicolour rainbow is just a trick of the 
Amiga's copper ship, which modifies the image palette on each raster 
scanline, yielding the effect of millions of colours at once, from a 
bitmap that only actually handles a handful. (Notice that all the colour 
bars are *horisontal*. This is not a coincidence.)

Ah, great days...

Damned TF2 takes 20 minutes to load up! o_O

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: John VanSickle
Subject: Re: code readability
Date: 29 Jun 2008 15:04:59
Message: <4867dcdb@news.povray.org>
Warp wrote:
> John VanSickle <evi### [at] hotmailcom> wrote:
>> Halbert wrote:
> 
>>> Why doesn't the rest of the world understand that?
> 
>> Because I learned to program on a machine with 8k of memory.  A byte 
>> saved is a byte earned.
> 
>   You had a C compiler in a machine with 8k of memory? Which one was that?

I didn't say that I programmed in C on this machine, only that I learned 
to program.  The habit of being very stingy with memory use carries on.

Regards,
John


Post a reply to this message

From: Warp
Subject: Re: code readability
Date: 29 Jun 2008 16:39:56
Message: <4867f31c@news.povray.org>
John VanSickle <evi### [at] hotmailcom> wrote:
> I didn't say that I programmed in C on this machine, only that I learned 
> to program.  The habit of being very stingy with memory use carries on.

  Nowadays when I code I sometimes stumble into situations like:
"Hmm... This data will take over 100 megabytes of memory... Should
I worry? ... Nah. That's nothing."

-- 
                                                          - Warp


Post a reply to this message

From: Mike Raiford
Subject: Re: code readability
Date: 30 Jun 2008 09:20:27
Message: <4868dd9b$1@news.povray.org>
andrel wrote:
> I'd like to see the specification that gave rise to that snipped of 
> code. ;)

Umm. Write a contrived example showing that compact isn't always readable?


Post a reply to this message

From: andrel
Subject: Re: code readability
Date: 2 Jul 2008 15:20:03
Message: <486BD519.4080602@hotmail.com>
Mike Raiford wrote:
> andrel wrote:
>> I'd like to see the specification that gave rise to that snipped of 
>> code. ;)
> 
> Umm. Write a contrived example showing that compact isn't always readable?
No that is more an assignment. A specification is where you specify what 
the possible inputs are and what relations exist between input and 
output...umm, ok, I know you were just kidding ;)


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.