Is programming an art form? What programs can be considered great works of art

Is programming an art form? What programs can be considered great works of art.

Other urls found in this thread:

en.wikipedia.org/wiki/Macintosh_operating_systems
nbickford.wordpress.com/2011/04/03/the-minsky-circle-algorithm/
twitter.com/SFWRedditVideos

float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;

x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed

return y;
}


is a piece of art.

making a constant for threehalfs and then throwing 0x5f3759df at you fours lines later makes me kek every time

does this offer any performance gain?
does it even work nowadays?

en.wikipedia.org/wiki/Macintosh_operating_systems
Did you even have to ask?

No the closest approximation is sorcery or magic

God's Temple is the greatest work of programming art.

NO, STOP AND THINK.

Programming IS NOT AN ART. Programming is a cold, pragmatic discipline that want to bring order to the chaotic world that surround us. The programmer grab pieces of reality and make them dance in a song he only can hear. The monotone song the programmer does is fueled by his desire of order and logic, knowing that that chaos entities are always trying to defy and break the precious balance his mind and cold calculations created.

i see you've never met an emacs user

I see you've never used Haskell

Maybe go to school again and learn how calculating a root works, retard

It offers a performance gain because it approximates a very costly operation (inverse square root) without doing any division at all.

It would work nowadays but be unnecessary since CPUs are much more powerful than in 1999.

well duh?, I am a Java programmer.

U+1f922

The magic circle algorithm is cool as fuck:

x = x - e * y
y = y + e * x

nbickford.wordpress.com/2011/04/03/the-minsky-circle-algorithm/

Forgive my Reddit screenshots, I'm copying from a Facebook chat I sent.

Some math info. I ran into it in a thread about pulsing Arduino lights t b h.

Came here to post this

someone plz explain is it calling a memory location?

>applet
>Tfw applet

Also who use applet knowdays?

It's really mathematics that's an art form.

Something something John Carmack

Someone explain to a brainlet how 1/sqrt(x) is used to compute angles of incidence and reflection for lighting and shading visually?

I love this because even the person who wrote it can't explain how he came up with the magic number
A mathematician even came up with a more accurate number but it somehow ran slower

not exp log srand xor s qq qx xor
s x x length uc ord and print chr
ord for qw q join use sub tied qx
xor eval xor print qq q q xor int
eval lc q m cos and print chr ord
for qw y abs ne open tied hex exp
ref y m xor scalar srand print qq
q q xor int eval lc qq y sqrt cos
and print chr ord for qw x printf
each return local x y or print qq
s s and eval q s undef or oct xor
time xor ref print chr int ord lc
foreach qw y hex alarm chdir kill
exec return y s gt sin sort split
[/split]