skysight-inc/HackerNews huggingface dataset:
Hello

I worked my way through React 12 Step Guide, and wanted to see if I could replicate the functionality of React writing a new library from the ground up but without using Babel to transpile JSX and instead using just pure ES6. Hence "Racked". It pretty much works. There's just a two ~ 200 line functions that do everything. That's it. Nothing more.
Racked (including the "Mars Demo") is just 4Kb gz (not even minified, just gzip CLI).

Apart from the codepen above there's source for all the other demos in the React 12 Step Guide, converted to "Racked": https://github.com/dosyago-coder-0/racked-js-react-without-b...

If enough people want it maybe I will write a Medium post about implementing "Racked"
Let’s go back a bit. The US intervened in Afghanistan against the Soviets decades ago, training what would become Al Qaeda, which would later attack the US. In response the US invaded Afghanistan and Iraq (again) destabilizing the region and leading to the birth of ISIS, the “Arab Spring” and the Syrian civil war.

It’s just waves of blowback from bad decisions without any concept that the groundwork for more blowback is being laid.
You're abusing the word "fake". Is coconut oil fake olive oil? Just two different substances serving similar purposes, much in the way mushrooms are sometimes used in dishes the way meat might be used. You could call that "fake meat"... or just call it mushrooms.
Generally, an H-1B through the startup won't work so you have to look at other visa options and oftentimes, under current law, this is limited to an O-1 or E-2 if the founder is a citizen of a country that gives rise to an E-2.
I associate the military with wasteful resource management and glacial innovation speed. The military in my country courently does not have working helicopters (they ran out of spare parts) and the rifles they use overheat and bend in combat..
The trucking industry is instructive here: Trade groups have argued that it is facing a shortfall of 51,000 workers, yet businesses have not yet shown much willingness to cut hours, boost pay, and improve conditions to lure workers in.

Now that's a good point. The job could be much better if the employers were better organized. Employers want to send someone out on the road for weeks at a time. With better scheduling, the first driver drives for four hours, stops at a truck stop, and swaps trucks with another driver going the other way. Both drivers end up back home at the end of their shift. Where's that Flexport guy who's always on here when you need him?
https://notabug.io

https://github.com/notabugio/notabug

My goal is to replicate reddit, but the distributed nature of notabug would allow you to experiment with these ideas on your own peer, or possibly just a custom UI build.
I don't want to think about versions of apps. I just want to use the app.
Agreed. Whether rust has copied its features - I don't know, but I have re-implemented many of Ada's features for several projects in other languages (mostly C), so it seems there is an amount of basic features like storage pools/memory pools which are usually required for systems programming tasks.

Good for Rust then, I guess.
It's always great randomly coming across something you wrote in the past, isn't it? Even if it's only a small blog post.
Thanks again.

My previous/original H-1B visa is still valid (expires in 2019), and as an Australian citizen, previously I could travel to US with ESTA for less than 90 days.

While being on "Administrative Processing", am I completely barred from entering US with the previous H-1B visa, or with ESTA until a decision is made? If H-1B is denied for some reason, how would it impact my ability to travel to US in the future?

Thanks a lot.

P.S.

I actually have a bachelor, double masters and double PhDs (from two different universities), multiple academic publications, patent, and a book that I think should count as publication. Do you think I could be eligible for EB-1, EB1A?

My plan was to apply for residency in US (via Green Card) after H-1B was granted this time.

Thanks a lot.
In other words, they encourage^Wallow you to use their service to break the law, and then disclaim responsibility when caught?
> However, do we blame FB for someone misusing it?

Yes! We do if they make it trivially simple to abuse their platform, either because they didn't bother thinking it through, or because they wanted money more than a clear conscience. (A concrete example is their recent ability to exclude minorities from housing listings.)

> Do we hold YouTube responsible for what people say?

We certainly are starting to get irate with their insistence on promoting neo-nazi and fascist channels. We're wondering why children are being shown videos of Peppa Pig drinking bleach.

