Skip to content
Techie News UK Logo
Menu
  • Home
Menu

Facebook’s ‘Hack’ programming language allows for faster, bug-free coding

Posted on 21 March 2014

Facebook has rolled out a new programming language called Hack, an open-source language for programmers, which it claims will speed up programming while also making it easier to catch errors in code at a faster pace.

Engineers Bryan O’Sullivan, Julien Verlaguet, and Alok Menghrajani, have been developing ‘Hack’ for the HHVM platform to eliminate errors in its massive codes.

Facebook migrated almost its entire codebase to Hack over the last year. The company has now released an open-source version of Hack for the developers.

Facebook wrote in a blog “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. We believed there had to be a sweet spot.”

“Thus, Hack was born. We believe that it offers the best of both dynamically typed and statically typed languages, and that it will be valuable to projects of all sizes.”

The key difference in Hack programming language is how it handles checking of data types for consistency. This is the essential feature of any programming language to avoid bugs that can crash a program or deliver unexpected output.

PHP does this checking dynamically, while other programming language such C, does the static typing – a method of checking when a program is compiled, even before it actually runs.

“PHP type system doesn’t do anything until the program is running … you find out about logical errors when the site is live,” Bryan O’Sullivan said. “What Hack does is it checks these kinds of errors ahead of time, before you ship off the computer you’re developing on. You can catch errors quickly.”

O’Sullivan also noted that the company is planning to “work closely with the open-source community,” to further develop the language.

Ruby
Ruby

1 thought on “Facebook’s ‘Hack’ programming language allows for faster, bug-free coding”

  1. BacchusPlateau says:
    23 March 2014 at 15:28

    So the big news is that FB engineers invented lint for PHP? Is that such a huge innovation?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Norton Secure VPN Ad

Advertisement

Recent Posts

  • Most Watched Netflix Movies in the UK
  • 4 Best British Technology and Science YouTube Channels
  • Most Watched Netflix Movies in Ireland
  • 5 Weird Things That Surprise Tourist About Technology in Ireland
  • British And Irish Science Influencers on TikTok
Norton Secure VPN Ad

Advertisement

Categories

  • Apple
  • Apps
  • Books
  • Business
  • Cars
  • Cloud
  • Compliance
  • Entertainment
  • Featured
  • Future Tech
  • Gadgets
  • Gaming
  • General Tech
  • Global Tech News
  • Health
  • History
  • Industry Voice
  • Influencers
  • Management
  • Mobile
  • Open Source
  • Podcasts
  • Public Sector
  • Roundup
  • Science
  • Security
  • Software
  • Tablets
  • Techie Deals
  • Technology
  • UK & Ireland Tech News
  • Web
  • World
  • WTF
©2025 Techie News (UK and Ireland) | techienews.co.uk   Privacy Policy | Terms of Use | ***DMCA Policy***    🇬🇧 🇮🇪
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT