skysight-inc/HackerNews huggingface dataset:
New Micro-Channels Usher in the Next Generation of Low-Cost Television
About the parenthesis, Haskell got "<>". It's ugly as hell, but it's ugly in a way that is easy to get used to.
Trees and the Water Cycle
Found a nice write-up of these issues here for anyone else interested:

https://github.com/tlswg/tls13-spec/issues/1001

TLS 1.3 0-RTT is not secure by default, but it is possible to provide both anti-replay and forward-secrecy properties for 0-RTT data with workarounds. As long as TLS 1.3 is not secure by default it is likely to lead to exploitable vulnerabilities that can only be fixed at the application level, distant from the cause. In general, it is also very challenging to fix applications to be idempotent and side-effect free.

Instead of shifting the problem to applications, we should strongly consider modifying the TLS 1.3 draft to make TLS 0-RTT secure by default, at least against replays. While Gillmor-style retry attacks will persist, these attacks may be mitigated with reasonable client behavior, and in many cases the existing client behavior is already fault tolerant.
> Overloading operators for cute purposes is usually a misfeature

Every single time I see printing to an IO stream in C++ I think 'why are they bit-shifting that... oh right'.
IIRC, yes. I should check again…
It’s a dry area, so our interest is to bring back the rains.

http://permaculture-and-sanity.com/pcarticles/trees-and-the-...

It isn't inevitable that more people equals more destruction. We can act as stewards responsible for the environment.
Would you let Donald Trump personally manage your 401k? Do you believe, in doing so, that he would have your best interest at heart? If not, then why would you think it'd be a good idea to let him have control over your Social Security?

Who do you think is better capable of making decisions about your own children's best interests when it comes to getting educated: you or Betsy DeVoss?

The more centralized power/money is, the more ripe it will be for corruptive forces. The less powerful the government, the less damage a bad actor can do when they inevitably get elected.
this is great! congrats on this!
That's not what quantum mechanics really does. The wavefunction, which is the core of a quantum calculation, "runs" all the time whether any part of it is observed or not. A given observable property of the wavefunction may not be predictable without looking, but that doesn't make the wavefunction any easier to simulate. And without the wavefunction running, we wouldn't observe the probabilities which we observe in experiments.
We also finally turned on "offline cache" support in Firefox For Android (for 50+ releases) - if you have a page in your cache, and you're attempting to load that page while offline, it should "just work". See https://bugzilla.mozilla.org/show_bug.cgi?id=1232867
> prices are set by scarcity and demand

Scarcity which is artificially limited by zoning and demand which is artificially inflated through near-zero interest rates.
1000% agree.
The linked article answers this. If you had no other sources of light, so that your eyes could fully acclimate, you might be able to see the faintest smudges if there were galaxies within 70 million light years.
I guess PornHub works pretty well as an IMDB analogue.
Can we not post movie quotes as answers to real questions - and keep that over in Reddit or elsewhere?
"You are not buddies, you are interviewer about to decide whether they get hired. Many people shutting down might mean that they are not comfortable juggling "buddy" social role and expectations and "serious job interview" social expectations simultaneously."

Very good point.
Yeah, this is also true. But "it depends" anyway.

