skysight-inc/HackerNews huggingface dataset:
> Void* and java's object both support that idiom

I may be mistaken, but IIRC C-style casting from a (void *) provides no correctness guarantees, you may well end up with complete garbage unless you took care to explicitly check your union. And dynamic_cast requires RTTI.

So the idiom is supported in the loosest possible sense, there's no language-provided safety.

> at least as well as go.

Yes, I think that's a point of contention and I edited my comment to expand on it: I really, really don't think Go supports this use case nicely.
OTOH the feature demonstrated here is discriminated unions,

He is storing interface{}, which is a fat pointer (a tuple of the pointer and type pointer).

I don't see what is revolutionary and how most statically typed languages don't handle that case. Sure, in Java the type pointer is stored in the actual instance and not in a fat pointer, but it doesn't make a difference in data structure design.

You can do the same abstraction in Java, C++, and C#. Which covers probably 90% of the statically-typed languages out there.

Edit: note on the last Java example: an if statement with instanceof look prettier ;).
Submit interesting stories. That's probably the easiest way. Karma from comments seems harder to me.

When you comment, try to add value to the discussion.
That often means (but not necessarily, of course) that you shouldn't just write a pithy one-liner, but actually flesh out a train of thought.

Of course, I'm very low-karma myself, so I might be mistaken.
> I may be mistaken, but IIRC casting from a (void *) provides no correctness guarantees, you may well end up with complete garbage unless you took care to explicitly check your union.

Right. In fact, in C (NB: not C++) you don't even have to cast, as the compiler allows it as an (extremely unsafe) automatic conversion :)
I have never liked purely deterministic, non-random games. I think part of it is that they encourage analysis paralysis--if I know that a single mathematically perfect move exists, I'm not happy unless I can find it; I'm more willing to settle for "good enough" and move on with the game if I know that even a perfect move can be derailed by the dice, and even a bad one might luck out.

And part of it might be that non-randomness seems sort of cold and sterile and inhuman to me. Sometimes, you do everything right and you still fail. That's the human condition.

And then, meaning no offense, the kind of players who are put off by luck sometimes rub me the wrong way. They often seem to put way too much of their personal self-worth on the outcome of a game. I'm all for rigorous fairness in things that matter, things that affect people's lives, but this is supposed to be a relaxing diversion.
Let's dissect [5] in the above:

> Is Go an object-oriented language? Yes and no. Although Go has types and methods and allows an object-oriented style of programming, there is no type hierarchy.

Classless prototype languages like JavaScript and Self also lack explicit type hierarchies, and they are still considered object-oriented.

> The concept of “interface” in Go provides a different approach that we believe is easy to use and in some ways more general.

