Better HN
topnewbestaskshowjobs
Log inSign up

samc98

4 karma · joined Sep 10, 2018 (8y ago) · 3 submissions

Submissions

comment 5y ago · link · parent

The React team had explorations of a compiler for React, I believe -

https://github.com/facebook/react/issues/9223 https://github.com/facebook/react/issues/7323 https://github.com/facebook/react/issues/7324

I also think this is why facebook had been investing in `prepack` - https://github.com/facebook/prepack

comment 5y ago · link · parent

How does this work if two (or more) engineers touch the same file at the same time?

EG: If two engineers have two different PRs open modifying `index.html`, how does that go to canary?

comment 5y ago · link · parent

> why wouldn’t generators be a good fit for some of these use cases? Especially since iterating over data is a common action. I imagine this would be easier to integrate into the framework for things like this

I think this is answered by Seb, in the "Contributing to Fiber" issue in the React Repo: https://github.com/facebook/react/issues/7942#issuecomment-2...

But maybe things have changed since then!

I suspect that "why doesn't react handle plain promises natively" would be addressed in the RFC detailing the whole "let's throw a promise" thing.