skysight-inc/HackerNews huggingface dataset:
This is one of those duality things that comes up so often in programming and math: What is optional from the point of view of the user of the format is mandatory from the implementer's point of view. Pointing out that it's optional for the user does not remove the additional complexity the implementer must pay. YAML is a lot more complicated than JSON, and it's not all different ways of spelling the same thing (which is a sort of complexity that at least isolates itself to the parser), it's genuinely richer and more complex, and that price gets paid by somebody. Focusing on the one not paying that price doesn't make it go away.

Further, "YAML is not as popular as JSON" is an observational fact, not something we can argue away. It's worth trying to figure out why and learning what we can from it. I've made my proposal. There are other options ("Javascript is a steamroller"). But I'm not really a big fan of the evergreen "other people are just too stupid to see the obvious truth" explanation, which is generally the one that seems to be given to explain why YAML hasn't beaten JSON. That explanation is almost always wrong. (Only almost, though.)
malloc() should fail even with always over commit enabled if you try to malloc more memory than there is virtual address space, although that needs testing to confirm it. The alternative to failing would be hanging inside the kernel, which would be a DoS attack.
When it works. It often just doesn't for me - no links clickable, no content loads on scrolling.
To me, there's a potential implication in the headline that doesn't quite paint the right picture. Today's zoning code express a plan for dealing with the good and the bad of aspects of previously constructed buildings.

Today's zoning code deals with the height and bulk and uses of existing buildings as facts when determining the hygienic requirements of future buildings. Existing non-conformities are part of the logistical plan for handling change. The tightening of rules over time is the result of the strain prior laxity places on resources today.
In a past project, we had a similar system used where most of the UI of the iOS app was driven by json served by the server. You can definitely do a lot, but the syntax of json had quite some limitation especially when you are trying to code some complex UI actions or add some business logic linked to your dynamic UI.

The system did evolve into using a combination of json and JS using for back then the newly introduced framework JavaScriptCore ... It made everything a lot easier overall since JS is definitely a proper language.

The JS obviously was able to map to native objects and thus performance overall was great. The app is still used by millions of users daily.

Edit: typo and adding more info
hate speech=/=hate crimes

UK has had, and still does have very aggressive legislation to combat "hate speech" and offensive speech in general.

It's not very far fetched that such a statement could have been in violation of said laws, but that certainly wouldn't make it a hate crime.

While jkots wording could have been better, there's still a very important distinction here.
The more I use the "automatic" checkouts at the grocery store the more I am convinced they are for suckers. They just shift a ton of labor onto me and aren't any faster. Employee intervention is required for many steps (alcohol purchases, system thinks you didn't bag the right item, receipt tape runs out, etc).

Soon the machine will start handing you a mop and telling you there's a cleanup in aisle 4.
Chart the Rise and Fall of America's Most-Eaten Foods
No, May 2007 to September 2008 isn't two years, it's 1⅓ years. And Android had been in the works for years before that. (Even before the 2006 promise by Sun that Java would be released as open source.)
No, I don't actually handwrite things frequently, and didn't get much practice. More trouble than it was worth, for keeping notes and stuff in. Maybe I'll pick it up again.
And then you go to the Features page, with a box on the right clearly listing "GNU/Linux and Unix / Windows / Mac OS X" as supported plartforms :) With "Native look and feel" in the box just below.

I disagree with the current GTK direction, but it's not my project and I accept that. If the focus of the project has changed, update the website(s) and documentation.

Also the HTTPS stuff pointed out by distances.
I love this kind of stuff. The similarities and differences of programming languages is something of an obsession of mine.

In my free time over the last several years I've been working on a chrestomathy that collections solutions to Project Euler problems in various different languages [0]. I'm currently up to 39. It's certainly far from "every" language and in most languages I've only written solutions to the first handful of problems. I've learned it's hard to not learn a lot about a language if you do the first 7 or so problems in it.

[0] https://github.com/seaneshbaugh/rosetta-euler
I think the C-Version should be "int main(void)" and use puts instead of printf or printf with %s.

You can also remove the return 0 in modern C but I don't mind the explicitness.

Edit:
Link to C11, draft only as the released version costs money: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf

Edit2:
No ARM assembler or is it not under A (either for assembler or ARM)?
FBI used Best Buy informant to illegally search computers, says lawyer
No offence, but I don't think you fully grasp the situation here. This is an extremely optimized fully native server written with low-level CPU awareness. You can absolutely not, in any possible way, write this in Python.
> Actually, the government guarantees the loans on behalf of the student. So if the student fails to pay, then the government will foot the bill. The reason bankruptcy doesn't apply...