BTW author of article mentions also incidental complexity of Java classes. It's worth consider too and maybe it's more accurate picture of problems with Java (and many other languages, it's more like poor design and "cult of complexity" than technology problems).

There are too many abstractions, classes, interfaces, inheritance, needless design patterns... it kills productivity and maintainability and ability to understand such codebases.
Experimental evidence for compositional syntax in bird calls (2016)
I'm doing some small amount of sandboxing for the program-mode drawings, but right now there's nothing preventing an infinite loop of primitive creation from exhausting memory and eventually crashing the application.

Switching between normal and program mode has several restrictions, but at no point will your drawing lose any objects (if it does, that's a bug). Creating objects in normal mode does not generate API calls, meaning in order to interact with those objects in program mode, you need to use the method I outlined in this comment: https://news.ycombinator.com/item?id=14555028. Additionally, switching back to normal mode after using program mode will "commit" the Lua commands, and the next time you switch back to program mode, it will be as if the drawing was entirely created in normal mode. This piece is a bit of a pain point for me, so this behavior may change in the future.

Vexlio's interface was definitely inspired by Inkscape in some areas (perhaps most notably, the color bar at the bottom).
f = open("/path/to/file");
// do something with file

vs.

d = opendir("path/to")
while((dent = readdir(d)) != NULL) {
if(!dent.name.startsWith("file"))
continue;
// do something with first matched entry
}

The former is O(log n) on ext4, O(n) on older filesystems that use flat lists.

The latter is always O(n)
HTTP basic auth does not provide encryption.
The fees can be a lot lower when you don't have to maintain rewards programs, liability for fraud, or dispute mechanisms.

Bitcoin is ridiculously inefficient compared to what a centralized entity could be and it's already cheaper than wire transfers or even credit card transactions over a certain size.
> Where is the revolution?

To me, the revolution is the realization that certain softwares don't need to be built, merely described and they will bring certain things into being. If Satoshi hadn't built Bitcoin, he had simply released the paper, I think Bitcoin would still exist today. That's interesting. I don't think the same is true, if, for example Mark Zuckerberg had just described Facebook rather than writing it.

The insight is: when a set of incentive structures stable and self-reinforcing, they can become an autonomous agent of their own, existing on top of, but also outside of, human activities.

Very interesting. And I think it is revolutionary. The revolution hasn't happened yet though, perhaps that's what you're pointing out?

The computer revolution hasn't even happened yet though. Still only a tiny number of us can use computers directly. Most people need to use another human (some programmer who makes a static human interface for them) as a proxy. The Big Talk claims of the computer revolution won't happen until we're past this phase. These things take time.
Ah. Gotcha.
Yes, Chrome does it as well, but I expect that as it's a web browser. I know the tradeoffs when browsing the web and expect that my requests will be visible across the Internet. That's just how web browsing works.

However, WhatsApp is selling a solution that is meant to provide privacy. When I write a URL in an SMS, my phone does not try to preemptively retrieve it to display a preview. WhatsApp may be encrypting the message, but it's identifying me to a server while I'm composing it, which is enough to completely destroy any level of privacy or anonymity that I would expect.
"People are starting to understand that when a certain drug is used correctly, then it’s not a big deal. They don’t need to be afraid of it."

This is the big takeaway that most of the world still doesn't understand. They think that if a currently illegal drug is used, it is by necessity abused. There is no room in their world view for illegal drug use that's not also illegal drug abuse. It's going to take a lot to change this mindset.
The old way was foolishly inconsistent with the rest of the language. It only serves as an small expedient in the REPL.
I found a $10 a few months ago.
I find coins on at least a monthly basis. I once found a $10 bill.
Oh agreed. Even if we were talking about a personal email account (which would admittedly be odd), the same would apply. I was more referring to some of the comments further down in the article that seem to argue for LinkedIn having some special status as a network only for purely professional interactions.
Just checked, indeed no origin on same site. It sucks, this makes origin barely reliable.
It's always nice to see fixes of problems found with improved testing. It would be nice to see something like Haskells QuickCheck rigorously applied on the majority of the kernel functions/interfaces.
The thing about "list comprehensions vs. loop" is that you can compose comprehensions, but you must edit loops to change them.

I fail to see how anything similar would apply here.
> Thanks for reading. Not sure if you had a chance to read the actual article that ran between the headline and the comments section...

Grade A snark like that is how we know this is a Pulitzer-winning journalist.
This is my take away quote:
In this regard, it was extremely effective, allowing not a single meltdown or explosion during hundreds of thousands of years.

And runner up: The more important lessons may be about how to handle nuclear waste.
>Case in point: most of the major tech companies.

The ones that have recently faced age discrimination suits, criticism for the lack of diversity in their employees, and a whole range of reports of terrible conditions in their manufacturing plants? For some bizarre reason, I'm sceptical.

>And if one did, would you really want to be associated with them and/or have them paying for your healthcare

When compared to dying or living with severe health problems, absolutely. This entire thing is about unexpected healthcare costs, I may not have the ability to shop around for the most ethical choice.
To the extent that anyone on HN knows an active philanthropist looking for potentially highly impactful but severely underfunded causes - send them this article.

I believe there's a case that funding MDMA research has very high dollar/impact returns - or at least that it's likely enough that it's worth a thorough exploration.

It sounds like they still need to raise about $10-15 million, which is shockingly small compared to the ~$1.5bn/yr NIMH budget - and all of it will come from private philanthropists, as governments aren't yet willing to fund the work and for-profit companies don't see much profit yet due to the lack of patentability.

If you're on HN and this is the first you're hearing about this research, some resources:

- A short video excerpt from a documentary on MDMA therapy - https://www.youtube.com/watch?v=W9iKx2MKS70

- NY Times article - https://www.nytimes.com/2016/11/29/us/ptsd-mdma-ecstasy.html
It's clearly important to be able to communicate about technical problems, but is it really necessary to be able to narrate your thoughts about a technical problem in real time as you're first having them?

In my work experience I don't remember ever having to do that. I'd look at code & investigate a problem independently, then talk to someone about it afterward. I think that should be considered at valid approach to the interview.
MDMA is ecstasy, sure it might not be what you get in pills these days, but it started out as MDMA and it even came from therapists, then it turned into the party drug, got mixed up with other things, similar compounds such as MDA and MDEA were sold as ecstasy and then it became Molly. But ecstasy is and always will be MDMA.
Wow, only learned about rr today - an amazing project! Google for instance reported a sizable number of "flaky tests" which tend to pass but sometimes fail. Always running tests under rr would take care of that (since each failure would be reproducible.)

This is a huge deal. While I prefer the Cilk approach (automated debugging pinpointing places which can theoretically execute non-deterministically), it's not always applicable and isn't always or even often applied where applicable. This is definitely the next best thing, and in absolute terms, it's pretty damn good.
I haven't used Flowdock in years, but I remember their Threads feature was awesome. Threads would appear in the main chat, with different colors, and clicking on them would highlight the entire thread. https://www.flowdock.com/help/chat#threads
The old way hit the interpreter on every loop iteration.
This wants to send me email, which I then have to aggregate myself whenever I want to look at that type of information. An RSS feed would be much more beneficial since I could subscribe to it, let the aggregator take care of it and when I want to look at that type of data I'll see a global view of those feeds over time.
Fox News Is Dropping Its ‘Fair and Balanced’ Slogan
Drastically changing the behavior of the most commonly used internal type (string) is a really hard breaking change. Not disputing the why, but for some code, that's a huge change. One that automated tools like 2to3 don't help with.
She is currently running a magazine at Stripe (as in, she is the EIC). She was hired for this job in January, before publishing her blog post. She is represented by InkWell, a well-respected, elite, non-technical literary agency. She published a book through O'Reilly, arguably the number one firm for tech-related publications, in November of 2016. And she is the founder of a monthly book club (seemingly, for fun).
Decoding the Morse: The History of 16th-Century Narcoleptic Walruses
Yes, you could abuse that power to allow double-spending. For what it's worth, I'd say I'm a bit concerned about this, but it seems many aren't.

https://news.ycombinator.com/item?id=14485430
Wouldn't this already be effective as long as the project was under the umbrella of an appropriate 501(c)3? Not necessarily the repatriation bit. I'm not a tax expert by any means so I am legitimately asking.

From a quick search, it looks like the IRS does sometimes allow businesses to make deductible contributions to a 501(c)3, but that it first attempts to determine if the business expects to receive a "substantial return benefit". [0]

The IRS seems to already have specific rules around "qualified sponsorship payments". [1]

[0] https://www.councilofnonprofits.org/tools-resources/corporat...

[1] https://www.irs.gov/publications/p598/ch03.html#en_US_201701...
Show HN: Snitches get stitches. See what data recursive nameservers are leaking
GHC doesn't actually perform stream fusion. Not by default, anyway: The default (by that I mean "ships with base", not that it's baked into the compiler) is something weaker, called build/foldr fusion, described by this rule:

foldr z f (build g) = g f z

Foldr is the usual catamorphism for the inductive list type, and build is an "abstracted constructor", of sorts:

build :: (forall b. (a -> b -> b) -> b -> b) -> [a]
build f = f (:) []

Note that build's argument is rank-2 polymorphic, and also the same as foldr's type.
Show HN: Self-hosted comment engine powered by leveldb, with oauth support
Maybe not SMS but newer versions of iMessage will prefetch urls to generate a preview. I don't recall if it happens as you type (like WhatsApp) or after you hit send though.
We've just open sourced the API that powers our Browser Privacy Test Tool, written in Golang:
https://github.com/tenta-browser/nsnitch.

As you know, many of the best VPNs today offer a secure DNS solution, but just testing for IP, ISP, hostname and geolocation isn't enough. For example, the Nsnitch API checks if DNS over TLS is enabled. This is a relatively new protocol, but an increasingly important setting that actually keeps your DNS requests encrypted/private. You can also see if DNSSEC is enabled or "Checking Disabled" is on or off. Overall, these results give you a more complete picture of your DNS privacy and security settings.
I still don't think that any of those new functions justifies the need of a total compatibility breakdown, like the one that was artificially induced from python2.7 to python3.

Python3 is good, but should have happened as a smooth transition from python2.7. The way it was handled was just a mess, and still keeps polluting the Python world.

Next time somebody asks what Java has over Python... here it is: nothing like the python 2 vs 3 mess.
What language should you learn for becoming a Web Developer in 2017
I think the community-ran nature of it makes it super hard to discover new discord communities though, and it leads to duplication where new games have a bunch of communities pop up that divide the userbase.

I know there's third party sites that act as directories but it's a bit of a hassle, I wish they'd have two separate products, the gaming one with a public directory and one to create private communities that can be used for other purposes.
I thought they already dropped that slogan, to "Donald Trumps, favorite cable news channel." /s
Thanks, I wasn't sure of the terms.
Can you ever use acid correctly? My understanding is the result is non-deterministic every trip for the same individual.
Can we put together all the listed papers here? Reply with one if you know where it is. One paper per reply please.
Americans won't realize the benefits of cryptocurrencies until they start to be able to do capital-B Banking with it. Not deposits, withdrawals, and transfers, but the creation of new financial instruments.

Cryptocurrency wants to move people up the banking hierarchy. So it tries to lift Eastern Europeans to the level of New Yorkers, in terms of access to stable currencies and transfers. But it also tries to lift the New Yorkers to the level of Wall Street executives in terms of issuing securities. And it tries to lift the Wall Street executives to nation states in terms of creating self-contained regulatory regimes.

The endgame is that all of these power relations become so commonplace that they lose their power. Like clothing has become.

It won't feel like anything is changing for a while though. Imagine the Titanic slowly sinking... at first the ship is tilting a bit, in a funny way, but nothing unusual. Then you start to notice the floor is on a distinct slope, but things are still in the same place relative to each other, so you think the whole world hasn't changed, just one property of it.

Eventually people start involuntarily sliding in one direction, which is different, but there's still structure there. It's not as if there's no ship anymore. Then, the slope becomes so large that almost everything seems beholden to it. That's the point at which everyone starts to agree that "everything has changed". Finally the ship sinks into the sea.

We're still early in that process.
I think we can do better.

How about a /proc/bin/yes for this? Like most /proc files, it would appear to be empty. Executing it would involve a fs/binfmt_proc.c file in the kernel source, which would be a handler for this sort of executable. That would get the job done entirely in the kernel.
The title of the article is misleading: this "virtual universe" simulates only gravity, which is all that was needed by the astrophysicists who wrote it. If it were simulating complete physics as we observe it, this amount of computing power wouldn't suffice to simulate a single cell for a single nanosecond.

It doesn't have any quantum features, and if it did, they would make it require vastly more computing power, not less.
My personal favorite, Shannon's A Mathematical Theory of Communication: http://worrydream.com/refs/Shannon%20-%20A%20Mathematical%20...
I assume "rust fanboy" is me.

Please stop it. This is the fourth time you're making this unsubstantiated claim.

Yes, I backed up my argument with "the crates I am using" (that is, all the crates in the entire dependency tree of any crate I've used in the last year), which is at least somewhat representative of the crates that folks use, as opposed to your wild claims that have zero backup (or are backed up with one or two mentions of crates, where subsequently the use of unsafe is justified by me or others).

Here's an example of one of these discussions: https://news.ycombinator.com/item?id=14276129 . Here's another: https://news.ycombinator.com/item?id=13280347 . In the second one I actually admit that I was surprised at the number of crates doing unchecked indexing, that's definitely not denial. I still maintained there that it was quite manageable and not some crazy pervasive problem as you make it out to be, but you've literally never provided evidence otherwise. That's not denial.

As I've mentioned before, I'm genuinely interested in finding these cases so that they can be fixed (or replaced with well-audited general purpose unsafe abstraction libraries -- e.g. a cheap ASCII-within-utf8 handling library that lets you do things like munch ascii bytes while parsing without extra overhead (or whatever the use cases are -- I'm not yet clear on the set of use cases out there which is why I'm interested to hear more). I'm not "denying everything", and other people have even pointed this out (https://news.ycombinator.com/item?id=14277634) in the discussions we've had.

-----

FWIW, IIRC UTF8 stuff has been a perf bottleneck in the url crate. It's not premature (file a bug, though). That said, we might be able to write that code differently to avoid it or have a more general way of doing it with clearer invariants (I'll think about it!).

The ordermap crate does implement a hash map without unsafe code (leveraging vec). The stdlib hashmap uses unsafe because its design (which has different tradeoffs wrt ordermap) needs to be able to have buckets be empty (where whether or not the bucket is empty is based on a nontrivial set of invariants from the robin hood based design) without using something like an Option which has extra memory and CPU overhead. Optimizers are not smart enough to figure out the robin hood invariants, so this is not premature either.

----

I no longer believe you're making these claims in good faith, so I'm not really interested in discussing this further with you. I just want to counter the wild claims here for the benefit of other folks reading this.

If other folks wish to constructively point out cases of unsafe being used this way, I'd love to hear about it, both to get a better idea of the ecosystem, and to help improve it. I do want the community to move towards less unsafe code.
AFAIK this was the original intent of the GPL as well, but due to the common interpretation that "link" and "distribute" refer exclusively to their meanings within the context of traditional binary building and distribution (that is, they do not apply when a program is "distributed" such that its back-end is accessed through a web-based front-end), the AGPL was necessary.

IANAL
I do think your original claim is wrong. Your explanation in this response is not the same as your original claim. And what you wrote here is exactly in line with claims in the article:

"The size of the blobs in the test data affects performance. The filesystem will generally be faster for larger blobs, since the overhead of open() and close() is amortized over more bytes of I/O, whereas the database will be more efficient in both speed and space as the average blob size decreases."

Yes, of course SQLite is going to do some operations in-memory. Raw file writes using fwrite are also going to be initially written in-memory, unless O_DIRECT or some other mechanism is involved. And the article explicitly outlines that they made no effort to bypass file buffering, to the point of not even explicitly flushing to disk.

If both processes are writing the BLOBs to disk, then I don't see how your original claim applies. Writing to disk in a manner that is more efficient for small files is still writing to disk, and so the test is not in-memory vs on-disk as your original claim.
> The wavefunction, which is the core of a quantum calculation, "runs" all the time whether any part of it is observed or not.

How can you tell?
Aiken, "Proposed Automatic Calculating Machine": http://history-computer.com/Library/AikenProposal.pdf