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

Acid ported to C

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 11:30

Speed: 151-170 million cycles per frame render.
C Version 1.0 can be downloaded here http://pastebin.com/ET72dQM7
Latest JavaScript version(Acid 8) is @ http://pastebin.com/Y3gYPdVB
Comment/critique/improve/suggest more hacks,features and tricks to improve v1.0
Its not a direct port, but a reimplementation to capitalize on C features.

Name: Anonymous 2011-11-07 15:20

>>78
nope, I mean you defined main as void.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:20

>>79
The #define's are copypasted from void.h which "saves typing" for thousands of .h and .c files living on my hardrives.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:22

>>81
void main is my preferred initialization of main function.

Name: Anonymous 2011-11-07 15:22

>>82
I...
I hope I will never have to experience the horror of even coming close to something so evil as your hard drive.

Name: Anonymous 2011-11-07 15:23

>>83
But that's against the very C standard, which makes your code invalid. It's only because of the lenient compiler that it even compiles.

Name: Anonymous 2011-11-07 15:24

>>83
which is wrong. but anyway, I am not gonna argue. have fun with your way

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:29

>>84
You see the parts of void.h i insert into programs already.
For publishing them on them on web requiring everyone to "use a header" is asinine, so i paste the useful parts of void.h(usually a couple of types and rdtsc() ) into the original program to paste it on pastebin as single unit.

Name: Anonymous 2011-11-07 15:31

I can't even tell whether the trolling has improved, or the rest of /prog/ has gotten worse.

Name: Anonymous 2011-11-07 15:33

>>87
rdtsc() doesn't work anyway. There's no such thing as RDTSC declared, __asm is a function (yet you use a block of code instead of parameters within parentheses) and you're missing both the return for the function and the semicolon after __asm.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:35

>>89
If your compiler is worse than DMC its not my problem.
I don't have to babysit it, i don't have to specify registers and i don't have to return.

Name: Anonymous 2011-11-07 15:36

>>83
This is not different than posting a code in java and saying "this is my preferred structure of C syntax".

Name: Anonymous 2011-11-07 15:37

>>90
It's not my compiler's fault, it's your intentional obfuscated and non-portable code (also probably the reason why you're using these defines; if you wanted portability, you'd just use stdint.h).

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:39

>>91
void main(String[] args){        System.out.println(">>91 is a retard");   }

Name: Anonymous 2011-11-07 15:39

>>93
Invalid Java code!

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:41

>>92
Portability is not done by me, i just provide the means for you to use my #define to port the code to any platform.

Name: Anonymous 2011-11-07 15:42

>>93
If your compiler is worse than my uber modified compiler that accepts java code as c code void main(String[]) it is not problem.
I don't have to babysit it, i don't have to specify registers and i don't have to return. And I don't have to write in C inorder to write a C program.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:42

>>94
public static.., ommited because i dislike java verbosity.

Name: Anonymous 2011-11-07 15:42

>>94
not in his java compiler

Name: Anonymous 2011-11-07 15:43

>>97
you also ommited class defination.

Name: Anonymous 2011-11-07 15:44

>>97
And that's why your main(String[]) was an object method, not a class method.
Also, you have to put it in a class if you want to run it.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:44

>>96
You never heard of D?

Name: Anonymous 2011-11-07 15:45

Oh, wait, I get it, he's replying to himself.

Name: Anonymous 2011-11-07 15:45

>>102
No, I'm not.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:45

Its like Java but without the verbosity and with all the cool C++ features you never dreamed to use, because of C++ syntax.

Name: Anonymous 2011-11-07 15:47

>>104
That's what Go is for. D doesn't have anything to really distinguish itself from C++.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 15:57

>>105
I prefer the design of language which is supporting more at least cost.
 Go is lacking in features and its standard library is laughable compared to D.

Name: Anonymous 2011-11-07 16:08

>>106
There's a standard library package for everything.
http://golang.org/pkg/

Even if that isn't enough, there are already quite a few nice external packages out there.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 16:20

>>107
#include "void.h"// you should download void.h and other external headers yourself

Name: Anonymous 2011-11-07 16:22

>>108
What is this ``void.h''?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 16:28

>>109
an external package. If you can't download one, the name is easily searchable like the language itself.

Name: Anonymous 2011-11-07 16:29

>>110
Ah, your retarded typedefs. What has that to do with Go?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 16:33

>>111
Making your language depend on external packages is like forcing you to download "void.h"

Name: Anonymous 2011-11-07 16:35

>>112
Except that packages are easily installed with goinstall and they are far easier to get than one of the files you wrote.
Anyway, Go's standard library is quite big and is still growing.
By the way, I doubt that your D has stuff such as Qt/GTK libraries in the standard library, so it's the same there.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-07 16:42


So its like dependency hell, but now in source form.
Never going to use this.

Name: Anonymous 2011-11-07 16:44

>>114
The same thing happens with any other language once you go past its standard library.
Well, except Java, C# (and so also VB.NET) and Python (default installation), which happen to include the GUI libraries.

Name: Anonymous 2011-11-07 20:36

aspattack

Name: Anonymous 2011-11-07 20:43

>see FZ js code, cant really understand/care
>see c version, yay learning time
>cant tell if joke

Name: Anonymous 2011-11-07 21:32

>>117
I didn't bother looking at it until now... WTF? I don't even... Who on earth would spend so much time and energy into such an elaborate trolling scheme? He totally raped the cold body of Dennis Ritchie.

Name: Anonymous 2011-11-08 0:31

Thus, FurozenVoiden unleashed his troll bankai to defend his position as 4th captain of /prog/.

Name: Anonymous 2011-11-08 0:39

>>119
Le ace step bak/a/.

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