There was a OO ML language called Moby [1] that had something similar. Just because the objects were structural didn't mean they weren't objects, though encapsulated communication (calling another object's private methods in the proper scope) is definitely more complicated.

> There are also ways to embed types in other types to provide something analogous—but not identical—to subclassing. Moreover, methods in Go are more general than in C++ or Java: they can be defined for any sort of data, even built-in types such as plain, “unboxed” integers. They are not restricted to structs (classes).

You mean like extension methods in C#?

> Also, the lack of type hierarchy makes “objects” in Go feel much more lightweight than in languages such as C++ or Java.

They are basically claiming that Go is not C++ or Java, not that Go is not object-oriented, of which the design space is much broader.

In my opinion, there is nothing interesting in Go, and it doesn't seem like a language I would want to use.

[5] http://golang.org/doc/faq#Is_Go_an_object-oriented_language

[1] http://cs.uchicago.edu/files/tr_authentic/TR-2003-10.pdf
As a person who likes C# and MVC but doesn't like Windows, I've hoped for this for a long time. The fact that Microsoft is going to include mono in their tests is awesome. It's like a genie granted me a wish.
A quick google search on CONOP 8888 yields this wikipedia page. Are we sure that this isn't just some anti-commie plan, you know, like Plan R? http://en.wikipedia.org/wiki/8888_Uprising
Needs a catchy buzzword. So, can we all agree to name this ... NoHTML?
There's a really good chance that we'll get scoping for element registration at some point, given that the shadow trees are natural scoping boundaries.
> Someday we hope to offer stored usernames and passwords as a service...

Usernames and passwords are generally an all-or-nothing proposition, and will be for the foreseeable future. Is getting major banks to adopt a application-specific-password scheme [0] (maybe even with maybe-fine-grained permissions!) such a lost cause that it makes what you're proposing a vaguely reasonable thing to do?

[0] https://support.google.com/accounts/answer/185833?rd=1
This is not science, it's marketing masquerading as science.
Both MotoG and MotoE don't have replaceable Battery. Whether this has any effect on their pricing!
Oh my - thanks for the heads up on this i had not heard Atmosphere before!
In a simple React app (ie most apps), you end up storing all your models (as Javascript Objects/Arrays) in one single scope (the "App/Main Component"). As a result you don't need to share things around / access them / listen to them from many different files. They no longer need "managing". I hope that helps.
Who cares about karma? You can't spend it on rollicking good times.
What modern smartphone has a replaceable battery?

Edit: well, I'm actually quite surprised.
> There was a OO ML language called Moby [1] that had something similar.

OCaml uses a structural object system (alongside the nominative type system it inherited from ML)

[0] http://en.wikipedia.org/wiki/OCaml
Please don't reply to trashy low-effort comments on HN with trashy low-effort comments on HN.
> Edit: note on the last Java example: an if statement with instanceof look prettier ;).

Sure, and an if or switch on .(type) in go probably looks better as well.
The site is fast and has a nice looking. I hope they start to have new content soon.
You don't understand my point. If you look at human psychology, things connected to power are often fascinating, but not always in the "I'm going to get the other guy and beat the shit of him" way. Young boys are fascinated with toy helicopters, trucks, army soldiers, and yes, spaceships, but they aren't being evil/scheming about it. For them, it's just a game. There are two levels of fascination with power: a) the childish "ooh that's cool" and b) the adult "hmm, we would be a pretty powerful nation/team/individuals if we got hold of it".

But the underlying reason why something is fascinating -- because it is connected with power -- doesn't change. So it is hypocritical to claim that "I want this and that, and my intention are innocent and sincere" when the object of your desire is a helicopter gunship. Now, something flying at 7.8 km per second is potentially far more dangerous than a helicopter gunship.

In other words, wanting space exploration to be free of politics is essentially wanting power to be free of politics. Which is a bit oxymoronic. As soon as your exploration produces something interesting, be it knowledge, materials, or even location, someone else is going to want it for themselves.
Be cautious with the phrase "psychological problems". Placebo seems to work well for pain, and peoe will get very angry if you describe the pain they feel as a psychological problem.
A Samsung Galaxy S (up to and including the S5)

I don't personally like the Galaxy series, but it is undeniably a modern smartphone that has a replaceable battery.
A friend of mine just bought one last night.
Dogecoin Wallet Service Doge Vault Hacked
Torrent Site Demonoid Blocked by Google
Most Modern Smart Phones sold in India in this price category has replaceable battery

