PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Hack

Hack

Hack is a pl created in 2014 by Julien Verlaguet and Alok Menghrajani and Drew Paroski.

#159on PLDB 8Years Old 1.4kUsers
27Books 3Papers 68kRepos

Try now: Riju

Hack is a programming language for the HipHop Virtual Machine (HHVM), created by Facebook as a dialect of PHP. The language implementation is open-source, licensed under the BSD License. Hack allows programmers to use both dynamic typing and static typing. Read more on Wikipedia...


Example from Riju:
<<__EntryPoint>> function main(): void { echo "Hello, world!\n"; }
Example from hello-world:
<?hh echo "Hello World";
Example from the Hello World Collection:
<?hh // Hello world in Hack echo 'Hello World';
Example from Linguist:
<?hh // strict /** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ function startup(): void { setup_errors(); }
Example from Wikipedia:
<?hh // Hack functions are annotated with types. function negate(bool $x): bool { return !$x; }

Language features

Feature Supported Example Token
Strings
"Hello world"
"
MultiLine Comments
/* A comment
*/
/* */
Print() Debugging echo
Comments
// A comment
Line Comments
// A comment
//
First-Class Functions
Semantic Indentation ϴ

Books about Hack from ISBNdb

title authors year publisher
Hack Proofing Your Web Applications Syngress and Forristal, Jeff 2001 Syngress
Hack and HHVM: Programming Productivity Without Breaking Things Yamauchi, Owen 2015 O'Reilly Media
Hack Proofing Sun Solaris 8 Syngress and Mitchell, Ed and Dubrawsky, Ido and Miles, Wyman and Lynch, F. William 2001 Syngress
Hack Proofing Your Ecommerce Site L. Brent Huston and Teri Bidwell and Ryan Russell and Robin Walshaw and Oliver Steudler 2001 Syngress
Raspberry Pi Projects for Kids: Create an MP3 Player, Mod Minecraft, Hack Radio Waves, and More! Aldred, Dan 2019 No Starch Press
"Hacking With Kali Linux: The Practical Beginner's Guide to Learn How To Hack With Kali Linux in One Day Step-by-Step (#2020 Updated Version https://isbndb.com/book/9781703885675 Tudor, Steve 2019 Independently published
How To Analyze People: Learn How To Read People And Improve Your Empathic, Mind-control And Body Language Skills To Develop A Deeper Understanding Of Human Relationships And To Hack Others' Thought Johnson, Adam 2019 Independently Published
Hack Audio: An Introduction to Computer Programming and Digital Signal Processing in MATLAB (Audio Engineering Society Presents) Tarr, Eric 2018 Routledge
Raspberry Pi Projects for Kids: Create an MP3 Player, Mod Minecraft, Hack Radio Waves, and More! Aldred, Dan 2019 No Starch Press
Hack the Stack: Using Snort and Ethereal to Master The 8 Layers of An Insecure Network Michael Gregg and Stephen Watkins and George Mays and Chris Ries and Ronald M. Bandes and Brandon Franklin 2006 Syngress
Hack Proofing Your Network (Second Edition) Ryan Russell and Dan Kaminsky and Rain Forest Puppy and Joe Grand and K2 and David Ahmad and Hal Flynn and Ido Dubrawsky and Steve W. Manzuik and Ryan Permeh 2002 Syngress
Hack Audio: An Introduction to Computer Programming and Digital Signal Processing in MATLAB (Audio Engineering Society Presents) Tarr, Eric 2018 Routledge
Hack Proofing ColdFusion Steve Casco and Rob Rusher and Greg Meyer and Sarge and David Vaccaro and David An 2002 Syngress
Hack Proofing Linux : A Guide to Open Source Security Stanger, James and Lane, Patrick T. 2001 Syngress
Python Programming Crash Course: Master Python From Zero Without Headaches Supported by Professional Instructions. The Non-Binding Guide to Hack Python in 2021. 2021 Charlie Creative Lab
Hack Proofing Your Network Syngress 2002 Syngress
Getting to Know Hackety Hack (Code Power: A Teen Programmer’s Guide, 2) Rauf, Don 2014 Rosen Young Adult
Hacking: Become a World Class Hacker, Hack Any Password, Program Or System With Proven Strategies and Tricks Studios, Hacking 2020 Hacking and Programming for Beginners
Hack Audio Eric Tarr 20180628 Taylor & Francis
Art Hack Practice Loren David Calder 20191029 Taylor & Francis
Hack and HHVM Owen Yamauchi 20150902 O'Reilly Media, Inc.
Hack and HHVM Owen Yamauchi 20150902 O'Reilly Media, Inc.
The Happiness Hack Ellen Petry Leanse 20171107 Sourcebooks
The Mind Hack Recipe Jason Mangrum 20170707 Open Road Integrated Media, Inc.
Getting to Know Hackety Hack Don Rauf 20140715 Rosen Publishing
Art Hack Practice: Critical Intersections Of Art, Innovation And The Maker Movement Bradbury, Victoria and O'hara, Suzy 2020 Routledge
Nlp: Neuro-linguistic Programming: Techniques For Your Best Self: Hack Your Mind For Healthier Relationships, More Self-con Wright and Avery 2019 Independently Published

Publications about Hack from Semantic Scholar

title authors year citations influentialCitations
Hack weeks as a model for data science education and collaboration D. Huppenkothen and A. Arendt and D. Hogg and Karthik Ram and J. Vanderplas and A. Rokem 2017 36 3
HHVM JIT: a profile-guided, region-based compiler for PHP and Hack Guilherme Ottoni 2018 30 5
“Serenade Tower” Hack and Slash Game Leonardo and Jeanny Pragantha and Darius Andana Haris 2020 1 0
flux.html · hack.html · dot.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com