> That said - I’m not sure how long or well it’ll work; as we can see this is a divisive subject :)

That's true, and I'm certainly coming at this from the view of loathing the shitbags who call up my stepfather and try to con him out of money, or call me up and imply that they're working with my credit card company. I don't have a business, so I have no need to call people for marketing purposes.
Hey Peter,
We're a company based out of Turkey but have also incorporated in the US with a single US employee making ~700K/ARR as of last year. We're thinking of getting an L1-A to move some of our staff and myself to the US. Do you think we would be eligible for L1-A as of yet?
It's great for sure but there were deep dive books much more comprehensive than this on the clr and jit that I read a decade ago. Microsoft press has always had great technical resources. I actually really miss the days of technical books. Blog posts serve a purpose but they definitely never adequately replaced books.
Yea, they seem to be very difficult to get. This article says the State Department has approved 375 waivers. So the waivers exist in theory, but the practical process of getting one is unclear.

http://thehill.com/policy/international/380975-us-visa-grant...
This article is clearly biased and written by Apple fanboys/fangirls: they publicize basically the whole Apple lineup and praise the top performer for being a mac-like laptop.

Now I am clearly (and admittedly) a ThinkPad-leaning guy but despite this it must be noted that Lenovo offers ThinkPads in 12", 14" and 15" versions but such laptops get no representation (same for Dell).

This article is basically bullshit.
Dramatically. It's just much tougher to get petitions approved by USCIS and visas issued by Consulates. Although oftentimes for no good/valid reason.
Arguably most importantly, the labor force participation rate for prime age workers continues to move up.

It persistently fell from 83.3% in January 2008, to September 2015, where it bottomed out around 80.6%. It has been climbing since then, and is now up to 81.8%. Getting that back up near 83% would be a big win for the economy.

The highest that has ever hit, is 84.5% in 1999/2000. Healthy has historically (in the last 30 years) been anything around or above 83%. I think it's plausible the US can return to that figure in the next year.

We've struggled with the prime age unemployment due in part to the big loss in production jobs since ~2000. The continued recent (curved upward again at the end of 2016 [1]) boom in manufacturing jobs (exports are at an all-time high) should pull a lot of blue-collar workers back into the labor market. The manufacturing sector unemployment rate is incredibly low at 3.1% (lowest since June 2000, other than the 2.6% it hit before Christmas 2017).

Trump, were he wiser on macro strategy, would resolve NAFTA, close out the trade conflict with Canada & Mexico soon, come to a deal with the EU, and then focus all the trade war on China. US manufacturing will continue to boom, cheap energy and improved margins will largely ensure that. The only serious threat is some really bad trade moves with the non-China trading world.

[1] https://data.bls.gov/timeseries/CES3000000001
I don't use Linux.
It's not that they would not be welcomed, but they might not quite deserve the billions being pumped into them at the moment...
Vue's single file components (SFC) require a build tool such as Webpack or Browserify. See https://vuejs.org/v2/guide/single-file-components.html
> Sure, you could in Soviet Union meet some nice guys under the bridge or in the park selling you a brick for 50 rubles when you salary was like 160 rubles a month.

That sounds utterly horrifying. It’s amazing how people were able to survive in those conditions.
So Google is going to data mine your relationship with your customers, find out what's broken, then go build a tool to compete with you and put you out of business.
>inciteful

This is a very interesting word. I think you mean insightful, which is what people usually use to describe a clever or novel thought.

I've never seen the word inciteful before, but that would probably mean something that really riles people up and makes them angry. After rereading your last sentence, it seems like you actually meant inciteful, but it's not a word that's used very often.
Piggybacking on this question, can you have a secondary source of income (e.g. from a website) if you're on an H1B but have not applied for a green card yet?

More specifically, at what point of your status can you start earning money legally from another source?
Show HN: Implementing the demos from the React Guide without using React
I don't understand why anyone would go for C# or Java.

If you want GC and/or fast dev speed, go for JavaScript. If you really need static typing, go for TypeScript. JS has one of the fastest VMs on the planet and virtually everywhere.

