SlideShare a Scribd company logo
1 of 25
Download to read offline
HHVM - ENTRE NESSE RITMO
SOBRE MIM
DEVELOPER POR AMOR HA MAIS DE 5 ANOS
ZEND CERTIFIED ENGINEER DESDE 2013
APAIXONADO POR TECNOLOGIA
HHVM - O QUE EH ?
HHVM - HIP HOP VIRTUAL MACHINE
ESCRITA PELO FACEBOOK
DESENVOLVIDA EM C++, PHP E OCALM
POSSUI UMA LINGUAGEM OPICIONAL CHAMADA
“HACK”
OBJETIVO: SER MUITO MAIS RAPIDA QUE O “ZEND”
PHP E SER COMPATIVEL COM ELE
UM POUCO DE HISTORIA!!
2008 - HPHPc , HPHPi, HPHPd
2010 - HHVM - Suporte a PHP 5.4
2013 - HPHPc DEPRECIADO
COMPATIBILIDADE
UNIX BASED OS 

(SE VOCE PREFERE WINDOWS, USE O VAGRANT)
NGINX e APACHE
PHP 5.4
LIBRARIES: COMPOSER, DOCTRINE, MONOLOG,
TWIG, GUZZLE, REACTPHP, PHPUNIT.
FRAMEWORKS: SYMFONY, DRUPAL, CODEIGINITER,
CAKEPHP, LARAVEL, SILEX, SLIM, ETC.
COMO A HHVM
FUNCIONA ?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
???
?
?
?
?
?
CONTEXTUALIZANDO…
HIP HOP BYTECODE
MACHINE CODE
JUST IN TIME COMPILER (JIT)
ABSTRACT SYNTAX TREE (AST)
PHP AST HHBC
MACHINE
CODE
JIT
HACK AST HHBC
MACHINE
CODE
JIT
ALGUNS GRAFICOS QUE
IRÃO TE CONVENCER
REQUISIÇÕES POR MINUTO
(REQUISIÇÕES DE RÁPIDA RESPOSTA)
REQUISIÇÕES POR MINUTO
(REQUISIÇÕES DE LONGA RESPOSTA)
NÃO SURPREENDIDO?
TEMPO DE RESPOSTA EM MS
(REQUISIÇÃO DE RÁPIDA RESPOSTA)
TEMPO DE RESPOSTA EM MS
(REQUISIÇÃO DE LONGA DURAÇÃO)
INSTALAÇÃO - DEBIAN BASED
deb http://dl.hhvm.com/ubuntu saucy main !
apt-get update!
apt-get install hhvm!
/etc/init.d/hhvm start!


#no config do nginx!
location ~ .php$ {!
fastcgi_index index.php;!
fastcgi_keep_conn on;!
include /etc/nginx/fastcgi_params;!
fastcgi_pass 127.0.0.1:9000;!
fastcgi_param SCRIPT_FILENAME !
$document_root$fastcgi_script_name;!
}
INTALAÇÃO - Mac OS X
brew tap homebrew/dupes !
brew tap homebrew/versions!
brew tap mcuadros/homebrew-hhvm!
brew install hhvm !


#no config do nginx!
location ~ .php$ {!
fastcgi_index index.php;!
fastcgi_keep_conn on;!
include /etc/nginx/fastcgi_params;!
fastcgi_pass 127.0.0.1:9000;!
fastcgi_param SCRIPT_FILENAME !
$document_root$fastcgi_script_name;!
}
INSTALAÇÃO - WINDOWS
MAS AINDA FALTA UMA
COISA…
HACK
MODOS
STRICT “<?hh /strict ”
PARTIAL “<?hh /partial” - DEFAULT
TYPE ANNOTATIONS
GENERICS
COLLECTIONS
GENERATORS
CLOSURES
ASYNC
OBRIGADO!
contato@leviferreira.com
@leviferreira - github

More Related Content

Viewers also liked

Viewers also liked (20)

TDC2016SP - Dinâmica e Facilitações
TDC2016SP - Dinâmica e FacilitaçõesTDC2016SP - Dinâmica e Facilitações
TDC2016SP - Dinâmica e Facilitações
 
TDC2016SP - Trilha Mobile
TDC2016SP - Trilha MobileTDC2016SP - Trilha Mobile
TDC2016SP - Trilha Mobile
 
TDC2016SP - Protocolo Firmata - controle o Arduino com sua linguagem favorita
TDC2016SP - Protocolo Firmata - controle o Arduino com sua linguagem favoritaTDC2016SP - Protocolo Firmata - controle o Arduino com sua linguagem favorita
TDC2016SP - Protocolo Firmata - controle o Arduino com sua linguagem favorita
 
A Gradle Story
A Gradle StoryA Gradle Story
A Gradle Story
 
TDC2016SP - Trilha Node.Js
TDC2016SP - Trilha Node.JsTDC2016SP - Trilha Node.Js
TDC2016SP - Trilha Node.Js
 
