« first day (854 days earlier)      last day (4094 days later) » 

12:01 PM
I am feeling sick too have mad promise to finish work today so working for last 10 hour ..and now unable to see monitor ...
 
@Baba morning
@Baba which of them?
 
@Charlie , don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
@NikiC missing fromArray in the other data types
 
@NullPointer I know that feeling. When migrating a site 2 weeks ago. MySQL got wack and changed everything to MyISAM. Only by accident I noticed it yesterday. Had to manually fix the engine and fix all constraints :(
 
Anonymous
oop is poo
 
12:04 PM
Did I already mention mysql sucks?
Because it does
 
21 hours ago, by PeeHaa
GOOOOOOOD. MYSQL SUCKSSSSSSS
 
@tereško: We Planed to create a same system for variety of customers . Highly paid -> large system. Medium paid -> small paid. low paid -> low paid
 
for first two i choosed symfony2
 
12:06 PM
@NikiC can i ask you why you voted NO for array_column ?
@PeeHaa you too
 
@Baba unnecessary
 
last one Some average technique . Which one is easy PDO or mysqli
 
@gowri Isn't it just a matter of features rather than what the backend looks like?
Good as useless
 
@NikiC unnecessary ? I was think PHP is about flexibility .. they are so many question in SO that relates to that
 
@gowri imho, PDO has better tutorials wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers and supports more then one RDBMS
 
12:07 PM
@Baba ^
 
@Baba I really fail to see what good it does. I don't think we need a function for everything somebody can come up with. Which also can easily be done in userland
 
Features also. we had question why should we provide high constructive code some one pay 500 USD worth of 3000 USD
 
@gowri Because you have to maintain it later?
 
@Baba array_column solves just one out of many scenarios. E.g. it can get keys from arrays, but it can't get properties from objects (and also can't get getFoo() style properties)
 
12:09 PM
@gowri for me, to choose symfony2 as framework for development, there would have to be very specific requirements met: large project, multiple developers, more then half of developers with sf2 experience. And it should not be the first project ever written with SF2 in that team.
 
@tereško Thanks man!
 
@NikiC that is a valid point .... I need comments is now necessary when voting
 
@Baba that sounds like function for everything .. .isnt it good leave some thing to do by looping
 
@NullPointer I just don't like the voting process
I wonder why github.com/nikic/scalar_objects is still a prove of concept
 
@Baba voting is good ? It give power to put point and disagree ?
 
what else could be better than voting ?
@PeeHaa lol
 
@PeeHaa lol
 
php project valuation is down under ? What else should i learn to stabilize myself
 
like google app engine,
 
12:15 PM
@PeeHaa It tells you that only when you are against something you actually bother to vote?
 
I get to see names have never seen before
 
voting is rights, democracy. No comments
 
@Baba that is really good point .
 
Does this look like a government agency ???
 
@gowri just say depends ..... some time people are over exited
 
12:17 PM
This is how PERL felt like they where on top and PHP took over
 
person is smart, people are stupid
 
@NikiC Nope. Not true. Only when I had time to actually follow internals on a subject and can pick an honest side and the subject is "close to me" I vote. But for some reason mostly when I have something to see about a topic it is either a no brainer or I'm on the "wrong" side :P
 
Levi Morrison
2013-01-26

As of now there is not another RFC for improved accessors. There has been some discussion on what were some blocks to it making it this time around and what we might be able to do to address those issues.

