News for hackers. Stuff that matters.
Re:Hack: a new programming language for HHVM by dscrd on Thursday March 20, 2014 @02:33PM (#7437621)
I'm appalled and little bit insulted that you group PHP in the same group with COBOL, C and C++ in terms of their foundation. COBOL and C were designed by some of the greatest pioneers of the field, and indeed PHP is built on C.
Re:Hack: a new programming language for HHVM by jroesch on Thursday March 20, 2014 @03:47PM (#7438103)
Just because they are remembered as being first doesn't mean they were well designed, or actually pioneers. At the same time C was being written others were working on Lisp, and ML. It has taken nearly half a century for some of their innovations to be recognized as good ideas and taken up by main stream languages, while C was a small improvement upon existing language design.
Re:Hack: a new programming language for HHVM by pjmlp on Friday March 21, 2014 @04:21AM (#7441212)
C designers choose deliberately to ignore the other system level programming languages at the time, which already offered more memory safe constructs, in their quest for a portable macro assembler.

PHP could have been easily done in any language with native compiler toolchains.

Re:Hack: a new programming language for HHVM by adamlett on Friday March 21, 2014 @12:08PM (#7443076)
Why would you feel insulted? Did you personally create any of those languages? In fact, did you personally create any language? If not, maybe you should't be quite so dismissive of the accomplishment it was to create PHP. Sure, it's not the best language out there, and valid criticisms can be levelled at it, but as they say: It's better to have tried and failed...
Re:Hack: a new programming language for HHVM by yawboakye on Friday March 21, 2014 @01:13PM (#7443445)
What you just said is plain stupid. So our language designers can be critical of other languages? Bullshit! Since programmers can vote with their feet and gravitate towards better languages (is it miraculous that almost all programmers have a distaste for PHP?) we should give reasons why we use C and not PHP. If they were equally crappy what would have been the cause of choice of one over the other? I can call PHP the worse language ever, and I don't need to have created a language already.
Re:Hack: a new programming language for HHVM by coldtea on Saturday March 22, 2014 @05:49AM (#7448453)
>So [only] language designers can be critical of other languages?

Yes. Or rather, other people can be critical too, but language designer' opinions have far more validity.

In other words, anybody can say whatever uninformed BS he wants (it's a free country). But that's no replacement for being an expert in what you're discussing.

>Since programmers can vote with their feet and gravitate towards better languages (is it miraculous that almost all programmers have a distaste for PHP?)

You'd be surprised. PHP is one of the most popular languages and one of the most used languages, so far from "all programmers have a distaste for PHP". So if we were to use that "voting" argument alone (which I find wrong), PHP should be considered a very good language. Not the intention you had, I guess.

While PHP has it warts, it's mainly the less pragmatic and more fad prone programmers that have issues with PHP, those who look for silver bullets and like to feel superior by choice of programming language, editor and the like.

As for programmers "voting with their feet", well, they don't do quite a good job at it. The best languages (like LISP, Smalltalk, OcamL, Haskell, to name but a few etc) are seldom the most popular too.

Re:Hack: a new programming language for HHVM by yawboakye on Monday March 24, 2014 @05:46AM (#7457379)
> but language designers' opinions have far more validity

Here's the case we're talking about the work of a language designer. By the way, not all people capable of creating a programming language have created one yet. Marc-André Cournoyer, who wrote the book that Jeremy Ashkenas learnt language design from to write CoffeeScript, has not created a language himself.

Re:Hack: a new programming language for HHVM by tesseractive on Friday March 21, 2014 @02:55PM (#7444055)
Given the widespread use of PHP for web programming, it seems obvious that in the domain of web programming, developers have voted with their feet for PHP.
Re:Hack: a new programming language for HHVM by yawboakye on Friday March 21, 2014 @04:30PM (#7444716)
Energetic amateurs. They've not reached maturity so that their votes should be counted.
Re:Hack: a new programming language for HHVM by tesseractive on Friday March 21, 2014 @05:13PM (#7444953)
Given that these supposed "energetic amateurs" have created an enormous percentage of the code that web applications across the internet run on, their votes automatically count. If PHP developers had never produced anything of value, that would be a different discussion.
Re:Hack: a new programming language for HHVM by dscrd on Saturday March 22, 2014 @04:55AM (#7448338)
I also get a bit (not terribly, just a bit) insulted if somebody says "Beethoven sucks", because the person who said it is technically the same species as I am.
Re:Hack: a new programming language for HHVM by pekk on Thursday March 20, 2014 @02:50PM (#7437738)
In the sense that any software written in C is built on C.
Re:Hack: a new programming language for HHVM by dscrd on Friday March 21, 2014 @02:51AM (#7441004)
True, but a lot of PHP's ... design also reflects C, only that they warped it.
Re:Hack: a new programming language for HHVM by wvenable on Friday March 21, 2014 @12:55PM (#7443338)
A few of the complaints about PHP (the inconsistent function library, for example) exist because PHP was originally a very thin scripting language layer for using existing C libraries.
Re:Hack: a new programming language for HHVM by coldtea on Saturday March 22, 2014 @04:13AM (#7448263)
C was not build by the "greatest pioneers". Just succesful pioneers.

There were far more evolved and elegant languages at the time C was created (and during the time it took for C to rise, even more were made). LISP for one, but also languages with the same performance characteristics and systems programming capabilities as C.

C definitely wasn't seen as a "great language design" -- just a very useful and pragmatic one (e.g see also the classic "Worse is better" essay).