If you need speed and don't want to mess around with decades of C/C++ legacy quirks, go for Rust.
Hi Peter, Thank you for doing this!

What is your recommendation for a Canadian H1B holder who wants to stay in the US Permanently, but employer will not sponsor/petition a i-140? (Commenting on other nationalities would probably help other readers too).
Wow, big list. I guess more people need the speed Rust gives after all! Would you say the job market is good for Rust? I only sunk my teeth into React and I'm loving it but I'm open minded.
> squeaky, often ill-fitting plastic

Are you talking about the 5520? Curious because I'm planning on getting one in the near future, but not if it has build issues.
Hi Peter, I've heard people mentioning they transitioned from TN visa to green card sponsorship, my understanding is that this isn't allowed, have you heard of this?
Pretty much, and by manipulating society broadly you empower that society to add to the pressure exerted by the propaganda itself.
Hey thanks for the article. I know etcd upgrades can look complex but upgrading distributed databases live is always going to be quite non-trivial.

That said for many people taking some downtime on their Kube API server isn't the end of the world. The system, by design, can work OK for sometime in a degraded state: workloads keep running.

A few things that I do want to try to clarify:

1) The strict documented upgrade path for etcd is because testing matrixes just get too complicated. There aren't really technical limitations as much as wanting to ensure recommendations are made based on things that have been tested. The documentation is all here: https://github.com/coreos/etcd/tree/master/Documentation/upg...

2) Live etcd v2 API -> etcd v3 API migration for Kubernetes was never a priority for the etcd team at CoreOS because we never shipped a supported product that used Kube + etcd v2. Several community members volunteered to make it better but it never really came together. We feel bad about the mess but it is a consequence of not having that itch to scratch as they say.

3) Several contributors, notably Joe Betz of Google, have been working to keep older minor versions of etcd patched. For example 3.1.17 was released 30 days ago and the first release of 3.1 was 1.5 years ago. These longer lived branches intend to be bug fix only.
> For `result`, the basic description from Nim’s example pages highlights why it’s a severe problem.

This is simply an explanation for newcomers. It's really not something that's a "severe problem", just something to be aware of.

> The bigger issue though is that initialization of the return variable is implicit, which is inherently problematic. This is especially troublesome because type constructors in Nim are essentially always separate factory functions. So you have to remember to manually call a particular constructor or else `result` might be just an improperly initialized skeleton of your data type.

This really isn't an issue when you can do this:

import options

type
MyFile = Option[int]

proc getFile(): MyFile =
# Oh no, I didn't initialise it...
discard

echo(getFile()) # -> none[int]

You can also use `ref T` and achieve a similar effect: an explicit "empty" state. So there is no weird semi-empty state problem here.

I would really like to hear why you think `discard` is a bad design idea. I honestly cannot even imagine a reason as I consider this to be one of the best features of Nim.
BBC News on HTTPS
Yes, it's possible, but you'll likely have a fight on your hands with USCIS because of the newness and size of the U.S. company. But I would still fight the fight if this is something that you want to do to grow the business.
The American government is absolutely not in bed with Apple and Apple has done a lot to distance themselves from the government (San Bernardino comes to mind). In fact, most American companies are at odds with the government, and if they do have a close relationship, it's because the government is just a cash cow.
Maybe transfer your H1-B to a new employer that will sponsor you?
Would love to try this. Is there some kind of open-source kitchen sink application that outlines best practices for concepts like:

- Internationalization

- Handling auth w/ SSR

- Server side pre-rendering (in case I want to pre-render a template and conditionally cache/expire the HTML for N hours, for better perf instead of rendering on each request)

- SEO / Helmet type stuff
We've gotten ourselves into a mess in the USA by electing an authoritarian government, in part, as a result of influence mediated through social networking companies.

The news is a now parade of ridiculous government officials, each a unique combination of incompetence, corruption, and malevolence.

Sorry, but this one is on the hard right. Don't tune out. Own it. Live it. Take some responsibility for it.
I would like to call out YCombinator for supporting this.