At the same time, I'm exploring completely different approaches and asking people what they like and do not like about them. Here's a 4 question survey of an attempt to use annotations as the delivery mechanism for accessors: gist.github.com/4628068 . (By the way, the feedback on that one has basically been: NO! PLEASE! ARGH! I personally really like the 
 
@tereško again i would just say depends ... however people are always stupid
 
what PHP needs is a single visions/goal/plan made by several of smartest people in the core team
 
12:20 PM
Don't you think suggesting approaches would be better than voting No ... that is why we need comments ... and if people can not suggest ideas before the voting parse .. let them not vote
 
@tereško Impossible
 
Hey, I used to do a lot of php but I haven't touched it in a while. A friend of mine is hiring developers for a large scale php project and he is looking for an idea for a small assignment to give applicants before the interview. Any ideas on what a practical php developer that has to work in a team of ~ 15 should know and be able to implement in a few hours?
 
I agree with @tereško 1000%
 
@Baba There is internals
 
ya like c# managed,smart
 
12:20 PM
@tereško despite our javascript disagreements I would really value your opinion on this
 
i was more going for "like freebsd is managed"
 
@PeeHaa on github ???
 
@Baba No the mailinglist
php internals
 
php is like drunked elephant can turn anywhere anytime
 
12:22 PM
php.internals is more like social experiment then a communication tool
 
@PeeHaa is that where they kill the future of PHP ?
 
yes
 
Some people try to do it yeah
@tereško lol
 
@tereško true very true ...lol
 
php is made using BDD and FDD ( as in "bureaucracy" and "flame" )
 
12:23 PM
Hi internals,

for PHP 5.5 a new DateTimeImmutable class was introduced, which is a
variant of DateTime, which has methods working on a clone of the original
object.

There was no RFC on this and some of the design decisions are a bit
uncleared to me, so I figured I'd write a mail:

a) The DateTimeImmutable class extends the DateTime class. Why was this
done this way? Both classes are incompatible (as in the inheritance
violates LSP). E.g. if you hint against DateTime, then passing in
DateTimeImmutable will not work (as the behavior is different). The same
You forgot to add no PHP Documentation
Is this how PHP would continue .... they is a limit to patching a software before it becomes a monster its self ... let have a goal .. like a 5 years plan
 
^^ this sort of stuff is probably why I stopped coding in php and migrated to .net. I would love some opinion on my question by the way.
 
What about an RFC process like SO? Where you have clear threads and people can vote on comments?
@BenjaminGruenbaum What stuff? You worked on core?
 
@PeeHaa and voting does not require to login
 
@PeeHaa not even close :(
 
@PeeHaa Nice ... i like that
 
12:27 PM
@PeeHaa I used to work as a backend developer in php, it was the easiest to learn, the easiest to use and the easiest to get work in when I started doing server-side.
 
@NullPointer Not sure about not having to login at all. But I do think the process may be more open to the public (a.k.a. the people at large who will actually have to work with it).
@BenjaminGruenbaum Ah k
 
@BenjaminGruenbaum It depends ... am sure you did not learn patterns in PHP .. the issue is that most developers learn echo "Hello World so they think they fully understand PHP
 
@Baba I spent quite a lot of time with php :) Let me assure you I did not just learn echo "Hello World" :P
 
@Baba i know even some they even dont know data structure and presents them self as php expert
 
@BenjaminGruenbaum In your time of working with php how many PHP Datastructures did you use in production ?
@NullPointer you are right
 
12:32 PM
@Baba I don't know how that is relevant, and I'm not sure what you mean by data types, are you referring to stuff like SplHeap and SplQueue ?
 
@NullPointer : because guy is best in office. In region avg developer. In international standard . they are considered as developer imo.
* not considered as dev
 
@BenjaminGruenbaum Yeah stuff like that :)
 
@Baba then plenty, but I don't see how that is relevant. In C# I rarely use anything but enumerables, Queues and Lists.
And concurrent datastructures when threading, but I rarely use those either because C# abstracts them.
As long as I kept/keep interaction with the user through something persistent like a database I don't usually need to use concurrent data structures in server side code.
 
@BenjaminGruenbaum As long as I kept/keep interaction with the user through something persistent like a database ???
 
