skysight-inc/HackerNews huggingface dataset:
Why would it ever matter that keys are duplicated? It should always be compressed when going over the wire anyway
If that's the plugin that was affected, then I think the author did nothing wrong. What would be the point to explain what REST - as a concept - is, in a non technical article.
When I use JSON, I usually make sure that the parser supports trailing commas and comments, even if I have to add that myself. The reason is that I deal a lot with machine-generated but potentially user-edited JSON. Anything else is needlessly masochistic.

When producing JSON for others, I just use the minimal consensus format (read: the "official" spec).
I just learned about cbor. Does cbor have this issue too?
I find that conclusion presumptuous. Unless you can say how many bugs would have been discovered had the source been closed, then it doesn't make sense to claim the opposite.

Also, do we know that e.g. this and Heartbleed were discovered by reading the source? If they weren't then the availability of the source code is inconsequential IMO.
Apple and Google Fix Browser CSP Bug. Microsoft Does Not
Is that why I've never seen am AMP link? I've been seeing the articles and thinking "what are these people talking about, AMP links are extremely rare, I've never seen one".

Good job, Google.
Christ. Are you a moderator yet?
A longer delay than that happened to me at Logan (Boston). They kept saying an hour delay for over 12 hours. If they'd told me the truth, I could have gone back to the hotel and gotten some sleep. It was pretty miserable.
I've had the opposite experience (mostly). I switched one day, got frustrated whenever I got bad results, started using !g for those, realized that Google returned equally bad results and now I only search Google for programming questions, which DuckDuckGo can't answer as well.

