Pages: 1
  Print  
Author Topic: Longcat  (Read 1498 times)
Offline (Male) Rusky
Posted on: March 26, 2010, 03:27:56 PM

Resident Troll
Joined: Feb 2008
Posts: 955
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
Just thought this was interesting:

Here is cat from first edition unix: http://code.google.com/p/unix-jun72/source/browse/trunk/src/cmd/cat.s. Very short bit of assembly that I don't fully understand. What I do looks fine, it's just cat.

Here is cat from Plan 9: http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/cat.c. Extremely simple C program, copies either stdin or a list of files to standard output. Can't compare it to original cat, but if it does any more it's just the list of files.

Now, here's GNU cat: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/cat.c;hb=HEAD. HOLY LONG CODE. This is cat, for crying out loud!
« Last Edit: March 27, 2010, 12:51:26 PM by Rusky » Logged
Offline (Male) RetroX
Reply #1 Posted on: March 26, 2010, 06:12:16 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
I first expected the animal when I entered this topic.

Most of the GNU code is either comments or whitespace, anyways.  But I do agree that it's a whole lot of code.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Rusky
Reply #2 Posted on: March 26, 2010, 06:37:13 PM

Resident Troll
Joined: Feb 2008
Posts: 955
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
It's just as odd- what could you possibly be commenting on in cat? XD
Logged
Offline (Male) RetroX
Reply #3 Posted on: March 26, 2010, 08:41:32 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
...the fact that it's insanely large, so, comments.

Also, cat is 44024 bytes large.
« Last Edit: March 26, 2010, 08:44:41 PM by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Rusky
Reply #4 Posted on: March 27, 2010, 12:51:10 PM

Resident Troll
Joined: Feb 2008
Posts: 955
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
Longcat, I just realized.
Logged
Offline (Male) RetroX
Reply #5 Posted on: March 27, 2010, 12:55:15 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
GNU says: "My cat is bigger than your cat"
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Pages: 1
  Print