skysight-inc/HackerNews huggingface dataset:
I've started getting back into C++ after many years away and it's all coming back to me.

Now of course it's C++11, which does have some nice features, but really I think we've reached the point where we need to start again (downvote away).

Let me give you an example: I recently came across some code that was written years ago that has two size types: one 32/64 bit signed and the other 32 bit unsigned. This creates a bunch of issues when compiled on 32 and 64 bit architectures and there is a substantial amount of effort to clean it up.

I point out things like this to colleagues who are very pro-C++ and I inevitably get the same response: "well that's just bad API design".

Thing is, if you look at the history of this example it's a series of incremental changes, all well-meaning and reasoned, some of which are done by people who I could only call luminaries, and even they make significant and far-reaching mistakes.

So what hope do the rest of us have?

But my biggest problem with the C-dialects is pointers. Namely if you return or receive a pointer, it's not necessarily clear who owns it. The way this is handled is comments like "DO NOT delete this" or "you MUST delete this".

I like that a language like Rust is trying to formalize the concept of object ownership. I'd really like to see that idea mature and take hold.

Until now there hasn't really been a competitive alternative to C/C++. It's not Go (as much I love Go). Maybe it's Rust. We can but hope.

My other big problem (and this applies to Java too) is directly dealing with low-level multithreading primitives like threads, thread groups and mutexes. I really like that Go has taken a different approach here.

What I find with particularly young programmers is they don't have the appropriate fear of writing multithreaded code. It's really, really hard to write correct multithreaded code with low-level primitives. It's why (excellent) books like Java Concurrency in Practice exist.

As for the feature list of C++14 [1], I wonder what all these "auto" declarations will do to the significant work required for static analysis tools, that are an essential part of modern, large-scale C++ codebases.

The literal types (like "s" for std::string or seconds) are cute but at some point the STL was optional. I'm a little leery of embedding it directly in the language but hey I'm no expert.

[1]: http://en.wikipedia.org/wiki/C%2B%2B14
https://news.ycombinator.com/item?id=8147736
Amusingly, your Dart solution is exactly what Groovy does, which is where this whole thread started.
UPower (YC S14) Is Building Nuclear Batteries
He asked about the price of a property near Santa Clara, which was approx $900k. His response was, "oh that's very cheap". He was expecting about $1.5m. An interesting comment.
Someone on this thread mentioned Kangaride.com as the closest comparision to this service. I haven't personally tried Kangaride at all , But another popular service in this sector is "ZimRide" (which offers intercity ride sharing) ; ZimRide is sort of popular among skiing enthusiasts in Bay Area, a ton of trips on the site is mostly Bay Area to South Lake Tahoe or Truckee ( and I hope there are a few more similar routes in US to skii destinations). In most cases,whenever I have zimrided with someone - I have also shared a room with the same person.

Plus, Zimride actually does not take a cut ; you simply connect with people on the site ( and you decide to pay however you want,I have done paypal ,cash , venmo and thru zimride in itself). I m not sure how they make money ..
What, you mean like this?

http://krebsonsecurity.com/2014/06/peek-inside-a-professiona...
Thanks for the correction. I don't know where I originally got the "up top six bytes" number from, but I've been using it for a while. Apparently, it's out of date (looking at the original proposal, https://en.wikipedia.org/wiki/UTF-8#Description , some code points were expected to need 6 bytes, but as you say, that's no longer true).
“Imma let you finish, but ...” this should not be patented, thus the application should die with fire! Don't get me wrong, I'm all for creativity and patent holding for unique innovations, but this is ridiculous.

How about I go ahead and patent my own "innovative" technique:

`:) @2x`

A high-resolution inline-image metacommunicative pictorial for multi-platform & multi-devices. (aka a "smiley" with large anti-alias font)
The "because" is a link to an article mentioning the phenomenon.
Can anyone suggest an accurate, neutral title?

Edit: Users have flagged this, so it doesn't really matter.
I have used SuperMemo for the last nine years of my life to learn three languages, lots of scientific concepts I had long forgotten after leaving school, world history, jokes and countless other information. Spaced repetition is one of the coolest modern inventions and one of the best uses of computers on the human mind that I know of. It totally rocks as long as you put in effort.
What if you only want a getter? The `final` keyword is too restrictive.

Also, it breaks encapsulation, because your internal storage should be changeable without ruining your external surface area.
Yeah, I read that. I don't see how that makes the BlaBlaCar sharing any more actual than the Uber sharing.
For those interested in the history, I highly recommend Crowe’s book A History of Vector Analysis. It’s written a bit from the perspective of the dominant “modern” system of vectors from Gibbs/Heaviside, so it probably somewhat undersells the significance/usefulness of both Hamilton’s quaternions and Grassmann’s vectors (or what Hestenes calls “geometric algebra”), but the historical and biographical details are fascinating.

