skysight-inc/HackerNews huggingface dataset:
In jurisdictions where Uber is illegal, Uber's graywall activities are organized crime; there's no other way to put it. How is it any different than, say, an app that advises drug couriers where there are (possibly undercover) enforcement agents. This is serious stuff, and in no way does the desire to provide better taxi service justify it.

In 20 seconds of googling I didn't find pg urging entrepreneurs to be naughty. I did find YC's ethics policy[1], and the only mention the of the law that I see is related to sales tactics, "Not using misleading, illegal or dishonest sales tactics." This needs revision.

There are lots of laws that are challenging and problematic, even impractical to follow exactly, e.g., the tax code. It's one thing to interpret the tax code in your favor; it's another thing to write a program to distort your business information to avoid taxes.

[1] https://www.ycombinator.com/ethics/

EDIT: Found the naughtiness link. Reading now....
EDIT 2: I'm completely opposed to drug laws. Drugs laws are sickening and immoral, and our society and countless individuals have paid a terrible price as a result of these laws, but that doesn't make it ok for me to sell drugs on the street.
You can install Docker for Mac, which supports VPN integration out of the box, then install kubernetes on top of that. I heard it works great.

https://docker.com/mac
Here's my understanding of this:

Aysnc and threads are fundamentally different.

Aysnc refers to intelligently pausing/resuming many different operations. This is fantastic for a lot of tasks, especially tasks that require io. A task can be queued up and a callback can be attached to it. Then, while waiting for some condition to be met, your code can keep running. This results in "non-blocking code," which is familiar to all JS programmers.

Threads, in this context (web workers), refer to CPU cores. The Async model described above is all handled by a single CPU core. Most web applications don't require more than one core, but some do (or, at the very least, the demand is there). Using web workers, you can access other CPU cores, each of which has its own stack and its own separate Async event model.

The problem (from this article) with web workers is that data cannot be shared between CPU cores in JavaScript. Any data you want to pass from your main thread to a web worker must be copied, as in a bitwise copy. This article is about a solution for that, a way to share data between different threads in JavaScript, using a new standard that has been accepted by ECMA.

As far as your question, most of the time you don't want or need your promises or Async code to be handled in another thread. It would be insane to offload every single non-blocking line of code to another thread. Threads are much "heavier" than Async. Languages that have good support for threads also have Async.

However, wrapping web workers inside promises (or async/await) is absolutely something that makes sense, and something you can do now.
The project I'm currently working on uses SQL database replication from production to populate data into the UAT and SIT environments.
Why Planes Don't Fly Faster
> Aside from apps at work

Now I'm curious :)
European Little Ice Age caused by arrival of early explorers in New World (2011)
Shouldn't this system allow USCIS to hire the adequate staff to handle the premium applications on a separate load than the regular pipeline? They seem to be shutting this down to help the regular H1-B application pipeline, that means all applications were being handled by the same staff, which seems silly.
Bitcoin is still an intermediary between the buyer and the seller.
By saying "no, we don't want your money"? Really not seeing the application of that quote here.
The difference is that the 2015 version had a definite date it would come back online. This time there is a hand-wavy "may last up to 6 months". I doubt we'll see PP for H1Bs again.
Yeah, but that's not really an argument for macOS, given Windows is not even Unix and OP mentioned macOS.
You can't pay in Bitcoin or gold either, yet both are incredibly popular.
Yes, the hiring bar is the same. But as many of us know, the coding interview can be passed with practice so bad engineers are practically indistinguishable from good engineers with extensive amount of practice. The real issues come from when these bootcamp grads are in the workforce when the problems aren't so black and white.
j/k, n/p and left/right arrow keys all do the same.
I wish more headlines came with caveats like this one. In just as bold lettering. The last couple of months has not been great for the mitigation of clickbait.
I loved school while I was there. So I didn't feel like attending was missing out on other things.

