Friday, May 29, 2009

Native Client: Google's craziest idea yet

By Neil McAllister
Created 2008-12-18 04:00 AM

The browser's role is ever increasing. It already has become far more than a mere tool for accessing information. Today we use it to communicate, to collaborate, and to interface with applications. And if Google has its way, we'll soon be able to use it to chalk up a few righteous frags, too.

The Google Native Client
[1]
is a new set of components that allows Web browsers to download and execute native x86 code. It's not an emulator, and it's not a virtual machine. The code runs on the actual processor with access to memory and system resources and negligible loss of performance. It even gives browser-based apps access to modern, accelerated CPU instruction sets, such as SSE.

Just how crazy are these guys, anyway?

Beyond the limitations of the browser
The natural comparison
[2] is to Microsoft's ActiveX technology -- and to critics, it's not a flattering one. ActiveX controls allow developers to extend the capabilities of Internet Explorer by creating components that can access native Windows functions. But because ActiveX's security model is largely based on trust, users can easily be tricked into installing components that compromise system security. As a result,
ActiveX is now a leading source of malware attacks
[3]
on the Windows platform, and many security experts recommend that it be disabled.

There have been plenty of other attempts to extend the capabilities of the browser in ways that don't compromise security. The Java applet technology was among the first. Most rely on some kind of specialized programming language executed with or without the aid of a virtual machine.
[4]

But the problem with these technologies is that they invariably sacrifice performance for security's sake. That won't do for the use cases Google envisions: Not just games, but computation-intensive processes like ray tracing, image manipulation, and distributed calculation. The idea is to take advantage of the native performance of the CPU for problems where traditional, browser-hosted technologies won't suffice.

Modern browsers already include a mechanism for executing native code in the form of plug-ins. But according to Google's research paper,
[5]
this route is no better than ActiveX. Experts and end-users alike view plug-ins with distrust, which seriously limits their effectiveness.

A sand castle

Google claims that its Native Client improves upon any of these past technologies by building a "sandbox" security layer around native code downloaded from Web sites. You can think of it as a kind of "virtualization lite" -- except that Native Client avoids the overhead of full-blown virtualization environments such as VMware by placing strict limitations on what kind of code is allowed to run.

As such, the notion that Native Client will execute unmodified native x86 code is a little misleading. While C source may indeed run without modification, you'll need to compile it with special versions of the Gnu C compiler and its related tool chain before it will run in the Native Client. Programs and libraries written in hand-coded assembly language will almost certainly require patches.

Native Client's cleverest security hack is to limit memory access using 80386 memory segmentation.
[6]
Each process is assigned its own unique memory address space, rendering it impossible for malicious code to attack memory used by the OS or other processes. To further reinforce this, certain processor instructions and system calls are banned, the code must handle returns from subroutines using a specific method, and modules running in the Native Client can only communicate with the world outside its sandbox through a provided set of APIs.

To make sure code follows the rules, Native Client relies on static source code analysis
[7]
to spot security defects and potentially harmful routines before any instructions are executed. According to Google, the rules it enforces on code at compilation time make disassembling and analyzing Native Client binaries a breeze, and the overhead imposed by this verification pass is minuscule compared to the overhead of actually downloading the component.

In addition, Google's engineers are still working on adding a second, "outer" sandbox that will trap malicious behaviors that escape the code verification and memory protection layers.

Crazy cool

It's a sound idea with a lot of promise. Given the pedigrees of Google engineers, Native Client may yet prove to be one browser extension idea that's so crazy that it just might work.

Of course, there are still outstanding questions and issues to be ironed out. Just for starters, while it's true that the x86 instruction set is available on a wide range of computers -- including PCs and modern Macs alike -- this method leaves many handheld devices in the cold, including those based on Intel's ARM chips. Web access via such alternative devices is only expected to increase in coming years, which could make an idea like the Native Client impractical for many applications.

For the processor-intensive applications that Google envisions, however, Native Client could represent a huge leap forward. Perhaps the most pertinent question that remains, then, is whether the average computer user is ready to do the bulk of his or her computing within the browser, rather than using traditional desktop applications. Is Google's vision of browser-based computing really the future? And if so, how will the traditional software industry respond?

Wednesday, May 27, 2009

Precedence Diagramming Method - PDM

The precedence diagramming method (which is also known by the three letter anagram PDM) refers to a specific project management technique in which the project management team and or the project management team leader employs a schedule network diagramming technique in order to graphically represent any known and preexisting schedule activities via the use of boxes (which can also be referred to as nodes). Once all of these particular schedule activities have been graphically displayed in this box, or node format, at that point all of the individual boxes are linked together via the use of a line which represents any logical relationship (of if there are more than one, logical relationships) that are found to exist. The fundamental and most significant benefit to using the precedence diagramming method format technique is that it quickly and easily allows the project management team and or the project management team leader to view all schedule activities and their relationships with one another.

This term is defined in the 3rd and the 4th edition of the PMBOK.

Activity on Arrow or Arrow Diagram

