skysight-inc/HackerNews huggingface dataset:
> processes and forking are relatively expensive

This and "async is always faster" are two things which are no longer true on modern hardware.

Forking a process on Linux uses the same clone() syscall as creating a thread so forking a small binary takes only tens of microseconds, leaving plenty of time for <1ms total response times.

https://eli.thegreenplace.net/2018/launching-linux-threads-a...
More Americans believe in global warming – but they won't pay much to fix it
Is there nothing we can do about these scummy tactics? Can they be reported to some government entity?
Golden handcuffs.

I too have moved to the US, but let's be honest. The US is not the only place in the world where you can live. There are a bazillion countries where you could have a good life, do interesting work and that would treat you better.
What is this stuff?
There is a lot to say here, but one question your comment raises is, why does the Canadian/American legal system have to acknowledge or accommodate a continually evolving aspect of historical culture? How much accommodation is fair to ask?

Many tribal practices of native peoples were and are incompatible with western legal systems. This is in part because the western legal system developed as an affirmative rejection of tribal law and customs. To take the example of England: Angles, Jutes, Saxons & Normans are all known to us; and the people are still here; but the scope of their tribal laws gradually narrowed as the framework of English law developed.

The notion of "equality before the law" gradually expanded individual rights and identity to a point where few of us recognise any tribal affiliation and led to uniquely open societies.
No offense to you personally, but most Americans would probably be happier with fewer H-1Bs. They are only brought over to depress wages and underpay workers. So while I sympathize with your condition, I’d like an actual ban on these types of fake specialized knowledge visa categories. L-1 and H-1 are so grossly abused it’s not even funny. The entire prevailing wage is famed and they bring over people from India with no degrees doing these fake “experience evaluations” they just pay some accreditation company for. It’s a scam filled industry. And all the body shops like Infosys, Tata, Cognizant, etc should be outright banned from operating in America.

There should be a $150k-$200k minimum on bringing over specialized knowledge workers. Save it for the doctors and medical workers. We can train engineers here.

Plenty of companies like Facebook have to apply for waivers because they claim they are “H-1 dependent” this is simply a lie because they aren’t willing to pay fair wages to hire locals.

I voted for Obama. I believe in immigration. But bringing in hundreds of thousands of workers to drive down wages is bullshit for the average American and only to the benefit of billionaires.

*Bringing some facts:

For example, somewhere between 47% and 85% of H-1Bs are being significantly underpaid compared to their peers, evidence that the program is not being used to bring over workers with "specialized knowledge" as they claim--but to drive down wages. It makes sense though, when you look at the biggest H-1B recipients: http://www.myvisajobs.com/Reports/2015-H1B-Visa-Sponsor.aspx It's mostly the low quality outsourcing shops like Infosys, TCS, Wipro, HCL, and Cognizant.
Instead of accepting 65,000 H-1Bs at random--accept the 65,000 H-1Bs with the highest wages. That way we are getting the immigrants with the highest valued skills and stopping companies like Infosys, TCS, Wipro, HCL, and Cognizant that game the immigration system by applying for the cheapest H-1Bs possible.
> most Americans would probably be happier with fewer H-1Bs

America's education system is pretty poor. It would be nothing without H1Bs. Take it from Michio Kaku[1]: "The United States has the worst education system known to science. Our graduates compete regularly at the level of third world countries. How come the scientific establishment of the US doesn't collapse. If we are producing a generation of dummy. If the stupid index of America keeps rising every year [...] how come the scientific establishment of the US doesn't collapse. Let me tell you something. America has a secret weapon. That secret weapon is the H1B. Without the H1B the scientific establishment of this country would collapse. Forget about Google, forget about Silicon Valley, there would not be a Silicon Valley without the H1B. [...] You realize that in the US 50% of all PhD candidates are foreign born. [...]"

the rest of the video is pretty good too. I recommend watching it.

> There should be a $150k-$200k minimum on bringing over specialized knowledge workers