TDC2016SP - Dinâmica e Facilitações
TDC2016SP - Dinâmica e FacilitaçõesTDC2016SP - Dinâmica e Facilitações
TDC2016SP - Dinâmica e Facilitações
 
TDC2016SP - Mobile and APIs - Como a Mágica Acontece
TDC2016SP - Mobile and APIs - Como a Mágica AconteceTDC2016SP - Mobile and APIs - Como a Mágica Acontece
TDC2016SP - Mobile and APIs - Como a Mágica Acontece
 
Devs dando pitacos
Devs dando pitacosDevs dando pitacos
Devs dando pitacos
 
TDC2016SP - Trilha Node.Js
TDC2016SP - Trilha Node.JsTDC2016SP - Trilha Node.Js
TDC2016SP - Trilha Node.Js
 
TDC2016SP - Kotlin 1.0: Evolua seu código Java
TDC2016SP - Kotlin 1.0: Evolua seu código JavaTDC2016SP - Kotlin 1.0: Evolua seu código Java
TDC2016SP - Kotlin 1.0: Evolua seu código Java
 
TDC2016SP - Trilha Embarcados
TDC2016SP - Trilha EmbarcadosTDC2016SP - Trilha Embarcados
TDC2016SP - Trilha Embarcados
 
Usando POP com Programação Funcional
Usando POP com Programação FuncionalUsando POP com Programação Funcional
Usando POP com Programação Funcional
 
TDC2016SP - Trilha Node.Js
TDC2016SP - Trilha Node.JsTDC2016SP - Trilha Node.Js
TDC2016SP - Trilha Node.Js
 
TDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQLTDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQL
 
TDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQLTDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQL
 
TDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQLTDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQL
 
TDC2016SP - Dinâmica e Facilitações
TDC2016SP - Dinâmica e FacilitaçõesTDC2016SP - Dinâmica e Facilitações
TDC2016SP - Dinâmica e Facilitações
 
TDC2016SP - Trilha DevOps Java
TDC2016SP - Trilha DevOps JavaTDC2016SP - Trilha DevOps Java
TDC2016SP - Trilha DevOps Java
 
TDC2016SP - Trilha Startups
TDC2016SP - Trilha StartupsTDC2016SP - Trilha Startups
TDC2016SP - Trilha Startups
 
TDC2016SP - Trilha Impressão 3D
TDC2016SP - Trilha Impressão 3DTDC2016SP - Trilha Impressão 3D
TDC2016SP - Trilha Impressão 3D
 

Similar to HHVM - Entre Nesse Ritmo - TDC Florianopolis 2014

Php(2)
Php(2)Php(2)
Php(2)
tomcoh
 
Php courses in cegonsoft
Php courses in cegonsoftPhp courses in cegonsoft
Php courses in cegonsoft
sathyancegonsoft
 
PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...
PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...
PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...
sathyancegonsoft
 
PHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and FrameworksPHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and Frameworks
Royston Olivera
 

Similar to HHVM - Entre Nesse Ritmo - TDC Florianopolis 2014 (20)

01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
 
Php(2)
Php(2)Php(2)
Php(2)
 
Php courses in cegonsoft
Php courses in cegonsoftPhp courses in cegonsoft
Php courses in cegonsoft
 
PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...
PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...
PHP training institutes in gandhipuram | PHP course in coimbatore | PHP train...
 
PHP
PHPPHP
PHP
 
Php
PhpPhp
Php
 
Basic php
Basic phpBasic php
Basic php
 
PHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and FrameworksPHP - History, Introduction, Summary, Extensions and Frameworks
PHP - History, Introduction, Summary, Extensions and Frameworks
 
Hack and HHVM
Hack and HHVMHack and HHVM
Hack and HHVM
 
PHP Doesn't Suck
PHP Doesn't SuckPHP Doesn't Suck
PHP Doesn't Suck
 
Php
PhpPhp
Php
 
PHP Web Development.pdf
PHP Web Development.pdfPHP Web Development.pdf
PHP Web Development.pdf
 
Php myths
Php mythsPhp myths
Php myths
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
PHP for web development
PHP for web development PHP for web development
PHP for web development
 
PHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor IntroductionPHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor Introduction
 
PHP TRAINING
PHP TRAININGPHP TRAINING
PHP TRAINING
 
Orange scrum – project management tool journey, with the evolution of php
Orange scrum – project management tool journey, with the evolution of phpOrange scrum – project management tool journey, with the evolution of php
Orange scrum – project management tool journey, with the evolution of php
 
Hhvm vs php
Hhvm vs phpHhvm vs php
Hhvm vs php
 
Php vs asp.net
Php vs asp.netPhp vs asp.net
Php vs asp.net
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

HHVM - Entre Nesse Ritmo - TDC Florianopolis 2014