@Baba I was referring to concurrent data structures, stuff multiple threads can interact with
@Baba for example if I have two users that want to each consume something from a queue of data (like in stackoverflow's 'review' system) I need to make sure they don't process the same thing. I can either solve this with a concurrentQueue that doesn't let two people consume/insert at the same time, or I can use a persistent storage that takes care of it for me.
@Baba I would really love some feedback on my original question though (small assignment before interview)
 
12:41 PM
@BenjaminGruenbaum you want to make this C# vs PHP but i would allow you to
 
@BenjaminGruenbaum version control knowledge is a MUST
 
@Baba I don't want to make it C# vs php :/ I just came in to get advice since I'm far from a php guru and you probably all know much more php than me
 
Right after the ability to communicate
 
@PeeHaa I agree on both, (well, at least understanding the importance of version control) but those two seem like interview questions and not pre-interview assignments
Like @Baba said, he currently gets a lot of applicants that think they know php because they read a tutorial on how mysql_* functions work and can echo "Hello World". He would like to filter those before spending hours interviewing them
 
@BenjaminGruenbaum Well if someone would apply to me for a job in a team I first need to know whether he/she can use version control otherwise it would only be a waste of time
 
12:44 PM
@PeeHaa lol
 
get on the phone and ask them some basic seeming questions. I find you can tell in about 10 minutes what kind of dev you're dealing with
 
@PeeHaa teaching someone how to use svn/git takes about an hour :)
 
@BenjaminGruenbaum It´s not just about that. It´s to get an idea of what kind of dev somebody is
 
@ircmaxell the problem is that my friend himself isn't very good with php which is why he asked me. I'm not sure I could tell myself in 10 minutes since I'm not a very good php programmer.
 
@BenjaminGruenbaum the skill, sure. But do you really want to employ someone who needed to be taught that particular one? IMHO it's such a critical skill that if I need to teach them that, they have already failed
 
12:45 PM
^ spot on.
 
@BenjaminGruenbaum I don't care about someone being a good php programmer. I'm looking to see if they are a good programmer in general. I don't care the language...
 
@ircmaxell +1
 
@ircmaxell server side programming is very different from other types of programming, a server side programmer needs to understand a lot of concepts other developers have no interests in.
 
@BenjaminGruenbaum I disagree there. There are differences, but in my experience they are usually implementation detail differences. Not conceptual ones...
 
While I agree that version control is something very basic, I'm not sure I should be filtering people on that. One can be a good programmer that grew in a company with bad habits. I would like to give them an assignment that shows me they are capable of a very basic task in php
 
12:47 PM
@BenjaminGruenbaum It's about the process of filtering the idiots from the people who might not waste your time
 
@BenjaminGruenbaum what do you mean by server side programming is very different ???
 
It's just a basic criteria. Which is exactly what you need to find out for the job.
 
@ircmaxell @Baba Someone could have spent years coding drivers in C, that someone could be a great programmer but would have no idea what OOP is, would not understand how a dynamic language works, would not understand how to performance works in that environment, would not know coding practices, and would not understand the HTTP protocol to an even basic extent
 
^
 
You don't need best coding practices when coding drivers in C?
 
12:49 PM
To be honest I'm not sure how important that is in PHP but I see unqualified good programmers when hiring javascript developers all the time.
 
@BenjaminGruenbaum Rare exception. How many people do you know that code drivers in C?
 
@PeeHaa you do, but they are different coding practices
 
@BenjaminGruenbaum true, but he understands problem solving and the concepts of programming. Which means that I can teach that person relevant concepts, and they can become a very good web dev with reasonably little effort...
 
@NikiC I studied in the Hebrew University, it has an intel factory a few miles across, so I know about 50
:)
 
@BenjaminGruenbaum crap ^^
 
12:50 PM
@NikiC I interviewed a guy who wrote mainframe kernels in assembler, and then decided to use Drupal instead...
 
hehe
 
@ircmaxell I absolutely agree, I'm sure an experienced C programmer can become a good php programmer, but I don't think my friend intends to pay for that transformation to happen.
 
@NikiC lol
 
fair, I look to grow good developers, rather than just hire them...
 
The biggest problem I see with developers that used to do C is that they optimize too much when first using a dynamic garbage collected very-high-level language like PHP
 
12:51 PM
@ircmaxell I guess that you can teach a guy who's capable of programming in assembly pretty much everything ^^
 
@NikiC But but but drupal
 
@NikiC that guy was nuts, in an interesting way though
 
