skysight-inc/HackerNews huggingface dataset:
It's a lot easier to reason about your first version of 'someMethod', which passes by value, than the second. It can actually be more performant than the second as well, since the code inside the body of the function (which may have been compiled during another invocation of the compiler on a seperate file) now knows the dynamic type of the object it's dealing with, meaning all interior virtual calls can be made direct.

The first form of 'someMethod' will also accept all 4 combinations of moves and copy operations on 'SomeClass': (copy a, copy b), (copy a, move b), (move a, copy b), (move a, move b). Your second, less convenient, function results in moves degrading to copies, leaving performance on the table if 'someMethod' performs mutation.

Your 'y = f(x)' ambiguity isn't a problem in practice, since most code styles use different naming conventions for classes/structs and function names.

Conversions, construction, copy, move, and assignment semantics etc, are one of the most important, and one of the most difficult things to get right, when it comes to class design. If you make sane choices though, and put thought in to it, automatic conversions etc shouldn't be bothersome.
Scan the Internet and Screenshot All the Things
> My employment contract said I was to make reasonable effort to assist in the creation of patent applications that resulted from my work.

While this is true, you must also be aware of the damage that software patents are doing to the industry, and by extension, your professional peers. How do you reconcile that morally? Is your current job and standing in your company worth the damage you've done by assisting in the creation of this [seemingly] obvious patent that [seemingly] ignores prior art[1] and could be used to stifle innovation?

[1] The Textual IRC client, for example, has been inlining images and other URLs since at least as far back as 2011. I'd guess Hipchat has been doing it for longer.

(I hope this is the right tone to take for this kind of comment. Please advise if not.)

Edit: It's pretty rare that you get a software patent author answering questions in an HN thread. I don't currently know anyone who's written patents, that I'm aware of. I'm actually interested in the answers to these questions, and I'm not just taking jabs to bring someone down.
Yes. It's instructive to look at the examples of the two major autocrats of the 20th century. Hitler died a lonely death surrounded by ruin. Stalin died in his own bed as an old man. Stalin bided his time and played the patient opportunist. Hitler was feverish for military victory. It's obvious which dictator Putin wants to emulate.
I heard the average sale price of an apartment in China was $500K...that is for the whole country, including 2nd and 3rd tier cities. Now, I don't know how believable that is, but if true...wow...oh...wow...
I think s/he means that there's no evidence that there are more Chinese investors than one would expect.

Let's say there are only 3 kinds of investors: Chinese, Chilean and Czech. In a ideal world where those countries have the same population and the same wealth distribution, you'd expect each country to be represented equally, so you'd expect 33% of investors to be Chinese, 33%$ to be Chilean and 33% to be Czech. Now, if you see that 40% of investors are Chinese, then they are clearly over-represented.

It's kind of difficult to define 'over-representation' in this case, because the normal parameter (population of country of origin) doesn't really apply. Now, if you define it as 'number of people with the money to invest in housing in California', maybe you have a way to measure it...
I never bother with going to the talks while at DEF CON. Everything gets posted online afterwards, and there's enough going on outside of the talks, that I've never been able to justify actually attending them.
In case anybody's interested in an application of machine learning to this problem area:

https://news.ycombinator.com/item?id=5558287
Slack is killing emails.

Nextdoor is killing Facebook.

Verge is killing journalism or what's left of it.