I've been a happy user for more than a year, and I don't get any of the AMP crap (which apparently isn't even shown on mobile Firefox anyway).
We don't even have reliable information on the ratio for humans. Please don't try to tell me that we have reliable numbers on what fraction of worms or chimpanzees are "gay".
LGBT groups denounce 'dangerous' AI that uses your face to guess sexuality
There's another — extremely NSFW — version on Encyclopedia Dramatica. "DNS comic" should find it...
They will lose, is my prediction.
http://rubyfiddle.com/riddles/2a418
The use case of JSON is to be able to read structured data from dynamic languages, with a single line of code and no preparation otherwise. It fits this purpose and it works well if you know the layout of the input.

As a storage format I don't like it, either. No canonical representation (at all): Arbitrary whitespace, arbitrary order of members. Too much line noise: Quotes around each member name. No schema support.
Complainers in this thread might take a look at YAML
CBOR [1] has an extension to allow string references [2], so field names won't take up much space.

[1] RFC-7049, also http://cbor.io/

[2] http://cbor.schmorp.de/stringref
It won't make much sense unless you already understand CBOR encoding, but it's a registered extension.
>People generally don't care when someone is walking around the halls dressed up in a suit.

Particularly if they behave accordingly.

A classic (just to show that there is nothing new under the sun):

https://en.wikisource.org/wiki/The_Innocence_of_Father_Brown...

>If you meet a member of that select club, "The Twelve True Fishermen," entering the Vernon Hotel for the annual club dinner, you will observe, as he takes off his overcoat, that his evening coat is green and not black. If (supposing that you have the star-defying audacity to address such a being) you ask him why, he will probably answer that he does it to avoid being mistaken for a waiter. You will then retire crushed. But you will leave behind you a mystery as yet unsolved and a tale worth telling. ...
He wrote a book with some others guys that was supposedly influential in governemnt during the cold war. My understanding the impetus behind "star wars" missile defense was was kind of a decoy to get the Soviet Union to spend themselves to death.

https://en.wikipedia.org/wiki/Strategy_of_Technology
But why were 143 million records of personal consumer information stored in a way that they could be accessed via a vulnerability in a web server in the first place?

I would have expected this type of data to be stored in such a way that even if someone got access to one of their web/application servers they wouldn't be able to dump 143 million records from it without serious red flags going off.
IANAPLRESEARCHER, but to my understanding, it actually unifies the semantics. The return value is always the result of the last expression, and its type may either be something non-trivial, or `()` which is what `expr;` returns.

This makes it easier to write and use generic code for which you don't know the return type (could be `String`, could be `()`), without insisting on special cases for "returns a thing" and "doesn't".

Example: I hold a thing of type `T` and want to let you call a function on it. I can write this generically as

pub trait WithMut<T> {
fn with_mut<R, F: Fn(&mut T)->R>(&mut self, func: F) -> R;
}

and now with one implementation I can deal both with functions that return meaningful values, and "computations" that do some work but return nothing (other than `()`).
Difference between Travis CI tests: pr and push
I was under the impression that “nothing more than unreasoned executive whim” was all that is required for an executive order - this being one of the chief criticisms of the entire concept.
This isn't an inherent property of options. It's just how almost all options contracts are written otherwise they wouldn't hold any value. If this option isn't written that way, then it's feasible.
Not only that, it lets you use the sake ad blocker as the desktop browser. uBlock origin, privacy badger, etc.
Does anything like this for open source projects exist? I'm interested in finding unfinished, abandoned open source projects in the technology of my choice that I can take over and steer in the direction that I want. And of course without changing the license.
maybe Oracle is finally gonna dump java and send it to a flundation altogether like other former sun projects. It failed to capitalize java I think
Maybe not in vanilla text editors, but I don't see a reason you couldn't have an Emacs mode or special-purpose editor that lets you manipulate protobufs as text or structured data, respectively.
That sounds like an awesome project to hack together. I look forward to making something similar one weekend.
I agree. The menus on Zomato are basically just scanned copies of restaurant menus

I would prefer a database of the city's restaurants and their menus, all sortable and searchable.

Say, I want to know restaurants serve Ramen near my home, I should be able to do that. I should also be able to sort them by price, or number of variants, etc.

The problem, of course, is data collection. If there is substantial traffic, restaurants have an incentive to keep information updated themselves.

Else, you're going to have to rely on crowdsourced information with some OCR
I denounce The Guardian, LGBT is so not inclusive, at minimum they should use LGBTQIA
Yeah, they do those things. But they make up a minority of their magazine content.

They still do a lot of 'hard news' stuff (along with the vast majority of their output which is straight 'normal news'). For example, just this week: http://www.bbc.co.uk/news/resources/idt-sh/g4s_brook_house_i...
Parse did that and it sucked.
I saw two guys on an S7 flight from Moscow to Irkutsk get really drunk and then start fighting (literally, like with fists). It was a bit of a culture shock.

Actually, there's some kind of law now in Russia that they only serve alcohol in business class because of these kinds of issues. It start about one or two years ago. But people still sneak it onto the plane or drink their duty-free alcohol.
I recall 10 years ago it wasn’t nearly as terrible. Did something happen to the bbc?
So what was his politics?
How do you feel about the ! operator?
MonetDB[0] is an open source OLAP engine which does cracking.

From the Wikipedia page:

"Cracking is a technique that shifts the cost of index maintenance from updates to query processing. The query pipeline optimizers are used to massage the query plans to crack and to propagate this information. The technique allows for improved access times and self-organized behavior."

[0] https://www.monetdb.org/content/column-store-features
Slightly off-topic, but feel like someone here has the answer so asking anyways.

People keep mentioning that AMP is a "open effort" and "open source" but I've only seen the HTML framework's code, not the caching servers. Supposedly, you are able to run your own AMP Cache server, but there are no examples out in the wild.

I even took to Twitter and asked Paul Bakaus ("Open" Web Developer Advocate at Google) who wrote a blogpost about why AMP Cache is good, but no answer.

Is the AMP really a open project or is that just the HTML Framework and the goal is to lock people into Google's AMP Cache?
Actually, there is a built-in ASCII format for them as well. It's a little less flexible than the binary serialisation though.

There's a canonical JSON serialisation in v3 as well, although obviously that doesn't solve the OP's problem...
India’s biometric database is a dystopian nightmare
I'm surprised this got voted up considering how dismissive (and, frankly, mean) HN was to "JSON5" a few years back https://news.ycombinator.com/item?id=4031699

Trailing commas have been fine everywhere in JS since IE7 - it's about time all interpreters have this as an option, and preferably on by default.
I think what you are implying is that since the buildings are close together there will be a noise pollution issue.

Obviously little buildings are not going to be adequate for everything like an orchestra or opera performance. So that isn't meant to apply to every single building.

But as far as practicing those things, generally there is sound proofing in those types of music practice rooms, and also I have suggested airtight construction with SIPs and HRV. This means most of the sound is insulated between outside and inside anyway without any sound proofing.

Also, this is partly an alternative to apartments or townhomes, where walls and/or floors/ceilings are shared. So obviously an advantage there even without the advanced construction and ventilation.
It's actually super nifty and IMO a great feature. However I think one of the reasons it works so well is that Rust is statically and very strongly typed, in a more dynamic language it would be hard to keep track of what's going on.

An other reason it works is that almost everything is an expression in Rust, including things like `if` statements. So for instance you can write:

let message =
if auth_ok() {
"success"
} else if tries < 3 {
"try again"
} else {
"failure"
};

If you add semicolumns after the strings the `if` will always evaluate to nil here.

Note that this won't work if one branch returns string an and other returns an integer for instance since the type of "message" must be known at compile time.

It also works well for getter functions and lambdas, for instance:

fn is_empty(&self) -> bool {
self.len == 0
}

or:

list.sort_by(|a, b| a.key < b.key);

This way you focus on what's important.

I can see where you're coming from though, it's easy to dismiss this feature as a bad idea on paper, especially if you've been traumatized with Javascript's insane handling of semicolumns. In practice however it's a rather useful sugar and so far it's been harmless in my experience. It basically makes the language more lispy.
I actually recommend taking this course on coursera. The videos are nice but very basic - what really is intresting are the coding assinments.
That site has an interesting setup where they want you to pay them $2 a month to do work for their app, in return for youtube shoutouts.

Oh, they’re New Age scammers? Haven’t seen that in a while, but you can tell from the magical powers ascribed to anything related to “energy”.
That was his point. Pruitt is not better.
What if Satoshi isn't a single person but an entire organization?

Specifically what if Satoshi is a decentralized autonomous organization and the original bitcoin paper was an output generated by the Satoshi DAO?

Why would Satoshi do that you may ask. Well they need to make sure the whole blockchain concept was created in the first place or otherwise Satoshi DAO would not have come into existence...
The article seems confused. It talks about "soaring", "huge" profits, while also talking about "unprecedented" losses, "struggling" through bankruptcies, and the "perennially insolvent airline industry".
> It's not like updating this stuff is without risk.

Same goes for kernel, libc, all other libraries, and pretty much anything else. This is not an argument for not upgrading them though.

Also, sadly, almost all firmware updates fix a "problem [that] points to a specific piece of hardware" that you use.
Quadratic voting (2014)
The Little Book of Semaphores (2016) [pdf]
Wait, so is the op actually suggesting we be able to use commas? I thought op meant to say people who want to use commas are exactly like people who want to eat human babies to solve the problem of child poverty.
Could be wrong but I feel that's more than an hour east especially when you account for traffic - at least the cities that are actually inexpensive. Dublin, Pleasanton, and Livermore are no longer inexpensive cities with cheap real estate. Neither is Alamo and other nearby cities.

So the problem with living beyond Pleasanton is that you will spend most of your life sitting in traffic. Why do you need to sit in traffic? Because almost all the jobs are in the Bay Area. Maybe that won't be as big of a problem soon though once you have Level 4 autonomous driving. Personally I still wouldn't go for it with that.
I've never heard about quadratic voting before. This is very interesting!
The most frustrating thing for me is it completely breaks find in page on mobile safari.
> downleveling transpiler

What's wrong with the JS "scene", in two words.

Good lord.
"What we need is a way to connect our RSS feeds together."

Could you flesh this out a little? What is it that you want to see?
Thanks for the link, I started reading the paper. I love this:

Groups frequently make collective decisions through majority rule. Legislators pass bills by majority; shareholders make most corporate decisions by (share-weighted) majority rule, as do directors; clubs, university faculties, and civic associations typically use majority rule as well. The reason that they do so is not entirely clear. (Emphasis mine).
Have you tried writing Rust? I have and I think this feature is great.

I upvoted you for your link, but actually the argument that it would be good because people who care more will make a better decision than those who don't does not completely convince me. Someone could care a lot about something but still have the wrong idea about it.
I read his column first when I received my copy of Byte Magazine. Chaos Manor helped me decide to become an IT professional. He will be missed. Sad day.
Hah! Surely a memory-safe language cannot have security vulnerabilities. /s

I find it telling that in this case it was NOT a C program being responsible for the hack, even though the affected machine was likely running many orders of magnitude more C than Java code.

I've always said it and I will repeat it here again; higher level languages fail in ways that are much more surprising, complicated and hidden than your typical "insecure" C program.
Yup keeping comparing a country, with a population less than most metros in the US and draw whatever conclusions on tax policy you want that fit the narrative in your head. Getting ridiculous around here.
It's not infix math that's the problem, it's the ambiguity of "-". It can take two arguments in one context, or one in another (or just be a representation of a negative number without implying any function call at all.) If we just used a different symbol for subtraction, it would clear up a number of other parsing problems languages run into. Or you could just require negations to be done inside parentheses.
10 Businesses to Profit from VR
Show HN: “serve” your local directory very nicely with go
https://github.com/integrii/serve

I got tired of the huge list of static asset server options out there. Python's built in one, various ruby gems, piles of npm commands... So naturally I added another (the best!) one.

It is written in go, so that helps portability, speed. It's name is just 'serve'. No options or flags are required for invoking. It looks pretty. It supports hitting Command/Control-c gracefully.

Hopefully this is useful to some people. Feedback welcome! Thanks!
This cannot be true. Jews would not allow for this to exist, because the idea would spread, and the United States may actually regain some influence over it's currency.
Comparison between Hadoop 2x and Hadoop 3x
There is a damned good reason JSON does not allow comments. It's not an accident.
Alluring wedding gift card box ideas for your wedding
Information Storage and Retrieval Using Macromolecules as Storage Media
I'm not going to pay money to justify getting the free version though.

How about we as a society realize how backwards this whole system is and just drop DRM?
Ah, some mobile autoincorrect. 'Keen'.
So can you fill the rest of us in on the reason then?
I might be misunderstanding something here, why not just:

{
a: [1, 2],
b: [5, true],
}

But this doesn't solve the problem if your data isn't a nice table and has deeply nested tree structures. Which is what JSON is for, otherwise people would have just stuck with CSV.
Slightly related: I did some work on a format with really homogenous and canonical syntax that is also low-noise and human-editable. It's based on a relational representation, so also supports some integrity checks out of the box.

I also experimented with specification of transformations to/from hierarchical representations, but I think the problem is that there are different possible approaches with their own pros and cons.

http://jstimpfle.de/projects/wsl/main.html

http://jstimpfle.de/projects/python-wsl/main.html

Tell me what you think!
Or maybe, just maybe, Oracle finally realized Java has become a bloated piece of over-engineered enterprisey abandonware, the developer community has largely moved on, and it won't make them money going forward.

Java is in maintenance mode. So they open source Java (for real this time) so someone else will take maintenance costs off their hands, and they can still sell their app suites which use Java.
> A large number of exceptions to a generalization absolutely is sufficient to undermine a causal hypothesis.

Only if it's a deterministic causal hypothesis. Otherwise, the proportion of counterexamples only serves to bound the effect size, which is obviously quite small in this case.

I don't think anyone in this thread seriously believes that "almost all gay men [are] unusually feminine". If they were, they wouldn't be called "gay men" but "women with a penis" or something like that.

> That's what I've been saying. But in the media, and on HN, the idea of relating homosexuality directly to a masculine-feminine continuum is very popular. Many do not realize that this is not science, but just old-school homophobia dressed in pseudoscientific garb.

A direct relation would certainly be surprising, but that doesn't mean you can't study correlations between sexual orientation and certain measurements of the body. That's science and might lead to insights how and when sexual orientation develops. I don't really care what people make of it who confuse correlation for causation or don't understand that statistical significance doesn't imply a large effect size.
Oh also, I skimmed over the link last time I replied. I love your book, found individual sections while researching years and years ago and as soon as I saw there was a book available I grabbed it.

Thanks for both providing that resource and for making it available in whichever I bought, Kindle or EPUB. The website is also very pleasant to read, and I like the way you handled asides across breakpoints.
I do the same, but instead of switching/patching the JSON parser, I replace it with a YAML one. YAML was designed to be a superset of JSON precisely so that it could be used as an upgrade path. It also allows comments and neat multiline string formatting (in addition to trailing commas).
Well, the subtitle is "Let Me Put a Fucking Comma There, Goddamnit, JSON", and the argumentation is "for the love of all that is fucking holy", so I'd say the intention of the author of the proposal was not to make it look serious.
It may be used as such but it shouldn't be. YAML serves this purpose much better.

JSON works better as a language independent serialization format that is incidentally readable.
If you were to assume the soil you are excavating is very forgiving and your street is wide enough, you might be able to dig a trench that is 10 meters wide and 30 meters deep (you cannot dig straight down or the walls might cave in, unless you plan on using shotcrete, which you may or may not have to remove when you start backfilling the area). Now, we are talking about removing 975 cubic meters per meter of trench, if your street is 100 meters long, that is 97500 cubic meters you will need to excavate, at a rate of 33.1 cubic meters per hour, you would need to work around the clock for more than 122 days in order to excavate the trench.

You also have to take into account that you will need a place to store the 97500 cubic meters of soil you just excavated, which now have swollen up to 126800 cubic meters, the average dump truck can hold around 10 cubic meters, it would take you more than 10000 trips to move the soil.

This is just one street, never mind the fact that in order for this to be useful you will need to have at least a few kilometers of tunnel at a time.

Also, even if there are no internal combustion engines running in the tunnel, you still need ventilation shafts, subterranean metros have them for a myriad of reasons, even though there are no dinosaur squeezings being burned in the tunnels, for example, what happens if one of those very powerful batteries that run your Tesla happen to catch fire? People might suffocate if you can't force air into the tunnel.

Its a nice idea, but there is a reason why tunnel boring machines and vertical shaft sinking machines are so widely used on built-up areas.
But do these countries have the same laws, processes like the USA? If not, there's no point in mentioning some other country has it.

For example, in Norway you can see everyone's tax returns [0]. The caveat is that if you see someone else's tax return - the person will be notified. Now, if you just make tax returns public without the notification - it would be a different policy and not comparable to Norway. Therefore, comparisons/mentions should be complete and apt.

[0] https://www.theguardian.com/money/blog/2016/apr/11/when-it-c...
> But they make up a minority of their magazine content.

No excuse. That crap is paid for with my taxes. They don't need to lower themselves to that standard.

That shit permeates, you know? The news side will look like that eventually.

I'd have thought taxes + license fee would be enough to avoid the race to the bottom, but here we are.
I would rather say that it is more like disenfranchisement of middle and small landowners in the late XIX century in Europe.

Land lost it's store of wealth status, governments aimed at land reforms and wealth creation shifted to areas like railways and textile industry. The land-owning class had been reduced to 'poverty' within generation.

Lots of XIX century literature is around the subject of people getting 'reduced to poverty' but desperately trying to keep appearances.
I could not have said it better bro
PRE-ICO Lust.agency