Now the opportunity cost is sufficiently high that I'd rather do other things, but still. No regrets for me for my years of post-graduate education.
What isn't discussed much in the press is how close they came to the largest dam disaster in US history.

As you can see from the pictures, the "bedrock" under the emergency spillway erodes quickly, even with a modest amount of water flowing over it. How would it have handled a flow 100x larger, if the spillway structure had collapsed?

It could have easily eroded down 100 or 200 feet under the intense flow. That would have discharged 50% of the total reservoir volume, destroying tens of billions in real estate and possibly killing thousands.

Fortunately, the dam inflow slowed enough, combined with the main spillway outflow, to stop flow over the emergency spillway before it collapsed. So lucky.
There's card numbers, and then there's card numbers.

That is: My wife and I have cards that have the same number on the front. On the back, though, the three-digit... I forget what it's called, but there's this additional number that is not embossed into the face of the card. Her card has a different one of those than mine does. And the bank can tell the difference, can tell which card made the purchase, and can shut down one but not the other.

So it doesn't matter if the two cards share the same main number, as long as the bank can tell them apart.

Does BofA give different three-digit extra numbers to their cards? Do they give the same extra numbers? Do they give extra numbers at all?
Quick correction, Docker 17.03 supports compose files out of the box, in swarm mode. Two commands to deploy and scale. https://docs.docker.com/engine/reference/commandline/stack_d...
I don't think it's a good idea not to have regrets. Maybe your definition of regret is different than mine. I value my regrets tremendously. One cannot learn and grow without making mistakes, and there's no reason, as far as I can tell, to suspect that regrets aren't a zero sum game. If you do thing A, then you've lost the time/money/opportunity to do thing B.
Calling it now: Razer is going to eat Apple's share of the *nix-based developer market over the next few years.
Additionally tests in "tests/" are compiled to independent binaries on which the test suite is run on separately, which results into verbose and redundant output when ran.

Also if you keep your tests under "src/", you can't just stick them wherever you want; you need to have #[cfg(tests)] on every module declaration leading to the test function, otherwise the test is ignored silently. From time to time I find old tests that have not ran once because of a missing attribute somewhere upwards the module hierarchy.
that's another way to look at furniture. in the old days furniture could be passed down generations, and fashion did not change much. today I gladly accept the drop in quality because it comes with a serious drop in price, and I can change stuff around home rather often.
For me my children are everything. They will be the only ones (hopefully) living in about 60 years remembering me. Spending time with them while having a good time seems like a good investment. Making them good people with lots of love to give to others is my life goal.
Giving love and knowledge to others is my second.
The first step of which should include asking questions about the law. Why does it exist? What prompted its creation in the first place? Does it meet its original goals? What does it inadvertantly do? How does it fail? etc.
Depends if $1k is commensurate to the additional work needed, and if they can find enough staff to hire to put the money to good use. At least one of those failing to be true seems fairly likely to me.
It's not even close... it's... soooooo much more intense, and social/professional consequences are quite a bit more impactful.
This happened to me too, a few years ago, at age 37. It's a nasty, nasty time to live through. I wish you the best, and hope you have some good, supportive people around you.
To me, the worst fact of life is to realize how intensely and tragically our ancestors suffered from lack of medical technology, and that it continues to our day.

And the greatest fact of life is that all this suffering will soon be at an end.

Our descendants will pity us, as we pity ours.
Ah, okay. That's what I thought you might have been referring to, but the term "insurgent means" is unique enough and vague enough that it piqued my interest enough to make sure. :)
You are correct. I fucked that up - did the reverse operation, which yields "20"....

So the reasonable follow up is then: If it's 5% of the housing, that's the housing liquidity supposed to be at? Seems like the best comparison point.
Though this is not against the law; I don't know any real companies that does this.
As far as I can tell, nothing you've mentioned applies to people running Linux on a Razer Blade, Stealth, or Pro, which is the topic here. If that is the case, please make a specific point about it. The Razer Core was not mentioned for Linux support at all. My personal experience is that Razer hardware is glorious. Better than Apple. I have not needed to deal with support. It just works.
Payroll Card Regulations in New York Are Struck Down
IMHO the real disclaimer that is needed is an explanation of what premium processing is. Not being able to pay to put your application towards the top of the pile is likely not the first image that title invokes for many people.
That flag would be ridiculous, though.

