Newsletters
News & Information for Technology Purchasers NewsFactor Sites:       NewsFactor.com     Enterprise Security Today     CRM Daily     Business Report     Sci-Tech Today  
   
This ad will display for the next 20 seconds. Click for more information, or
Home Enterprise I.T. Cloud Computing Applications Hardware More Topics...
Gartner ranks Druva #1
in overall product rating for
enterprise endpoint backup
for the second year in a row!
Cloud Computing
Gartner's #1 for endpoint backup
Average Rating:
Rate this article:  
Facebook Creates New Open-Source Language, Hack

Facebook Creates New Open-Source Language, Hack
By Barry Levine

Share
Share on Facebook Share on Twitter Share on Linkedin Share on Google Plus

The new open-source programming language, Hack, is described by its Facebook developers as operating "seamlessly with PHP," adding that it "reconciles the fast development cycle of PHP with the discipline provided by static typing, while adding many features commonly found in other modern programming languages."
 


Facebook has created a new programming language, and released it as open source. The new language -- with the potentially confusing name of "Hack" -- is closely related to PHP, which Facebook developers have been using for years.

The open source version of Hack is available through Hackland.org. On its home page, that site says Hack is a programming language for the HipHop Virtual Machine, or HHVM, which is Facebook's PHP open source runtime environment and which will now support both Hack and PHP.

It describes the new language as operating "seamlessly with PHP," and adds that it "reconciles the fast development cycle of PHP with the discipline provided by static typing, while adding many features commonly found in other modern programming languages."

'A Great Success'

"Typing" refers to the data type, not keyboard typing. In dynamic typing the code interpreter deduces the type of variable, i.e. numeric vs. character, at runtime. This makes for faster coding but can provoke runtime failures. In static typing the variable type is declared at compile time by means of a data declaration, which makes errors less likely but makes for slower coding.

On the Facebook Engineering Blog, the company's Julien Verlaguet and Alok Menghrajani wrote Thursday that Hack has been "deployed at Facebook and it has been a great success." Over the last year, they said, nearly the entire PHP codebase at Facebook has been migrated to Hack.

The Hackers continued to say on the blog that, at the Facebook scale where thousands of engineers are shipping new code twice a day, common programming mistakes can cause a substantial slowdown.

They noted that, "traditionally, dynamically typed languages allow for rapid development but sacrifice the ability to catch errors early and introspect code quickly, particularly on larger codebases. Conversely, statically typed languages provide more of a safety net, but often at the cost of quick iteration."

Support for PHP

Hack, the programmers said, "offers the best of both dynamically typed and statically typed languages," and added that "it will be valuable to projects of all sizes."

Error detection is made faster, the company said, because the type checker is faster. The blog post noted a PHP coder usually "goes back and forth rapidly between the source code and the browser," and a type checker "would disrupt this feedback loop as it takes time to analyze the source code." So, instead of slowing down the PHP workflow, the engineering team architected a type checker "as a local server that watches the filesystem." The type checker now generally runs in less than 200 milliseconds, so that it does not slow the workflow.

Jeffrey Hammond, an analyst with industry research firm Forrester, pointed out for us that Facebook "is taking a dynamic language, PHP, and adding features traditionally found in a statically typed language." This is arriving at essentially the same result, he said, as Oracle, which took the other direction by starting with the static Java and adding dynamic elements.

"It's another example of language evolution and convergence toward [a combination of] dynamic and static languages," he said. Hammond added that, "once you can get an ecosystem that can do both," and accommodate any situation, "there is pressure on other languages" to do the same.

Facebook said that it plans to support PHP over the long term, and, since HHVM supports both PHP and Hack, outside developers can use the runtime and "take advantage of Hack's new features incrementally."
 

Tell Us What You Think
Comment:

Name:

Jocy_19:

Posted: 2014-03-30 @ 7:38pm PT
great..!!