@ircmaxell That's great, I think that's a good philosophy, I'm not the one hiring though
 
@ircmaxell nutes?
 
lol
 
12:52 PM
@PeeHaa didn't you listen? He was doing assembly before. He's clearly looking for challenges ;)
 
@PeeHaa when did drupal become a programming language :)_
 
I would love some advice on a basic programming task that any good php developer can do in a few hours. I can then test that for design, readability and that sort of stuff myself.
 
Like "write good drupal code"
 
@NikiC :-D
 
(Though actually, I have no idea just how bad drupal is?)
 
12:54 PM
@NikiC I had a discussion about drupal with some external guy. To him the biggest advantage of drupal was speed of implementation. I'm doing a project now with him and guess what...
 
do tell
 
We need to get the col banned again. He's repwhoring all over the place
@NikiC Lets just say we missed the first deadline :P
 
Mornings
 
Mornig @DaveRandom
 
36 mins ago, by Benjamin Gruenbaum
Hey, I used to do a lot of php but I haven't touched it in a while. A friend of mine is hiring developers for a large scale php project and he is looking for an idea for a small assignment to give applicants before the interview. Any ideas on what a practical php developer that has to work in a team of ~ 15 should know and be able to implement in a few hours?
 
12:56 PM
No need to spam
 
@PeeHaa he's right. Just like Rails's primary benefit is speed of implemetnation
but that falls down when you have something to put in production..
 
@ircmaxell Rails' primary benefit is code structure
 
@ircmaxell Yeh
 
Rails primary benefit is security giggles
 
loool
 
12:57 PM
@BenjaminGruenbaum I don't know if I agree with that
 
I know I don't :)
 
Also, not having 9 functions to sort an array :)
 
And another advantage of Rails is the performance more giggles
 
I am biased and not very experienced in it
 
Did you guys read the recent Rails on Heroku stuff?
 
12:58 PM
I don't think I did
link please :)
 
@BenjaminGruenbaum there's a difference there. You're comparing a framework to a Language... Not right...
 
Basically a) Rails sucks and b) Heroku made it suck even more
 
@ircmaxell I agree, I was just trolling on that last one
 
lol
 
@NikiC Thanks for the gist :D
 
12:59 PM
@BenjaminGruenbaum :-P
 
@BenjaminGruenbaum Hey it's the internet. You're supposed to troll
 
tnx
 
> We are finally hitting that poExplainint where our optimizations aren’t premature. With nearly 15 million monthly uniques we are, as they say, “at scale.”
 
@PeeHaa And I mean seriously sucks
 
1:01 PM
5 requests per second is at scale ???
WTF?
 
If I understood that right rails can only server one request at a time (per dyno)
 
he should work on the project I'm working on right now...
 
All you guys should learn node.js :) It's awesome
 
10,000 page views per second. With a max cache TTL of 3 seconds...
I think we have different definitions of scale
 
Which is obviously really, really, really bad. Where Rails can serve exactly one request, PHP can easily do a hundred
 
1:02 PM
@ircmaxell They didn't say webscale. Just scale... :)
 
@ircmaxell Well, they use Rails. For them "scale" begins earlier
 
(not going to argue there, but node.js can do a million concurrent requests on one server)
 
@NikiC Oh, yes. For them scale begins at 1 request per second. For Drupal it's 10 requests per second. For PHP and most other languages it's around 2k req/second.
@BenjaminGruenbaum define concurrent.
 
@ircmaxell 500 clients each establishing 2000 active long-poll COMET connections to a single server
 
Concurrent computing is a form of computing in which programs are designed as collections of interacting computational processes that may be executed in parallel. Concurrent programs (processes or threads) can be executed on a single processor by interleaving the execution steps of each in a time-slicing way, or can be executed in parallel by assigning each computational process to one of a set of processors that may be close or distributed across a network. The main challenges in designing concurrent programs are ensuring the correct sequencing of the interactions or communications betw...
 
1:04 PM
and I can point out that's BS, because most servers don't have the network capacity to open one million requests in a second (the TCP offload stack is WAY too expensive for that)
@BenjaminGruenbaum Oh, so it's just 1 million open file descriptors...
 