We could just rename Canada to Ultra Michigan and reannex Mexico to Texas, and merge Texas/Mexico with Oklahoma, to keep the count at 50.
This is very selfish.
Hate all you want but I regularly have moments where I solve something using a string of commands and think to myself; gosh darn I love Unix!

It's not really Unix, sometimes it's Macintosh with GNU tools installed but mostly it's CentOS or Debian servers where all this magic takes place.

Sure I need to have a lot of stuff in that thick head of mine to do magic, but the joy of stringing together a series of commands to solve a problem my windows using co-workers would have to spend license money to solve is just amazing.

Hating Linux is definitely right if you're looking from the perspective of universal user friendliness. But for true power users, the programmers, the scientists and the sysadmins; I can't picture life without it.
Harvard Study of Adult Development
Uber Said to Consider Changes to Employee Stock Compensation
This is not against the law. If your visa is current, you can start working as soon as you get the receipt notice for the new H-1B application https://www.murthy.com/2011/06/27/h1b-faqs/
Probably don't want to put text over the phone image (on this iPad at least).
University magazines are a terrible place to learn about new research because they are effectively trying to sell the research at their university as great whether it is really great or not. Looking at the arxiv link they linked I was underwhelmed compared to the title. It is not a new lego-like language for "mathematics", it's some definitions in a very particular subfield in mathematics. An accomplishment within that subfield to be sure, but not anything relevant to the wider math community and certainly not Hacker News.
U.S. Airport Pat-Downs Are About to Get More Invasive
Yeah, I'd really prefer not to have to remember to opt out of accidentally violating my NDA when working on closed source projects.
It is not against the law. Plenty of silicon valley companies do it.
I'd argue the screen resolution is poor 1440x900 in a 13" screen considering I have a 7-year-old Sony Vaio 13" with a 1920x1080 display, and the ever-increasing number of 4K Windows laptops you can buy at a similar price-point. macOS' UI is clearly optimized for retina displays now and the information-density is low, heck I find the default workspace on the 15" MacBook Pro very limiting.

I'll concede the rest of the MacBook Air's current specs are acceptable though the processor is 2 years old at this point, but I believe CPU performance has plateaued over the past 4 years, and Apple did recently bump the RAM to 8GB - but they were still selling 4GB until Q2 2016.

The only other negative is the wimpy GPU, the Intel HD Graphics 6000, which scores worse[1] than an entry-level NVIDIA GTS 250[2] - a card released 8 years ago. That's embarrassing!

[1]: Intel HD 6000, released 2014, Score of 823 - http://www.videocardbenchmark.net/gpu.php?gpu=Intel+HD+6000&...

[2]: NVIDIA GeForce GTS 250, released March 2009, Score of 898 -http://www.videocardbenchmark.net/gpu.php?gpu=GeForce+GTS+25...
How dare Rosa Parks defiantly take a seat at the front of the bus..

How could she be so self-centered and... adolescent?
Assistenza caldaie stufe a pellet Monza
The Most Desirable Passports on Earth Don’t Include America’s
Yeah it seems like you would need some kind of guard to make sure you don't violate any of the lifetimes that could be tucked away. Still good work!

I guess compiler plugins and libraries will eventually fill in the gaps, until then I guess I just have to be creative :)
Speaking of removing friction, there are three areas that have caused me grief when I wrote Rust code:

1. Error handling. The lack of built-in support for multi-error or error union in Result is painful in dealing with different types of error in a function. Support for Result<Value, Error1 | Error2 | Error3> would be helpful. Or may be support for easily converting one type of error to another. Now there's lots of boiler plate code to deal with error conversion. Error chaining would be nice, too.

