skysight-inc/HackerNews huggingface dataset:
Regarding the futures:

These are futures that you only can synchronously wait on (like what is currently available as std::future). However there is no possibilty to attach continuations that run when the value of the future is available. E.g. like the C++17 concurrency proposals, C#'s `Task` type or Javas `CompletableFuture`. These all rely on storing some kind of callback or closure inside the Future.
That's not easy in Rust because it leads to situations where ownership is no longer obvious. The continuation might need to capture objects that are still needed locally (so you need something similar to Rc<RefMut<SomeThing>> ). In the most simply example's the continuation needs a mutable reference to the Future itself whereas the Future-producing operation also has one. And if you have possibilities that the continuation could run on another thread/executor than the calling thread (which is possible with the other languages) things get more complicated.

Regarding asio. You don't have to deep dive very much here:
Simply consider boost::asio::async_write(socket, buffer, [](error_code, bytes_transferred) { /* Do something with the result
*/ });

You need some mutable objects (like socket or the object that contains socket) locally AND you need acccess to them in your continuation. This will only work "safely" with garbage-collected or ref-counted types and these do still not seem to work for interfaces.
Update for the superiority, though that is part my flippant language use and some projection :P The comment section in the grammar isn't comments as in ; line comments but the per sequence comments usually used to encode extra meta information such as with GenBank. No idea if they should be called something else, I've always thought of them as comments.
Genius Box: Projects and Learning Opportunities Delivered Monthly
THE FUTURE OF DIGITAL: 2014
Am I a little too slow here or they just launched the Mac app without the iOS counterpart? Can't find it on App Store.
It seems to me that FP is having quite a renaissance recently

It seems that FP is always having a renaissance. I distinctly recall lots of people (including me) talking in 2001-2002 about the big FP renaissance just round corner. I also recall a few old school lisper rolling their eyes at us and saying that they where saying the same thing back in the early-mid 80's.
> The potential of Emacs comes from the huge number of excellent third-party extensions

Yes, but you wouldn't have that many excellent extensions without Emacs being a great Elisp IDE. I recently compared PyCharm (I had to purchase it for work) with Emacs and the number of plugins for the former is negligible in comparison. I think that this is because writing extensions/plugins for PyCharm is so much harder than for Emacs: no scratch, no built-in API docs, no full blown book on scripting (like Elisp info), no macro->defun ability, no defadvice, no find-function/find-library and so on and on and on...

Of course, the other reason may be the fact that Emacs has 30 years worth of code written for it :) but I think without matching Emacs extensibility features no editor will ever come close to it in terms of extensions. LightTable looks promising in this regard, so does Atom, but other than these all editors/IDEs look like they don't treat extensibility seriously. Which is why I'm still using Emacs as my primary workspace.

> Did you know that there is a really powerful PDF