This is stupid because you are privileging fields that can afford theses wages. Plenty of over fields which are not IT are in need of foreign experts and cannot afford to pay these salaries.

[1]: https://www.youtube.com/watch?v=-fphPeRvhjQ
If you've got metal rims, and the loops are reasonably tuned, you should be able to trigger them if you're well positioned. Apparently, adding a copper wire loop under your rim tape will work for carbon fiber rims as well.

There's some pretty good information here:
https://www.bikewalknc.org/bicycle-detection-at-traffic-sign...

But I've been lucky enough to have California government on my side, I guess.
If he’s actually writing good code (so has sufficient skill) and is working somewhere with decent mentorship, he’ll probably get the message soon enough. Code reviews from senior engineers should tell him to cut it out every time.
yes. i found a bug in the gcc export along with a dozen others. mbed devs hemmed and hawed about it for 6 months until they convinced themselves it's not a bug. I dropped mbed after that, switched that project over to Arduino.
This is real hacker news.
I am pretty sure Java's historical use of green threads was an issue of portability and not performance. They used traditional threading primitives. Java's decision to use green threads may have actually made a lot of sense in an era when consumer computers typically only had one physical thread to begin with.

Go on the other hand is based on CSP principles and a threading model that looks like actors. The threading model is deeply ingrained in the language, and it is designed around it. Goroutines are very cheap in Go, and the scheduler is fairly effective because it knows what threads to wake when - it's not blind. Goroutines are scheduled across n threads, not just a single OS thread, so they can take good advantage of multicore or multi CPU systems. This design does hurt C interoperability a bit, but imo it's greatly worth it.

Go is not the only language that works this way. I believe its concurrency model was inspired a lot by Erlang with its 'processes' model.
How to hire a data scientist
> He wanted to invite Diller once again to join the cable team. The two men wound up talking about the PowerBook; Roberts had just bought one and was still trying to figure it out. "I wanted to understand it for the cable business," Roberts says. Diller shared his impressions of what computers mean for the future. One day, he speculated, the computer screen might become a TV set, and the keyboard would be a mechanism for summoning anything. The speed would be astonishing.

I'm very happy Mr. Diller is still alive to see this happen. He's 76 now.
My grandfather owned a tiny hospital in a small town. He was a surgeon. He went to france during the great war with the British Army. There were only two surgery rooms at the town. His room was one of them. His hospital was half his big house. His home was the other half. He lived busy until age ninety. The war never finished for him.
I just sent them an email in order to cancel but maybe that’s different in the EU.
You are genralizing here, not everyone who is from India works for the body shops you’ve mentioned. The body shops like TCS, Wipro etc exist because the rules allow it, they use temporary visas like B1 and L they try to get H1 but rarely do - outsourcing is different from immigration
From what I recall, Java didn't switch because it didn't work. I think it switched because the green threads were built on what Solaris supported, and they moved to full OS threading to support Windows, Linux, Mac etc.
Sure. They could also let you easily cancel online. But they don't want to. And if you refuse to pay for a subscription contract you entered, but didn't cancel, you owe them.
That's a great idea, I'm going to use that.
Play the token game to re-align and balance your life
If there’s a quota to specialized knowledge workers, give them to the highest paid thus the most needed. Shouldn’t be given out in some stupid lottery... I want them to bring in people making the highest wages so they contribute the most to the economy. Not these $70k H-1Bs with fake work locations.

Not going to bother defending our education system since so many foreigners are trying to get into our colleges, I’d say we’re fine. Also, the skills gap is a myth: http://spectrum.ieee.org/at-work/education/the-stem-crisis-i...

Still lots of other issues I pointed out.
The benefit in this case potential, so it's hard to quantify it unless and until it is realized. But if it comes to that, it would be absolutely crucial for national defense.
i have the exact opposite opinion. such circular buffers only suit limited file system activities, such as logs. if you want editable config files of varying lengths, you need a real fs. i'll concede that features like directory structures and timestamps can be omitted though.
Hytale combines the scope of a sandbox with the depth of a roleplaying game
You’re not even supposed to work on a B1... but of course that’s often abused. Pay someone in India to come work in the US for a few weeks/months... yeah that’s not really what I want either.