2. Lack of stack trace when an error occurs. Now that stacktrace starts when panic!() is called, which is kind of late.

3. Better support for conversion between &str and String. Dealing with strings is so prevalent in programming that making it easier to work with the two types would be a huge boost to productivity.

Edit: another item

4. Support of partially applied function , i.e. bind a subset of arguments to the function pointer. Currently there's no way to bind the self argument to the Option/Result chaining calls. Basically the Option/Result chain (.and_then, .map, etc) only carries forward the value of Option/Result and nothing else. It would be nice put partially applied function in the chain. e.g. result.and_then(self.func1) where func1 has the self argument bounded. Or in more general form, result.and_then(func1("param1", param2, _)) where func1's first and second parameters have been bounded up front and the value of result will be passed in as the 3rd parameter.
At Tesla, Departures Mount at a Critical Time
They are also worthless for the poor, who don't benefit from the reduced tax liability.
Hm, cfg(tests) should only control if they're included in non-test builds; it shouldn't ignore them entirely.
Fords Newest Self-Driving Car Concept Is a Van That Launches Drones
I haven't looked up the DCVC portfolio co's yet, but which specific startups are developing these full-stack AI solutions? I'm unclear on the exact definition of full-stack here
Also depends on whether the $1,225 fee was used to pay for H1-B processing at all, or simply used to cover other USCIS expenses.
In the US, if it's consensual, it's not illegal regardless of the org chart except for very particular scenarios like (I believe) military service members. It may be against company policy and a generally bad idea, but consensual sexual contact is not illegal even between the CEO and an intern.

If I'm wrong, I'd be interested in seeing the relevant laws or cases.
The last 4 companies I joined (all fortune) allowed this. In fact they were pressing for me to start. As OP said, all you need is the application receipt.
AmEx Offers Uber Rides After Chase Makes a Splash with Sapphire
There are insane amount of H1B applications (I think there were over 200,000 last year). Ofcourse they use the lottery to process about "only" 85,000 of them.

This does not include H1B transfers and other stuff USCIS handles.
The alternative is that you wind up with multiple AIs with different biases, people pick the ones that match their own biases, and we're not much better off. One presents stories about how drug users are unlikely to be convicted of violent crime, the other presents stories about how drug use leads to unsafe workplaces and road accidents. Both factually correct - like almost all news today - and both playing into people's biases and not solving the question of "do we legalise weed?" at all.
> Is there a reason why they can't have fields?

The design isn't done yet: https://github.com/rust-lang/rfcs/pull/1546
They look interesting! I keep an eye on these re: Windows support (we already use IncrediBuild there, and distcc and ccache on Linux ...) We have some monster links that can take upwards of 8 minutes on our fastest machine with SSDs etc, so the 5 mins seems keen.
VirtualMIDISynth
Should we be judging Elon Musk as a mafioso[1] too? It's called self-deprecating humor.

[1] https://en.wikipedia.org/wiki/PayPal_Mafia
You are not the target audience. It is a press release on a immigration website for immigrants who already know what this means.
Funding a startup whose goal is to break out of, assuming we are in one, a simulation.
Really? Most people going to 'target schools' for CS in the /r/cscareerquestions subreddit describe their experience as very intense and demanding.
for 1. there's map_err(..) which accepts a closure

e.g.

`try!(foo().map_err(|e| format!("{}", e.thing)));`
This is not the same as the new suspension. The one in 2015 only affected extension of stay applications (if you want to extend your visa beyond 6 years). Typically people start the extension of stay process well in advance (USCIS lets you start at most 6 months before expiry).

The current one affects anyone trying to file a new petition (including those that are cap-exempt). If someone wants to switch employers they cannot use premium processing, which affects their ability to travel internationally and/or move jobs.
I get all that - I've worked in enterprise IT my entire career.

