snipa
JF-Expert Member
- Dec 10, 2013
- 4,523
- 2,165
.
!Do you know?-Codebase that is
capable of running the largest
social networking website
Facebook is Hack.
It is hack but it has little to do with
hacking. Hack is a new
programming language designed
by Facebook that will lets
programmers build complex
websites and other software
quickly and most important
without Flaws.
We can say with complete
assurance that this has been as
battle-tested as it can possibly be,
Bryan OSullivan, the Facebook
engineer behind the language, said
in a statement.
According to the experts, Hack is a
new version of PHP, Mark started
building this when he started
Facebook.
Hack too runs on the Hip Hop
Virtual Machine but it lets coders
use both dynamic typing and static
typing.
FACEBOOK EXPLAINATION
Our principal addition is static
typing. We have developed a
system to annotate function
signatures and class members
with type information; our
type checking algorithm (the
type checker) infers the rest.
Type checking is incremental,
such that even in the same file,
some code can be converted to
Hack while the rest remains
PHP. Technically speaking, Hack
is a gradually typed language:
dynamically typed code
interoperates seamlessly with
statically typed code.
The Hack adds additional
features beyond static type
checking, including collections,
lambda expressions, and run
time enforcement of return
and additional parameter
types .We are delighted to
open-source both Hack and the
tools that we used to convert
our codebase ( http://
hacklang.org).
You edit a file and you reload a
web page and you immediately get
the feedback. You get both safety
and speed, OSullivan added.
.
credit to HACKING NEWS