They should be banned because they are a drain on the wages to the average worker and they’re used to bring over workers they can abuse, intimidate, over work, and under pay while stringing them along for a green card. It’s a scam that only benefits the billionaires.
Serverless at Scale: Serving StackOverflow-Like Traffic (2019)
For sure, but the biggest overhead is usually application startup (in say Java, Dart, Node, Python, etc) where just the VM can take a few 100ms to start. Using a compiled language would most likely be the way to go for maximum performance (although it's less important if the WebSocket is long lasting)
> suspends all pay for the legislative and executive branches until a new budget is passed

That's a terrible idea. Not all lawmakers are independently wealthy. So the ones who actually need that salary to survive can effectively be told by the President or party leaders -- of either party -- "vote with us, or we have a shutdown and your family starves."
Maybe you just don't want to get stabbed in the back before you get a new job.
> I voted for Obama. I believe in immigration

So, you are ok with blue collar American workers getting affected by the programs like DACA, TPS, illegal immigration etc., but when it comes to your white collar job, you don't like uncontrolled "driving down wages"?
Google Memo on Cost Cuts Sparks Heated Debate Inside Company
Then you're losing on diversity.
Most tv and other mediums leave out minorities, so now the reverse is appauling?????
Sure. Under Linux, processes and threads are both just tasks anyways. Processes may be nearly as efficient as threads, but you can do one better by not even having to spawn new threads per worker, which is what a concurrency model like Go's or Erlang's enable with ease. CGI and Websocketd also have significantly more costs than just a fork since they need to execute a target program.

And even forgetting the costs of forking, threads are not necessarily much better anyways. I can easily have a single Go program scheduling literally hundreds of thousands of Goroutines across just a few OS level threads and have no problems whatsoever, and in fact I've done exactly that in production, whereas I would never even dream of doing that with threads.

Node.JS's event loop model also doesn't need to spawn threads per connections.

When I say processes and forking are relatively expensive, I don't mean compared to doing the exact same thing with threads; I mean compared to more modern alternatives, like using an event loop or Goroutines.
Sorry, what are ideas it reflects, and what's best modern trends? Is React one of the best .. modern trends?
Maybe... but consider my counter-anecdotes 1) almost everyone uses them: I am a mid 30s professional and I’d say 1 out of every 2 people I work with has one - judges, law clerks, attorneys, judicial assistants, clients, all of their children... and 2) I see them all the time for promotions, from radio stations to non-profits giving them away at fairs, and bands both big and small selling them at shows. So those are two segments that are buying huge amounts of product in bulk. I doubt it will last, and would not be surprised if the numbers are inflated a bit, but right now they are hugely popular. Heck, my State Bar Associaiton even had dozens at a CLE recently, and I went to an Indian Child Welfare Act Conference 2 months ago and the tribes had stacks of them and were giving them out for free as well. It is the new hot advertisement/brand placement(?) avenue.
They’re obviously getting what they want, a higher wage and living in America. If all they wanted was higher wages and a better standard of living, there’s any number of other countries, that have more relaxed immigration policies, they could have moved to. If they can get a job and a visa in the US, they’re obviously good enough.
My favorite managing up pattern is the Feynman estimation technique. During the Manhattan project he and others were asked to report on what they would be discovering in the next quarter. Since they were doing groundbreaking work nobody had a clue how to answer and this caused the researchers a great deal of stress. Then they realized they could just hold back 3 months worth of results and “estimate” the discoveries they had just made. The end result was that management was very happy with the predictable progress and the scientists were free to do their work unimpeded.

Applying this in contemporary corporate America is left as an exercise for the reader.
Is staying in the US really that much better than trying to make it big in India?

