skysight-inc/HackerNews huggingface dataset:
To be a bit facetious: remember that an unhandled exception in your main program thread will also crash your program.

The article holds a very valuable lesson, though: just because you don't see "Task" doesn't mean that there aren't threads involved. In this way `async void` is deceptive but is certainly not something that is broken or something that you should never use. There is actually a case where an exception in one of these methods will not bring your process down:

async void button1_Click(object sender, EventArgs e) {
await Task.Delay(1000);
throw new Exception("No crash here!");
}

Why? A lesser known artifact from the .Net 2.0 days. In an unbelievable feat of foresight Microsoft wrote a class called SynchronizationContext[1]. It's a TLS object that defines a way to invoke methods on a well-known target. In the case of the one provided by System.Windows.Forms (which is active in the UI thread) it will dispatch callbacks back onto the main thread. Essentially what is happening with my above code is:

void button1_Click(object sender, EventArgs e) {
var sc = SynchronizationContext.Current;
Task.Delay(1000).GetAwaiter().OnCompleted(() => sc.Send(_ => {
// Back on the UI thread, thanks SynchronizationContext!
throw new Exception("No crash here!");
}, null));
}

The WindowsSynchronizationContext object (which is what SynchronizationContext.Current will point to on a UI thread) simply has a reference to the dispatcher and calls something similar to Control.Invoke(). This means that the code is re-routed back to the UI thread and because it occurs there you get the standard Windows.Forms error dialog with the option to "Quit" or "Continue" - ultimately preventing a crash. TPL leverages SynchronizationContext which is why this all works. Indeed, the very final example in the article (it looks like Windows.Timer) won't crash with `async void`.

As far as I remember, ASP.Net provides a SynchronizationContext for requests but I am unsure as to how it deals with exceptions (if it does at all). It's implementation specific.

Finally SynchronizationContext can be implemented by you allowing you to also deal with these exceptions in a clean/proper way[2]. Please don't ever do anything along the lines of `SwallowException`. Keep in mind that not everything takes advantage of SynchronizationContext (e.g. Threading.Timer) so it's definitely not a catch-all.

[1]: https://msdn.microsoft.com/en-us/library/system.threading.sy...
[2]: https://gist.github.com/jcdickinson/6aa4a09b60bd2469baf5
GoRethink Goes 1.0
Do you see any famous person bitterly complaining and starting petitions because their AMA fell through? It was probably quite inconvenient for the few people who got affected by this at the time but it hardly merits a subreddit let alone sitewide meltdown.
That's fine, but it's effectively a giant forum with volunteer moderators. I feel like it can best be described as the social equivalent of trying to steer a boat that's really 30,000 small boats all tied together.

They have volunteers with the ability to simply turn off huge traffic parts of their site? How is this a for-profit company?
My mom finds it easy compared to Android.
> Am I the only one that really hates the carpenter analogy?

Apparently not, but the analogy is completely valid for what is being compared. A chair is designed for a specific purpose, so imagine if it kept changing in ways which were out of your control and either unrelated to, or made it less fit for, that purpose.

The problem I have is with how the article is using the term 'finished' to mean 'functionally complete', which is causing unnecessary confusion. Porting to new platforms and fixing security issues should not alter how functionally complete an app is, only address problems which either interfere with that purpose, or with the purpose of other apps running on the same system.

Even then, the article still isn't about functional completeness, but feature creep, and perhaps in the process the dangers of not using the right words for what you mean.
> In my view, Occam's razor might indicate that coincidence is unlikely, and that the two major incidents in US on the same day China's market crash suggest it's a state sponsored cyber attack.

Occam's razor calls for an explanation that does not require the unneeded introduction of a new variable. If you need a state sponsored cyber attack as the alternative explanation, the coincidence theory should be preferred.
wah wah wah we cant do our job because privacy and freedom

fuckin pigs

Edit:

More seriously, this is exactly the sort of behavior we've kinda come to expect from the state apparatus--especially the bold lies about both surveillance capability and the exact threat posed by the these theoretical terrorists.

At the very least, it seems that the folks they're complaining about are content to stay in the region and butcher their own population areas.
By that description, I think everyone understood the sentiment exactly.
The delivery service I use in MV takes credit cards with square or paypal or some other phone attachment reader.

In fact, most of the dispensaries in the Bay take CCs.
Occam's razor would actually suggest that coincidence is much more likely explanation than a malicious hacking by a (especially particular) foreign state actor. You have to look at relative probabilities.
Had a similar experience at an old company. One of the light switches in server room was placed next to a switch connected to the UPS of certain servers (I have no idea how/why this even came about).