Edit: I was asking the question whether this has a reason behind low price?
Well, Jolla has :)
Done. I've added a build script to generate structures for Chrome, Firefox and Safari. The prebuilt packages for Firefox and Safari are here: https://github.com/buunguyen/octotree/tree/master/dist. Thanks again for the direction.
There's a great port of this on Android: https://play.google.com/store/apps/details?id=com.androthsof...
Not really. The placebo effect is real and strong and works even on some maladies that aren't psychosomatic.
Massive dns ddos flood
Chinese water snakes are full of omega-3s.
Samsung Galaxy 4S and 5S have replaceable battery.
You can find both Firefox and Safari prebuilt packages here: https://github.com/buunguyen/octotree/tree/master/dist.
Review of the First Three Johns Hopkins Coursera Data Science Courses
Samsung galaxy s5
Serious question: where would this be? Outside of North America, I've only been to Brazil and multiple European countries, and American pop music is still ubiquitous in these places.
They're also using a screen that's much cheaper, I think that explains a large part of the price difference.
New jobs portal, DailyJobs.ro launched as premium recruitment
While you shouldn't need to at lower difficulties or on easier campaigns, you can always quick save before a move or at the end of your turn and reload if you didn't like the result of your move or the enemy moves. Do it a lot in the early scenarios to build up hero unit reserves and see if you can make it through later scenarios without reloading. Mark the turn start save and try a strategy, if it fails go back to that turn instead of starting over. And note that if your strategy is poor, continually reloading alone won't let you win. (Unless maybe you spend a crap ton of time waiting for positive outcomes of minuscule-probability events...)

Edit: I remembered a quote I liked from early on in Iain Banks' The Player of Games. While I still like chess (and take issue with the notion that reality is built on chance, rather than our predictive measurements of reality restricted to chance due to us being part of reality not outside it) I thought this was a pretty great put-down of games without chance at all:

"All reality is a game. Physics at its most fundamental, the very fabric of our universe, results directly from the interaction of certain fairly simple rules, and chance; the same description may be applied to the best, most elegant and both intellectually and aesthetically satisfying games. By being unknowable, by resulting from events which, at the sub-atomic level, cannot be fully predicted, the future remains make-able, and retains the possibility of change, the hope of coming to prevail; victory, to use an unfashionable word. In this, the future is a game; time is one of the rules. Generally, all the best mechanistic games - those which can be played in any sense "perfectly", such as a grid, Prallian scope, 'nkraytle, chess, Farnic dimensions - can be traced to civilisations lacking a realistic view of the universe (let alone the reality). They are also, I might add, invariably pre-machine-sentience societies.

"The very first-rank games acknowledge the element of chance, even if they rightly restrict raw luck. To attempt to construct a game on any other lines, no matter how complicated and subtle the rules are, and regardless of the scale and differentiation of the playing volume and the variety of the powers and attibutes of the pieces, is inevitably to schackle oneself to a conspectus which is not merely socially but techno-philosophically lagging several ages behind our own. As a historical exercise it might have some value. As a work of the intellect, it's just a waste of time. If you want to make something old-fashioned, why not build a wooden sailing boat, or a steam engine? They're just as complicated and demanding as a mechanistic game, and you'll keep fit at the same time."
The thing that bothers me is that, once you have the helium, it's not like it's a chore to maintain the stockpile.

How much does it cost to hermetically seal a noble gas inside a durable container, and stow it in a warehouse?
Gmail becomes first Android app to cross a billion downloads
What is is like to own a Tesla Model S
The Moto G is still the best in its price range, and at $129 the Moto E may manage to pull the same thing in the lower than 150 dollar market.

Whatever Google changed in Motorola's approach, it's working, because that's the first two phones they've ever made that I wish to buy and recommend (including G for myself).

They say it sells very well so I hope these things are sufficiently profitable for them, we will all benefit from great phones at low price point.

(the higher priced market may be harder to breach though, since the Nexus brand is already there playing the same game)
Some phones for the same price: ZTE Geek v975, Lenovo P780, Lenovo S860, Jiayu G4s, Star N9800. Faster, bigger, dual sim. And Lenovo has great battery.
A Startup Scene That Seems Out of This World
I really don't see this working out in Russia's favor. It'll hurt them more than the U.S. As we've seen with NASA funding recently, we apparently don't care whether we make it back up there any time soon (well, most of us at least) while Russia needs all the advancements it can get.
Honestly? It looks like an API that's suffering from lack of an interface.
I'm very interested in working with SVG in the browser and have found it to work pretty well with React. I built a demo (Code: https://github.com/jonase/elements, App: http://jonase.github.io/elements/) using one of the (increasing number of) React wrappers for ClojureScript (Chrome only for the moment I'm afraid)
Authors At Google Talk: David Graeber, DEBT: The First 5,000 Years (2012)
Possibly http://en.wikipedia.org/wiki/Multiple_dispatch ?
Interesting. I wonder if the slowdown of small pages is a result of excessive pointer chasing on the kernel side, which intuitively does a better job of trashing the TLB than sequential accesses would.
I remember that OSX colleagues used to be quite enthusiastic about Papers. As a Linux and sometimes Windows user, I used to use Mendeley quite intensively, until I rediscovered Zotero, which is open source, and for my use case much better than the competition.