Protect 100% of your Data The prevalence of laptops and mobile devices in the enterprise makes corporate data increasingly vulnerable to loss and breach. And yet, workforce productivity is now inextricably linked to mobility. Click here to access the white paper "Top 10 Endpoint Backup Mistakes" to learn more about how to confidently protect data across platforms and devices while also providing features designed to enhance the end user experience.


 Cloud Computing
1.   Concerto 2200: Dedupe, Compression
2.   Office 365 Tailored for Attorneys
3.   Apple Opens China iCloud Data Center
4.   Samsung Buys SmartThings
5.   Cisco Axes 6,000 Employees


advertisement
Concerto 2200: Dedupe, Compression
Firms save money by saving space.
Average Rating:
Samsung Buys SmartThings
To allow people, appliances to interact.
Average Rating:
Cisco Axes 6,000 Employees
Company is facing declining profits.
Average Rating:


advertisement
Product Information and Resources for Technology You Can Use To Boost Your Business

Network Security Spotlight
Cost of Target Data Breach: $148 Million Plus Loss of Trust
The now infamous Target data breach is still costing the company -- and its shareholders -- plenty. In fact, the retailing giant forecast the December 2013 incident cost shareholders $148 million.
 
Aruba Networks Handles Black Hat with Aplomb
It's not an easy job. Aruba Networks' task throughout the Black Hat USA conference in Las Vegas this month was to ensure thousands of attendees could connect without malicious attacks.
 
Chinese Hackers Nab Info on Millions of U.S. Patients
A group of Chinese hackers has stolen the personal information, including names and Social Security numbers, of about 4.5 million patients at hospitals operated by Community Health Systems.
 

Enterprise Hardware Spotlight
Three New Lenovo PCs Aimed at Business Users
Businesses everywhere want computing solutions that do more for less money, and Lenovo has unveiled three new desktop PCs that offer solid computing at a budget-minded price.
 
Aruba Networks Handles Black Hat with Aplomb
It's not an easy job. Aruba Networks' task throughout the Black Hat USA conference in Las Vegas this month was to ensure thousands of attendees could connect without malicious attacks.
 
Compression, Deduplication Come to Violin Concerto 2200
Violin Memory has announced that data deduplication and compression capabilities are now available on its Concerto 2200 solution. Typically, users will experience deduplication rates between 6:1 and 10:1.
 

Mobile Technology Spotlight
Apple Stock Soars Ahead of iPhone 6 Launch
The imminent release of the iPhone 6 -- and maybe even an iWatch -- has sent Apple's stock soaring to new heights. Considering what else the firm could have up its sleeve -- the stratosphere may be the limit.
 
HTC Debuts Windows Phone Version of One M8 Smartphone
HTC is bringing the Windows Phone mobile OS to its flagship One M8 device -- the first time any mainstream flagship smartphone has been offered with a choice of operating systems.
 
Verizon Earns Top Rating in Mobile Network Comparison
A new report says Verizon Wireless was the top-performing U.S. cellphone service provider in the first half of 2014, on a nationwide and state-by-state basis, as well as in metro areas.
 

Navigation
NewsFactor Network
Home/Top News | Enterprise I.T. | Cloud Computing | Applications | Hardware | Mobile Tech | Big Data | Communications
World Wide Web | Network Security | Data Storage | CRM Systems | Microsoft/Windows | Apple/Mac | Linux/Open Source | Personal Tech
Press Releases
NewsFactor Network Enterprise I.T. Sites
NewsFactor Technology News | Enterprise Security Today | CRM Daily

NewsFactor Business and Innovation Sites
Sci-Tech Today | NewsFactor Business Report

NewsFactor Services
FreeNewsFeed | Free Newsletters

About NewsFactor Network | How To Contact Us | Article Reprints | Careers @ NewsFactor | Services for PR Pros | Top Tech Wire | How To Advertise

Privacy Policy | Terms of Service
© Copyright 2000-2014 NewsFactor Network. All rights reserved. Article rating technology by Blogowogo. Member of Accuserve Ad Network.