So what are the conditions in which the guarantor will be required to take ownership of the loan? Death? Anything else?
So you touch your money, then you touch the ticket with the hands that touched the money, then they take the ticket and prepare the food with the hand that took the ticket that touched the hand that touched the money?
Pretty complete coverage here:
http://observador.pt/seccao/ciencia/exploracao-espacial/spac...
It's rather ironic how journalism is always bashed without research. Also, people tend to judge media based on what appears on their very socially skewed Facebook feeds.
Yes, to be precise it's HTML+JS+CSS reinvented. I took lots of inspiration from existing browser standards while developing Jason.

But to be clear, it's NOT one of those html5 hybrid app builders. Jason is a scripting language that you use to manipulate native functions and elements directly. There is no HTML and packaging going on.

Also on the packaging note, the whole point of Jason is you can just write something up quickly and have a functional app running in 5 minutes. No compile, no build, no upload/download, no deployment. All you need is a single flat JSON file and you can share that url with anyone.

Does this make sense?
Still my favorite interview question ever.
GARLIC BREAD IS THE FUTURE! http://thehivemind.online/?garlicbread
Chinese officials 'create 488m bogus social media posts a year'
Lesson: Don't go to North Korea.
>>> Sure, but the inept Spanish non-government will never do the right thing with this amazing opportunity

How come ? Spain has lots of both solar and wind plants that have been heavily subsidized by the government in the last 15 years.
We've just released Universal.css, which is a great state-of-the-art CSS library.
https://github.com/marmelab/universal.css

What do you thinks, guys?
Washington Post Pushes into Ad Tech with New High-Speed Ad Product
Thanks, I was looking for this! Thought the Github language stats would show me, but they seem to be failing.
I think they'd characterize click-bait sensationalism as effectively lying and their censorship as a means to dampen it

I'm not condoning their censorship. Yeah, obviously it leads to the government twisting the truth to toot it's own horn. On the political side of things its terrible
I'd say it's to do a lot with advances in turbos. Most small engine cars have turbos now that rival anything even a decade a go. This means you can get by with much smaller engines and get similar performance.
Essentially making this an even more telling interview question when someone is unable to answer it. Thanks!
Agreed, with both of you. I like this hackernews forum, as false arguments tend to be articulately called out and discussed.

The irony of the thread is that the fundamental debate is about if such a forum should be allowed to exist without government mediation and control.
https://www.youtube.com/watch?v=fN1WBgS9u_E
Show HN: HTTP Prompt – An HTTP CLI with autocomplete and syntax highlighting
Hi all, OP here. If you have any questions about the journey so far, ask me anything.
>To Facebook’s credit, they’ve chosen to be radically transparent about this.

Wait, they chose to be radically transparent AFTER they were denounced?

Kinda like Theranos, who's being really honest about the quality of their tests, AFTER they've been shown to be worthless?
I notice the same thing. As far as the Flash thing, I'd imagine it's a matter of trying to balance the desire to wean people off of using insecure plugins while minimizing complaints. Certainly not "fair" to give some a pass and not others but at the same time, if (made up number) 95% of non-sketchy Flash usage takes place on ten sites, you can weed out a huge swath of exploit problems while minimizing hassle as you wait for the top 10 to move away from Flash as well.

It's an imperfect solution to be sure. But in these situations (officially ending support for WinXP/IE6, ending support for some plugin, etc) there is no perfect one. There needs to be some motivation to get users and websites to move on from Flash but there's also consideration for breaking commonly used services.
Btw cross platform Go GUI by the same author is based on that:

https://github.com/andlabs/ui
I'm partial to BEM From Yandex for my CSS -

http://docs.emmet.io/filters/bem/
Given that Taiwan is officially known as the "Republic of China," has a government that repeatedly refers to itself as a part of a disunited China, has a significant portion of the population who votes for that government and believes that they themselves are Chinese, and understands that it is well within the interests of the United States and Westerners to agitate for an independent Taiwan, it's understandable that the average Chinese person without knowledge of the complicated reality and facing pointed discussion from a foreigner would be confused at best. Propaganda certainly has a role here, but it's not difficult to understand that it's only among the reasons Chinese people hold this view.

Consider the United States. With our free and press how many Americans would agree that they are living on land stolen from Native Americans? Or that the acquisition of Hawaii was a clear act of imperialism?
I have never had the desire to read my Twitter feed. That's a serious problem for Twitter.
Twitter had something called "lists" that let you categorize and segment what you follow, but they've deprecated or hidden it sufficiently that I don't use it anymore.

With the Twitter feed, I get this random spew of stuff that I can't categorize. It gets useless quickly, and I have better things to do with my time than curate twitter.

I love the basic product, but Twitter is a clueless company that needs to die so someone can replace it.
>Ordering fast food on a touch screen takes seconds vs. talking to a human being.

Does it though? Verbalizing my order to a person who is highly proficient in using the ordering interface has always been quicker than having to manually find the items I want and enter them.