@BenjaminGruenbaum Just FYI, with a server written in PHP you can get performance results that are no worse (even a bit better) than with Node.JS. @rdlowrey can tell you some about it.
 
@BenjaminGruenbaum eih, that's easy to do on any server (as long as you raise the default open file descriptor limit from the default of like 2k). The hard part is doing it while doing business logic, which is where benchmarks like that fall down...
 
@ircmaxell I've still seen node outperform php at every speed factor because it doesn't have to open a thread each time. I assume there is a way to write that sort of code in php though (instead of opening a new thread use a single thread with events)
 
@NikiC Wow that is really bad
 
1:08 PM
@NikiC I'm not so sure about that. I think it really depends on the app. If your app can take advantage of the JIT, node will blow PHP out of the water. If not, it should be about even (I can buy your statement). But it's so subjective based on the problem...
 
@PeeHaa I told ya ^^
 
@BenjaminGruenbaum What does node do what PHP doesn't?
 
@ircmaxell I mean pure request serving perf. For the application level performance of the language itself doesn't really matter that much [in most cases] :)
 
@ircmaxell almost every node.js app takes advantage of the JIT, php has hiphop though doesn't it?
 
@BenjaminGruenbaum Fake benchmarks. Because it's a single thread, they are going to be performant at different things. If you're just talking about opening a HTTP connection and sending a response, sure it's going to be faster. But use some CPU per request, and you'll see PHP blow the doors off of Node (at least in terms of number of servers needed)...
 
1:09 PM
@PeeHaa it's fast, you get to share client-side and server-side code and it's very easy to write restful apis in. I wouldn't code a website in node.js because it's not as easy, but for its uses it is awesome
 
mega.co.nz Interface is nice ... Can PHP create a design competition for php.net ?
@BenjaminGruenbaum you can do POSIX Threads in PHP
 
@ircmaxell node.js usually delegates CPU intensive works to binary code written in C
 
@BenjaminGruenbaum there's a difference between uses and takes advantage of. Not every line of code is compiled, some can't be (frequently changing branch structures for example). So it depends on how you write your code to see whether it's JIT friendly or not
 
@ircmaxell I agree there, then again an experienced developer should know how to write performant code
 
@Baba Has already been coined by @tereško for prototype
 
1:11 PM
@BenjaminGruenbaum Well, even if it does, it's still blocking there (unless you custom write a C++ module to work in another thread for you). So then you're saying Node.JS is faster, as long as you write your complex logic in C++... Which falls short of the original argument...
 
@PeeHaa any sneak peak ?
 
@BenjaminGruenbaum lol. if you start arguing down that path all is lost
 
@ircmaxell it's not blocking, that's not how node C++ modules work
 
@BenjaminGruenbaum because you have to write it in C++. If you write it in JS, it'll block, which kinda kills the comparison
 
1:12 PM
Basically "node.js is fast as long as you write your code in c++ and not in js" :D
 
@PeeHaa how do you contribute ?
 
@NikiC I didn't even want to argue, I _know_ node is faster for what I use it because I tested it for that specific case.
@ircmaxell You can write non-blocking threaded code in node.js, but let's not go into that
 
@Baba Suggestions etc go to @levi. If you want to contribute in some other way just ping @levi
 
I would love some ideas for a php project that should take an experienced developer a few hours
 
anyone good on Codeigniter?
 
1:13 PM
@BenjaminGruenbaum Out of interest: what does that specific case look like?
 
@BenjaminGruenbaum Btw, what I mentioned was not really what @ircmaxell is talking about. He means running node.js against a classical php stack. I mean running node.js against a server written in PHP (as in he server itself is php). That's what @rdlowrey is doing and he suggests (and I do believe him) that you can reach better performance with this setup :)
 
@BenjaminGruenbaum you can't write threaded non-blocking JS in node. You can use a worker, but that's not threaded, and while it's non-blocking you have a lot of overhead in message passing. It has other limitations
 
