Facebook Hopes to Revolutionize PHP with “Hip Hop”

Facebook Hopes to Revolutionize PHP with “Hip Hop”

Little did we know that, for the last six months, Facebook has made use of a custom compiler for PHP that they refer to as “Hip Hop.” Essentially, it takes your PHP source code, and converts it into C++, and is then compiled with G++. As a result, they’ve managed to reduce their CPU usage by 50%. This project has apparently been in development for the last two years, but has only today been released to the community.

“HipHop for PHP isn’t technically a compiler itself. Rather it is a source code transformer. HipHop programmatically transforms your PHP source code into highly optimized C++ and then uses g++ to compile it. HipHop executes the source code in a semantically equivalent manner and sacrifices some rarely used features — such as eval() — in exchange for improved performance. HipHop includes a code transformer, a reimplementation of PHP’s runtime system, and a rewrite of many common PHP Extensions to take advantage of these performance optimizations.”

The Announcement

“Scaling Facebook is particularly challenging because almost every page view is a logged-in user with a customized experience. When you view your home page we need to look up all of your friends, query their most relevant updates (from a custom service we’ve built called Multifeed), filter the results based on your privacy settings, then fill out the stories with comments, photos, likes, and all the rich data that people love about Facebook. All of this in just under a second. HipHop allows us to write the logic that does the final page assembly in PHP and iterate it quickly while relying on custom back-end services in C++, Erlang, Java, or Python to service the News Feed, search, Chat, and other core parts of the site.”

The Problems Facebook Faced with PHP

  • Can’t reuse PHP logic in other systems
  • Extensions are harder to write for PHP developers
  • High CPU usage; can’t be as efficient as something like C++
  • Fully impractical to completely rewrite Facebook with a new language

How They Improved It

  • It’s a source code transformer
  • Transforms PHP into optimized C++, then compiled with G++
  • Has been in development for over two years.
  • If you’ve used Facebook within the last six months, you’ve experience Hip Hop
  • Facebook team have recorded a 50% decrease in CPU usage.
  • They’ll have dedicated evangelists to help train/familiarize the community with Hip Hop
  • If you’re on a shared host, using Apache, you’ll most likely want to continue using standard PHP
  • Where Can We Start Playing with It?

    Hip Hop is available now, and is hosted on Github. You can download it here.

    Hip Hop Process Graph



Highly Recommended Services and Apps: CodeCanyon Sponsors

Highly Recommended Services and Apps: CodeCanyon Sponsors

As most of you know by now, we’re hosting an enormous competition to celebrate the recent launch of CodeCanyon. The $6200 worth of prizes simply wouldn’t have been possible without the generosity of our sponsors. Luckily, I can also say that I 100% recommend each and every one of the services/products listed below.

Media Temple

“Media Temple hosts websites. Big and Small. For years we’ve taken complex technology and simplified it for the everyday website owner. Our products are designed to be powerful, affordable and relevant. Please take a look around; perhaps (mt) is a good choice for your next project.”

They’re who I personally use for all my hosting needs.

TechSmith

“We create screen capture and recording software to help you communicate clearly and effectively, deliver engaging presentations, analyze usability and conduct market research.

For over 20 years, we’ve helped people communicate visually and look great doing it.”

I use Camtasia Mac for every weekly screencast on this site!

Wufoo

“Wufoo strives to be the easiest way to collect information over the Internet.

Our HTML form builder helps you create contact forms, online surveys, and invitations so you can collect the data, registrations and online payments you need without writing a single line of code.”

Envato uses Wufoo for its invoicing system.

FormSpring

“FormSpring’s easy form builder gives businesses and organizations an easy way to build any type of online form, integrate it with their website and begin collecting data. Once you have started collecting that data you can use the information you gathered in our online database or export it. With FormSpring anyone can build all types of web forms, collect data online and do it simply and efficiently.”

We use FormSpring for our tutorial submission forms. Visit Web.Appstorm for a full review.

Surreal CMS

“With Surreal CMS, there’s absolutely nothing to install. Just enter your website’s FTP info and you’re connected! Within minutes, you can enable webpages, add content regions, assign editors, and begin updating your website — and you don’t even need an FTP client to get started!”

TypeKit

“This will change the way you design websites.

Add a line of code to your pages and choose from hundreds of fonts. Simple, bulletproof, standards compliant, accessible, and totally legal.”

Watch a screencast on Nettuts+ demonstrating just how easy it is to work with.

Myows

“It’s an easy-to-use app dedicated to providing a full suite of copyright solutions, from registration to management.

Myows has been created for designers, photographers, bloggers, writers, musicians and anyone who creates copyrightable work.”

We recommend that authors on ThemeForest use this service!

Snippet

“Easily create (code) Snippets from selected text anywhere.”

Read a full review from Mac.Appstorm.

Threadsy

“Threadsy is a new kind of messaging experience created for anyone to use. it combines all of your existing accounts in one place and enhances them with relevant information from your social networks and the public web. the effect is a brand new flavor of communication harmony.”

I’ve been using Threadsy Beta for over a week now, and have high hopes for the official release! Visit Web.AppStorm for a full review.

Rockable Press

“At Rockable Press, we produce simple, straight forward how-to guides and resources for web and creative professionals. We are a small web publishing outfit operated by Envato with authors based around the world.”



Urgent Website Project

Urgent Website Project
Request for proposal–
Looking to build website similar to (worldvision dot org), integrating the best features of a few other websites and some new features that I want into the design. Take some time to study and analyze the website mentioned above.

Google maps will be heavily integrated into the website.

Although time is a critical issue in this project; however quality should be the highest priority – but I expect you to stick to agreed deadlines.
You will be required to submit to me a complete framework proposal (detailed specifications) about the way you are going to build the system. Type wvcd2 in the subject line of your response. That will show that you have read this project.

