Pages

Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Saturday, August 20, 2011

Just a little update

Hello all!
It has been a long time since I posted and I figured that I should put something up; just as a little update.

As we are about to enter another school year, I, like many of you fellow Grad students, have just had to sit through hours of meetings concerning TA duties about which we are already familiar. Such is life! This year, I will be only teaching Astronomy labs. Our department isn't very big so being able to teach only one type of class is surprising. However, I will also be TAing the only Astronomy II Lab and for which I have been helping to develop curriculum.

A downside to a small department is the interval between when classes are offered, so here I am: a third year grad student taking QFT 1 and 2. I already took QFT 3 last year, but hey, I am just really taking them for fun! I just hope to glean some more cool physics knowledge along the journey. :)

As for research, I am still holding tightly to my GR roots by continuing some research where my Maple-based Tensor Calculating skills are useful and that is in the field of Horava-Lifshitz gravity. This is a fairly sensational area of research where the scaling between space and time is dynamic and energy scale dependent. Hence, it is a potential theory of quantum gravity. In our group we are looking at gravitational collapse and solar system tests all the while trying to constrain the theory.

The HL theory is my actually secondary area of research. My primary field requires a lot more brain-hurting: string phenomology. In general, my string theory group works on generating gauge models in free fermionic heterotic string theory. My particular focus is on superpotential flat direction analysis and the resulting phenomenology. It's all very interesting, if I could just understand any of it! I am much more interested on the phenomenology side of string pheno but that makes me a loner in my group. As of now, I am still working on converting some old Fortran code to C++ and then automating that code for use in calculating the important phenomological quantities (like mass hierarchies, VEVs etc...) for a given model. Of course we want the program to port well with the model generating program that our group has been working on over the past few years but I also will be making it as a stand-alone program. Over the next few years, I hope to continue to expand upon the program to do more exhaustive studies of the free fermionic portion of the landscape by increasing the number of phenomological parameters that can be searched/calculated.

And just like every other physics grad student, I hope to find something cool, new and maybe even somewhat useful!

Apart from physics, I am still leading a Karate group here on campus and will be traveling around a bit to be able to learn more about physics as it pertains to the body!

Thursday, April 8, 2010

C Is The Most Popular Languange Again!

I'm sure many of you have heard the news that C is back at the top as being the most popular programming language again, according to TIOBE who monitors this stuff.  (Java held it's ground for so many years.)

There should be some type of Nobel Prize type prize that should be bestowed upon Dennis Ritchi.  There are probably few accomplishments in the 20th century that have had more effect on society than the C programming language.  From it we also got Unix (and all that led to), tons of computer programs and many other languages based off of C. (For all you Windows and Mac fans, C has been a crucial part of those OS's too.)

C, for all of its criticisms, is one great language.  Despite all the advances in computer science over the years, at the end of the day, many people continue to come back to C.  (Unlike FORTARN where the entire civilized world has moved on, except for people who are slaves to codes that were written by previous generations of scientists.)

Let's also not forget, Python is really just a "grandiose wrapper" around C. :)

Thursday, March 18, 2010

On The Overuse Of Semicolons While Programming.



 Dilbert's real error is he obviously isn't using Python. :)

Wednesday, November 11, 2009

The Go Programing Language?

It appears Google has created a very interesting programming language. Here are the highlights I care about:

  1. Has array slicing. (This is the only advantage Fortran has to C in my opinion.  Slicing makes some mathematical routines soooo much easier to code as well as vectorize.)
  2. Google claims it runs essentially as fast as C/C++ code.
  3. It compiles much faster than C/C++.
  4. Has garbage collection.
  5. It was built from the ground up to be a parallel language.  The "Go routines" run concurrently.
  6. In addition to slicing, it has a lot of Python features like dictionary type objects. (You all know, other than speed, Python is the greatest language on earth.)
  7. In addition to 6, it was designed to feel like a dynamic language like Python but again have the speed of C.
  8. It claims it is very memory safe and has built in features to prevent stack overflows.
  9. It's open source.
  10. It's Google!
If Google has actually created a language that is as fast as C but has a feel similar to Python with array slicing I am about ready to convert today.  Especially if doing parallel programming is straight forward.

Slashdot article here.

Here is a video showing how fast it compiles code. (This is scary fast. I wonder how they engineered this given how much time and effort is to making good C compilers.)

Tuesday, August 11, 2009

Subtle Evidence The iPhone (and Macs) Are Becoming More Popular.

How could you know if the iPhone, or Apple products in general, are becoming more popular? Look at sales records? Sure, but that's so old school.

Instead I will point your attention to the fact that Objective C for the first time in history is becoming a popular programming language. Objective C, for those who don't know, is Apple's language of choice for the Cocoa environment they use for their products.

And Objective C is such a worthless "next generation C language" that nobody else uses it so rising Objective C usage can only mean Apple products, and especially the iPhone are becoming more popular. Everybody other than people like Steve Jobs knows that C++, Java and C# took C in the direction it should go, but like the one button mouse, some bad ideas just don't leave the Apple Headquarters.

Now, why am I emphasizing the iPhone? Because it is the iPhone's App Store that is actually driving this trend. Every developer wants to make money selling an iPhone App and so the increase in Objective C usage.

If there was no App Store, the only people using Objective C would be Apple employees forced to use it by their employer. But alas, the increasing popularity of the iPhone with its App Store coupled with the overall rise in Mac use is fueling the increase in Objective C use.

Friday, July 31, 2009

Practical Uses For C



The only problem is he forgot the "\n" to print a new line each time.

And since you are interested here is the same code in Python:
print "I will not throw paper airplanes in class\n"*500