Ironically, many of my Chinese colleagues have returned to China because they can make a lot more money there. And they will have a higher chance of being promoted to executive positions.

In addition, among my Chinese American friends, just about all of them say that their relatives that stayed in China are wealthier and more successful than those that came to the US.
Here's a demo of that in action.
https://youtu.be/rO8-cgtkZSw?t=295
why would you want Ads targeting your interests? They make you spend more money than you otherwise would have. Ads work and manipulate you. To me the perfect Ads are those that are completely opposite my interest so that I don't spend that extra cash.
I see 3 things here:

1) Qualified job candidates are scarce? Just... what? The only difference between here and there is when people lie and say they're qualified, the company is willing to pass this lie on to the government to say "the qualified candidates are over there". There are people who can do the work, and there are companies who want to pay less in total compensation. I feel like my entire generation was raised on a CS/SE pathway. How are there no qualified candidates? What decade will we be fit do to the work? Maybe I'll move to the third world and get rehired back. That's the entry-level job.

2) H-1B is not an loophole to get "loyal" employees. Again, you keep employees with competitive wages & benefits.

3) Companies should be shamed as much as the government for an exploitable process. The government must change for the people it serves. Companies can be dissolved if they're not supporting the area they base themselves out of (and benefit from).
This is such a one-sided point of view. Imagine that you're immigrating to a country, and after a few years you get fire, or you want to take a sabbatical, or you want to change industry for a lower paying job.

Now under your rules you cannot do that. What do you do? You've created your life in the US, you have friends, perhaps a girlfriend, maybe even a house. Now you have to leave?
Nonsense. I quit it and didn’t miss it even for one day. Hacker news is far more addictive than Facebook.
So sad a factual post is being flagged on HN. This isn't a matter of politics - Bari Weiss from th NYT has poured through all the footage and her conclusions are the same as your own.
DACA is for people who were brought over as kids. Not really their fault. What are we supposed to do send them to a country they never even grew up in?

TPS? Like Vietnam war era refugees? I mean, you’re clearly trying to conflate some big differences in immigration...

No, I’m for immigration that’s actually needed—like doctors and specialized researchers. But having worked for an immigration firm an seen what a lot of tech companies are doing, I can assure you it’s not for the benefit of the common man.
Conversely, I come from a country where many people don't have cars, and public transportation is a necessity for many people. In large cities, even if you have a car, it's often easier to take public transport. I grew up with that system, and lived with in for 20 years.

Then I got a chance to try the North American urban sprawl living with a car. And I find myself much happier - for me, that sense of freedom and control proved to not be phony after many years now.

Tastes differ.
Quantum-secure encryption using autoencoding?
I'm spending spare time researching quantum-secure encryption.

My current effort involves training a neural network on a dataset.
The result of the trained net is N values. Using an autoencoder architecture
it is possible to "set" the N values (the encryption key?) to "reverse generate"
the training data. If the training data is a well-separated set of
QR codes (the current idea, likely to change) it seems that the autoencoder
will be able to reproduce one, given the corresponding N-value. QR codes
are naturally error-correcting so even a near-miss result can be corrected.

If the QR codes are randomly generated they can be used to encrypt data.

The "key" for the encryption is both the NN architecture and the set of
weights. Given the NN without the weights the attacker knows nothing and
cannot recreate the NN. Given the weights but not the architecture (which
would include thinks like dropout or a "special" layer) the attacker
knows nothing.

This generates a large space of essentially random data that can be
"recreated" by the autoencoder to use as a one-time pad.

I don't see how a quantum computer can decode this. Grover's algorithm
can choose "one of many" but I can't figure out how to, nor what to,
encode in the quantum bits that might be input to Grover.