Zotero is cross-platform; it enables me to sync my papers in whichever way I choose and its bibliographic data extraction and PDF downloading work much better that that of Mendeley, because it does this from your computer, not via their servers, meaning you have access to all the fulltexts that your institution has access to.

I've used Zotero to write a bunch of papers, book chapters and part of a book. It's very solid.
> it should be noted that this policy started to be dismantled 4 years ago

Sure, if by started to be dismantled you mean "was completely unchanged other than they stopped assigning the thumb-twiddling teachers to big rooms/facilities (too visible a target to critics) in favor of assigning them to smaller spaces - spare cubes, broom closets, locker rooms, conference rooms - more widely distributed around the city and hence harder to count."

http://www.nydailynews.com/new-york/education/city-schools-r...

http://nypost.com/2011/01/03/rubber-room-blues/
flagged - the title is bullshit anyway and the problem is not so much that somebody fakes linkbaity titles - the problem is that HN audience is apparently interested in it
most graphics programmers are on windows and i guess it won't be long before almost everybody is on some kind of win 8.x...8.1 is quite decent after all
>which is the reason they bought PrimeSense

Nope. MS licensed first gen Kinect technology from PrimeSense. Apple is the company acquired it.

The ToF Kinect was developed fully in house. Here's the published paper on the depth sensor in ISSCC2013:

[A 512×424 CMOS 3D Time-of-Flight image sensor with multi-frequency photo-demodulation up to 130MHz and 2GS/s ADC]

http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=675737...
you are amazing!
The big surprise for me was that they nixed the rear LED flash. Not because anybody would take pictures with that camera, but for a phone made for the developing world not having a "flashlight" is a huge knock against it.

Seriously, flashlights are a big selling point even on simple dumb phones here in Rwanda, and I just can't imagine having a phone without it When the power goes out a few times a week, having a source of light on you is a big boon. (and no the screen doesn't count!)

Seems like a misstep to me.
For those wondering about the domain name, it translates to "Full Speed Ahead"
How to Copy DVD to Computer / PC / Hard Drive
DVDFab DVD Copy can copy DVD to computer/PC/HDD if you don’t want to copy it to a disc. DVD Copy can output DVD folder or DVD ISO image file for backup on the hard drive of your PC. This kind of DVD backup can be easily done with just a couple of steps as follows.You can learn more about the page at:http://www.dvdfab.cn/dvd-copy/how-to-copy-dvd-to-computer-pc-hard-drive.htm?ad=hcj
You might be surprised to hear that there are many free-thinkers in the military. It's a little slice of America, with just about every subculture represented.

What I'm surprised to hear is that they're including a bunch of military reading on these. While I love war books and tactics, when I'm off doing military shit 24/7, the last thing I want to do with my rare free time is read a military book. Give me something that gets my mind off it all.
A friend found this

http://support.vodafone.com.au/articles/FAQ/How-to-deactivat...

TLDR; Deactive iMessages on your iPhone before switching or go here if you don't have access to your phone. http://supportprofile.apple.com/MySupportProfile.do

Sounds like that's not enough from reports below tho
We're building a distributed system and just decided on Hive as the codename for the control plane. One of our engineers that is familiar with Hadoop brought this up.. now there is this as well.

