skysight-inc/HackerNews huggingface dataset:
Remember that the imitation game that forms the foundation for the Turing test pits males versus females, with the goal of the females pretending to be male. Allowing speech would normally reveal the males due to the voice being different - it was therefore suggested that the test be preformed in writing.

[edit: Ah, I had the details wrong, see https://en.wikipedia.org/wiki/Turing_test ]
@Override is optional in Java. All it does is validate that a superclass method with the same signature exists. It doesn't work in the other direction.

This doesn't compile with Swift:

class A {
func foo() {
}
}

class B : A {
func foo() {
}
}
Also a big Ruby problem.
I don't like borders. Maybe it is because I come from a small country (of almost exactly the blessed size mentioned in the article) and perceived borders mostly as an impediment to exploring the world.

In my opinion the one great thing the European Union brought to us is to tear down these pesky border stations where people insist on checking your passport and exact medieval tolls on goods that are transported a few miles just because the few miles cross a mostly imagined line.

However borders can be removed by implosion, too. If you assign more and more rights to smaller and smaller units borders will get less and less important.

The Seven Kingdoms of Anglia will probably join the Schengen treaty as they don't have a common big external border to protect.

That way we get all benefits: Decisions are made closer at the people and the number of borders that impede our movements will be reduced.
What Swift Tells Use About Programming Language Trends
It might be easily defeated, but some places rely on it, and iOS users would be effectively locked out of those networks.
> "on social media it is easy to mistake popularity for credibility"

This happens in real life also. World leaders are chosen based on popularity and not credibility. That isn't to say all popular people are not credible or even most popular people are not credible. Just that there are a lot of important positions that are filled by popular or likable idiots.
In Windows, the program should check for the presence of a unique, global atom via GlobalFindAtom(). If present, terminate. If not present, create the atom with GlobalAddAtom() and continue the initial execution of the program.
I read the article as being in the context of Objective-C bugs that were solved by Swift.
I think he means, "Why did no one think of this before" in Obj-C
Nobody understands typography either. The sin of the article is setting text justified without hyphenation.
Yeah, the EU as a concept is phenomenal. Its execution is more questionable and its PR is flat out disastrous, with national politicians blaming it for all kinds of ills.

Also, banana curvature. Really, how was the EU not able to squash that myth? I get that the EU fundamentally answers to national governments and not voters directly, but the tiniest bit of PR effort towards voters might help in the long run, don't you think?
"Engineering a major environmental fuck-up"
Incredibly cool hack.

But i'm going to be the first one to point out that having function arguments not evaluated at call time is very, very unintuitive. Anyone with a background in traditional (procedural/OO) languages is reasonably going to expect both `perform_side_effects` calls to be invoked here.

var ctest = cond_1(a == 1, 2 + perform_side_effects1(),
a == 2, 3 + perform_side_effects2(),
0)
This is indeed what the Turing test as originally proposed is about.
Where did you hear it is not production ready? I heard it was well funded north of 10 million?
I deleted it, logout and back in and it should make you a new one.
I was about to post something very similar, but was trying to check that type annotations can be applied to tulle components before posting.

I do like the idea of @auto_closure, but I bet it will confuse the hell out people reading swift code unless the IDE highlights it in some way.
Taxi Cab companies are trying to end Taxi Neutrality https://
And going even further, why don't customers punish the stores that give shitty customer by no longer shopping there? Same goes for your ISP, politician, etc... We have short memories.
I seriously doubt intangible student benefits are in the range of tens of thousands of dollars per year. Same thing with administrative staff.
I assume you mean weak AI. And I don't see how you can dismiss the meaning of passing this test so easily. Although it's a trivial example, I can definitely see such chatbots being applied for spamming purposes, which by definition exploits hapless victims.
Yeah I agree. The citizenry is the citizenry. No changing that. The tricky thing is to design a system where it is more difficult for them to make certain choices (arguably bad ones). Taken too far, you end up without a democracy anymore.

Although I think representative government is important, perhaps even more important is the protection of rights of those people not in the majority. You hear this constant drum beat from the American conservatives advocating for more democracy in the world. Certainly, that is an element of a solution. But that alone will just end up with mob rule and life for those outside the mob will be terrible.
I'm at -32, 24 and I've got 2 castles on the same castle tile! Neither of us can invade or do anything, aside from killing every unit we create.
We have the blackphone. Having a blacklaptop sound like a good idea.
Maybe Implementing hardware cam & mic switch.
Java's @Override is not only optional, but fails to address an important use case: when you don't want to override anything with your method, and then the base class has a method added to it with the same name as yours. (Or if you simply didn't know that the base class had that method.) Swift will make sure you don't inadvertently override base class functionality by requiring you to use it.
Hey guys, the comment above will solve the college tuition problem!
What LLVM static analysis can be done to figure out the lifecycle of objects also applies to other GC algorithms.

ARC may be less likely to get memory paused on release, but ARC doesn't compact free memory, and therefore fragmentation can cause object allocations (malloc) to become more expensive, possibly leading to pauses.

If you use non-copying GC that doesn't compact (ARC doesn't compact), then there are low pause GC algorithms out there that give pretty good bounds (e.g. 5ms pause).

I'd like to see actual benchmarks of both ARC and say, mark-and-sweep on a mobile device rather than speculation and opinion, and both benchmarks must get the same static compilation treatment. That is, if escape analysis tells you that the lifetime of the object is bounded by the current stack frame, then allocate it on the stack, and don't penalize the non-reference-counted GC by allocating 100% of everything on the heap.
Adding random spelling errors and delays to responses should be one of the more trivial "improvements" to a chatbot.
I hate that article. I swear it spends its entire length illustrating one thing, and then draws as the conclusion the exact opposite.

Taken all together, then, mosquitoes would be missed in the Arctic — but is the same true elsewhere?

Many species of insect, spider, salamander, lizard and frog would also lose a primary food source.

Without mosquitoes, thousands of plant species would lose a group of pollinators.

Yet the summary:

Eradicating any organism would have serious consequences for ecosystems — wouldn't it? Not when it comes to mosquitoes, finds Janet Fang
What number numbers in VIN number numbers convinces you to number it as a number of numbers that numbers highly enough to be PNS syndrome?
for the lazy, here's part 1: http://www.scaletheplanet.com/post/the-industrial-revolution...
and 2: http://www.scaletheplanet.com/post/the-industrial-revolution...
Guess he didn't know about the last-modified header. Reminds me of a few other instances of modern coders ignoring parts of the http spec, like not acknowledging the use of codes outside of 404 and 200, instead putting the information on the page in a way that has to be parsed for the text
Swift Performance: Sorting Arrays
That makes some, but not much sense to me. Firstly, that is not what I read in the book "The Swift Programming Language":

"Whenever you assign a Dictionary instance to a constant or variable, or pass a Dictionary instance as an argument to a function or method call, the dictionary is copied at the point that the assignment or call takes place."

Even if I assume that that is an error (they didn't think of inout arguments when writing that), the behavior still doesn't make much sense to me.

Say that I want to do a few things with someObject.someField.someDict. In most languages, I would introduce a helper variable: var items = someObject.someField.someDict and do items[42] = 346; items[423] = 356; etc. That won't work, as it clones the dictionary (shallowly). I find it is just too easy to accidentally clone arrays or dictionaries in Swift.
Ironically, in a later book (Darwin's Dangerous Idea, 1995) he mocks people who got duped by an Eliza program on a disconnected laptop, since "obviously" a computer must be physically connected to the wall in order to talk to the outside world.
Most organizations, especially government, have a remarkable inability to man up, say "we fucked up" and take responsibility for their mistakes.

Reports like this emerge, in an attempt to obscure the truth with sheer volume.
Static analysis tools are essentially automatic checklists applied to code.
I believe it's practical to maintain an awareness that the bar is as absurdly low as it seems to be, and that well-developed deception may become the norm when interacting with online entities.

Do I believe that it's intelligent? Well, I wouldn't confer human rights to it. It doesn't carry the weight of emotional investment that a domestic pet might.

But that's the sort of thing to stay wary of. Average people becoming emotionally invested in silly things. People being tricked into carrying around an urn full of ashes, and believing that a convincing AI truly represents their late relatives, and similar sorts of tomfoolery.
> - We still don't know whether or not the companies on the PRISM slides were participating voluntarily or even knowingly.

Sure we do. PRISM has an NSA part and a company part. The company had to build out their end in order to participate in PRISM.

However it's important to realize that compliance in some form with NSLs and warrants was not optional for Apple. By not participating in PRISM they would simply have turned over the same data on each request by manual means.

That modality is probably an even bigger threat to user privacy than PRISM. In PRISM, Apple's legal team would have to vet each and every single NSL or warrant and then manually activate an automated process to ship the required data over. While Apple didn't release a ton of details about how they implement it, this automated process is precisely the thing that can be done without a raft of Apple employees having to map/reduce it all manually (and possibly leak part of it themselves, maliciously or accidentally).
Writing fanfiction? Your prohibited from making money from it so it's rather insular.
I think both would be useful.

If I do the book, I'll do it through some medium like Leanpub so I can put out drafts to many people and get feedback. And after 18 months or so, I'll put the posts up on a blog so people can comment forever. But the nice thing about a book is that it's done; I don't want to be forever updating the material.

The how-to website would be cool. There's a lot of info out there that isn't well captured.

If you're excited to jump in on a related effort, there's the Lean Startup Circle wiki: http://leanstartup.pbworks.com/w/page/15765221/FrontPage

Sean Murphy in particular has done a ton of great work on that.
When I started work as a doctor at the start of this year we watched a training video on this exact case narrated by the husband.
The parallels between airline and medicine are very interesting and we would do well to incorporate the hard-won lessons of airline care.

I think the major issue medicine lags here is that airline disasters are highly visible and airlines and pilots are forced to respond, whereas medical disasters are usually seen as 'one off' so even with root cause analysis of failures, injuries sustained by 1 patient periodically do not become as visible; systemic failures are harder to identify
The next step should be to make this systematic like in the aviation industry. Build a database, and make it compulsory to register all incidents and accidents. Use that data to update procedures and checklists. Hope he succeeds. NHS researcher here.
Cross domain requests to every resource on the web
Trust metrics. See for example http://www.advogato.org/trust-metric.html
Well, the problem with C++/Java and the ML language families is that they are quite incompatible, so it's not really trivial to mix them. Many languages have tried, most recent languages really. Rust is C with ADTs or ML without garbage collection (not yet sure how closures will turn out), Scala is Java with first-class functions and ADTs, Java and C# are absorbing more and more features from ML, ...

Swift is just another attempt to mix the two, quite a successful one IMO. They kept some warts, probably to maintain binary compatibility with Obj-C, but otherwise I think it's a huge improvement over Java-style languages.

One particular pain point between Java-style and ML-style languages are generics; Java and C# have a common object protocol and thus allow a top type, Object, and run-time type information. So, they must decide whether generics/type parameters are only relevant at compile-time (Java) or are kept at run-time (C#). ML avoids this issue by not having any runtime type information (and no type-testing construct). I haven't yet found where Swift stands, but it's a hard problem to solve.
Having named parameters with different public than internal names is a brilliant idea, but I wonder how often it'll be used in practice. If it's used a lot, it might indicate that those parameters are badly named to begin with :)
In Java, you make the function part of an interface to achieve that:

interface Foo {
void foo();
}

class A implements Foo { ... }
class B extends A { ... }

If someone renames Foo then A and B fails to compile. If you don't want to use an interface, you do it like this:

class A {
abstract void foo();
}

class B {
void foo() { ... }
}

Yes, it's not exactly equivalent but, this is a rather contrived case that never happens in Java because

a) almost everyone uses @Override because IDEs add it automatically
b) Java programmers don't refactor by using VI and editing a base class's method names. An IDE like IntelliJ IDE does all the work automatically.
c) if you really want to ensure that a class implements a certain interface, you use a Java interface to enforce it.