Also recommended is all of Hestenes’s work (e.g. A New Foundation for Classical Mechanics, his Oersted Medal lecture, various papers), as well as the book Geometric Algebra for Computer Science by Dorst, Fontijne, & Mann. The latter is a bit light on the mathematical formalities but gives a good introduction that could get someone started using geometric algebra in practice in e.g. robotics, computer graphics, etc.
Just use the nodejs api for beanstalks.
That is right. Some patients are quick to see a conspiracy when doctors can't cure them. But some diseases are just outside the capabilities of current medicine. It sounds like you suffer from something like metabolic syndrome. It's a deadly serious disease that's unfortunately common, and one that has no cure (as with any chronic disease).

>>existential fear resulting from the balance of power between patient and doctor than anything else

It's the most elemental fear of all, I think. It's the fear of one's own mortality. Would the doctor-patient relationship be so fraught otherwise?
I won't pretend to understand how patents work, or comment on the general absurdity of the claim overall, but it did strike me as peculiar that Facebook would attempt to claim ownership of the invention of (this embodiment of) a 'composite image' that can (with evidence you kindly provided) be attribute to members of reddit.

Also, I can only assume Facebook's patent lawyers charge by the word!
Men are victims of so-called "honeypots" all the time, but we don't weep over them. Why when it's a woman?

http://en.wikipedia.org/wiki/Clandestine_HUMINT_asset_recrui...
Home of Stumptown :)
(And bravo on the troll-face image! The irony will not be lost should this patent be granted and FB attempt to assert it...)
The main downside I can see with it is how much implicit behaviour there is. Sometimes it's very hard to figure out what's actually going to happen with a line of code.

That said it's quite expressive now, you can do a lot with a little code, which is always nice.
Stop the deluge of science research
UBiome (YC S14) Raises $4.5M to Crowdsource Microbiome Research
Tom Hanks’ Typewriter App Shoots To The Top Of The App Store
Agreed, ICU is a good place to start looking at this stuff, used it in a few large-scale commercial projects now.
I can't look at code without var's anymore.
Linux is on all parts of the spectrum here. Ubuntu LTS and Slackware are going to remain outdated by design. Arch Linux almost always have the most recent stable releases of GCC and clang, and you can even build development snapshots from AUR
According to the article, Corolla can't comment until September 30th. He seems to have been pretty good about being open and explaining his actions so far. So I might suggest holding tight and waiting until we hear his side of the story until passing judgment.
I can get behind that. Not to protect myself from wifi radiation, but to cut down on the amount of wifi traffic interfering with my signal. There are only 13 usable channels in 2.4Ghz, and I don't feel like replacing my router for 5Ghz right away.
Hunger in America 2014 – National Report [pdf]
Telstra Backed Accelerator Muru-D Graduates First Batch Of Nine Start-ups
Jonathan is looking for legal ways to access the information.

His main point is that Science made it hard to access the data (but they did make it possible!) and his secondary point is the terms under which they made it possible were pretty silly (basically, opt-in to spam with no way to easily opt-out until you get the first spam and unsubscribe).

I dunno. Actually I think this is what victory feels like for open access publishing, as implemented by the incumbents (who have kicked and dragged their heels on this). It's not clear this is a battle worth fighting; scientists are used to working hard to get data, and if they really want to read a paper in Science (that is available for free), well, you just walked them through the process. It's onerous, but I suspect other battles (like being able to store and process all the documents on the science website via high-throughput means) are more important for the progress of science.
> You're right that masses of low-skill immigrants is a problem, especially when they are not integrating with society.

Turks aren't that much of a problem anymore. These days, the massive influx of refugees (unanticipated by our stupid politicians) are the biggest problem. We lock 'em in overcrowded camps, prohibit them from working for 9 months and then wonder why trouble arises.