"There are only two hard things in Computer Science: cache invalidation and naming things."
Fire in coal mine kills at least 201 workers in Soma.
And getting back to the Oracle ruling I think the fair-use defence for something like this aimed at a compatible implementation would be stronger than Google's because they were trying to fork the platform and avoid the available Java licensing offers.
Someone said kinect 2 uses time of flight. Don't know if its light or lasers or sound but I think maybe some kind of light.
British Spies Face Legal Action Over Secret Hacking Programs
> I don't know what the most advanced classes were in your field, but Berkeley (and other top top schools) teach classes that are unimaginable at other universities. An undergraduate SDE class really is "unimaginable" most places, and learning the material from a textbook would be impossible -- it's too difficult and appropriate textbooks don't exist. The "textbook" is usually the instructor's notes from the last time they taught the class.

Not a Berkeley alum, but I went to UVa; which is considered a similar tier (if I remember right, the top 3 public schools in the US, at least by News+World rankings, are usually a toss up between Berkeley, UVa, and UCLA).

I think this is definitely true, and in basically every field a top school is strong in. The upper level courses, even at the undergraduate level (especially the ones people are not required to take. If it's a required course, /someone/ has to teach it, and they might not be that into it, particularly if they aren't teaching faculty. If it's an elective, they're teaching it because they think the subject is awesome.) are usually being taught by people who have made it their entire life's work to study that field, and at that level of University are often some of the best people in that field. That kind of perspective, depth of knowledge, and passion don't necessarily translate well to teaching (I can think of some math professors that I had...), but it often does, and even if it doesn't those professors are usually /amazing/ resources outside of class if you want to know more about (subject of choice), what the current problems in that field are, what's considered important or valuable, etc.

I'd hesitate to make sweeping generalizations, but I think that if you didn't manage to take as many advanced courses (particularly graduate ones. Good undergrads at institutions like that can almost always handle the graduate courses they offer after they have the sufficient background) with as many top people in a field (or fields) as possible, you wasted an opportunity if you were at a school like that.

(Full disclosure: I come from a family of liberal arts professors at UVa, whose social circle largely consisted of other liberal arts professors at UVa. I might be a little biased on the matter... but those people /know their field incredibly well/. All of the ones I've met, both outside and in school, are both very, very smart and many of them spend the majority of their time thinking about one field or area of study.)
Luck favors the prepared mind.
There's a very nice port on Open Pandora as well for playing on the go: http://repo.openpandora.org/?page=detail&app=wesnoth-1.11
... and no Android KitKat.
Yep. I just installed it and BibTeX is an export option.
already they're asking me to do the wrong thing

Now, yes.

The original SABRE dates back to the 1950s, and was not an airline-customer-facing system; SABRE dates to an era when the phone interface was used by airline ticket agents.

So if you're going to argue that the design is wrong, you need to argue for why it was wrong for the 1950s use case and interaction patterns, not try to retrofit 2014's use cases and interaction patterns onto it.
I can totally understand that, it's definitely a preferential thing. I do like some randomness, but overall I prefer having a lot of different choices, and the challenge of trying to work out the optimal one. I think I prefer that feeling of "analysis paralysis" to having your work completely undone by an unlucky dice roll or card draw. Plus, the feeling of satisfaction of forming a creative strategy or tactic is awesome.

I've recently gotten into boardgames, and the ones I enjoy the most follow this line of thought (in particular Caylus and Terra Mystica).
> Placebos work in general as long as the problems are psychological.

There was a study [0] about the placebo effect in heart failure patients: "In a 1999 Swedish Study, doctors implanted an active pacemaker into 40 heart failure patients. Another 40 patients underwent the same surgery, believing they were receiving active pacemakers. But their pacemakers were never turned on: they were, in essence, placebo pacemakers." - [1]

Now as a disclaimer, I did not complete read or understand this study nor do I know if there are counter studies, but it's my favorite bit of information about the placebo effect.

[0] http://www.ncbi.nlm.nih.gov/pubmed/10190407

[1] http://blog.placeboeffect.com/reverse-heart-disease/ (laymen conclusion)