News for hackers. Stuff that matters.
Re:Go from PHP engineer's perspective by atrudeau on Thursday February 25, 2016 @06:03PM (#11178563)
Another poster riding the Go unicorn. You'll enjoy the ride until you realize your ugly as hell chimera monstrosity got you from A to B a lot faster.
Re:Go from PHP engineer's perspective by koberstein on Thursday February 25, 2016 @06:40PM (#11178764)
"It was never recommended to decompose a system into microservices while it is not mature enough. While small, a business has to be flexible and react quickly to the opportunities in the market. This is not an ideal environment for building microservices, and more benefits can be achieved by having a monolith instead. PHP with its ecosystem perfectly fits into this strategy."
Re:Go from PHP engineer's perspective by ursus_bonum on Thursday February 25, 2016 @06:41PM (#11178766)
^ nominated for most confusing comment.
Re:Go from PHP engineer's perspective by onetwotree on Thursday February 25, 2016 @07:20PM (#11178974)
Java, Python, and even Ruby [1] can get you under 10ms for service responses that actually hit a database, in my experience. But why improve performance by switching to a language that's well suited to the task at hand when you can do it by switching to a language that's hip?

[1] My company ran into a problem where one of our Ruby service responses was taking something about 100ms. We ruled out the database, and the ruby code, and finally discovered that the problem was jumping back and forth between Ruby and C while generating the JSON response from model classes with customized `to_json` behavior. We solved it by traversing the structure in Ruby and turning it into Arrays and Hashes. Back down under 10ms!

Re:Go from PHP engineer's perspective by vpkaihla on Friday February 26, 2016 @06:48AM (#11180936)
> But why improve performance by switching to a language that's well suited to the task at hand when you can do it by switching to a language that's hip?

Because your question is loaded?

Re:Go from PHP engineer's perspective by brianwawok on Thursday February 25, 2016 @09:05PM (#11179391)
With some work you can write some Java that will easily take a message, parse it, do logic, and reply in under .1ms. Not that useful for a webapp though, databases are kinda cool.
Re:Go from PHP engineer's perspective by williamdunne on Friday February 26, 2016 @07:40AM (#11181056)
With Java you can receive an order, parse it, submit it to your trading engine, persist it, match it, and return the response in less than 4ms

https://www.lmax.com/execution-performance

Re:Go from PHP engineer's perspective by brianwawok on Friday February 26, 2016 @10:22AM (#11181788)
I worked on trading engines in a past life and worked with good ol Martin. You can do all of that in under a ms these days.
Re:Go from PHP engineer's perspective by alexandercrohde on Friday February 26, 2016 @01:13AM (#11180065)
On the criticisms of PHP on swap, those are way out of date. Swap in php:

list(a, b) = [b, a]

Multiple return values:

[a, b] = function(){ return ["one value", "another"];};

Re:Go from PHP engineer's perspective by TazeTSchnitzel on Friday February 26, 2016 @06:42AM (#11180914)
Er, that should be:

  list($a, $b) = [$b, $a];

  list($a, $b) = (function(){ return ["one value", "another"];})();
Anyway, it's not even out-of-date, just ignorant. PHP has list() for at least 16 years.