In reality Slack had only 150K users. Nextdoor is barely known outside of few neighbourhoods (sure, they can claim 1 in every 4 neighbourhood has "adopted" Nextdoor). Lot of articles from Verge getting posted here recently smells a lot like just paid PR stuff for startups. They are almost like informatials on late night TV. Take everything from them with huge pinch of salt.
I have been in China for 7 years and still don't qualify even for a greencard.
It is the machine operated by the guy recruited by Travolta in "Swordfish" in that fancy way, with that casual scene of Halle Berry and a hacker named Torvalds; what a salad.
How do u get in contact with potential buyers
What do you do when u have built a great
System but dont have the connections to sell it?
Who do you talk to and how?!!!! (Nobody answers emails from strangers.....
>I'd say most of modern C++ code isn't written with the performance goals that justify nonvirtual as default

I am using C++ right now for embedded code but otherwise I write mostly Javascript. There was a time when C++ was the standard choice of language for desktop apps etc., but that's hardly the case any more. You choose C++ if you need performance and control. And I think the "default means the least overhead" concept makes a lot of sense there.

Also, inheritance is a very central part of mostly all Java code whereas it's much less idiomatic (modern) C++. In C++, classes serve to give you RAII and you specialize with templates.
You're quite correct - I realised about five minutes after posting that what I wrote is really about when you want to use 'great' to mean 'larger in size'.

If someone says "I have a great bulldog", it generally means a bulldog that's excellent in some way. If someone says "I have a great brown bulldog", it's more likely that they're now using 'great' to talk about size.
I've taken a look at the product site and I love it! I think it's perfect. Our son is obsessed with Minecraft and has recently been expressing interest about learning how to program. One question about the pricing, is would I be able to go through the lessons as well as my son? Or would we need to pay for separate accounts? The FAQ mentions something about up to 4 players per server.
The contest starts when you get your badge Thursday morning (8:00 AM - 3:00 PM depending on the line), and the team that won this year finished at about 6:00 AM on Saturday.
Just don't take a 50/50 cofounder, only give out equity in proportion to expected value added.
Are size and efficiency the most pressing issues to solve in nuclear power? I don't know a thing about nuclear issues but from the layperson's perspective, it seems like security is the biggest problem that keeps nuclear power from being used everywhere. These containers are essentially dirty bombs without detonators and must be protected as such. This might work for the military, where you could secure one on a restricted section of a FOB, but how would this work for a small town in Alaska, as the article suggests? Securing the site is only half of the problem, too. You also have to secure the supply chain for the nuclear material, as well as the disposal. The cost of disposal is another challenge. Imagine the difficulties of transporting the spent fuel from the Alaskan village.

These guys have a big challenge ahead of them but it would be quite awesome if they can pull it off. Prime power generation and the supply chain issues that its fuel entails is a huge and extremely expensive problem for the military. If you could safely build this in a CONEX, that would be impressive.
The policy is to keep the article's title unless it is misleading or linkbait. Double when it's both.
It was the right default twenty years ago for performance reasons.

These days, the economy of a vtable pointer is not really a good reason, and all languages that have the opposite default (such as Java, as you point out) are doing quite fine.

Because of this default, I can't count the number of times where I've seen "#define private public" and other horrors that developers used to be able to extend classes that their creators were too short sighted to design properly.
Yes. I'm working on a pet project called F0UND that's meant to automate as much of the badge challenge as possible. There will still be a lot of human effort involved, but I think a lot of the information gathering and cross-referencing can be automated.

Next year the black badge will be mine, whatever it takes.
Another great example of a rule that exists in English that native speakers generally follow without knowing, but is taught to learners of English as a second language, is the rule of which adjectives form comparatives and superlatives by suffixing '-er' and '-est', and which by prefixing 'more' and 'most'.

As a native English speaker I was never taught a rule that explains why I would say hotter or wrigglier or redder or wildest or shiniest, but more emphatic, more open, most excellent or most orange. I'd always assumed adjective -er and -est suffixes were just irregular, with no pattern to them at all.

But it turns out there's basically a simple rule - if it ends in '-y' or has only one syllable, you suffix it; otherwise you use the 'more' or 'most' form. It's remarkably solid as a rule, and even when I come up with a word that sounds sort of right to my ear that doesn't follow the rule - like, for example, I can kind of see 'wickedest' as being a valid form - it turns out that if I think about it, it probably doesn't sound right after all, and I would probably prefer 'most wicked'.
Donny Misraje.
Sure - this is a small fight. I wrote the post not to get AAAS to provide access to such papers really. I wrote it to point out just how hard AAAS works to make stuff inaccessible. They are generally anti-sharing. And there is no way in hell they would let everyone access the full text of all papers. So it would be better for everyone if nobody published there.
I was about to say, "Sure, gimmick today... but tomorrow?"
I also work in IT -- to get my residency, I had to bring both copies and the original of my college diploma. Not sure how much they bend the rules on that. It was listed by the Ausländerbehörde as a required document.

In general, Germany is really into "qualifications." You'll meet people who are addressed as Mr. Dr. Professor. Your competition by Germans will mostly have at least an MSc -- so that's what your certifications and experience will have to compete with.

(Edited to add: I came from the US. It's probably different for EU citizens).
HauteDay (YC S14), A Gamified Shopping Site
"There was namecalling, sarcasm, pedantry, even classic trolling (people taking positions that they clearly don't care about just to upset the original poster). Almost Youtube-comment level stuff. Even weirder, most of our neighbours are middle-aged or older. They didn't grow up with this kind of online behaviour and had trouble recognizing it."

I first got online in 1994 or so with local BBS, which turn out to be fantastic ways to put your toes in the online water... they're just gone now, and I'm actually sort of grateful. So I've had twenty years of posting with text to learn how to do it, and what to do, and what not to do.

One of the things that watching Facebook has reminded me of (even though only my wife has the account) is that knowing how to socially interact online is a skill, and it can be a brutal thing when certain personality types get exposed to it for the first time. My wife is skilled enough that she has not gotten caught in any crossfire, but we've seen friendships die. I'm sure others here could post stories of marriages ended on Facebook.

Don't be afraid to educate your non-online friends a bit, if they'll have it... you can save them a lot of grief.

And this sounds like a network even more likely to pick up network newbies than Facebook itself. That's going to be... interesting.
Would you mind expanding on this? With as much detail as you feel like writing? It's incredibly interesting.
He should donate the remainder of that $500k to the EFF, whatever he has not already spent on its intended purpose.
Using a database as the backend of the queue is a really good idea. Of course if you have a lot of load you can add a redis cache in front, but persistence and reliability of the queue data is highly important.

If not a DB, how else do you get consistency, reliability and ease of development? Basically you will end up re-implementing a database anyway.

PS. I wrote a highly popular render manager / queuer and I first ended up writing a custom database, but eventually the core was replaced with MongoDB and it is now even more scalable and robust.
Yes, I think the tech firms are more to blame here. But there's more than enough blame to go around: govt, real estate business, sellers...
I read that -- and I may be incorrect -- that real estate investment is a fast-track to permanent residence. A chinese (or really, anyone) "business owner" can buy up multi-tenant property and get citizenship or permanent residence here in the US.

California is just particularly attractive to wealthy chinese.
"Microsoft announced last year that it was moving its German headquarters to Munich. This move is planned to take place in 2016. While Reiter was involved in the deal that precipitated the move and describes himself as a "Microsoft fan," he says the criticism of LiMux is unrelated."

This made me laugh. Especially when I remember that Steve Ballmer took a flight, in the middle of his vacation to try and stop the munich deal from happening.

Seems they got themselves a local lackey to parrot the company FUD. Let's see if ze Germans are dumb enough to reverse course back to vendor lock-in, especially in the wake of the UK government adopting ODF.
Yes, agreed. I support the NIH policy. I just want more openness than it provides.
LOCAL SEO: A Checklist for On-Page Factors
A police sniper with a magnified scope isn't there to provide "crowd control" in the sense that you're describing, i.e., getting up close and personal with a crowd. They'd be providing overwatch from a distance.

That said, using binoculars would convey a much less threatening impression than observing through a weapon-mounted scope. On the other hand, we don't know exactly what the tactical situation was when that sniper was aiming at the crowd. Unless you do, you're not in a position to say whether he should have been aiming at people or not.
Haven't seen it yet, but thanks for the reference, I may take a look.
The Windows Store is full of scam apps and Microsoft doesn't care
Over 20+ years of development, I've found this objection to be vastly theoretical and with no practical consequences.

In practice, most classes are designed without inheritance in mind and yet, being able to extend and override them has proven infinitely more valuable than the occasional case where such an overriding breaks the parent class.

The practical reality is that even if a class is not designed for inheritance, inheriting from it is unlikely to break it but very likely to make its user's life much, much easier.
Nanoputian
China only allows ~$50k/yr to be sent out of the country how are these people able to bypass those currency controls? Or is the story inaccurate?
Yeah, the title of this article should be changed to reflect that this is a patent application, not a patent.
Lists of "graduating startups" from things like this are usually uninteresting "me too" ideas. There's actually some really interesting startups here.
10 razones por las tablets debe ser prohibidas para los niños menores de 12 años
Thanks for confirming my hazy German grammar memories. I had the impression it was a strong rule, but I also learned a lot of subjunctive and genitive forms that are pretty much unused in spoken German, so I didn't want to overstate the situation with time/manner/place sequencing in case it was a similar case of book-rules versus real life.
That's not true, I did a Ph.D in France, I was an assistant professor, and was stopped and fully body searched by the police at the train station for the only reason I am dark skinned. Not only did it end there, even after they saw my papers and called the university, I was let go, but the pack leader had to yell at me that France is not a place for me.

Affraid of Low skilled ppl ? No! Affraid of difference, definetly yes! But again this is France. Don't know about Germany, but Canada is way more warm hearted than France.
Why do you think it's acceptable to have a civil court based on religious principles? The idea is wrong and is the start of a slippery slope.

Opting out of these courts may not be an option for women pressured by their families and communities.
Why there are so much news about Chinese, can we talked about other countries?
I've never understood the STL's infatuation with iterators. Why do I even need to know about them when all I want is walk through the collection?

Ideally, it should be something like:

for (auto it : arr) {
// do something with *it
}
Since some people asked for, I just released a small step-by-step guide on how to deploy BemTV on your transmissions: https://github.com/bemtv/bemtv#how-to-use-it-on-my-own-hls-t...
It was taught, but I ignored it. I think most people learn languages by pattern matching.

I never tried to remember the rules, I just read a lot and know if it sounds OK or not (or sometimes I don't). Using the rules on the fly would be too slow, anyway.
Commercial power reactors are very expensive initially (multiple billions). This is a huge barrier to entry for most power plants. So the thinking is if the size can be reduced so can the cost.

The military is interesting because they already have small reactors in submarines and ships. And they have access to the highest grade fuel because they don't have to follow power plant regulations. So it seems like if these modular reactors would be useful to them, they could easily adapt these reactors for land use.

This startup is hard to gauge because there's so few actual details about their design. For example, how are they going to use thorium as a fuel? You can't just use thorium without a strong neutron starter source or some other fuel engineering.
Some -11s (like the 11/20, 11/35, 11/45, and 11/70) had toggle switch front panels. The 11/34 had the octal keyboard, and some systems like the 11/44 didn't have much more than a power switch.

My high school, back in the day, had an 11/34 running RSTS/E with a bunch of terminals hanging off it. Our classes taught BASIC-PLUS and COBOL (actually WATBOL), but no assembler.

The biggest irony? Back in 1980, my teacher was warning us about Year 2000 issues. Some years back, when I got a RSTS/E 7.0 system (the version that my high school had) running on SIMH, I discovered that 7.0 wasn't Y2K compliant!
Don't assume that everybody shares your opinions, even if those opinions are popular. The OP could be a fan of robust intellectual property regimes, including software.
I didn't find it particularly onerous to register.

The thing that bothered me is that I had no indication as to the value prior to signing up. I had no way to know whether my neighborhood had active, thriving, productive discussions or whether it was a ghost town. I had no way to know if it was healthy or full of gossip. This is the down side to it being private.
One takeaway point that I got:

Plastics, degraded to fine grains in the ocean, are consumed by as much as 50% of salt-water fish. Humans who eat the fish are suspected to experience the negative side effects of higher estrogen levels induced by the plastics.

https://d262ilb51hltx0.cloudfront.net/max/955/1*sdiSfUh0sAkP...
Re-read the OP; that's exactly what he was saying.

A cantonese-speaking community outside of China generally means it traces its roots to pre-Communist takeover of the mainland, a time when most immigration came through the British controlled territories around Hong Kong.

The OP is claiming that SF's chinatown is more Cantonese than Los Angeles, the implication being that the more Mandarin speaking Los Angeles community has closer ties to modern mainland China.

Based on personal experience, I think that may have been true 20 years ago, but not so much today. At least outside of Chinatown proper, which I don't spend much time in.
C++'s support for unicode is minimal. There are unicode string literals for UTF-8, UTF-16 and UTF-32, and conversion facilities between those encodings and the host platforms native 'wide char' format.

> - Do I use char* for strings? It sounds like wchar_t is 16 bits on some systems and 32 on others, so I should avoid it?

In general you should use std::string and UTF-8, since UTF-8 is a relatively safe encoding for sub-string search and replace, and (locale insensitive) lexical comparison/ordering. Windows uses a 16 bit wchar_t (UTF-16). Mostly everyone else uses 32 bit (UTF-32)

> - If I want to read & write UTF-8 files, how do I turn the bytes into 32-bit wide Unicode strings?

http://en.cppreference.com/w/cpp/locale/wstring_convert

> - Are there special functions I should use for handling Unicode strings?

Nope. You need a library for that. Manipulating natural language is a tricky business anyway, beyond single mortals, and you will likely get it wrong.
feel free to shoot me a message.
Posted by Softonic, crapware distributor. LOLOLOL.
I'm going to third that. 1500 is definitely very low for a monthly salary as a software developer. A one bedroom in a nice part of Berlin is already more than half of that.
I studied several of Hestenes' papers around ten years ago. Most of them are computational in nature and do not proceed to do geometry in an axiomatic way. This isn't to say he didn't write such a paper but I never found one and I read nearly all his extent papers. The thing I liked most was his derivation of the Kerr metric for a rotating black hole. I couldn't find anything wrong with it and I could actual understand every step, unlike Kerr's original paper. Other than that GA has done absolutely nothing to help gain a better understanding of QFT, GR, string theory, Lie groups etc. (for that an in depth understanding of differential forms is best. Physicists, even mathematicians who truly understand the magic of differential forms are even more rare than programmers with a deep understanding javascript!!!) IMO Geometric algebra is a useful collection of interesting computation tools. It reminds me of Pedrag Cvitanovic's "bird track" diagrams to calculate representations of Lie algebras. Nothing unique or fundamental is gained but it is remarkable that a completely orthogonal viewpoint to some very traditional topics exist. Other examples (from mathematics) of surprisingly novel viewpoints of traditional topics include Kuratowski who has a very unique approach to general topology and F. Riesz came up with the notion of "nearness" which simplifies difficult theorems in functional analysis but it could be used to recreate all of basic mathematical analysis.
On Opinionated Software
Bitcoin was one way to bypass currency controls. The other I heard was gambling in Macau - act as if you lost $100k, but take say $80k out of China.
> I don't know about the glass ceiling. Our CEO is from India (bet you can guess the company).

The fact that I can guess the company implies a glass ceiling.
As a counterpoint, I write "Modern C++" for my job. I know several others who do, too. I'm overjoyed at how much the C++11 features have improved my code (and I'm still learning how to deploy them effectively), as well as how good the compiler support is.

MFC was the vilest, most horrible abuse of C++ from the day it was released. Anything that involves MFC should just be rewritten with C# or turned into a webapp. I wouldn't take a job that involved programming MFC.
That seems to only document deception of gender identity, not other things. In Israel there is a much stronger law, but there was a bit of an uproar related to an Arab man who gained false consent by falsely saying that he was a Jew.

Link: http://www.jpost.com/National-News/Court-cuts-Arab-Israeli-r...
Gauss-Bonet all the way! :)