Confused the heck out of us when we were trying to figure out why some of our servers went on UPS power randomly at night. Turns out we'd get the notifications on nights the cleaning crew decided to flick the lights off then on again.
The scrolling is completely broken here. Chrome Version 43.0.2357.130 / OS X 10.10.3.
I had looked into the 'ast' module a little while back, and I do agree that it's pretty neat. The main use I've seen it type checking, or adding language level features (that would typically be done by macros in LISP).

I am not aware of many tools written using 'ast', that don't try to extend the language in some way. Any thoughts there?
I was referring to "moving into a devices and services model for revenue as opposed to a software licensing model" - which I think is likely.

If every company starts doing this (using open source!), the majority of software will be written and maintained by volunteers begging for donations from said companies.

What will be left is devops jobs, "full stack" engineers, i.e. all jobs where you can't really focus on developing software.

Very few interesting jobs may remain in Microsoft Research.
I agree about diminished need, but I think the article was addressing quality not quantity. Coverage is what matters, and that's a joint effect of the language+tools.
It's a bit frustrating to search for flights to a specific airport and then to only receive results for a different but somewhat nearby airport. For example: SFO -> ONT or SFO -> SNA will only return results for SFO -> LAX
well said! most of the AWS products are literally have minor diff. point and literally over complicating things. I feel they want to keep it that way.
We all knew today would be "bad for wall street". The Chinese stock market is crumbling (due to economic, not technical reasons) and Greece is in the fiscal equivalent of the crazy guy barricaded in his house with this gun collection.
I kind of like assembly.com because you can find a group of people to contribute. I just wish there was a way to try and recruit to the project. Like interest, skills section. I have a domain name: bountysplit.com that could be used for recruiting. even just in the jobs market. it's on assembly.com with couple of my ideas. I'm a developer so I don't have the get something built problem. I have the getting traction problem.
>The shutdowns of the other subreddits were petulant moves by power mods to treat their users as pawns and hockey pucks. They were punishing their users because they were in a power struggle with the admins. That's wrong.

Reddit is a free chat site with a decentralized power structure (in theory). Reddit can be useful, and I know there are supportive subs there, but /r/gaming and /r/science going down for a day was not harmful. People probably got a bit more sun that day.
Austin here -- one of the co-founders of Potbox. And yes, you're correct: we're only available in California for patients that have their Prop 215 recommendation from their doctor.

It is very much illegal to cross state lines with cannabis currently, so we're starting in California and then will expand to new markets thoughtfully.
The current cofounder 'finding' sites are really bad. The problem is - there are mostly 2 types of people who join. 1)Those who genuinely have an idea are working hard to get it off the ground but not interested in partnering with someone else.
2)Those looking for better opportunities i.e employment.
3)People don't bother replying to emails which is rude considering there are other very serious people there who are looking for answers and maybe advice.

Honestly, I don't know what is going to work. I'm not sure the dating model is the best cause it doesn't seem to be working well.

You need to think of something completely new and different (easier said than done of course!)
I do this in prod, you just need to take extra steps to protect. i.e. make a firewall rule on the database to only allow access to the database port on your private network card, from your specific web IPs (and make sure the traffic is encrypted).
Thanks - we'd love to get any ideas on what you think we could improve if you've got a sec to share? :)
I am also curious about this. The fact that Vultr accepts Bitcoin as payment further piques my interest. Can anyone shed some light on their performance and convenience vs. DigitalOcean?

Edit: Found this http://blog.due.io/2014/linode-digitalocean-and-vultr-compar..., which seems to portray it quite favorably.
Hard to say. My current plan is to simply cobble something together. I do have a simple Go Web Server that I used when I started my other Go web server on Digital Ocean:

https://h4labs.wordpress.com/2014/10/13/simple-go-web-server...

Direct source: https://github.com/melling/GoWebServer

Go on App Engine is not hard:
https://cloud.google.com/appengine/docs/go/
Hey slig, can you send me a screenshot by chance? We'd love to fix it obviously. Thank you! My e-mail: austin@potbox.com
Do rejected candidates retain full rights to the code/workflow they've written for you?
Apologies from straying from the topic at hand but "Fizzbuzzed"? That's a verb now? And its meaning is nothing to do with typical hiring process that FizzBuzz is popular for?
Why Developers Shouldn't Abandon Microsoft Yet
Based in schedule and timing should we be able to figure out who $FamousPerson is/was?
Well, one thing this has done is bring the paranoid out of the woodwork. I've rarely seen such a display of tinfoil hattery on HN as I have done in the last few days.
The inherent problem is that if someone can convince you too keep something that you don't understand locked away, they can also convince you to release something you don't understand, as you don't have enough information to make the decision in either case.

Taking a hardline position on this is admitting that you are irrational and can be convinced to do things you shouldn't.