It does not explain the 30 minute timer.
What argument? It's a custom in HN to put the year in the title. It doesn't imply the article is no longer valid or useful.
The extremes are always wrong.
fwiw, I think most people live pretty ordinary, non-flashy lives. It's hard to square that with the idea that Americans are debt ridden spendthrifts. You read about that so much, there must be some truth to it, but then I look around, and see mostly modest people, modest cars, modest homes, modest vacations. Where are all these crazy spenders? I'm sure there are some, but are they really a majority?
USCIS is under department of homeland security now. Possibly where it is rerouted too. The cost of all applications have gone up by a fairly large amount imho since the DOJ days. I looked into this when I was trying to figure out the costs for my own application some time ago.
https://en.wikipedia.org/wiki/United_States_Citizenship_and_...
I think it becomes useful only if whatever struct expects some extra level of behavior from the types. Basically any time a struct or a trait is coupled with another trait or needs a particular marker/lifetime to function I find myself repeating the bounds over and over.

For example in gfx-rs it might be repeating the gfx::Resources or gfx::Factory trait bounds.
You forgot a rule of the "game".

You can negotiate price with cash.
But the only problem is, if you are already terminated, you shouldn't apply for a H-1B transfer. It would be like applying fresh, except you don't have to go through lottery. And also because this is a new visa, you are not qualified to work based on the H-1B portability rule either. So you have to wait until it is approved before you join the new company.
A less extreme example would be saying that you bought that weed for your glaucoma.
There's a great podcast episode about salary negotiation for engineers from HN's own. Basically tie your value to the value of the business problems you solve.

http://www.kalzumeus.com/2016/06/03/kalzumeus-podcast-episod...
What you've described isn't incompatible with passwords. See truecrypt hidden volumes.
It sounds like we can make this work! I hear the same frustration too in the OCR industry. Unless, you are a big enterprise with lots of money in the pocket, ABBYY pricing model just simply doesn't work. ABBYY is the expensive corporate limo service. And I want Taggun to be like Uber to disrupt the market of OCR.
Great point.

I always remind myself of an LCD Soundsystem lyric every now and then: "I wouldn't trade one stupid decision for another five years of life"
I prefer to keep tests in a `mod tests { ... }` block at the end of the source file, which provides comparable benefits and separation. I also prefer to use `combobulator.rs` rather than `combobulator/mod.rs`, for multiple reasons including filename ambiguity. In this case, you'd have:

src/main.rs
src/combobulator.rs
src/somethingelse.rs
Assuming that states/counties are not merely cutting a check to school districts (as they do for Title One funding). Using the state level department of education as a pass through to aggregate and distribute funding per student doesn't neccessitate that they can then dictate consolidation on school districts.
"The primary tool by which this was achieved was not advanced or complicated algorithms, but attention to the minutiae of basic definitions."
This is the government. Everything goes slow.
NASA Considers Magnetic Shield to Help Mars Grow Its Atmosphere
The money you pay barely matters to USCIS. However this move directly helps those who are importing cheap labor.
What's hilarious is that Docker is frequently criticized for "moving too fast" and "adding too many features". Now it seems we're going to be suspected of not adding enough features... Which is it?
Exactly - which is what they did
That's actually kinda beautiful from an infrastructure point of view -- the infrastructure is self-sufficent and powered using it's own energy.

Or more accurately, it jiu-jitsu's the potential energy in the system to redistribute the resource in a more optimal way (optimal defined as "best for the human economy of california")
Well, I'm not using them yet, but I working on a SPA where I have multiple react-virtualized-select[0] components, each with thousands of options. Creating the fastFilter options[1] for those takes multiple seconds. Although I only do it once and then re-use it, that still freezes up the page at the start, so if I could do that in parallel without freezing the UI that would improve the app for sure.

I guess for off-screen image manipulation (if for whatever reason you can't use WebGL and shaders) you'd have to resort to manual pixel manipulation by sending Uint8ClampedArrays back and forth. At least they're transferable by default.

[0] https://github.com/bvaughn/react-virtualized-select

[1] https://github.com/bvaughn/react-select-fast-filter-options