Hacker News new | past | comments | ask | show | jobs | submit | rll's comments login

It was definitely intentional. The prefect sandbox has been a central design decision since day one.


Citation needed.

The reality is almost certainly far simpler. PHP started as a suite of tools for writing CGI pages [1], which have the same property mentioned. As with many things, that early design choice has followed through and led to continuing to execute PHP in similar ways as CGI did way back then.

[1] http://php.net/manual/en/history.php.php


> Citation needed.

I think the 'rll' user is Rasmus, who started PHP. I think he would be the best person to cite re: intentionality.


This is why I read HN every single day. This comment is epic :D


It's also funny that the article mentions the evil subscribers in Node.js.

The fact that PHP died after every request made everything other than the HTTP use-case quiet a pain to implement.

That's one reason why it got pwnd by Node.js, I think.


You can write a server that will handle multiple requests in PHP, for example, using ReactPHP.

By the way, I don't like how they implemented promises and asynchronous file streams: they copied them from Node.JS and didn't implement proper error reporting (which Node did't have at the time too if I remember correctly). For example, if there is a promise that was rejected and the rejection is not handled, there will be no exception thrown. So the developer won't even know about an error, even if it is a syntax error. That's how poorly Javascript promises were designed. Now this is fixed in JS and unhandled rejection will produce a warning in the console but there are many other bad things about them.


I know, I wrote such a server in 2010, it just wasn't as nice as with Node, hehe


It's funny you got downvoted for this (at the time I'm writing this), considering (based on your comment history) you're likely Rasmus Lerdorf, creator of PHP.


It's a perfectly valid and normal reaction. Regular viewer has no reason to suspect that this is anyone special speaking. That comment was indistinguishable from a random thought of a random person, so it was entirely reasonable to request a citation. "That's me, Rasmus" would be enough of a citation of course.


Indeed! That's what I was implying with "based on your comment history".

It required me being curious about why a random commenter would make such an authoritative (but not backed up) statement, remembering PHP's creator's name and making the connection that their username may be related to it, then reading his Wikipedia page and digging through his comment history to find a couple from 2015 (about UWaterloo) and then 2013 (about his age!) as supporting evidence!

Now I feel creepy.