This swift feature is interesting, but it's not really anything to sell the language.
It is brutal to try to be sitting in the middle of a lecture hall trying to focus on a dimly lit academic at the same time as 20-50 future college dropouts flicker their laptops back and forth between facebook, twitter, and half-assed note taking attempts... this is only really a problem in intro level courses though.
Screenleap (YC W12) is hiring engineer #1 to build next-gen screenshare platform
Screenleap (http://screenleap.com/) allows you to share your screen and view from any web-enabled device without installing any software. We also allow developers to add screen sharing to their applications using our screen-sharing-as-a-service API. Our mission is to do for screen sharing what Dropbox did for file sharing: make screen sharing a hassle-free experience that just works across all devices.

We have built a product that users love and we need your help to make it even better! Come join us as our first engineering hire. You will have the opportunity to get in on the ground floor, work on a product used by hundreds of thousands of people, solve challenging technical problems, and make a meaningful impact on the company. In your role, you will build products using a variety of languages and technologies: Java, Objective-C, C/C++, and HTML5.

We are seed-funded and on track to be profitable later this year. You’ll be joining at an exciting time as we are beginning to hit the growth stage. Our office is located in the heart of the SoMa District of San Francisco close to BART and Muni. As a company, we value simplicity, creative solutions, and the ability to get things done. We offer a competitive salary, significant equity, and a flexible work schedule. We would prefer someone local but are open to remote work for the right person.

Requirements:

* B.S. in Computer Science or equivalent experience (proven ability matters more to us than degrees)

* Experience writing software in Java and/or Objective-C (or willingness to learn)

* Experience with browser-based technologies (HTML, JavaScript, WebSocket, WebRTC, plugins, etc.)

* Ability to take complete ownership of projects, from conception to design and implementation

Nice-to-haves:

* Experience building real-time systems, distributed systems, or peer-to-peer applications

* Experience with image manipulation, image compression, or video compression

* Experience building iOS or Android apps

* Familiarity with the following technologies: Play! Framework, Win32 API, jQuery, Backbone

Interested? Please email us at jobs (at) screenleap.com. Include your resume and links to projects you’ve worked on.
http://www.tylervigen.com
What about ordering/eating out versus preparing your meals from basic ingredients? (including lunch, which we bring in a box or baggy)

That was a big difference I saw while in the US. I hardly ever order/takeout my meals, and when I do, I do it under the assumption that it'll be strictly less healthy than whatever I'd prepare myself (this may not always be true if you're 1 not a very good cook and 2 only order lunch at very health-focused places)
An independent service that publicly rates a person's credibility and consistency (maybe other metrics such as honesty or accuracy) objectively into a reputation score. You would start out rating people for free, probably celebrities, prominent politicians, persons of note in scientific fields, journalists, etc. These would have to be thoroughly documented profiles with established public criteria for the scores in 100% transparency. Once you have established a reputation for accuracy you can start to charge other people to have their score calculated and added to the reputation index. Maybe have a public poll for who to profile next and do several for free each month. Basically a ratings agency or better business bureau type system but for individuals who want to be public figures and people of influence. Part of it would be validating the person's real life identity and the online personas that the person uses so that online exchanges (ratings, discussions, reviews, etc.) could potentially be filtered for only validated real individuals if desired.
How would an insider provide publicly-available sources for the things he/she reveals that are inside knowledge? The GP is the source.
Sure, but use appropriate terminology. Automatic memory management has been synonymous with garbage collection for decades. ARC is a form of AMM/GC. So don't say Objective-C+ARC isn't garbage collection, because it is.

The proper distinction would be between local reference counting and GC at the time of release, and global heap traversal from roots.
If you zoom out far enough, few (for example, from a few miles away with my eyes almost closed, I would put Algol and C in the same family: procedural and with block scoping).

There are quite a few distinctly other languages, though. To name a few: APL, COBOL, Forth, sed, Snobol.
My experience is I get home, open my laptop, and it seems to by default assume it has the same IP as last time it was on my home network. Meanwhile my kid's 2DS game is using that IP, and I have a few minutes of chaos. I just assign fixed IPs to all the regularly connected devices and I don't encounter that.
Como saber si tengo diabetes antes de ir al medico
¿Cómo saber si tengo diabetes sin ir al doctor? Esta es una pregunta un poco más complicada de lo que parece. Mucha gente no tiene ni idea de que es la diabetes hasta que se realiza un examen de sangre que muestra elevado el azúcar en la sangre, pero hay algunas maneras de saber si tú tienes diabetes.
That's why one of the first things I do when configuring my Java IDE is tell it to mark missing @Override as a compiler error.
I've had to train myself to use the URL bar instead. I have a 'gh' search keyword pointing to http://github.com/search?q=%s
Show HN: Roost – Safari push notifications via drop-in JavaScript
This is a very interesting and complex question. CTM provides some answers, summarized in http://www.info.ucl.ac.be/~pvr/VanRoyChapter.pdf
I doubt the veracity of the source to begin with. The account was created 2 hours ago as of this writing.

Still, point taken, thank you.
In Java, you'd just add a 'final' keyword to the base method and you'd get a compile time error if someone accidentally tried to override it.

If you want the equivalent of !@Override, a) you can do it with Java8 annotation types and a checker or b) you can just declare the method private.