@PeeHaa My Aim is simple .. open it up to developers make it a competition .. give the best design $5,000 or what every is agreed and make that PHP Design :)
 
@PeeHaa it's a RESTful API, it gets an HTTP requests, performs some basic logic, queries a mongodb server, and returns the result (based on that logic)
 
@BenjaminGruenbaum I'm not arguing at all for a specific case. In fact I very much agree, in specific cases, node can blow the doors off of anything else (except python twisted), but in the general case most of the time it falls significantly short...
 
1:14 PM
@NikiC I assumed that (that you mean an asynchronous module and not the classical rack, I would love some reading material on that :)
 
@BenjaminGruenbaum Sounds like you indeed need to talk to @rdlowrey about your tests ;)
 
@BenjaminGruenbaum You'll need to wait a bit for that yet. @rdlowrey's stuff isn't yet public (but should soon be)
 
@ircmaxell one question sorry, why you choose to use php?
 
@ircmaxell Afaik with that you won't get the kind of perf we're talking about
 
1:16 PM
@Badaboooooom because I did
@NikiC Oh RLY? There's something else on the horizon
@NikiC and the numbers I saw were quite impressive...
 
@ircmaxell u always full of words in your senteces :D
 
Competition is always good :) I would love to see more performant php code
 
@Badaboooooom the quality of an answer is usually significantly tied to the quality of the question
 
@ircmaxell why not something else than php ?
 
What about asking someone to write a backend to something simple like TodoMVC?
 
1:17 PM
@ircmaxell that is written in books :D
 
Jan 29 at 17:19, by rdlowrey
ab -n 1000000 -c 10000 -k -r -d http://127.0.0.1:1337/
...
Requests per second:    5370.39 [#/sec] (mean)
 
I do write in other languages (a lot of JS, Python and some C)
 
oh understood what you think about using python instad of php?
@ircmaxell
 
@Badaboooooom python is nice
 
@ircmaxell For react? I just tried to search but couldn't find any numbers for them :/
 
1:18 PM
@PeeHaa yep i know i've used that too
dunno about if better :)
cause my php is 80/100
my python is 20/100
 
Lol
 
@PeeHaa That's something one can agree on :)
 
Well if those number represent your experience / knowledge I would say go for php for a serious project
 
@PeeHaa well i trust you :)
 
1:20 PM
@NikiC yes I stumbled over that earlier today. But it's much more worse to actually read that.
 
There should be a law against #helloWorld benchmarks...
 
@hakre as in the article is bad or the problem is bad?
 
who is the best php developer in the world?
seriously
 
@Badaboooooom define best
 
who the hell :)
 
1:21 PM
@NikiC Well actually it just degrades Heroku as anything to consider face-to-face.
 
@Baba best != you
 
@ircmaxell if you want to benchmark maximum throughput hello world is the only thing you have ^^
 
impossible question is impossible
 
lol :D joking
 
@NikiC no, build a real world app, and benchmark the use-case. That's all benchmarks are good for...
 
1:22 PM
@ircmaxell Not Impossible .. just need to define scope
 
if your real world app is hello world, then fine. But it's not, so the benchmark is useless...
 
@ircmaxell nope, disagree. if people bench node.js they do the hello world case. So if you compare your project to node.js, that's what you will do too ^^
 
how is possible to define the best php developer in the world if he/she exists?
who invented php maybe ? :)
and who invented php?
 
@NikiC not in the least. You write a real world application that simulates your specific use-case, and then benchmark that...
 
I got to go study :/ If you have any idea for pre-interview assignments for me ping me
 
1:23 PM
@Badaboooooom use google, wikipedia has all your answers
 
@ircmaxell if you are interested in the throughput of the server itself (rather than your application), benchmarking with an application in it makes no sense, does it?
 
benchmarking hello world is one reason Ruby is popular. Because they look at numbers that have no bearing to their application, and then apply them to their application...
 
you'd add only additional factors
 
node.js is so much faster than php without react though :P I'm sure node.js is going to get a lot faster since there is a real competition on who has the fastest JS engine between microsoft google and mozilla and google has amazing people on v8
 
