Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C-Based languages

Name: Anonymous 2012-07-19 21:01

C is an amazingly designed language.  It's beautiful, simple, elegant and fast.
Everything a well designed programming language should be.

C++ then came along and shit all over Dennis Ritchie's masterpiece.  Bjarne took a beautiful, simple, elegant and fast language. And kept shitting on it until all that was left was 'fast'.  Dennis should of beat the shit out of him for turning his work of art into an abomination.

Then Gosling came along, surveyed the turd that Bjarne had dropped, and attempted to clean it up.    He redesigned C++ to remove the crap and attain the elegance that C had.  Unfortunately, in his cleaning frenzy, he over-simplified the language and sacrificed speed.  In the name of simplicity he removed pointers, manual memory management,  generics, operator overloading and native code compilation.  A noble effort, but ultimately just as much of a failure as C++.

Name: Anonymous 2012-07-21 1:43

>>79
Not >>78.
_start: mov eax, [ebx]
        mov eax, [ebx]
        push eax
        pop eax
        push eax
        push eax
        pop eax

nasm file.s's disasm:
00000000  66678B03          mov eax,[ebx]
00000004  66678B03          mov eax,[ebx]
00000008  6650              push eax
0000000A  6658              pop eax
0000000C  6650              push eax
0000000E  6650              push eax
00000010  6658              pop eax

nasm -Ox file.s's disasm:
00000000  66678B03          mov eax,[ebx]
00000004  66678B03          mov eax,[ebx]
00000008  6650              push eax
0000000A  6658              pop eax
0000000C  6650              push eax
0000000E  6650              push eax
00000010  6658              pop eax

OMG OPTIMIZED, right?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List