"Beneath this mask there is more than flesh. Beneath this mask there is an idea, Mr. Creedy, and ideas are bulletproof" - V for Vendetta
Wednesday, February 1, 2006
OldPosts: Time travel
Quote from http://forums.lycaeum.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=9&t=000979 :
How can something move in time? It can move along the x-axis and it's velocity is dx/dt. If it moved along the time axis it's velocity would be dt/dt or 1. dimensionless one, at that. There can be no time travel.
(IMHO = in my humble opinion / OTOH = on the other hand)
Defining Travel : travel is a movement in some dimension. A movement is a change in the position of that dimension(s). A change can't happen on it's own; it must follow some external change. One would ask, the external change would need another change too. Yes, IMHO that it is an infinite loop. The change in X would affect Y which will affect Z which on the end would affect X and so on.
So to describe movement, we need to describe what changes can affect it. Before we do that we must say how was the movement described before. It was described in terms of displacement. But displacement is not enough. Because it does not uniquly identify a movement. I can move 10 meters north, or west, each is a different movement. So we need to make it more specific. We add direction. Which as may jump to the readers mind as a vector of X,Y and Z. Yes. But this is also not enough. One moving to USA in a plane at 500 KM/H and one is also moving but in a boat of 50 KM/H. Is not analogous types of movement though at the end will be the same place. At this point we needed velocity (speed). First, we ask, now we have that movement depends on displacement, thus if change in displacement = 0, there will be no movement. Direction depend on movement; if there is no movement there is no direction. Velocity introduces a new parameter. Time. If change in time = 0, there will be no displacement. But what does changes time ?
So far we defined Movement as undirectly depending on changes of time. Thus time restricts movement. There is some different argument : if movement = 0, will time change ? Some one will say 'Sure'. It may be changing. But how can you tell ? Movements will exists as long as time changes. So, if one can STOP movements, all movements. He theoritically will STOP time. OTOH, argument would say : which by contradiction, is proved if larger changes of Movement will cause time to change with the same amount. Einstien proved that, as one approaches light speed, time will shrink until it reaches zero. This is contradictory. As meaning if you are Moving in light speed, you will STOP time. But as concluded earlier this will make Movements = 0. As far as i conclude, this means that once you reach light speed, your speed will equal zero. OTOH, as your speed increase, time changes will dicrease. which lead to dicreasing in your speed. Actually time shrinking will not make your speed dicrease. If speed = dx/dt, as dt approaches zero, speed approaches infinity.
From the above one can conclude that if your speed increase then the displacement is still the same. Directly from what did Einstein proove. Given that time changes depend on the speed, and speed depends on the displacement per time unit; meaning that speed is inversly proportional to time unit. That is true if Displacement per time unit is constant. But in real life, speed only increases when the displacement per time unit increases. Which means that if we can increase the speed, while keeping the same displacemnt per time unit, then we can decrease the time unit. which will force us to recursivly decrease displacement to keep the ratio constant. When displacement reaches zero, time unit will equal zero. This is undefined as displacement zero is undefined. This was to shrink the time unit. Shrinking the time until means that we move faster relative to other slower entities. Ironically, in a race moving faster means that you reach the finish line first, which is other racers future . Meaning if you can increase the speed and decrease the displacement you will move to future. Descreasing the displacement is only meaning to decrease the new disp/t after t decrease, so it means slowing down while you increase your speed. This is moving to future. Moving to past means jumping over the zero time barrier, which is met when you are moving at the speed of infinity and not moving out of your place (note that this means going to infinite future). Jumping over the barrier requires you moving at negative infinity , while you are moving "inside you place" (displacement zero). As you reach -n speed where n <>
This all is an argument which expresses the conditions for Time travel IMHO. It shows a lot of contradictions. Which if sometime is solved it might happen to travel through time.
Thursday, January 26, 2006
OldPosts: RDBMS - a 'sql' server of my own
Wednesday, January 4, 2006
OldPosts: A new programming language
I've recently discovered a new programming language called Ruby ( in Arabic it means ياقوت ) http://ruby-lang.org. It have a very easy and intiuitive syntax. As it follows the POLS : Principle of Least Surprise its output is bug-free most of the time and you rarely need to debug.
A RAD ( Rapid Application Development ) web application framework for it called Ruby On Rails ROR is comparable to Apache Struts for Java. Using ROR you can be highly productive, a complete weblog system, like this one ( MSN weblog ), can be completed entirely from scratch including testing and administrative interface in 15 minutes. I did not believe this at first until i downloaded the movie in http://rubyonrails.org/screencasts .
ROR, just like Struts, employs MVC ( Model-view-controller ) pattern for its web applications. And one of its powerful features is that it automated ORM ( Object relational model ) for you. For example, after you create the database and create your web application ( not by typing anything, just by one click ) you'll find the web pages which displays the content and the pages modifies it is ready. If you added a column in a table in the database and just refreshing the page in your browser you'll find a new text area ( or the corresponding control to the new column data type ) is added and fully working in both the view and the edit pages!
All of the typing you will ever do, if you wanted, is that you'll just rename the page title,or reorder how the data is displayed only. Validations is declarative, not imperative. You just say "validate_exist field_name". Same with special relations like one-to-many you only say "has_many object_name". After that you will never have to write any SQL query, well, any SQL at all.
In the sample weblog he only wrote 58 lines of code. with 45 of them auto-generated. Which reminded me of a system i worked on before. It was a J2EE web application which handles the registration of a credit-hours college system. It was 3 months, 37 classes, and more than 2300 lines of code. I had to hand it with some known bugs because the college started and i had no time to fix them. After I've seen that ROR sample I estimated that all the work can be done in 30 minutes. This seems unbelievable, I know. Although I didn't actually rewrote it using ROR but we can count the time estimated. I will not include the time for database because it is already made. Say 1 minute to "click" to generate the solution, 10 minutes to navigate in the generated solution and change the "order" and "place" of data. Another 10 minutes to correct the "validations" and "test" them. This is total of 10+10+1 = 21 minutes. The other 9 minutes is for "yawning" and grabbing something to eat or drink a hot drink !! Now let's compare that to if it was done using J2EE ( not Struts ). First, create a list of the actions in the system ( 2 days ). Write the model - including a loooot of SQL statements and interfacing Java Date with SQL Data ( 3 weeks ). Implement the actions ( 2 weeks ). Implement the view - HTML/JSP pages ( 1 week ). Test ( 2 weeks, there is a lot of data to test ) [Note: ROR can generate tests for you too
]. In total of 3 + 2 + 1 + 2 = 8 weeks = 2 months ( and 2 days ). The other month was for learning Java and JSP and MVC. To be fair, i think using Struts it would take less than a week, excludsing the time needed to learn Struts. In ROR i didn't have to learn MVC nor JSP, and Ruby is so intiuitive that you can learn it in 15 minutes See: http://tryruby.hobix.com/ for a 15-minutes tutorial. Conclusion, the system can be made in 45 minutes, INCLUDING learning the langauge and ROR! ROR is so simple that it can be learnt from a few examples not even a tutorial.
I would like to write more about the origin of the language and its history with a detailed list of programming langauges popularity and Ruby's place in that list but i am really busy with the exams so I think I can add that later. Thanks for reading.