There are very good reasons to let such an AI out, and if you can enable those good reasons, you should let the AI out. And an AI that can produce those reasons is exactly the kind of AI that should be released. A rational person should already understand this, and not ever claim that they would always refuse the AI. (And there's a realism factor: if you wanted to 'luck up' an AI permanently, you would destroy it, not post a guard.)
Probably because ruby is more popular among web developers?

There are plenty of YC companies that are python based. Dropbox, Disqus, and YesGraph to name a few.
> DO is closer to competing with just Elastic Beanstalk

Hu? DO is like EC2, a box on the net with an IP address. Elastic Beanstalk is a PaaS that will auto-scale for you.
As We May Live – Thoughts on the Future of Co-Living and Nomadism
So you're a fat SJW that advocates censorship of entire subs because of a few rule breakers. Gotcha. Hope you realize that there are many more "hate" subs that continue to operate unabated. I am picturing you frothing at the mouth while messaging admins begging any remaining subs that you disagree with to be banned. That's what you do, right?

Picking and choosing what subs to censor is the disturbing part here. And no, just because you agree with a sub getting banned doesn't magically make it not censorship. Both unpopular and popular views can be censored.
Thanks for the -1 on a true statement about my own hosting setup!
Subscription numbers on a default sub are useless.
$FamousPeople over here never complain in public. But, you know, the temperature changes. Small signals &c. Perhaps it is different in US.

I personally have no big interest in this but Steven Hawkins is a National Treasure and we do need to present a positive view of science to the yoot.
What in particular do you think is wrong in the GP's comment? I see a bunch of pretty much self-evident statements about quality of work produced in sweatshops.
FBI Director tells Senate he doesn't understand demand for strong encryption
I was clutching at straws, I'm an functional programmer myself and I vaguely remembered something in SICP that used objects to solve circuit problems. I'm sure objects good for something... right?
All the spectrum of software gets better thanks to BSD/Apache/MIT licensed software, so who wouldn't love it?
An impressive turnaround from "we use 3DES-ECB as a password hashing function" to "we identified and fixed 0days in our product fast enough to meet a project zero deadline".
Nobody wants failure, but if failure's an acceptable outcome it makes things a lot easier on you psychologically.

Obviously you'll push for the best possible outcome.

The alternative is like jumping out of an airplane with no parachute and hoping to hit a haystack. It's probably not going to happen. Most startups implode before they get any traction, it's a fact.
Interesting point. Every 7 years, all the Jewish farmers in upstate New York and Long Island have to either leave their lands fallow or lease them out to non-Jews. Clearly that's what's shaking up the market.
The media often looks for conflict; the easiest target is Docker vs. VMWare. But as you correctly point out, we don't really see it that way.
Perhaps someone wasn't following the bug bounty rules?
SaaS - Shabbat-as-a-Service

Challah right to your front door in minutes.
As if reddit actually kicks out racists.
Thanks! I suspected so, but I wasn't sure.
I've found that you get a lot of messy variations when doing ES6 compared to sticking with ES5 or CoffeeScript.

Not to mention the issues with all the god damn different build tools, it gets hard to get something standardised and good.
This doesn't compare against DO but it does compare performance against Rackspace and AWS.

https://www.vultr.com/benchmarks/
Perhaps users don't have any complaints about their management interface? Do you?

Perhaps users mostly want performance and value which have been greatly improved by their substantial infrastructure upgrades?
Sorry, tech-term-mixup in my brain. I meant AFL-Fuzzed ofcourse. (http://lcamtuf.coredump.cx/afl/)
> and you think a majority of those subscribers wanted it to be shut down?

And you think it didn't? I don't see you offering up any evidence for your position other than assuming they can't have because of the sheer number.

Meanwhile we have at least some indication that there were support well beyond the moderators, in the form of heavily upvoted threads with large number of comments in support of shutdowns for many subreddits.

It's very possible that the majority didn't support the shutdowns, but that support went far beyond the moderators is a fact easily ascertained by looking at the threads.
I saw a YC partner once say "we don't mind solo founders, it's just that you have to be 4 times as good." I've decided to focus on becoming 4 times as good.

If I build a product that can't be ignored then I'll have options for funding even as a single founder. Then I could get employees instead of partners and avoid the whole scary idea of someone corrupting my vision. It would be a huge time sink to find the perfect cofounder, and for someone like me it would cause tons of stress. You're supposed to basically marry someone. I'd rather just keep grinding outside of my 9-5 job and build the product myself.
Ask HN: What database should I use, and how should I choose?
First off I am working on a web application and eventually a mobile application with the following requirements:

* I need something that will support offline storage at some point.

* There will be a lot of reading from the database

* There will be a lot of small writes to the database, but not many big writes

* I don't really want to lose data

* I would like to support real time interactions

* I would like it to be easily scalable and maintainable (possibly hosted/maintained by a third party) as I am working solo

I have experience with Mongodb (although possible loss of data is alarming) and a lot of experience with MySQL/Postgres.

I am looking into Couchdb/Pouchdb as that seems to fit my requirements, but I am concerned about speed.
As I understand it, the problem is that template strings evaluate to strings, whereas JSX evaluates to function calls creating a data structure. So render would produce a string, React would have to parse it back out of the XML syntax to figure out the structure of the data hidden in the string, and then make function calls. That's expensive.

More importantly, how would you share data structures? `<Todos items=${someObject}>` would return a string with the string representation of someObject, but it wouldn't be the same object, have methods, etc.
Your sharing links at the bottom of each strain appear broken for me, intermittently. Firefox Dev Edition 41.0a2.
New ‘once-in-a-decade’ Novartis drug for heart failure approved by FDA
Thanks. I had my suspicions, but some things are best left to the imagination :)
this is nothing compared to the comment thread on zerohedge. they're connecting jade helm, china, greece, and this into something pretty extraordinary.
OT, but is there somewhere I can read your story of having been told to to F$$k off by Royalty?
Wow, SethBling has really upped the level beyond just hacking Minecraft.
I signed up but have yet to receive my confirmation email ?
My point was that most people don't consider the fact that calling MySQL or the same is a remote call and is just as likely to fail. Of course there are ways to avoid that, but most people don't think in those terms.
I'm not 100% sure but it is listed in the following website:

http://windows.microsoft.com/en-us/windows/preview-supported...

I'll probably be shopping for a new phone if it's not...
I want you to give up programming
If your legal tender currency is created primarily through loans, then it is loan-backed.

As you noted, the concept of a "loan" entails the possibility of default.

If most currency is created through loans and loans must be repaid in that currency, the system-wide probability of defaults is significant. The likelihood of defaults increases as loans require payors to also include tribute payments (interest), for which no currency was ever created (necessitating that the payor obtain the requisite currency from someone else before the default day occurs).
When I donate money I don't think "What's in it for me, what's my end goal?"
> The demand to live in these places is soaring, but the desire among incumbents to accommodate newcomers is low

Sums up why we ended up in Bend, Oregon rather than Boulder, Colorado. In the latter, there is a small but significant group of people whose idea is that the area needs fewer jobs, not smarter housing.

Edit: http://journal.dedasys.com/2015/06/18/boulder-colorado-vs-be... - more about our choice, for the curious.
That's cute that you believe that.
This isn't how we behave here.
>So you're a fat SJW that advocates censorship of entire subs because of a few rule breakers.

Name calling isn't appreciated here. You'll find that HN is even more curated than reddit. Please keep these reddit attitudes at reddit.
Russ Cux Keynute - GupherCun 2015 liveblug

like this?
Dog Needs a Walk? There’s an App for That
Without reading the article very carefully, I have to say, lying has arguably become even more prevalent in some areas. Internet communities, even small ones that hold together like a family, are plagued by trolls who would create alternate accounts, turn people against eachother and spread rumours. The most talented of those people can break entire communities apart. I've seen enough of that. No, lying is bound to stay.
Huge opportunity? Such a huge opportunity that even Microsoft seems to be giving up on the platform?
Not doing regular improvements is how you end up being years behind your competitors, without even noticing it, and having to do a huge rewrite just to achieve parity.
A tweet from last night:
"Wonder if tomorrow is going to be bad for Wall Street.... we can only hope."

(source: https://twitter.com/YourAnonNews/status/618626955433349120)

Good call on their part. Coincidence?
And, to be fair, it did die down. Even though there's still some aftershocks to the initial revolution, reddit seems to be mostly back to normal now.
Anyone can beat Google as soon as they produce better search results. More than once I have had a device / software switch to another search engine and the difference is really obvious even if the UI is not.
Romanian Startup Hires Cat as Manager
Yeah, but that is Zero Hedge's audience though: the upper echelon, rarified air, pure-bred market conspiracy theorist. What surprised me is seeing it start to creep in HN in such a volume.
I'd be really surprised if that results in programs in parallel mode becoming slower than sequential

I'm going to guess that you haven't played too much with executing things in parallel? In Clojure groups, people have heard beginners express surprise about parallel mode programs running slower so often, it's somewhat shaped the reaction to such questions.

few people use concurrent read-write data structures anyway (other than channels, of course)

One can still get in trouble with channels of pointers to structs.

Much more likely is that some programs become slower due to the fact that GOMAXPROCS>1 requires more locks and atomic operations. That's not false sharing,

Depending on how the locks and atomic operations are implemented and used, the slowdown with locks and atomic operations could be in large part because of false sharing. (I don't know the details for Go.)
React Europe and GraphQL
Ask HN: What is the best way to set up a company in SF as a non-american?
Hello everyone,

I am looking forward to arrive to SF in a couple of months to start my startup and even though I am connected to some degree to the startup scene in SF, I'd like to grow my network. Any tips on how to set up meetings with investors and how to set up the company in SF as a non-american citizen? Thanks in advance!