I can see how this could reduce error, but I think this has more to do with cutting costs than adding efficiency to the ordering process.
Not in my opinion. The GPL is a license that depends on accepting the license -- or not. It is always acceptable not to accept the license and write your own. That's part of software freedom. In fact this judgement puts GNU Classpath in a very tenuous position because their code is also not based on the the GPLed version of Java (having been written before Java was GPLed).

Even GNU is now in jeopardy because who the heck owns the copyright for POSIX??? Is there any license language in the specification saying that you can implement it? I have been too scared to look up until now. This is incredibly important because all of the GNU tools and the Linux kernel have been implemented independently and are not derivations of things like BSD.

No. This is a nightmare for free software because it means that every single RFC in existence now needs a license thanks to copyright lasting for the life of the author plus 95 years. It means that we can never interoperate with services that choose not to grant a license to their API. Even if you reverse engineer it, expect a lawsuit having to defend yourself using a fair use defence.

And if you live in most of the world that doesn't have fair use. Well, you are just screwed.

The only thing this means is that free software will be marginalized. We'll be set back 20 years.
May i suggest you to take a look on https://github.com/131/h264-live-player (with ws :p)
i doubt that this was a 'system "file $my_file"' as i believe there is a library that contains the file determination functionality in it.i can definitely see this a being an intended use of the file library.
Open issue for NSA deep packet inspection. No skipping! https://github.com/alex/what-happens-when/issues/34
I think it's problem is that, as a user, I've pretty much ruined it for myself.

I follow almost 1300 people. I don't even know how it got to that. Probably 2% of those tweet regularly, about 0.1% tweet anything valuable or interesting. It's just too large to go through and curate now.

I don't know who sees my tweets. There's no "viewed" count or "who viewed" your tweet. I would think, if it flows past someone's eyes, it would be nice to know that it did, and how many times.

Promoted tweets should have a bold background color. I never notice when one is promoted other than it feels like it might be.

And something that really can't be fixed IMO is to have Twitter only show things I will be interested in. I would like it to be able to read my mind. Is that really too much to ask?
did you miss the qualifier?
Hacking Prince Philip's Email
Kind of interesting idea about how our tools (generic) present us with limited menus, and effectively restrict our options.

Facebook has expanded (barely) the options for basic responses to posts (no longer just like, but also a handful of emoticons to express laughter, anger, sadness, etc.). Not as full an option as when using the comment box, but for quick responses it allows for greater expressiveness. At least people don't have to "like" the tragic news of their friend's family deaths anymore.

