HNHacker News
TopNewBestAskShowJobs

Safety1stClyde

175 karma · joined September 2, 2015

submissionscomments
Safety1stClyde··on A man is looking for the friends who shipped him overseas in a crate in 1965
Here are some recent interesting videos by "Mentour Pilot" about the DC10 plane accidents caused by a cargo door coming off and depressurising the cargo hold:

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.

Safety1stClyde··on The history of UTF-8 as told by Rob Pike (2003)
Unicode was originally meant to fit everything into 16 bits. UTF-8 is just a way to encode, it doesn't decide what goes into Unicode.
Safety1stClyde··on Yahoo Answers to shut down May 4, 2021
What did you want them to say?
Safety1stClyde··on The Norway Problem
> And although officially JSON requires quoted strings, almost none of the parsers actually enforce that

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.

Safety1stClyde··on 100M Posts Analyzed: What You Need to Write the Best Headlines
Facebook hates him! Here's how a hacker news commenter used one weird old trick to produce new phrases to put in headlines!
Safety1stClyde··on Benchmark: Java, Python, PHP, C, JavaScript, Swift, Ruby, Perl, Go, Lua, Rust
We're discussing programming language benchmarks. If one was forced to write all of a C or C++ or even Go program using only doubles, and not integers, and only hash tables, not arrays, undoubtedly it would become slower. The impressive thing about Node.js is that it is as fast as it is despite JavaScript not having integers or arrays.
Safety1stClyde··on Benchmark: Java, Python, PHP, C, JavaScript, Swift, Ruby, Perl, Go, Lua, Rust
> There's plenty to not like about JS, but being interpreted and not having integers or arrays is not high on its negatives list.

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.

Safety1stClyde··on Benchmark: Java, Python, PHP, C, JavaScript, Swift, Ruby, Perl, Go, Lua, Rust
A program written in C will execute faster if you run it multiple times, and slower if it has not been run recently. Presumably all of the benchmarks consist of many thousands of repetitions of the same process.
Safety1stClyde··on Benchmark: Java, Python, PHP, C, JavaScript, Swift, Ruby, Perl, Go, Lua, Rust
I program in Go and JavaScript, but don't enjoy it.

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.

Safety1stClyde··on Benchmark: Java, Python, PHP, C, JavaScript, Swift, Ruby, Perl, Go, Lua, Rust
> The Go vs JavaScript lineup is quite stunning. Go destroys Node.js in memory usage and performance on every test except regex-redux (edge case?).

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.

Safety1stClyde··on Ask HN: Books you wish you had read earlier?
I bought this book based on the endless internet recommendations. After reading it, I was mystified, completely mystified, why people recommended it so strongly.
Safety1stClyde··on We plan to have Chrome hide ads that do not comply with the Better Ads Standards
> I've already provided instructions on how you can trivially setup a phpBB forum using cPanel.

This statement is incorrect. You haven't provided instructions on how one can trivially set up a phpBB forum using cPanel.

Safety1stClyde··on [dead]
Despite what the article says about Trump supporters being worried about climate change, this was a campaign pledge of Trump. So this, like the wall, is what people who voted for Trump actually voted for. Rather than blaming Trump, perhaps the voters should be blamed.
Safety1stClyde··on Secretive Billionaire Makes The Cheese For Pizza Hut, Domino's And Papa John's
Sales and engineering are the two pillars of the Conjoined Triangles of Success.
Safety1stClyde··on DeepFix: Fixing Common C Language Errors by Deep Learning
> You use this to get suggested corrections when things don't compile.

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.

Safety1stClyde··on DeepFix: Fixing Common C Language Errors by Deep Learning
When I saw this title, I was expecting to find something about using a computer to detect things like "use after free" errors. However, skimming the paper, it appears to refer to altering the source code to remedy compile-time errors rather than to finding flaws in program logic. The notion of the authors is to repair broken inputs so that they compile correctly despite syntax errors by the programmer.

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.

Safety1stClyde··on We plan to have Chrome hide ads that do not comply with the Better Ads Standards
> hosting 15,000 users a month is trivial for a forum use case. building a forum is also trivial. you can literally do the entire thing in 15 minutes (buy a domain, use cPanel, install phpBB, done).

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.

Safety1stClyde··on Linux Namespaces and Go Don't Mix
This is what I cannot understand about Go: how did a newly-designed programming language end up as such a muddle?
Safety1stClyde··on Workers involved in union activities say Tesla is illegally intimidating them
> Tesla CEO Elon Musk ... promised to install both a roller coaster and free frozen yogurt machines throughout the facility.

I had to double-check that I was not reading a satirical website after reading the above statement.

Safety1stClyde··on We plan to have Chrome hide ads that do not comply with the Better Ads Standards
> Despite the overwhelming negative reaction in that discussion thread, Google decided to go ahead with it. What does that really say about Google and friends?

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".

Safety1stClyde··on We plan to have Chrome hide ads that do not comply with the Better Ads Standards
> 450,000 cents is about 5 thousand a month.

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.

Safety1stClyde··on Nim Programming Language v0.17.0 released
The spamming of this site by these kinds of projects has gone far enough that it has now been parodied in a television series:

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.

Safety1stClyde··on Nim Programming Language v0.17.0 released
This post about yet another "new programming language" reaching a milestone consisting of random digits was upvoted so that it reached the front page of your web site, and my pointing that out resulted in my not only being downvoted but revenge-downvoted across several other posts. If you wish to improve your web site's content, a more valuable service toward that end would be to excise the spammers promoting the above nonsense content, and revenge-downvoting across answers, rather than criticising me for pointing out that this emperor is not wearing any clothes.
Safety1stClyde··on Nim Programming Language v0.17.0 released
I'm trying to contain my excitement.
Safety1stClyde··on Nim Programming Language v0.17.0 released
Yeah, it's hard to contain one's excitement when one hears that version 0.17.0 of a project has just been released.
Safety1stClyde··on Nim Programming Language v0.17.0 released
Whatever importance "v0.17.0" might have to the authors, it means no more to me than any other random string of digits. Regardless of the content, the title of this submission is ridiculously poor.
Safety1stClyde··on The Quest to Make a Super Tomato
Sorry to hear that the USA has so many problems with tomatoes.

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.

Safety1stClyde··on Nosaka Akiyuki and Legacies of Imperial Japan
Congratulations, your page is completely blank.
Safety1stClyde··on Nim Programming Language v0.17.0 released
YANPLUSUM - Yet Another New Programming Language Undergoes Some Unimportant Milestone.
Safety1stClyde··on The Internet Warriors
A blue screen of death?
Page 1 of 10Next →