pages-repo

Welcome to Janav’s page

I was introduced to programming because of a buring desire to make video games.

I was not able to make any video games because I was not very good at art. After speaking to other students at UCSD I found this meme to be very accurate.

This is how smart people solve memory leaks. Got this image from Reddit

Here is a random quote I found on the internet

Opportunities don’t happen, you create them

I like interesting and clever solutions to problems. Here is some code in c++ to calculate the inverse of the square root of a number from the original Quake III arena video game (taken from here)

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;
}

This code was used in a game engine to approximate the inverse of a square root quickly. The code gives up some accuracy in favour of speed. More information on this code can be found in this video.

some lists

Here is an unordered list of the new graphics cards launching soon.

Here is a ordered list of my favourite games

  1. Witcher 3
  2. Cuphead
  3. Hades

Here is a task list of things I plan to do this quarter

Here is a link to an other md file from master.

Thank you for reading.

Here is a link to go back up.