Facebook speeds PHP by crafting a PHP virtual machine

Social networking giant Facebook has taken another step at making the PHP Web programming language run more quickly. The company has developed a PHP Virtual Machine that it says can execute the language as much as nine times as quickly as running PHP natively on large systems.

“Our goal is to make PHP run really, really quickly,” said Joel Pobar, a Facebook engineering manager. Facebook has been using the virtual machine, called the HipHop Virtual Machine (HHVM), across all of its servers since earlier this year.

Pobar discussed the virtual machine at the O’Reilly Open Source Conference (OSCON) being held this week in Portland, Oregon.

Shares its development tools

HHVM is not Facebook’s first foray into customizing PHP for faster use. PHP is aninterpreted language, meaning that the source code is executed by the processor directly. Generally speaking, programs written in interpreted languages such as PHP tend not to run as quickly as languages, such as C or C++, that have been compiled beforehand into machine language byte code. Facebook has remained loyal to PHP because it is widely understood by many of the Web programmers who work for the company.

To keep up with the insatiable user demand, however, Facebook originally devised a compiler, called HipHop, that would translate PHP code into C++, so it then it could be compiled ahead of time for faster performance.

While Facebook enjoyed considerable performance gains of this first version of HipHop for several years, it sought other ways to speed the delivery of the dynamically created Web pages to its billion or so users. “Our performance strategy for that was going to tap out,” Pobar admitted.

HHVM is the next step for Facebook. Under development for about three years, HHVM actually works on the same principle as the Java Virtual Machine (JVM). HHVM has a just-in-time (JIT) compiler that converts the human readable source code into machine-readable byte code when it is needed. (The previous HipHop, renamed HPHPc, has now been retired within Facebook.)

This JIT approach allows the virtual machine to “make smarter decisions at runtime,” Pobar said. For instance, if a call is made to the MySQL database to read a row of data, the HHVM can, on the fly, figure out what type of data it is, such as an integer or a string. It then can generate or call code on the fly that would be best suited for handling this particular type of data.

With the old HipHop, “the best it can do is analyze the entire Facebook codebase, reason about it and then specialize code based on its reasoning. But it can’t get all of the reasoning right. There are parts of the code base that you can not simply infer about or reason about,” Pobar said.

Virtual system speedier

Pobar estimated that HHVM is about twice as fast as HPHPc was, and about nine times as fast as running straight PHP.

Facebook has posted the code for HHVM on GitHub, with the hopes that others will use it to speed their PHP websites as well.

HHVM is optimized for handling very large, and heavily used, PHP codebases. Pobar reckoned that using HHVM for standard sized websites, such as one hosting a WordPress blog, would gain only about a fivefold performance improvement.

“If you take some PHP and run it in on HipHop, the CPU execution time [may] not be the limiting factor for performance. Chances are [the system is] spending too much time talking to the database or spending too time talking to [the] memcache” caching layer, Pobar said.

The Best Beginner Singing Lesson Singing Lessons Provided By Professional Singer Teacher

The best beginner singing lesson is provided in Australia to children and adults. Affordable singing lessons are offer by a professional singer teacher in Parramatta, Sydney. Parents with small children up to the ages of 18 are receiving music lessons.

Beginner singing lessons can begin at the age of five up to seniors. An individual is never too old to learn music and singing. Music and singing requires skills, technology, creativity, imagination and techniques.

A professional music school has qualified music and singing teachers that are much trained and experienced in their expertise. There are kinds of music genre, such as jazz, rock, contemporary, and pop. The teachers offer and provide instrumental and singing lessons.

The singing lessons taught by a professional singer teacher includes beginner for children and adults. As we know children and adults are on different levels of learning capacity. A professional singer coach helps children and adults to control and strength their vocals.

Musical art has a history dating back to ancient times. Instruments and dance was apart of festivities and ceremonials. If your child has an interest in music regardless of the age, consider singing lessons.

There are those individuals who were blessed with a beautiful voice and never receive a lesson in their life. Those individuals are few, but with teaching and training singing lessons the voice can be trained. Students are taught techniques to keep vocals healthy and strong.

Music schools today provide services of coaching, scales, techniques, and leisure syllabus. Although some individuals are born with a talent or a musical gift, others arent. There are professional artists today who received vocal training.

Those who are most likely to request coaching are artists and music groups. A very good singer sometimes needs help coaching and training. Lots of practice leads to success and perfection.

Each student is provided one-on-one lessons and a music teacher. The rooms are sound proof, to ensure focus and privacy. Parents have only a few months to choose activities for their children to participate during the summer.

In Sydney the best beginner singing lessons are taught to children and adults at reasonable prices. A professional singer teacher will diligently teach younger children with attentiveness and care. They have patience and provide basic voice lessons.

