Friday, February 12, 2010

Programming by routing

Hi,

I'll introduce a new programming method which uses something so called programming by routing or router programming. In simple statement "each function will call a master function called router () in order to execute another function. The router () will handle the internal call by choose one of many functions defined to do the proper function call. If the assigned function failed, the router function will mark it with metric and assign the function call to another defined function. Then the success function will have a most lower metric. The router then will return the exit result to the main calling function in order to continue the program instructions.

The router () will be nested and recursive for the other defined functions.

This programming method will facilitate the concept of calling the better function inside the program. another feature, it'll be used to handle the IPC between the programs and services for example, the program may call the router service to call another program instance, the router service will select this instance and assign metrics for it until it find another instance with better metrics.

The benefits for this method will be applied for robotics as an example application, imagine that the robotics arm will try the best move to catch a cup of glass. Or to defend it by learning the best move. The engine will have the best combination of fuel and air in order to not produce much CO2 and so forth.

Now let's design the router function using pseudo code

int router(void){
For each function in function list (void) {
Assign metrics of 0 to this function
Execute function
If exit status SUCCESS then
Add function metric to the assignment list
Break the for loop
Else
Assign metric metrics of 1 to this function
Continue the for loop to use another function in function list
End if
}
Return the exit status to the router () function

Tuesday, February 09, 2010

Company As a Service (CaaS)

After successfully implementing the new era of SaaS, IaaS, and PaaS, I assume it's time to invent CaaS.
Company As a Service is just the successful inhritance of all previous technologies which will provide a complete set of services such as Management, Administration, HR, ...etc in one place as a service.
I know the ERP system is much like that. but it's not partitioned or virtualized to satisfy more than one company.

In the future, you may build a complete company set without hte need to buy any software. Just one click.