Fuck our politicians. The way the entire EU treats refugees is disgusting.
Raggi Stepping Down as Rack's Maintainer
Work on G1 GC. Now it can deal better with humongous regions (can collect them in mixed cycles, not just at the end of a slow and expensive full marking cycle), had a lot of fine tuning work done, and all in all, it seems to me that Oracle allocated/allowed/encouraged JVM GC developers to participate on the hotspot mailing list. ( http://mail.openjdk.java.net/pipermail/hotspot-gc-use/ )

And see also: https://bugs.openjdk.java.net/issues/?jql=project%20in%20(JD...
"What is a gyre, why does it trap garbage, and why should you care?"
this is exactly my experience with the bootcamp i did. aside from some codecademy courses, i had no development background, but i got in based on an aptitude test (IQ test type stuff) and my ability to complete an assignment that assessed very basic java/OOP skills. once i got to class, the learning curve was steep (i was the only one without either a CS degree or prior development experience), and now that i am in the workforce, the learning curve is still steep.

i agree re: the personal learning plan - if you are going to do a bootcamp, don't rely on it to be enough. in addition to working full time, i spend between 15 and 20 hours a week studying, whether it be codeschool, OCW, or working my way through math textbooks.
It's hard, but put in the effort and finish the degree. Practice excelling. It'll be a lot harder to finish it later, but it can give you skills and access to better paying jobs later. Refine your ideas on the side. There's always time if you really want it.
All that does is shift Uber along the spectrum of predictable availability vs predictable price. You have the cognitive load of remembering/having to check a schedule, plus no guarantee of availability, since the schedule will be a highly imperfect predictor of demand, as well as not accounting for unforeseen surges in demand.

That seems like it would be more stressful and a worse solution than either of the other options (taxis' fully fixed-price or Uber's fully-floating price), since you don't even know what part of the spectrum you'll end up on at any given point!
Took a while to realize the company in question is not called Politely.
From all documents released by snowden thus far, it is clear that the Five Eyes are targeting their own supply chains. They're using arm7 and arm9 chips in their hardware bugs, but it's clear that they have no focus at all on arm exploits.

Both the RK3xxx and A23 chips are fully supported in Linux 3.16, so I see no trade-off. Just low wattage and a bit of peace of mind that my government has to custom-tailor exploits for me and my companies, which isn't very cost-effective. :-)
I have a bulldog, and not only does he fetch, he can fetch me beer! He's way better than other bulldogs - I'd say he's pretty great.

He's a great bulldog.
Yah, no kidding. That title is serious link bait, especially because it's not in slightest supported by the article.

I know HN has a policy of letting the article choose its own title, but I think they should make an exception here.
On pointers -

Like a lot of things with C, you need to handle ownership by convention. I generally try to make the actor that created the heap pointer the owner of it and responsible for its destruction - i.e. instead of allocating buffers and handing them back up the chain full of data, pass them down from the requester where possible. If the length is not known at that point, create another routine to calculate it. Using techniques like this, ownership can become easier.

You can do anything with it, but that's half the problem!

And personally I like threads :)
Zenamins (YC S14) Mails You Personalized Vitamins
His example is creating new instances. It just happens to be creating them from existing instances. Basically a clone and change kind of operation.

You are right that normally you'd want the addFavourite method but in his example he is dealing with generated code which has a tendency towards verbosity.

You could add the method if Java allowed extension methods...
I'm not sure, all the article has a very alarmist tone:

* Investigating garbage patches in the ocean

* Plastic garbage is more dangerous than meteorites and global warning

* Would you like a smaller penis with that bag?
Do you have examples where men were deceived into multi-year intimate relationships, or left to care for the children of their partners after they disappeared?
Speaking personally, I head home and wish that my employer wasn't on ACS.
There appears to be only slight anecdotal evidence that "the Chinese" are a significant, over-represented, or manipulative force in Bay Area real estate. Or did I miss it?
..or even a PDP-12. Which was sort've an out of sequence lab machine based on their LINC ('L' for laboratory) machine. i ran a PDP-12 off an analytical ultracentrifuge and it had front panel switches which had to be set a certain way on boot-up.
Georgia siblings create app to rate police interactions
What a refreshing and well thought out viewpoint. I especially like the delivery of it, a perfect way to convince others!
Being an MP is an easy way to get into law enforcement.
I know nothing
Too bad it's a mirage. No, really. "Modern C++" doesn't exist outside of blog posts, books, and tutorials.

Real-world C++ is an array of sometimes mututally-exclusive dialects, patterns, rules, sub-dialects.

Reading MFC is nothing like reading Qt which is nothing like WxWidgets which is nothing like Boost which is something (but not quite like) the STL which is way different from Apache C++ libs which is way different from what Google's C++ libraries are...

This is what happens when a language is "un-opinionated", throws everything including the kitchen sink at the language, tries to compile C and legacy C++ while introducing new features oh and also can't break existing code.

It's on its way out, no doubt about it. And we'll be better off as an industry for it, I'm sure of it.

Rust, Go, and others will be there to fill in the gap in a much better, saner, safer, maintainable way.
I get the rest, but what does "over-represented" mean?
UTF-16 has surrogate pairs as well. It's the worst of both worlds.
What an Introvert Sounds Like
Very interesting. If I happened to live in a gated community, with beach access or something, I'd rather drive one of these around than a golf cart--although servicing it might be a problem.
When I took a graduate class in General Relativity under Robert Brandenberger, one of the more unconventional (and brilliant) approaches he took with his students was to introduce the formalism of geometric algebra quite early on, along with tetrads and spinors. While confusing at first, it proved to be extremely enlightening when Maxwell's equations were brought into play.
I'd imagine this is Facebook's lawyers trying to guarantee they don't leave a door open for patent trolls if they ever decide to use this as a feature. I very much doubt they'd enforce it at all.
Can you elaborate on this or link to a source? And what's Ronnie's last name?
That's called real life isn't it? Just choose an unmediated life if that's what you want.
Ask HN: Looking for a a Japanese speaking/writing person in the HN community?
Looking for a little community help/advice.