You mean with DocView mode? Yes, I knew it (and it's built-in, not 3rd party). I also knew about Calc (http://nullprogram.com/blog/2009/06/23/), about Calendar, about proced, about dired and wdired, about VC, about ediff and emerge, about ctags/etags, about artist-mode, about rmail and gnus, about TRAMP and eshell and ansi-term...

Do you know how I learned about all of them? I just opened this page: https://www.gnu.org/software/emacs/manual/html_mono/emacs.ht... and started reading. You know, cover to cover, as I'd do with any good book. Of course, along the way I switched to reading it inside Emacs, and I skipped some parts I decided I'm very unlikely to ever use, but I can assure you that it's all there. Perhaps a need for such a book is an Emacs failure in itself (because the interface is not discoverable by itself?), but at least it is there. I know of no other editor (Vim comes close in terms of docs coverage, but it's less neatly structured and harder to read cover-to-cover) which is that well documented.
You can currently pay $5000 more per return ticket (if you shop around) to do it business class. Full lie-flat bed, decent service, leg room, seatback power. You arrive feeling reasonably fresh (modulo the jet lag) and you can work en-route. That's the competition, and it'll be upgraded to compete if a hypersonic option ever comes on the market within an order of magnitude of its price -- think in terms of the first class cabins and bathrooms with showers that Emirates already put on their A380s, then upgrade it to a compact en suite hotel room with in-flight internet.
You're too fast, the release date for the iOS app is 16th december.
They have them sometimes in central London, I suspect when there are specific events/threat levels are higher.

I've seen them a few times when I've been walking round London, always a bit shocked when I stumble across them.
You cannot ignore fuel cost and investment to handle the new fuel. We'll see what happens, but the most compelling thing to me seems to be the fact that it burns hydrogen and not kerosene which seems to be more environmental friendly, but I'm no chemist.
uglier? to me bootstrap's visual patterns are overused and frankly unoriginal.
CodeForCash – My experiences on how this game was made
All they want is for people to be lulled into a trusting mentality, so that they can continue to shovel our private information to the NSA. If they had some sort of fundamental moral concern about these issues, their trigger would have fired during the first round of collusion.

This is just the latest iteration of "reform" to paper over the fact that it's the public against Washington + Wall Street.
The CTA at the end is to sign up for a launch email so I guess it's not ready yet.
I like this sort of thing and I think it's worth having b/c it has broad implications and might be a useful way of thinking about things. Most of the science articles are useful in that way.

I like quotes like this from the article:

This principle would apply to inanimate matter as well. “It is very tempting to speculate about what phenomena in nature we can now fit under this big tent of dissipation-driven adaptive organization,” England said. “Many examples could just be right under our nose, but because we haven’t been looking for them we haven’t noticed them.”
Is there a java equivalent?
Because your basically saying no human is going to get to journey into space in the near term, so why would the current generation fund it? No PR or dream, no funding. The possibility of Virgin Intergalactic is far more enticing to the public than probes. I, and I would bet most children, didn't dream of sending a probe to Mars, we dreamed of going ourselves.
That feels like a fairly abstract benefit
The shuttle was marketed to all people as capable of all things, leading to some peculiar .mil requirements, and the fairly reasonable cold war fear was the .ru would "borrow" a shuttle of ours and take a look at the spooky payload. Now this would really piss the DoD off if there were american military personnel on board, but if the taxi between a space station and the ground happened to have no humans but did have some spooky NSA satellite on board they could wiggle in some kind of salvage claim.

Maybe the .ru couldn't get away with it politically, but maybe Libya in the bad old days or something... Also I don't know if even the most optimistic "everything for everyone" marketing went this far outside Larry Niven sci fi books, but I could totally imagine if we sold F16 to Pakistan maybe they'd buy a shuttle if it was economic and then India would try to steal it from the ground. Or use a re-entering shuttle as a weapon, 9/11 WTC style.

Its not far fetched. The Iranians stole one of our spooky drones a couple years ago by broadcasting very strong GPS signals and the drone designers not using the authenticated stream making this hack possible.

If you sell something as "do everything for everyone" then you're going to end up with weird "legacy" requirements.
There's two things that seems to be missing here with regards to routine patrol officers being armed in the US. First, Great Britain is smaller than many US states. The population density of ~780/sqmi is higher than all but 3 of US states. The majority of US states are under ~200 persons/sqmi. Outside of major cities and suburbs the nearest backup officer can routinely be 15 or more minutes away. As well, many areas have dangerous wild animals to deal with. Bears, coyotes, wolfs, etc. that Britain has mostly eliminated.

Secondly, in the US, we have the right to keep and bear arms, which means every one the routine patrol officer encounters should be assumed to be legally armed as well. It would put officers at a severe disadvantage to be unarmed when regularly dealing with armed suspects. In many states 5-10% of the population has a concealed carry permit, and in the majority (40+) of states open carry of a rifle is legal without any permit. Whether you agree with this or not, it's a fact of life in most of the US that a large percent of the population is legally armed, so there seems no reason to arbitrarily limit police from also being armed as any individual citizen could be.
It struck me that the paragraph was for the benefit of the layman who may not be very conversant with the details of physics or biology.

In explaining abstract concepts it's helpful to clarify what something is not as well as find analogs to what it is.
Ask HN: Is it worth learning to type properly?
I took a few typing tests and I'm right around 54 wpm. I mostly touch type but of course i occasionally lose my place on the keyboard.

As a current hobbyist programmer with aspirations to go professional in the near future, is it worth forcing myself to learn to type properly as in mavis beacon? or should i focus on practicing in general and increasing my speed with my current method?

as a side note, with big hands i've always found the proper typing method feels contortionist-ey
I'm not the person who can give an exact definition, but imho generics are more related to the type system (you can have types that refer to other types) whereas C++ templates can produce more or less arbitrary code. E.g. the field of template metaprogramming in C++ is not possible with generics.

I'm personally not convinced that the extra possiblities and extra complexity of C++ templates vs. a good generics implementation in other languages is worth it, but I just wanted to highlight that the comparison is not fair. And hopefully we will get better error messages with C++ concepts, which will probably compare better to Rusts generics and kinds.
hi folks. i created this blog on how i came to create codeforcash. if anyone is trying to create a project or game from scratch, it might be a good read for you (e.g., working with designers, how to juggle the work etc).
I would love to use this to share my Macbook screen on an iPad with a client. One screen seems to small for more than two people to share. Perhaps I could even connect multiple iPads for small presentations without a projector. All running in mirror mode.
Ask HN: What is the first thing you do when you download new software?
When you have downloaded new software (assume it's desktop software) what is the first thing you do to try figure out how to use it?

Do you look for how to videos/guides online? Do you just get in and play till you get stuck?

I'd love to know the process you go through to the point of becoming an regular user.
This is when online commenters are most likely to use a fake name
> Please don't bait other users by inviting them to downmod you.

https://news.ycombinator.com/newsguidelines.html
ChatGrape – A much smarter Slack?
Yup it was quite old but as the adoption of world towards javascript is increasing in such a pace, this may be very helpful in designing better code considering memory constraints of nodejs in mind.
A similar library for Scala: http://squeryl.org/
It's pretty well known that one should read Stroustrup's book and the Meyers books. If one were to learn in a vacuum, perhaps they would take a false path, but the community is in agreement on what the best learning resources are.

As cute as your comment is trying to be, most languages cannot be learned by blindly trying things out, one should actually read a few books, try to be a part of the community and so on.
I was as excited to see Phillae land on a comet as I would have been if it were a human. It feels irresistible to me that robots are human's presence outside Earth. We're sharing the same network.

Still I'm not surprised if a permanent Moon base replaces ISS in the future. At that point, doesn't it make more sense to build on solid ground rather than in a low-orbit mecano bound to burn in the atmosphere?

Pretty sure as well that we are all underestimating leisure and entertainment as a driver of future space exploration. This is the true Jurassic Park. Air travel didn't become routine for science but thanks to tourists.
Popular Myths about C++, Part 2
Show HN: Advent Snow Cube
I'm not an expert, but the thing is that Bacon is a preserved meat product and I believe that consumption of preserved meats is associated with high early mortality from a number of conditions including cancer. It's lovely (I love it) but it's apparently, on the latest research, not so good for you.
Part 1: How Hadooped Is Your RDBMS?
You can do the same experiments inside the gravity well of Earth, without the extra cost of sending humans and all the survival equipment required.

With all the money that you save you can experiment with humans close to Earth and use the money you save to send many robots to do the actual exploration, which will survive longer than humans and do much more work.

Of course you won't get the same publicity. So maybe just for that it's better to send humans, but not for scientific reasons.
I'm not saying it's not needed, but there's a huge chunk of the C++ world that doesn't do web development. The other things I mentioned are more generally useful. In particular, XML support probably needs to come before HTTP support.

Not that I'd turn my nose up at standard HTTP support.
Show HN: Hacker News TLDR
France Says It Will Ban Uber’s Low-Cost Service in New Year
Not really:
I tried android-screencast [1] but had to root my phone, the framerate was terrible, lots of crashes, touch gestures not really satisfying.

The other option was using genymotion, works well, but some apps can't be installed multiple times (whatsapp I'm looking at you).

If anyone knows a better way to do so, thank you in advance!

[1] https://code.google.com/p/androidscreencast/
Experts Call on TPP Negotiators to Release Secret Trade Texts
Office Tour: Paul English's Blade [Slideshow]
I'll be really interested to see where this goes. Canonical cop a lot of flack for their direction, but you've got to at least agree that they've got an ambitious plan and they're going for it. I like that!
The most of pro-prohibition crowds are either not-so-bright people who grab all their wisdom from TV without any proper experience whatsoever beyond alcohol & cigarettes, or law-enforcement-related people.
As in many other cases, I believe following money explains it nicely.
Ignoring the former redneck case, the rest has actually good bussiness case for latter. Ie legalize weed US nationwide, and many prisons (let's not forget many are private owned by investors, who want only one thign - maximize their profits by having as many inmates as possible), DEA loses maybe 90% of the success claims they have, and maybe local police can have more time dealing with serious issues.
For conservative politicians, its political ammo par exellence, since if they will go hardline on drugs, there are very few risks to their career, and they can always claim all the usual stuff (drugs are destroying families and young people, we care about them etc... ever heard that?). Ask yourself - what can a politician gain vs lose bybeing pro-weed in US?

Too lazy to look it up, but if I remember correctly that one of DEA chiefs was also head of some UN panel on drugs, which then enforce rules for all UN member states (read whole world maybe except North Korea). From first glance, it might make sense. But show me one career-oriented competitive guy (and being head of such an agency, you have to be at least that, and have a lot of political games skills), who would undermine his own little kingdom, and make his own subordinates lose job by declaring that some of most popular drugs shouldn't be banned. One real example - weed & hashish have thousand years of history in hindu culture (look up shiva day when almost all india is high), yet they had to ban it after they joined UN.

So, we can thank those guys for making policies that worldwide raise crime, help supporting organized crime on massive scale (brutal mexical cartels are a fine example, out of many, ie afghanistan)

It's like thinking, that in banking/trading/brokering, it's always the client's best interest that's primary drive. Well yes of course, unless the bussiness is funded mainly by operational fees. WHat do those brokers do? Make you do as many operations as possible, of course, without being too obvious :)

(*no references here :))
And to extend your correct remarks and combine them with the article "Russian roulette" section, at that time NASA had no idea if the insulation failure was the usual statistical thing, or if there was a procedure/material failure in that ramp and all ramps going forward, or there is some weird interaction such that the fumes from a slightly different tile glue ruins all current and future insulation.