@NikiC but my point is you're almost never interested in server throughput. You're almost always interested in server throughput for a specific use-case
 
1:25 PM
PHP is an open-source server-side scripting language designed for Web development to produce dynamic Web pages. It is one of the first developed server-side scripting languages to be embedded into an HTML source document rather than calling an external file to process data. The code is interpreted by a Web server with a PHP processor module which generates the resulting Web page. It has also evolved to include a command-line interface capability and can be used in standalone graphical applications. PHP can be deployed on most Web servers and also as a standalone shell on almost every op...
 
@BenjaminGruenbaum bullshit statement is bullshit
 
@ircmaxell if you are writing a server you are actually kind of interested in the server throughput...
 
i tought php was developed by punks
 
@ircmaxell I meant php that doesn't work in a single-threaded non-blocking IO manner for that matter, not react in specific
 
was not sid vicious on php 3.0 ?
@ircmaxell
 
1:26 PM
@NikiC no, you are interested in the application. If the server is the application (a reverse proxy, or the like) that's a specific use-case. But having a server that just echos static text is BS
 
@ircmaxell Oh, @rdlowrey also has other benchmarks, like serving static files. But I think doing the "hello world" test case is a pretty valid test for a server
as it gives you the raw request overhead, without anything else
 
@BenjaminGruenbaum github.com/reactphp/react
 
@PeeHaa was not you developing php 1.0 ? :O
 
2 mins ago, by Benjamin Gruenbaum
node.js is so much faster than php without react though :P I'm sure node.js is going to get a lot faster since there is a real competition on who has the fastest JS engine between microsoft google and mozilla and google has amazing people on v8
 
@ircmaxell I'd agree with you in general, but in this specific case I think that the approach is valid
 
1:28 PM
@NikiC but the raw request overhead means nothing if that's not you're primary use-case. If the server is serving static files, then use static files for your test
It's a great regression benchmark (to gauge performance over time), but not as a comparitive benchmark...
 
@ircmaxell if you write a server it can be used for anything, not something specific...
@ircmaxell why would it be a great regression benchmark, but a bad comparative benchmark? If you think it's bad at the second, then it's also bad at the first by not being representative.
 
@NikiC yes, but what matters is the hooks it provides. So serving a hard-coded-in-the-server string is bullshit. At least for comparison reasons
 
@ircmaxell Serving via a hook that returns said string. Just like in node.js ^^
If the thing is hardcoded somewhere deep in the server it obviously makes no sense
it's more like the "minimal usecase" for the response handler
 
@NikiC it's only internally comparable. Example: the worker model of apache looks faster than an evented model if you serve static strings. Because it can use multiple cores for threads. But at load with anything to do, it falls over and things like nginx and lighttpd dominate strongly (even for static files)
 
anyway makes no sense to continue arguing about this ^^
 
1:32 PM
fair
RT @MathewAnderson BREAKING: Baby found in middle of Meteorite crash site, miraculously unharmed. Wrapped in what seems to be a red cape.
 
@ircmaxell True. But it was a comparison against node. Which does use hello world :)
 
@PeeHaa which is a flaw in the original benchmark...
 
@PeeHaa In soviet Russia, web server benchmarks you.
 
Also it serves vodka instead of requests, right?
 
1:45 PM
dah
 
Right, well it seems that the underpants gnomes have visited my house again, so ridiculous as this is I am going out commando to purchase some boxer shorts. Catch y'all in a bit.
6
 
Anonymous
2:35 PM
why is it better to use PDO::ERRMODE_EXCEPTION attribute instead of PDO::ERRMODE_WARNING?
 
@PHPNooB Because you can easily handle exceptions
 
Anonymous
hmm... I have been getting tired of writting PDO without knowing what the attributes meant, but I found PHP manual's explanation. Turns out the PHP manual is really awesome :)
 
Anonymous
Goodbye w3 tuts :)
 
user652649
hello
 
hiya
 

« first day (854 days earlier)      last day (4094 days later) »