I'm sure Swift's version also fails to address all of the edge cases people might want to catch. No type system can be complete and catch every use case.
Canola oil has a lower ratio of Omega 6 to Omega 3 than olive oil. On that measure, it is 'better'.
Ask HN: Self owned business suggestion?
Hello,

Let's say your day job you work at needs a domain registrar and you own a domain registrar. It is morally correct for you to suggest your own product? Or should you suggest something else purely because it's a conflict of interest?
I'm somewhat in this industry (I'm developing compliance software for UK domestic renewable installers...stay with me I'm going somewhere..).

Part of that was developing a software implementation of the UK government's Standard Assessment Procedure for estimating solar yields.

It's really quite surprising just how much energy falls on a single square meter on a south facing roof even in the North of England.

It's going to be interesting to see where this market goes in the next 10 years.
In your first example, a pause there sounds a little awkward -- but putting a comma there also looks awkward. To my ear it sounds sort of antiquated.

In the second example, adding a pause at that location sounds quite natural. It changes the meaning slightly, adding gravity to the statement, making the thank-you sound more heartfelt.

[I'm a native English speaker, and the commas-as-pauses way of thinking has always worked very well for me...]
I was reading James Rickard's new book "The Death of Money" (he also wrote "Currency Wars") today and he goes into a lot of detail on China's problems (investing in infrastructure that may not be used, not pushing consumer spending, etc.) - a recommended read.

I have been taking a class on Globalization. My gut instinct is both China and the USA face extreme problems, and things are just holding together in both countries.
Would you mind finding me the relevant law that makes napping under the desk a crime? I didn't realize that I was a serial offender until you mentioned it. It's a wonder that Google hasn't been busted for their nap rooms yet.

Personally, I'd say it makes him clever as long as he didn't bother anybody. Admittedly, I live in the savage lands of California, where practically anything goes. But if somebody who worked for me had both the chutzpah to attempt this and enough consideration for others to pull it off without us catching on, I'd give 'em a standing ovation.