Purpose: To show the paths to complete a project, find the shortest time possible for the project, and graphically display simultaneous activities.
The arrow diagram is closely related to a CPM (critical path method) or PERT (program evaluation and review technique) diagram. It is also known as an activity network diagram. It can be used to plan the schedule for any series of tasks and to control their completion. The arrow diagram removes most of the complexity of CPM and PERT methods, and retains the flow from task to task and the timing required for each task. It does, however, require that you know what each task is and how long it takes. Without such knowledge, it¹s difficult to develop the arrow diagram. To develop the diagram:

Process

  1. Brainstorm all of the tasks required to complete a given project, including the estimated time required for each task. Again, note cards are useful for this process.
  2. Sequence all of the cards from the start to finish, removing duplications, adding new ones as additional tasks are identified, and placing parallel activities where they belong.
  3. Reevaluate the shortest, longest, and average estimated times for each task and identify the longest path through the diagram.
  4. Use the diagram to track progress of each activity throughout the project life cycle. Any time an element gets in jeopardy, it may need to be examined and necessary resources shifted to complete it.

Tuesday, May 26, 2009

Work Authorization System

Work Authorization System: A work authorization system is a method used in conjunction with project management. The work authorization system is used by the project manager and his or her designees in order to approve all project work throughout the course of the current project management venture. The work authorization system is sometimes referred to as a "WAS." The work authorization system will typically be in the form of a list of formally adopted and well- documented procedures. Work authorization procedures specifically detail who may authorize work to be completed and how those authorizations may be obtained. These procedures will include which documents must be completed prior to work being initialized, and whether there are any other prerequisites to work being performed at any particular level during the project. To better assist the efficiency of project management in larger projects, work authorization systems also sometimes detail the timeline of the project. For instance, the work authorization system might include at which points in time certain portions of the project should be completed, in which order those tasks are to be completed, and by whom.

Work Performance Information

Part of the executed project management plan includes the routine collection of work performance information. The information gathered is important, and is useful as input data for quality control measures and programs. It is also useful when audits, quality reviews, and process analyses are conducted. This is especially true of work performance information collected which includes technical performance measures, project deliverables status, required corrective actions, and performance reports.
Pertinent work performance Information is essential to the project management plan and includes, but is not limited to:




- Status information on schedule progress.

- Whether deliverables have been completed, or not.

- Start and finish status of schedule activities.

- Quality standards expectation results.

- Authorized costs vs. costs incurred to date.

- Estimated completion time for scheduled activities in progress.

- Percentage of physical completion of in-progress schedule activities.

- Experience based knowledge acquired, documented, and posted to knowledge base.

- Details of resource utilization.


Gathering and analysis of work performance information is essential to the project management plan and should be considered a priority. Work performance information contributes to the efficient use of resources, identifies potential trouble spots and problems, and serves as an effective project management tool

This term is defined in the 3rd and the 4th edition of the PMBOK.

Project Selection Methods

Project Selection Methods are used to select and prioritize projects within the organization. Selection Methods will let you know if the project is too risky or if it won't make enough money, it is a strategic or isn't likely to succeed.

The PMBOK Guide defines 2 categories of Project Selection Methods:

  • Benefit measurement models compare projects by the benefit they bring to the company. Comparative approaches include methods such as Return on Investment (ROI) or Benefit Cost Ratio (BCR).
  • Mathematical models use complex mathematical formulas that attempt to predict the project's success. Some of these methods apply calculus and linear programming to solve for maximizations. These methods are also known as constrained optimization

Rolling Wave Planning and Progressive Elaboration

Rolling wave planning is the process of planning for a project in waves as the project becomes clearer and unfolds. It is important in such projects to at least highlight in the initial plan the key milestones for the project.

Rolling Wave Planning

Rolling Wave Planning acknowledges the fact that we can see more clearly what is in close proximity, but looking further ahead our vision becomes less clear. Rolling Wave Planning is a multi-step, intermittent process like waves - because we cannot provide the details very far out in our planning. Depending upon the project - its length and complexity - we may be able to plan as much as a few weeks or even a few months in advance with a fair amount of clarity. This involves creating a detailed, well-defined Work Breakdown Structure for that period of clarity, but just highlighting the milestone for the rest of the project.

Progressive Elaboration

Progressive Elaboration is what occurs in this rolling wave planning process. Progressive Elaboration means that over time we elaborate the work packages in greater detail. Progressive Elaboration refers to the fact that as the weeks and months pass we have planned to provide that missing, more elaborated detail for the work packages as they now appear on the horizon.

Feasibility Study of Projects

Rolling Wave Planning and Progressive Elaboration are similar concepts. They acknowledge the fact that in many projects, what must be done is unknown, but based upon past experience the project will unfold itself as it progresses. Thus, it is a plan to do more planning when that plan is possible, with the confidence that it will be. We will see more clearly what is ahead of us as we learn from the work that we do in earlier phases.

One question that often arises in project planning, in this area, is whether to actually create separate projects that will in the end produce a product that elaborates what is to be done on another project and taken as a whole these projects essentially are one larger project. Breaking them into separate projects enables budgets to be able to be allocated and provides decision points as to whether to even move on to the next project, or to stop and perhaps even go a different way.

This is sometimes what is done with "Feasibility Study" Projects. Often times an organization may have some good ideals that they would like to pursue, but before they make the total commitment they want to study the Feasibility of what it might take to do the project, or also what impact the project might have. This in essence is a bit of a different approach to progressive elaboration or rolling wave planning.

My Stats