Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

WordPress on HHVM + Hack

12,097 views

Published on

WordCamp Kansai 2015

Published in: Technology
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download Full EPUB Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download Full doc Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download PDF EBOOK here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download EPUB Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download doc Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

WordPress on HHVM + Hack

  1. 1. WordPress on
 HHVM + Hack WordCamp Kansai 2015 Takayuki Miyauchi
  2. 2. 自己紹介
  3. 3. My WordPress Plugins
  4. 4. vccw.cc
  5. 5. DigitalCube Inc. en.digitalcube.jp AWS Advanced Consulting Partner
  6. 6. Facebook社が開発した PHP及びHack言語の実行環境
  7. 7. Hack言語?
  8. 8. http://hacklang.org/
  9. 9. <?php
  10. 10. <?hh
  11. 11. 静的型付言語
  12. 12. <?hh function my_func( int $a ): int { return $a + 1; } my_func( 'hoge' ); // Fatal Error my_func( '10' ); // Fatal Error my_func( 10 ); // OK
  13. 13. <?hh function my_func( int $a ): int { return 'Hello'; // Fatal Error }
  14. 14. PHPと互換性あり
  15. 15. PHPからrequire()が可能 WordPressプラグインで 利用可能!
  16. 16. <?php /* Plugin Name: Hack WP */ if ( is_hhvm() ) { require_once( dirname( __FILE__ ) . '/lib/hhwp.hh' ); add_filter( 'the_content', 'hoge' ); } function is_hhvm() { return preg_match( "/-hhvm$/", phpversion() ); }
  17. 17. <?hh function hoge( string $content ) : string { // do something return $content; }
  18. 18. 非同期処理
  19. 19. ロード時間
  20. 20. 非同期で実行すれば大幅なパフォーマンスアップ
  21. 21. <?hh async function hello(): Awaitable<string> { // do something return "Hello World"; } $a = hello(); $a->getWaitHandle()->join(); // Hello World
  22. 22. Thanks!

×