So it seems to me that an autoencoder architecture can be shown to be
quantum secure.
It doesn't get much better if you're a prime customer. I don't think I've ever received an item I ordered with 1-day shipping. It seems their only mode is 2-day.
You should take a chance at Europe, it's great ;)
Stopping payment is not the same as canceling a contract. You are basically acting on the premise that it's not worth going after you. That might even be true in all cases, but it's still disingenuous and probably unlawful.
What are you talking about ? Most Indians I know on H1B did one and sometimes more job transfers it never came as a problem. Don't believe me, go check LinkedIn. I can point you to atleast a dozen profiles of folks I know personally who did that.

H1B is perfectly transferable and I don't know anyone who was worried about moving to/within FAANG because of H1B.

Enough hyperbole please. Yes, its frustrating to not get greencard, but H1B is very far from slavery.
Show HN: DSS – Dynamic Style Sheets as Functions of State
Did you get the sarcasm in your parent post? If you really believe that your indentured servitude in the "land of the free" is better than living a free life back home, you have no reason to complain.

From what I know, going back to India is not bad at all. A lot of Indians return to bigger and better prospects back home.
Except the top colleges like MIT, stanford, etc, most foreigners get into US colleges because it is an easier path to get a work visa in US, that's it. Also, the 70k h1-B are currently working in US, so they pay US taxes. If they are not allowed, most of the work will be outsourced (and a lot of that has already been), so it will be a further loss to US.

Also, India uses human resource as a balance in trade. They allow US companies to sell stuff in India in luie of them highering indians abroad (which send a part of the salary back home to their family) or in India. If US applies an America first policy in everything then India has no incentive to allow these companies into India. Software companies are not creating super critical things which can't be replicated, specially by indians who are already working for Google, Facebook, etc who will lose their jobs.

EDIT : Currently there are no tariffs on Tech companies. What are people even arguing ?
No. We have an entire other immigration category for that...
Unoriginality isn't an response to an argument.
There are many kinds of people on H1Bs. There are people that are brought here by the consultancies you mention and there are graduates from American Universities who get H1Bs after or during their OPT. While I've heard that H1Bs are brought over to depress wages, although there is no data to back that up. In both these cases, there are a mixture of really good people, really bad people who got lucky and everything in between. I also know that there are rampant scams that involve faking Resumes to fake universities, however, there are many many many good people still holding out in the hope that this backlog for Indian's and some other countries resolves and lets them lead a better life.

However, according to this article[1], the number of open positions in Programming and Comp Sci. was about 500k and the US produced about 50-60k grads a year, 85k H1Bs wouldn't be enough to take all the jobs and flood the job market.

Also, from my own experience, I make over $250k as a Software Engineer, stuck on an H1B forever, while people who were born in other countries get to move on to a Green Card, even if they earn less than that. My company interviews hundreds of people, settling for 'good enough' and yet struggles to fill many open positions.

[1] https://qz.com/929275/you-probably-should-have-majored-in-co...
Exactly the way I feel. I'm willing to lose big just to make this point to every company I deal with, nowadays. 'Too many Mutha'uckas...'
DSS are similar to CSS-in-JS with scoped styles, with the idea being to have style as a function of state.

This is all just for my own enjoyment and productivity to use in my own projects, but I'm OK if other people find it useful (but I don't want it to become an OSS project with all the requirements of maintaining that) and welcome any criticism, feedback and ideas as well.
+1 to the Europe comment. You can become a citizen in Ireland by working 5 years. Same for a couple more European countries atleast.
The dream is over.

Corruption has seeped it's way to the highest office and some of the most important government organizations. What would be earth shattering 20 years ago is just business as usual these days.

Can we find our way back to the light?
My sister-in-law works in a fashion store. They have a 14 day return policy assuming same condition. You be surprised how many people buy a dress, cut all the tags, wear it once to an event, and try to return it.
Yeah, dealing with these robocalls are really frustrating. I choose to just ignore those calls now. Sometimes I also look up the numbers on Google and block the numbers immediately. I also read a nice article at https://www.whycall.me/news/consumer-wins-massive-229500-rob... about this topic.