Our new product has been very well received by the Japanese even though we made no effort to connect to them.

I'd like to connect with some of these Japanese people but despite sending some emails we seem to have a failure to connect.

Anyone in the HN community who knows Japanese who might be able to help us do some initial communication with our Japanese community?

thanks
Indeed. And SF residents push hard against building upward, unfortunately.

I live in Lower Pac Heights and recently got a notice in the mail that was urging people to oppose a new construction in the area. With the main reason being that it would be taller than the current height limit and establish a "dangerous precedent".
I don't know about the glass ceiling. Our CEO is from India (bet you can guess the company), many of our SVPs are Chinese. As a white male approaching his 40s, I'm not quite sure how promotion will work for me when all of our managers in my local site are ethnic Chinese (granted, I work in China and there aren't many foreigner datapoints).

In high school, I had a lot of ABCD classmates, and there parents were incredibly successful in the Seattle area, especially at Boeing. They had no problem going into management.
IAt least the author is free to post the article (ok, manuscript) to his own website for free:

"Authors also retain the right and are encouraged to post the accepted version of their manuscript to their personal Web site or institutional repository, immediately following publication by AAAS."

http://www.sciencemag.org/site/feature/contribinfo/prep/lic_...
sweet. I'll have to check it out. I've been looking for a good pager system for a while.
That's almost as bad as "This one simple trick to ruin your planet" or "You'll never believe how the human race will die out".
^ this made me giggle
CUBS 4 METS 1 F…North Siders Ace KYLE HENDRICKS stars in Escape from CITI Field
Navdy
"The planet's five ocean gyres and the risks of accumulated plastic pollution"

Quite florid writing but the map of the planet's ocean gyres is beautifully done.
They tried. Remember the DECMate and Rainbow and all those? Our school taught us MACRO-11, pre-standard C, RSX-11, and Pascal on them. They aimed at the small office and word processor crowd but were poorly marketed. They included such dirty tricks as putting glue in the peripheral card slots of cheaper models, to differentiate the expensive models.

http://www.old-computers.com/museum/computer.asp?st=1&c=468
https://hn.algolia.com/?q=titan+graph#!/story/forever/0/tita...
Ask HN: Forums on the Internet to discuss real-world non-tech manufacturing?
I'm interested in manufacturing of non tech stuff.

Specifically I want to know how to get an image printed onto a tabletop or plastic surface in the cheapest and easiest way.

I also want to find out how to get very cheap shippable plastic tables made.

In software development there are any number of forums to discuss how to do things.

Where does someone go on the Internet to ask questions about real world manufacturing? Are there active forums anywhere?
I live in Chicago, and sometimes it's really hard to tell where the EV is coming from. They're ear-piercingly loud, and the sound bounces everywhere. You hear the siren, then frantically start checking all your mirrors every 0.5 sec, which probably creates more of a distraction to the driving you should be doing.
They're fearful, the cops. Not excusing it but this is not only the community lashing out at their lack of power, but the authority lashing out at the same. I don't want to psychoanalyze this but I think the whole thing is part of a bigger picture where authority in America is trying to maintain control of a public that is, according to almost any poll you find, is seriously disillusioned with their leadership. And they react with the deft touch of your typical large institution.
finally, a way to combine the insecurities of a padlock with the insecurities of programming and telecommunications!

that said, I'm sure people will love it.
sargun, you should write up a blog post on how you ran this analysis. It would be awesome. Also, put some contact info in your bio!
> you don't get a real sense of what is out there from an online bookstore. I'd forgotten how wonderful browsing was.

Yeah, I've found great stuff just browsing near other category-sorted books in a university library. It's so disappointing that nothing similar exists online, either for fiction or nonfiction.

I'd love to see someone build a properly "curated" virtual bookstore with a great interface. Sell me things I don't yet know I want. Give me weird niches like occult bookstores as well. This can all exist online, but nobody has really done it.
Of course, but it's obvious they have zero desire to help support Scala on Android. First because they don't use Scala at all internally and second because even the languages that they created (Go, Dart) are not supported on Android. If Android ever officially supports a language other than Java, you can bet it will be one of these two.
The cycle is 5 years, but effectively 10 years because re-election (by the CCP) of the in-government is almost guaranteed.
Being in Europe I wished I could have a peek at what's inside. I wished I could set up an account and see what happens and if my neighbors would sign-up. I suppose it's not possible (yet) because of i18n, targeted/local ads and public announcements particularities ?

Any open-source alternative I could set up ? A small diaspora/facebook clone ?
If he hasn't spent all of it on the legal battle.
Squashing Docker Images