117
errrgguguugerrguuug.......
I've been sooooooooooo busy since last Friday.... this weekend I spent a bunch of time with Ben Scott at the VRAC working on our PHUI windowing library for OpenGL. On Friday we were there until 2:00 a.m. or something, and on Saturday, Josh, Ben, and I worked until 6:00 a.m. (I think? I'm still kinda fuzzy as to what days we worked). Then on Sunday night I wrote a simple scene graph for my graphics class. That was only about four hours of work. On Monday night, I was up until 1:00 or 2:00 a.m. working on a lexer for the Trend programming language. I think that was five or six hours of work.
And *last* night, I started work on a networked, 3D, virtual world using Java3D. It was actually kind of fun, barring the extreme (ludicrous?) verbosity of Java. Compare
Matrix4f m = new Matrix4f(); Matrix4f n = new Matrix4f(); m.set(new Vector3f(tx, ty, tz)); n.rotX(x_angle); m.mul(n); n.rotY(y_angle); m.mul(n); n.rotZ(z_angle); m.mul(n);with the equivalent code in C++:
Matrix4f m(TranslationMatrix4f(tx, ty, tz)); m *= RotationMatrix4f_X(x_angle); m *= RotationMatrix4f_Y(y_angle); m *= RotationMatrix4f_Z(z_angle);One reason Java is so verbose is that it doesn't have the concept of stack-based allocations. This is highly unfortunate, as the stack is one of the cheapest places to allocate memory: It's almost always in cache, and stack allocations require no thread/process synchronization, unlike allocations from the global heap. I guess I'm getting better at programming and software engineering in general, but it's really starting to suck... when I wake up, my hands tingle from all of the typing. At least they don't hurt as much as they did a week or two ago. I hereby dub this semester RepetitiveStressDisorder. I can't wait for spring break.... Video games.... No projects.... Bad Religion concert.... Visiting Laura... >:) I just got back from an hour-long shower. Partly to wake me up, and partly to kill time until breakfast... soooo hungry... One minor note in closing: You know you're tired when you think your own linear algebra jokes are funny. "Hahahaha, I'm an invertible matrix! I'm nonsingular! Get it?!?! hahahahahaha....." Postscript: And this is for my sister. Postpostscript: This is a really good article on code optimization!
Thanks Chad. I'm going to the doctor over spring break, which will hopefully help...
You need sleep man. Seriously.
yeah, I told him that too