But then look at Allo, announced from Google yesterday, with its @google bot that will help people decide how to make basic, trivial responses to pictures posted to threads. (I'll try to find the link later, but the demo was with a graduation photo, and a few suggested responses like "You look great!" "Congratulations, so happy for you" or something similar).

By pushing the job of coming up with options to tools, like the choice of restaurants and bars to Yelp, we narrow our worlds. We limit our expressiveness and creativity.

I don't know that I have a point, just some thoughts.
I'm all in for renewable energy, but it bothers me the lack of critical thinking about it. The words "renewable" and "green" are always viewed as something positive for humanity, but as everything in life, nothing is black or white.

Here is [1] and interesting article about how efficient energy could actually speed up the end of civilization.

[1] http://www.inscc.utah.edu/~tgarrett/Economics/Jevons_Paradox...
Economics Has Failed America
I'm missing a `display-none` css class, looks good otherwise!

Edit: Meant `js--on-hover-this-element-do-display-block-other-class`. Obviously, other class would be an element with `.other-class`
It's inconceivable that this should require any maintenance. I don't need a "backspace key goes back" checkbox, I just need to be able to customize the keyboard bindings. Decoupling the actions a program can perform from the key combinations which trigger those actions is basic stuff.

From the maintainer's point-of-view, having the option to bind "backspace" to "window.history.back" shouldn't require any more maintenance than having the option to bind "alt-left" to "window.history.back" does.

It is Google's fault that they didn't make Chrome work this way. It also means I can't unbind "ctrl-shift-q" from "quit_immediately_without_asking", because Google refuse to add an option to make it so that I can't accidentally fat-finger a C-w into something that ends my entire session. All keyboard shortcut problems disappear instantly if key bindings are configurable, however, without adding new options for each command.
What Americans ate on an average day, for the past several decades
Encoding Voxels with Deep Learning
Here's an question that should pair up pretty well to the API copyright-ability question. Is the list of words and their order in a dictionary copyrightable?
got it working with the following:

window.location=window.URL.createObjectURL(new Blob([localStorage.getItem('hn_saved')],{type:'x-whatever/x-backup'}));

file name is weird (I'm a JS newb!)
Novelty, not technology. The same cognitive behavior is exploited on restaurant menus.
I'm the author of HTTP Prompt. Any questions or feedback will be appreciated. :)
>I don't know who sees my tweets.

analytics.twitter.com, yo

edit: it won't tell you who, but it will tell you how many
Do we have any data for USA, something I care more about?

ex:
http://tinyurl.com/hbsanfr
You sound much more confident with CSS than me. On day one, my designer gives me PSDs and all the buttons are red with 10px padding so I create a button class with those properties. Later I get green buttons with 20px padding and the sad trombone rings loudly.
Nope. Just done that, in a tree view. Took me to folder 2
I'm already using it on a socket.io production server. Super-stable for days, and noticeably less cpu / memory usage.
Great open source software !
> It's just too large to go through and curate now.

My advice? Declare bankruptcy. Unfollow everyone, and go back and start building up a fresh list of follows that you're genuinely interested in.
Its nice to get a perspective from inside but the issue isn't human intervention its rampant human bias.
Google interview question, nailed it. Keep wrecking these.
When K-12 teachers assign students to contact experts
Ah ok. Makes sense. I remember searching for a low interest loan because I knew I would be able to pay it back and thought 13% was ridiculous for such a credit worthy individual (credit score 760). Thanks for taking the time to answer, it is definitely a cool product!
I only follow 60+ influencers in my field and retweet their most important news. That way, I have a narrative. Twitter is easily my most important social network nowadays, also because LinkedIn morphed into a spam-trap and a click-bait.
well autonomous driving will do that to cities more than public transportation did.
Get distance and time in sea instantaneously
Passing %d to printf says to print an int. 0x81000000 is a negative number when processed as a 32-bit signed integer. The output is the two's complement interpretation of the value. To print an unsigned int, you should pass %u. This would be more obviously correct if %x were used to print the hexadecimal representation, which is 0x81000000.
Yes, because "Chrome phones home with all form data/keystrokes" wouldn't hit the top of HN.
https://github.com/andlabs/libui/issues/24
Sooo... These are the things that I need to do to build a successful app?
well, good riddance to flash, but Encrypted Media Extensions are definitly not an advantage, see for example https://www.eff.org/deeplinks/2016/04/save-firefox
Because Free SW licenses only apply to copyrighted works.
Great idea!
I've opened an issue, feel free to open anothers for each idea.

https://github.com/marmelab/universal.css/issues/2
Wait, did you really mean "TLD", or just "domain"?
Sounds like the US for the wrong nationality/demographic, to me...
A little bit unrelated to the article, but why has the US quit building skyscrapers for the most part? I know there's a few in the works (Salesforce tower) but generally speaking, it seems like the skyscrapers that exist in most major cities were built long ago and they don't plan on adding any more.
There were touch-screen smartphones with no keyboards before the iPhone...

http://www.trustedreviews.com/news/O2-Unveils-Xda-Orbit-Smar...
Messaging Bots Are Here. Say “Hello”
Sincerely, people should just stop going there. Historically it is extremely difficult for a real regimen change towards democracy to be forced from the outside. And by going there we are only giving them credit, since they show what they choose to show that does not correspond to the reality of the country.

Just close the contact, close the product transactions, let them (the party) to rot for a while. The people will suffer a bit more for a time, but it could be the trigger to have the people finally rebel against the regimen.
> DRM is a hugely important part of the online video workflow and HTML5 offers a very useful tool with Encrypted Media Extensions.

DRM has never been important for online video workflow and it's only useful in the way a walled garden is useful... it will require that each pair of browser-website (with EME) negotiate before allowing it, basically making it impossible for smaller browsers to become useful at all
I assume HN karma is why people complain when a story they submitted makes it to the front page under someone else's submission.

In the absence of karma you'd expect that would make a person happy: the story they liked is getting attention! But people get mad if they miss out on the karma of getting a story voted up.
Because they're the ones most likely to get Google into legal and regulatory trouble if they don't work.
What's wrong with ultra luxury? Rich people spend a lot of money.
I've faced lots of challenges in terms of expressive power while working on Jason, but think I've figured out a lot of them. Could you share some of the challenges you faced? It would help a lot. Thanks!
That's a good point about language barrier. Whenever I'm in a country that doesn't speak English a primary language, ordering is always a chore and usually involves pointing at menus. And that is even with most countries I have been to everyone has at least a passing knowledge of English. I can't even imagine what it is like when someone is trying to order in the US where most of the population only speaks English.
Yep. These would be faster than human beings even if the cashiers heard your order perfectly the first time. Sadly, more often than I’d expect, they would not. It’s like they have a series of questions in their head and they like to ask those questions regardless of what you say, e.g. I say “number 1 combo TO GO” and still they say “for here or to go?”.
>You can at least close your browser or look away from your laptop when it all gets too overwhelming, but as Keiichi Matsuda reveals in this brilliant Hyper-Reality short film, one day there might not be any escape from ads.

There's no escape from real life ads now. So in the future we can just take off our augmented reality specs? Sounds like a distinct improvement.