What I'm getting at is part of what took months after the accident was ruling out a new, previously unknown problem, that might have doomed every single launch going forward rather than merely the russian roulette scenario. The article has a pretty bad case of 20/20 hindsight WRT this topic. Immediately after the accident NASA knew the risk of a ramp failure was about 6/100 and a resulting vehicle loss was about 1/100 but those are LOWER bounds, the upper failure bound due to a manufacturing change or supplier error might very well be 100% on both counts and it took months to rule that out.

If the problem had been a minor catalyst change in the foam chemistry such that every ramp fails under launch conditions, every time going forward, then launching Atlantis would result in two dead crew not one.
I work from home. I have to convince my wife all the time that I'm actually working and can't just run to the store and get groceries.
I like working from home, but from time to time it's good to go see people in the office. If you are keen on making a career you have to show up and socialize a bit. You will not be promoted if you always work from home.
Does a very long streak is really good thing? I don't think I would like to collaborate with somebody who never spend all-day/weekend with family, partner, travelling or something else that don't require using computer.
When its Linux/Windows productivity or even general utils. I've often read a solid 1/4 to 1/8 of the documentation trying to ensure this tool will fit my use case, isn't malicious, etc.

Once I've downloaded and installed it, I generally just use it.

But then I'm not everyone.
comments go after blank space in the sequence name, for example:

