Tag Archives: php

Amazon Athena 可以透過 ODBC 連接了

Amazon Athena 支援 ODBC 了 (先前直接連結只支援 JDBC):「Amazon Athena adds support for querying data using an ODBC driver」。 With the availability of a new ODBC driver, you can now connect popular business intelligence tools to Athena. This allows you to report … Continue reading

Posted in AWS, Cloud, Computer, Database, Murmuring, Network, Programming, Service, Software|Tagged , , , , , , , , , , , , |Leave a comment

PHP {7.1,7.0,5.6} 總算成為主流了...

PHP {7.1,7.0,5.6} (至少有安全性支援的版本) 佔了 90% 以上的量... 至少是有用 Composer 族群的主流了:「PHP Versions Stats - 2017.2 Edition」。 All versions Grouped PHP 7.1.10 11.63% PHP 7.1 36.63% (+18.99) PHP 7.0.22 7.95% PHP 7.0 30.76% (-5.36) PHP 5.6.31 7.38% PHP 5.6 23.28% (-8.16) PHP 5.6.30 … Continue reading

Posted in Computer, Murmuring, Network, Programming, Security, Software, WWW|Tagged , , , |Leave a comment

PHP 7.3 的 function 也會支援 trailing comma 了

這投票殺來殺去了好幾次才過,從 PHP 7.3 開始在 function 呼叫時就能接受 trailing comma 了:「PHP RFC: Allow a trailing comma in function calls」。 Wait, didn't we just vote on this? Yes, there was an RFC to add trailing commas to all list syntax in PHP 7.2. … Continue reading

Posted in Computer, Murmuring, Programming|Tagged , , , |Leave a comment

PHP-FIG 成立官方網誌

Twitter 上看到 PHP-FIG 成立 official blog「PHP FIG」了,放在 Medium 上: The PHP FIG has a new official blog! https://t.co/3IuBvYABEA Follow it (or us here on twitter) to get the latest FOG updates and more. — PHP-FIG (@phpfig) October 23, 2017 另外有更正說明的 … Continue reading

Posted in Blog, Computer, Murmuring, Network, Programming|Tagged , , , , |Leave a comment

PHP 7.3 的 json_decode() 將會用 Exception 處理錯誤

在「PHP: rfc:json_throw_on_error」這邊提到 PHP 7.3 會解決 json_decode() 發生錯誤時的處理方式: PHP has two functions for dealing with JSON, json_decode() and json_encode(). Unfortunately, both have suboptimal error handling. json_decode() returns null upon erroring, but null is also a possible valid result (if decoding the … Continue reading

Posted in Computer, Murmuring, Programming, Software|Tagged , , , |Leave a comment

PHP 7.2 的效能改善

作者在「PHP 7.1 vs 7.2 Benchmarks (with Docker and Symfony Flex)」這邊拿 Symfony 測試 PHP 7.2 的效能,發現效能提昇主要來自於多個連線時的情境: 前面的數字是前端頁面 (用了 Twig),後面的數字是純 API 呼叫。都可以看出 conc = 1 時其實沒有顯著差異,但只要有多個連線同時存取時,效能的提昇就會展現出來。對於繁忙的站台感覺會有不少幫助... 作者的猜測是 opcache 模組的改善,也就是在這段提到的: - Opcache: . Added global optimisation passes based on data flow analysis using … Continue reading

Posted in Computer, Murmuring, Network, Programming, Service, Software, WWW|Tagged , , , , |Leave a comment

HHVM 的後續

官方對於 HHVM 的未來提出了說明:「The Future of HHVM」。重點就是他們不打算以 PHP7 為目標,打算關起來自己玩...: Consequently, HHVM will not aim to target PHP7. The HHVM team believes that we have a clear path toward making Hack a fantastic language for web development, untethered from its PHP origins. … Continue reading

Posted in Computer, Murmuring, Programming|Tagged , , , , , , |Leave a comment

Laravel 5.5 釋出,第二個 LTS 版本

Laravel 推出第二個 LTS 版本,5.5 版:「Laravel 5.5 LTS is Now Released」。 當初 Taylor Otwell 對 LTS 還蠻感冒的 (參考去年的 tweet),居然推出了... nah i don't think so. LTS is sort of an anti-pattern IMO. — Taylor Otwell (@taylorotwell) December 16, 2016 有 LTS 對於商業應用的維護來說還是方便不少... … Continue reading

Posted in Computer, Library, Murmuring, Programming, Software|Tagged , , , , |Leave a comment

Symfony 4 將放棄 HHVM

PHP 7.x 的效能已經趕上 HHVM (甚至在某些項目超越,參考下面的連結),這使得後來大家為了相容性與擴充性的考量,HHVM 的社群一直沒有成長 (參考「PHP Versions Stats - 2017.1 Edition」這邊,作者從 packagist.org 上得到的數據): PTS: PHP 7.1 vs. PHP 7.0 vs. HHVM Benchmarks HHVM vs PHP 7 – The Competition Gets Closer! 這使得 Symfony 決定在 Twitter 上蒐集意見,而後決定下一個 major version (4) … Continue reading

Posted in Computer, Murmuring, Programming, Software|Tagged , , , , , , , , , |1 Comment

PHP 的主力版本進入 7.0 與 7.1 了...

在「PHP Versions Stats - 2017.1 Edition」這邊分析了 Packagist 上的 access log 而得到的: 可以看到 PHP 7.0 與 7.1 總算是慢慢爬上來了... 另外一個頗有趣的數字是在 comment 提到的 HHVM: @ocramius: These numbers ignore Travis CI and other CI systems that set the "CI" env var in their workers. … Continue reading

Posted in Computer, Murmuring, Network, Programming, Security, Software|Tagged , , , , , |Leave a comment