It is a slimy business, it is booming at the moment, but there are a lot of other, healthier ways to make money and I think they built perception to be better then others for good reason. This just doesn't suit them.

I am open to hear opposing views and explanations, sans kposehn who acts as these guys advocate here.
Does separating families at the border amount to a crime against humanity? What can be done? Or, less specifically, may it be a crime against humanity?

Edit-This isn’t a political question. HN may not be for political discussions, but discussing immigration issues is the topic of this discussion.
Good luck getting cell reception in 1928 :)
This is all just pure ES6, and each JSX block is converted like

return ( <div>Hi {name}</div> );

becomes

return R`<div>Hi ${name}</div>;

As well as that R function there's also a ~200 line render function. That's pretty much it. To copy the functionality of React as presented in that guide.

The guide: https://reactjs.org/docs/state-and-lifecycle.html

Source on github: https://github.com/dosyago-coder-0/racked-js-react-without-b...
I'm with you, I love TypeScript! It's my favorite language of all time! But people using Java and C# are usually tied to a platform and SDK that TypeScript can't easily interoperate with. But I guess if you can replace your whole app with an Electron version, go with TypeScript all the way!!
> I don't understand why anyone would go for C# or Java.

Library support immediately comes to mind. If I need an implementation of, say, the Kerberos protocol, I'm more likely to find a binding in Java than in JS.
Either change to an employer that will sponsor you or look at self-sponsorship options - that is, NIW or EB1A.
I appreciate the sentiment, I would really like for it to not come to that, if at all possible.
Fairly subjective, it is easily readable at least.
How we develop new SAST tool for Java
Compared to Java or C#? Miniscule. There are jobs happening, but they're often not pure Rust jobs. It's changing a lot though; there used to be like, two or three at best.
Hey, how about instead of requiring employers to pay more we reduce the cost housing, medicine, and schooling which are the biggest drains on people expenses.
Open Offices Make You Less Open
> Because we don't have a national healthcare system. Why? Because people vote against it.

Most Americans have supported some form of public healthcare for most (but not all) years for about two decades (scroll to end of article for stat):
http://www.pewresearch.org/fact-tank/2017/06/23/public-suppo...

So in fact you want the same thing as Europeans, you just don't live up to your own standards.

As for your comment on "favelas after a nuke" in Europe, I'll just remind you you're not on Reddit, you're supposed to come up with real arguments.
It does to me.
5 Best MacOS Linux Clones
Course in miracles:

https://youtu.be/nrmFlDpeF-k
I can switch on access to previous images if I ever need it.

I don't believe the potential for shock images is any higher than any content sharing platform, especially small ones without much in terms of content recommendation. It at least has the advantage of being self-moderating and extremely temporary.
Thank you for this link.
Thanks GP also, for pointing out the irony that an article discussing our digital society's deep dependence on advertising is itself hosted on a space that has to rely on advertising to stay afloat (and thereby engages in precisely the sort of pernicious tracking that the article is dissecting).
Should they have just used a subdomain in their regular domain? Seems like a series of mini problems. Is the '+' obsolete (you need it for international calls right?) or it the problem the phone using the same button for 0 as well. So people who don't pay attention press 0 instead of '+'.

It just seems like "similar looking domains" and stuff has been a problem for ever and it still is. Will this still be a problem in near and far future?
https://www.npmjs.com/search?q=kerberos shows 26 packages. The huge ecosystem is one of the big selling points of JS!
How people interpret probability through words
European Dogs Devastated Indigenous American Pup Populations
Just want to point out: "military grade" has negative connotations in tech. In security and cryptography, the term is a strong indicator of snake oil.
Migrate the code base to Go.
Microsoft Classic Intellimouse review: A noughties comeback
>…it's unclear that we ever had the ability to build a large number of reliable nuclear power plants.

Nuclear power plants have been safer and more reliable than other forms of power.

In terms of reliability, nuclear has had the highest capacity factor of any source of power:
https://en.wikipedia.org/wiki/Capacity_factor

In terms of accidents, nuclear has had a much better safety record than any other form of power up this point:
https://en.wikipedia.org/wiki/Energy_accidents

(They don’t cover ground based solar which I would think would actually be the safest. Why do people keep wanting to subsidize roof top solar?)

Some other links on deaths due to energy production:
https://www.nextbigfuture.com/2011/03/deaths-per-twh-by-ener...
https://www.statista.com/statistics/494425/death-rate-worldw...
https://ourworldindata.org/what-is-the-safest-form-of-energy
https://www.forbes.com/sites/jamesconca/2012/06/10/energys-d...

Unfortunately anything at all related to nuclear is covered by the media orders of magnitude more than other power sources so people have an understandable perception that it is much more dangerous than other sources of power. What if the Alison Canyon was a nuclear storage site (instead of a natural gas storage site) and 11,000 people had to be evacuated - how much would the media have covered that? Another recent example would be the evacuation at the Oroville dam - almost 200,000 (YES 200 thousand!) people were forcibly evacuated since the worst case failure scenario would have have been a tidal wave of water 30 feet high rushing down stream. This made the news for maybe a day. I can't blame some for being afraid of nuclear power, but there are many who should know better.
My case was very similar, I switched jobs in about 2 months from getting the GC. I recently got my citizenship, and it was no problem at all.
No, Uganda’s new social media levy isn’t just another tax to raise revenue
It's definitely allowed but there are certain minor requirements and restrictions specific to those in TN and other non-dual-intent statuses.
a "race to the bottom" is when people offer better and better services at lower and lower prices, in an almost comical way because the people interested in that trade exert a high level of discipline and are not rewarded for it.

such was the case of graphic design in pakistan, and still is.
Time crystal
Doctorow assumes that racists got Trump elected, because Trump and his Russian cronies persuaded them to vote, using targeted advertising.

He is insulting large swathes of reasonable non-racist voters, who chose Trump as a protest to the status quo. They looked at Hillary, and saw four more years of kowtowing to corporate interests, and ignoring working class voters. They saw crappy jobs replacing the jobs they'd had before the recession. They saw that no bankers went to prison. They saw the Democrats' shoddy treatment of Sanders, and figured the Dems needed a spanking.

That's why we're stuck with this self-promoting windbag: not because voters are stupid, but because they made a rational decision, and chose a clown over a corporate crony.
Exactly this (and well-phrased)!
I feel like it's a mixed bag. For every 10 packages, maybe 8 are half-baked and strapped on in a hurry with no care. That said, those other 2 are usually amazing. Java has an edge there, because there's a lot more fully supported, corporate backed, high quality packages for Java.
That's very kind of you to say. Thank you.
You wrote deflation, but I think you meant inflation: with deflation the purchasing power of the $5000 borrowed would go up, not down.
> Some people are left-handed, some people have red hair, some people are gay.

This is fundamentally different. I'm pretty sure if the entire population of a species was left handed or had red hair it would still survive.

> since neither a single partner or no partner is optimal for survival.

Single partner may be more optimal for survival when offspring don't mature in a matter of weeks, months or even years.
Found this:

https://500.co/marketplace-startup-mistakes/
> it's morally just

Morally? Definitely. Incentivizing trade promotes human survival. Is it "just" is a different question, because justice requires a set of idealogical social principles to start from. Natural rights, divine will, reparative, or some other. YMMV
Yeah in that case with the opportunity to work remote and live in a cheaper part of the country, it would be well worth the extra effort on my part and I can understand the caution on theirs.
So, selling something every now and then (like your car or used furniture, etc>0 is permissible but when it becomes a business (a grey line admittedly), it requires work authorization.
What language is the fuchsia api in?
It's refreshing to see the industry try aspect ratios other than 16:9. This 3:2 looks like it would be a lot more useful.
interesting read. I liked the part about identifying rare templates. plus, if I ever plan to do ML on html the article gave me a good place to start on feature extraction.

might have some uses in identifying phishing urls, etc