>ENST00000517143 ncrna:snRNA
ATGC...

"ncrna:snRNA" is a comment
Well, the unoriginality is an advantage to me. Trying to discover yet which of the things is an active button gets tedious.
In 2014, startups discovered women get their periods–every month
> People need to understand that just because something is digital it's not suddenly ok to endlessly copy and distribute it for free.

I think you've inverted this. When things weren't digital, it was perfectly ok to e.g. buy a nice table, make a copy, and give that copy to a friend.

The argument for copyright is a balance of positives and negatives, the idea that the benefit to society of incentivising creators outweighs the cost to society of disallowing copying. It's very difficult to argue that this adds up in cases where the creator isn't selling something in a particular region.
I think the emphasis was meant to be on "the main Rust community". I would hope that most of us would try our best not to misrepresent other people's hard work. I definitely agree that whilst Rust's generics are far nicer to work with thank duck-typed templates, there are still gaps when it comes to matching C++'s expressive metaprogramming. Templating over values, constexprs and variadic type parameter lists are the main ones. I do know that the former two are planned, but that will have to be after 1.0.
Fiverr and the future of work: A look at the $5 marketplace for creative services
Good idea. No more antibiotics, ibuprofen, chemotherapy for cancer, anesthetics for surgery ... shall I go on?