Please showcase working sites from your portfolio and provide evidence of your involvement in the development of these sites.

Web 2.0 Slideshow/photo App

Web 2.0 Slideshow/photo App
I would like an app that allows people to create slideshows. So user uploads a bunch of images and then can do the following:

1) annotate on it using sticky notes anywhere on the image (this can be done using CSS and does not need to be saved as part of image file)
2) drag and drop arrows and other icons onto the image (again, it should be placed using DIV and not become part of image)
3) share project with team members via email notifications
4) able to have different themes for their image albums
5) visitors to album can post comments and rate images
6) owner can set access privilege. so some albums require password
7) owner can drag and drop to re-arrange order of images like PowerPoint thumbnails view
8) can export whole album as a ZIP file and HTML files automatically created that does the slideshow of images. So no need for PHP at this point. Just drag and drop into browser and it’ll have next/previous buttons to navigate between images. Files would be 1.htm, 2.htm, 3.htm

Other requirements:
1) login authentication and registration page
2) admin level / owner level / guest level
3) use of AJAX in many editing functions

You should know:
1) PHP expert
2) jQuery expert

There will be a large use of drag and drop to re-order images. So if you know how to do that using jQuery that would be good.

I prefer someone who can code it in a while that it’s easy to maintain for me later on. So be great if you can do it using SMARTY or other ways of coding it elegantly.

You can take an existing popular open source web app and modify it for use. Or it’ll be great if you already have something like this. Or do it from scratch.

Best Part Time Job

Best Part Time Job
Simple job: of the copying of some works and pasted to microsoft, and the saved.

This job should be very easy for anybody- no skill is involved

NOTE 1- and this job can be completed easily within 30 minutes (As we have done it),
NOTE 2-This job would suit a brand new unexperienced freelancer who wants to build up his feedback.

This is a very simple job, but repetitive- and No skill is required.

IMPORTANT: We are just looking for around Dollar 2 for every 100 word files(x3 versions)
What is your bid?
We will provide the links, you just copy, paste, and save. then provide all the files to me in a zip file, like i said we have tried this job, and easily did it in under 30 minutes- very easy job!

join: http://EmoneyJustFree.com

Business Directory

Business Directory
I need a business dirctory website. (see attacment file)

looking for a site similar to

http://www.cheapeatery.com/restaurants/bengal-curry-and-kabab/

with a sleek finish like this template

http://themeforest.net/theme_previews/22680-advanced-portal-website-01 php with backend.

SERIOUS ONLY, needs to be done fast.

Travel Blog Post Writing

Travel Blog Post Writing
Hi,

I am looking for someone who can re-phrase press releases from hotels and post them on my travel blog. The press releases will be supplied by me. Two photos have to be found which will go with each post. It would roughly take 30mins to re-phrase and upload one post which would be short and crisp at just 200-250 words.

Please send a sample of your writing while applying for this project. I can pay only $1/post but this is an ongoing project and i need atleast 50 posts in a month.

Create 53 Landing Pages

Create 53 Landing Pages
I need a designer to create 53 landing pages – each with unique content – but can have identical design. So really the task is to create one really excellent landing page design. I will supply the links to content and the designer must incorporate that content into the design.

Bidder must have experience with paid search landing pages. Bidder must write perfect US English.

Online Auction Site

Online Auction Site
I’m looking for a team to design and create a unique penny auction site. I’m not looking for a clone of existing sites like Swoopo, but a unique, custom built site designed to my specifications. You will need to show me examples of your work using PHP, MySQL, Ajax, and integration of social networking tools including real time chat boxes, instant messaging, twitter and social bookmarking integration, etc. You will be designing three unique interface: a buyer interface, a seller interface, and an admin. The site will need authorize .net, and paypal or google checkout integration. This will be a long term relationship for the right team.

Php Forum Script Expert

Php Forum Script Expert
I need a php forum script EXPERT. You have to be familiar with this forum, www.mylittleforum.net

It is an open source forum script, so you can download and familiarize yourself with the script. However, bear in mind that I am not using the latest version. I think I am using version 2.0 or perhaps even older.

I need someone who can do a lot of modifications and customization for this forum script. So you MUST BE AN EXPERT WITH php forum script. Again, I repeat, there will be a LOT of modifications required.

PMB if you feel comfortable with this script and I will provide more details as to what needs to be done.

Again, YOU MUST BE EXCELLENT AND 100% TRULY POSITIVELY EXPERIENCED with PHP forum script. You have to be 10000% professional and know what you are doing.

Programmer with no existing Scriptlance reviews need not apply. Sorry about that.

Terms:

50% escrow upon acceptance of the project
50% escrow upon completion of the project
100% release of your escrow after I have reviewed the finished work to my satisfaction, usually within 3-5 business days.

Do not bid without first asking me for details in the private message board. If you place a bid without first asking me for details, it shows that you do not pay attention to my project details and I will ignore you.

Thanks

Bar Coding/ Database

Bar Coding/ Database
Hi all:
I have a small project. My requirements is a computer generated bar coding to register attendance for guests in an event. Therefore a small database is needed based on mysql(back end) and php.

Please refer to the attachment for more details. Actually its a simple project. I will explain more in detail. Need to comlpete this by friday.

Budget is tight:usd$300

Raffel Tickets/fundrasing

Raffel Tickets/fundrasing
another project: need a cms system including a raffel ticket shopping cart-
ability to add/manage multi events raising money/raffels
each event fundraiser set of number ranges entered at setup that counts down predifined qauntity send printable ticket with assinged number, check out etc, ad code plug in
please provide samples of other raffel ticket/fundrasier site