Safety1stClyde
https://www.youtube.com/watch?v=Gv5EQlzM1B8
https://www.youtube.com/watch?v=_7rF0wCSpE0
What happened, if you don't want to watch all the video, is that the aeroplane actually collapsed internally. In the second case, some of the passengers were sucked out of the plane.
What programming language? I'm not familiar with those parsers, the ones I know of very much do enforce quoted strings.
> you will find a huge amount of JSON out there that is not actually compliant with the official spec
The parsers I use all follow the current JSON RFC specification, and I've never encountered any JSON from APIs which they reject.
> Just like browsers have huge hacks in them to handle misformed HTML.
Web browsers do deal with a variety of things, not so much JSON parsers in my experience.
We are having a discussion is about programming language benchmarks.
A benchmark in this case is a measure of how fast a computer program can run. A computer program is a series of instructions for a computer. These instructions are written in something called a programming language. A programming language which is interpreted is inherently slower than a programming language which is compiled to assembly language. A programming language which does not have integers but must represent all numbers as floating point numbers is inherently slower than a programming language which has integers. A programming language which does not have arrays, but must represent arrays using hash tables, is inherently slower than a language which does have arrays. Thus, Node.js, which is interpreted and does not have arrays or integers, would be expected to be have much lower benchmarks than Go's, and yet node.js has exceptionally high performance.
I assure you that JavaScript is an interpreted language, and it does not have arrays or integers. This is not a harsh statement but a factual one.
Why would it be stunning that a programming language compiled to assembler can beat a broken-by-design interpreted language which doesn't even have integers or arrays? The stunning part is that the people behind node.js have managed to get that much performance.
This statement is incorrect. You haven't provided instructions on how one can trivially set up a phpBB forum using cPanel.
It repeatedly says that the aim is to fix errors. Assuming, however, that it is intended to give better error messages, here is the output of Clang on the input C program given as an example:
$ cc gupta.c
gupta.c:3:5: warning: incompatible redeclaration of library function 'pow'
[-Wincompatible-library-redeclaration]
int pow(int a, int b);
^
gupta.c:3:5: note: 'pow' is a builtin with type 'double (double, double)'
gupta.c:14:23: error: function definition is not allowed here
int pow(int a, int b){
^
gupta.c:18:14: error: expected ';' at end of declaration
return res;}
^
;
gupta.c:18:14: error: expected '}'
gupta.c:4:11: note: to match this '{'
int main(){
^
1 warning and 3 errors generated.
It identifies the problematic line of the program code better than gcc. The function declaration within main is not legal. I tried this with the gcc compiler and did not get the error above. Running "indent" on the code would have revealed the problems:$ indent < gupta.c
/INDENT Error@18: Stuff missing from end of file */
A simple count of braces, { and }, would also have revealed the problem.
I don't think this is a particularly useful thing to do. Essentially it is somewhat like making a compiler which accepts broken inputs using heuristics to guess at what the programmer intended to write. That will not result in better programs being written, rather it will result in the programmer not only writing worse code but not even being aware of the flaws in their code.
Given the above is true, I have a proposition for you: I will pay you whatever you consider fair payment for fifteen minutes of your time to set me up a web site with an income of $5,000 dollars a month.
I had to double-check that I was not reading a satirical website after reading the above statement.
It says "Google is a very large corporation employing tens of thousands of people which does not make decisions based on discussions by a few individuals posting anonymously on a web forum".
Assume that one person works full time on it. $5,000 a month is $60,000 a year. Subtract hosting costs and it's a relatively low income for one person who has the skills necessary to build and administer such a web site.
> not too shabby
It is actually a little shabby.
https://www.reddit.com/r/SiliconValleyHBO/comments/6cy0x3/th...
Quote on the whiteboard by the character "Gilfoyle" in "Silicon Valley":
HACKER NEWS!!! Get friends to upvote
One would have to be extremely naive to think that anyone except friends of the authors would upvote a link to a changelog for version 0.17.0 of a "new programming language" on this site.
Similar to the way that they removed all traces of cocoa from so-called "chocolate" like Hershey's bars and replaced it with sugar and brown colouring.