Oh, you meant only the "bad" drugs, not the "good" drugs. Never mind.
Scalability Techniques for Practical Synchronization Primitives
Show HN: BTC Fiddle – A quick, convenient way to experiment with Bitcoin
The C++ language specification is only ~450 pages, the rest of the ~1200 or so pages is the standard library specification.

> Java.. I'm not entirely sure what Java does well.

* Package/module system is dead "drop your JAR here" simple.

* Humongous standard library.

* Oracle provide a really powerful free JIT (probably still one of best for real world performance when it comes to JITing static languages)

* Standardised language specification (like C and C++)

* A well specified, really simple bytecode that other compilers and runtimes can target.

* It's a newbie friendly, procedural, object-oriented language that encourages 'patterns' that make developers feel comfortable and that they know how to tackle problems (whether it's the right way is another matter)

* Relatively safe, meaning there is less to learn (no pointers, memory management, arithmetic overflow etc).
That was intended for everyone else reading this :). Plus they only linked to one readme file rather than scribe's homepage.
Spain wants Google News back
I was once in a car that was pulled over at a speed trap in northern England, and noticed that they had guns on their hips. When asked, the officer said that they manned low-priority things like speed traps the majority of the time that they were on duty so they could rapidly respond to any firearms-related incidents. With how few of those we typically have, it sounds like an incredibly boring job.
Just what I was thinking. How on earth do you find the cursor never mind navigate it from one corner to the other.
I'd disagree that Go is a systems programming language in the way that C++ is a systems programming language. As in, I'm not sure you would implement a garbage collector in Go. However, both Go and the typical processor are evolving, to that may change over time.

To be fair, if I were wanting to find all matches for a regular expression in a given text file, I sure wouldn't use C++, even though C++ is certainly capable of doing that.
You'll often see armed police outside court houses for high profile or gang related cases in the UK
How many hardware vendors provide any kind of Rust bindings at all? Let's compare like with like.
Ask HN: Hardware firewalls for home use?
(Long time lurking - first time posting.)

I'm currently trying to source a decent firewall for home use as a Christmas present to my boyfriend.

He's an ex-network engineer and he knows his stuff - where I'm a bit clueless when it comes to networking.

We talked about this before and we were looking at getting one of these two - Just wondering if you guys had any input / recommendations?

RB2011UiAS-2HnD-IN (http://routerboard.com/RB2011UiAS-2HnD-IN)
and CRS109-8G-1S-2HnD-IN (http://routerboard.com/CRS109-8G-1S-2HnD-IN)