A professional singer teacher is educated with a variety of techniques to teach and coach beginner to advanced students. Try a beginner singer lesson designed to teach children to adults. There is a leading music school providing singing lessons in Australia.

Sql Server Database Corruption If You Run A Query With Parallel Execution Plan

You may come across Access Violation if you run an SQL query, which uses parallel execution plan in Microsoft SQL Server 2008. Access violation is an error condition, which may occur while performing general operations on the SQL database. It may occur due to application malfunction, software bug, or database corruption. It renders your database inaccessible and may cause data loss, if you don’t have a complete backup to restore data from. To overcome such issues, is required.

As an example of Access Violation in Microsoft SQL Server 2008, consider the below scenario:

In MS SQL Server 2008, you’re running a query that includes all the below mentioned clauses:
Inner join
Union all
Group by
The database query is using parallel execution plan.
You execute the query.

In the above scenario, you may face access violation. And, you receive the following error message:

Location: xbmp.cpp:2038
Expression: 0 != pxteBitmap
Msg 3624, Level 20, State 1, Line 2
A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider running DBCC CHECKDB. If you agreed to send dumps to Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a QFE from Technical Support.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.

Furthermore, the mini-dump file is returned under the log folder of MS SQL Server 2008.

Cause

As sated in the above error message, this problem may have occurred due to either database corruption or a software bug. After corruption, SQL Server can not read the database and this behavior occurs.

Resolution

Run DBCC CHECKDB utility to try fixing database corruption. If the database is severely corrupted, it may not work. In such cases, third-party applications are worth using.

The MS SQL Recovery applications are particularly designed to thoroughly scan whole SQL Server database and extract all damaged and inaccessible objects from it. They allow you to perform SQL Recovery on your own as they have simple and rich graphical user interface.

SQL Recovery software safely and successfully repairs damaged SQL Server database in all cases of corruption. It works well with Microsoft SQL Server 2008, 2005, and 2000. The software restores all database objects such as tables, reports, forms, macros, and more.

How To Make Money With Videos And Maverick Money Makers

You can easily make funny video websites, and then profit from them nicely. This is a new trend in internet marketing and produces great profits with Maverick Money Makers.

Key to the development of a video is a catchy domain name and video title. A catchy, unique and memorable name is key to not only getting traffic but maintaining traffic.

2. Getting the videos.

You can easily lift videos from popular video sites or do linking and back linking with other video sites as well. Many sites are created to share videos as well. So getting the videos to supply for your funny video website is relative easy.

3. Making the Money with Maverick Money Maker

Making money off your site is going to consist of different forms income streams. From click on ad’s, banner advertising, and actual products which you can sell on your site and receive heavy commissions from.

Start Pay per click accounts at Google and Yahoo. I suggest you then find ind internet products which will coincide with the type of videos you’ll be showing to promote Maverick Money Makers. Once your site develops traffic, you can start to hit up larger business’s for banner ad’s which can pay you very well to advertise on your site. The combination of different income streams will bring in a steady income flow as long as your traffic is ramped up.

4. Putting your site together.

There are specific programs you can get for building sites. They will take the headache of “coding” and allow you to set up your site quickly and effortlessly. A good ” how to make a video website” book or manual will show you exactly what needs to be done to produce a profitable site to market Maverick Money Makers or any other product that you may be interested in.

Maverick Money Makers is a private
society that will teach you how to
build a six-figure a month business on the internet.
If you want to make money online,
join the society before it’s too late.

Industry: Ginger drink that makes Fit!

More nutritious drinks attractive and wanted by the community. Because many people who care about healthy living. One of the much-loved beverage that is made ​​from natural ingredients such as turmeric. Seger felt fit to arouse.

Traditional herbs though occasionally underestimated proved to have tremendous benefits, especially for the body. One is ginger that in today’s modern society is rather difficult to find. Moreover, to process them into something delicious to eat is not something easy.

But now it seems we’ve been spoiled with the development of technology. Some of the cottage industry and the process has been a lot of ginger into the drink ‘decent’ consumption. In the sense of not only the packaging is attractive but it is also more delicious and fresh to be consumed daily.

The one that produces the drink ginger is Eve Inti Indonesia (Hawaii), located in Banyuwangi – Bali. Where the production of ginger drinks packaged in glass bottles in Sari Rasa Temulawak label. Besides this drink was commonly found in the form of an instant.

This drink is made from extracts of ginger, sugar, and other spices. Moreover, this ginger drink now can be enjoyed like other bottled beverages which in cold conditions. There are so many benefits that can be enjoyed after consumed as increase appetite, prevent colds and so forth.