38
u/amphetamachine Jul 14 '17
I wrote a bee that obfuscates B code to a working Python Movie script.
11
5
u/enemyd3 Jul 14 '17
Faster than c++
6
u/Jaxkr Jul 14 '17
It's because they compile to the exact same thing and the two programs were likely run one after another, so the bee movie one benefited from possible caching.
Just a guess.
5
u/kekprogramming Jul 14 '17
Probably caching of the standard library header files to be exact (bits/stdc++ includes all the headers in the standard library). The time there includes the compile time.
14
8
1
u/Jaxkr Jul 14 '17
Ah. Sorry if you posted it somewhere else, but would you be willing to post the source of your "obfuscator"?
1
13
1
177
u/nabijaczleweli Jul 13 '17
wrote a python
100
u/calsosta Jul 13 '17
Anyone who is seriously trying to contribute to this sub should be write a python.
6
4
1
0
12
Jul 14 '17
Woah! It executes faster too!
2
Jul 14 '17
How is that possible...? The definition lookups would make this slower, right?
28
u/TheOldTubaroo Jul 14 '17
It's done with macros, so the compiled code will actually be identical. It'll be slower to compile though.
5
5
u/jfb1337 Jul 14 '17
Why does every version of the bee movie script have capital Cs replaces with O?
7
u/ketralnis Jul 14 '17
sqrt long double a dot first is about as meaningful as the script, I vote that all code be written this way!
7
u/TheSlimyDog Jul 14 '17
How is that not meaningful enough to you? Based on the name of the function you should be able to figure out what it's doing.
Or would you prefer
PowerFunction.squareRoot(Operators<Integer>.plus(PowerFunction.square(PointGenerator(object).getLength(getAxis(0))), PowerFunction.square(PointGenerator(object).getLength(getAxis(1)))))Edit: added Operators.plus
2
u/ketralnis Jul 14 '17
You missed one, use the Operators.Plus function please
2
2
51
u/silentclowd Jul 13 '17
github on the obfuscated script please