Edit: (but really, it's nothing compared to the awesome "Did you win the Putnam" response https://news.ycombinator.com/item?id=35079)


Yeah well, one of the many reasons I generally avoid HN.


I'd hesitate to say PHP has a "perfect sandbox". I certainly wouldn't run a script like `eval($_GET["foo"])`.

The only "perfect sandbox" I can think of for CGI programming is something like Unlambda (pure functional, except for monotonic reading of input and writing of output)


> a central design decision

I do not think PHP had design decisions until ... much, much later than day one. I would cautiously say even PHP 4 is more than a bit haphazard and PHP 5.0 I definitely remember as an alpha quality release, 5.1 as beta and 5.2 as stable. Design, I think, started to appear with the later stalled PHP 6 attempt and so mainline 5.3. The first one I remember that can be called a conscious design decision was deferring $this support in closures to 5.4. Correlating with my memories is the first release to appear under the "Implemented" headline on https://wiki.php.net/rfc is 5.3 indeed.


I absolutely love it. I only use it for data and I travel a ton. Never having to hunt down SIM cards every 3 days when I hit a new country with a flat global rate is great. And you get 10 free data sims, so everything that can possibly get a sim jammed into it has one and works in every country.


I know it is anecdotal, but I have never seen even the slightest hint of anyone having their devices closely looked at entering China. At least not in the 72/144 hour visa-free line that I have been using for the past couple of years. This visa-free entry is aimed at business travelers so perhaps there is less scrutiny there.


I've had the same experience as well. Ironically, the only place where I've ever been scrutinized or directly searched is the US.

Short of being some sort of China-focused activist, you'd have to try real hard to get Chinese law enforcement to care about what you're doing.


That is simply not true. Even if you bought at the peak in 2007 in Sunnyvale you are likely up 50% or more on your investment. If you were lucky and bought in 2005 or 2009 your house is probably worth 60-70% more than when you bought it. This has been true for the past 25-30 years in much of SV. That doesn't mean it will continue forever, of course, but the trend has been there for a very long time now.


Ok, but what if I had invested the house money - would the rate of return be more/equal/less? There's of course the economy crash but I would expect that to affect house prices too. Just sounds like a bad idea to consider primary residence an investment.


It's surprisingly hard to beat investing in real estate in growth markets like SV because of the leverage afforded by the ratio of down payment to home price....

For example in Los Gatos, appreciation has been 5% on average for many years, and so the 200k you put down on a 1m house will typically appreciate by 50k. 25% roi in year 1, increasing each year. Of course, property appreciation doesn't happen in a straight line, and houses cost money to maintain (property taxes, etc) but the larger point is valid.


Obviously that depends on what you invest in and how much risk you are willing to carry. In the long term the stock market index funds have returned about 6-7% annually adjusted for inflation. Take almost any 10-year window in the past 30 years and SV home prices have either matched or beaten that substantially.


Plus, you can improve your house cheaply for the cost of materials and some elbow grease. I can't buy more $AAPL with sweat.


The government mortgage interest deduction alone is worth around 2% per annum.

While concentration of risk is a factor, 2% per annum in essentially 'free yield' is very hard to justify walking away from.


I use a T460s with a Google Fi SIM card in it running Debian. It works really well and Google lets you get up to 10 free data sims so you don't need another account.


"Google lets you get up to 10 free data sims"

Tell me more. What exactly do you mean by "up to 10 free data sims" ?


If you are a project fi account holder, you can get an additional data sim cards (up to 9) to put in devices like iPad, other tablets, or in this case the laptop. It will be linked to your main account and share the data budget of your main phone, at the same rate of $10/GB.


Awesome. Thanks.


Why change the headline to a blatantly sexist one?


[flagged]


Its a common feature of HN that we don't condone sexism, racism, hate speech etc. A lazy stereotype of dumb women in an article title is not cool here.


>"Its a common feature of HN that we don't condone sexism, racism, hate speech etc."

And yet last time there was mention of "bro-culture" (i.e. anti-male, anti-techie), I don't recall seeing anywhere near this sort of reaction.


Because criticizing those in authority is very different from the opposite. The tired old dead horse of "its technically also racism to criticize the plantation master!" is an unworthy argument.


The "punching up is okay!" excuse is only useful to people who are in it for the punching.

How about if nobody gets punched. Don't roll out demeaning stereotypes against any groups; instead, treat people like human beings. Who knows, it might work out!


Please, elaborate on who, exactly, is the plantation master in your analogy? What absolute tripe.


"bro-culture" (i.e. anti-male, anti-techie)

What? Criticism of a specific subculture/attitude is not the same as being anti-male. If someone was stereotyping all men as "bros", that would be equivalent. And I'm pretty sure we'd have plenty of reactions against it.


I'm a male techie and I don't intuitively identify, in any sense, with "bro culture". So, I think this is off base.


What exactly do you find "off base"? I'm saying that I didn't see the same sort of backlash to a "bro culture" article as I am seeing for this one here.


The problem people have with "bro culture" doesn't have nearly as much to do with gender as it does with aggression, superficiality, and ill manners.

That's why despite HN's demographics skewing overwhelmingly male, "bro culture" is an epithet here.


Edit. So the term I was specifically thinking of was not "bro culture" but rather "brogramming", which is definitely some sort of jab at male individuals in the programming profession.


I'm a proud SJW. I actually find it really amusing that such a positive, admirable label is used as an insult. I have people in my life that I love who are women, gays, people with mental illness, etc. I'm proud to be a "warrior" for them. I'm not exactly sure what you're afraid of "SJWs" doing to your life, but I promise that we'd fight for you, too, if you needed it.


The problem is that people think that because I do not get offended by "mom" in the title, I can't also have men, women, gays and the disabled in my life whom I love.


That's a straw man. No one has said you should be offended. They're just saying that there are really good reasons that "mom" in the title is problematic.


>Do we have to have SJW's infiltrating Hacker News now too.

HackerNews is very sensitive when it comes to sexism, but not so much when it comes to H1Bs or outsourcing or China.

It's embarrassing that the purpose of the video is overlooked for PC.


And yet all your comments have been on the reactions to the video, and not about the video itself. Physician, heal thyself!

The reality is that the video is not very interesting, really. The content is well known around here, and even simplified explanations have been done before. There's nothing much to say about it.


I doubt you'd have said the same thing if it was a 3 minutes video your dad would understand.

So who's the sexist one?


Just to be clear, you're accusing someone else of sexism based on a baseless assumption?


That made no sense at all.


It wasn't about gender. It was about "incompetent about technology." Your mom, grandma, dad, grandpa, dumb cousin or incompetent friend would all work as well.

You made it about gender.


Don't you see that you just proved the point? You read "your mother" and you understood "incompetent about technology." That is the sexist stereotype we get irritated by.


If your experience was anything like mine, then you grew up regularly handling technology (fixing computers, hooking up VCRs, etc.) for and explaining it to people older than you. That's the stereotype at play in the title--old person won't understand tech.

It would be quite different (and have a totally different effect) if the title said "3 minute video even a girl will understand"


Google searching shows very many more hits for "your mother would understand" and "your grandmother would understand" than for father / grandfather / grandpa / etc.


The number of query results from a google search aren't evidence of anything except that your argument is weak enough that you couldn't find actual evidence.


The point was about metadata. It's modern to cry about other feelings nowadays though.


Except I would have made the exact same assumption about "your father". The idea is that our parents, grandparents or whatever are technologically incompetent. It had nothing to do with gender.

Again, the only sexist thus far, is you.


It's heartening to see this thread land so solidly on the intersection of sexism and ageism. You're right, assuming older generations are technically incompetent is wrong, mean, and unnecessary--just like assuming the same thing about women. When you combine the two with phrases like "so simple your mom could understand", you end up with a big bucket of nope.

My mom has a STEM degree, and her mom had a bleeding edge Thinkpad when the rest of my family was married to a beige box. My dad is a system administrator, and his dad is a chemical engineer. I have a postgraduate degree in software engineering. To assume any of us are technically incompetent because of our age or gender is insulting, and exclusionary.

Thanks for pointing that out.


So your goal by making people not write titles like this is to completely exterminate people's connotation of it?

We all agree sexism is bad, and there are real issues to overcome in all countries, but sometimes I would feel more supportive of the case if it focused on what really is unfair, and a hindrance to a gender.


>We all agree sexism is bad, and there are real issues to overcome in all countries, but sometimes I would feel more supportive of the case if it focused on what really is unfair, and a hindrance to a gender.

Thank you.

This is so indicative of the internet generation, where talking about something ridiculous and missing the point is seen as actually doing something.

Look where the downvotes are occurring; every comment that doesn't think the title is a big deal. God forbid someone's opinion is different. Remember that when this crowd expresses how great and open to debate HackerNews is as a community.


> You made it about gender.

No, the long history of the phrase used to stereotype someone who knows nothing about technology made it about gender.

EDIT: pointing out that the phrase is sexist and unwelcome is a good thing.


> No, the long history of the phrase used to stereotype someone who knows nothing about technology made it about gender.

No, it was age ageism. But the STEM field has an enormous gender gap so now we're actively looking for every single sentence that might be gender-biased and pretending that our feelings are facts.

This is just another example of having a hammer makes everything look like a nail. The title was very clearly biased... that "older" generation can't understand modern technologies. But we had plenty of people here to defend women, even when they don't need it.


You don't need to build a box. Someone has done it for you. Get a Ubiquity EdgeRouter Lite for < $100.


You can do partial scans. If you create a list of files and only feed it the ones you care about it can scan those. It will complain about missing classes, but you can ignore those with phan -i

Usually a middle ground works best. Run it once on just your files and look at the undeclared classes then add the files from the framework that define those so you get at least one level of checks of your calls into the framework. Or just feed it everything, but it can take some time to scan thousands of files and if you aren't using most of that code it gets annoying.


I couldn't wait to get away from Waterloo for my work terms. Winters in Waterloo are extremely unpleasant! My last two work terms were in Brazil and I actually ended up working for this Brazilian company after I graduated but like most of my peers I could have called on any of my former work term companies and instantly gotten a job without putting my resume in amongst the pile of unknown new-grad resumes.


Loss of community with the rest of your class? At Waterloo co-op in engineering is not optional. Your entire class is on the same 4-month school-workterm-school schedule.


Not in other faculties, though. The BMath/CS program for example.


You're close enough to being "on-stream" with at least half of your starting class. The bulk of your co-op schedule will be alternating between 4-month school and work terms, and you'll generally align close to the engineering "8-stream" or "4-stream" schedules, with some 8-month terms here and there.


The article is about Waterloo engineering co-op though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: