6 ms·
Dropping React and going back to raw JavaScript next? I am still mourning pre-React GitHub. Maybe rose-tinted glasses, but it was so pleasant to use
by asimovDev 6d ago
Dropping React and going back to raw JavaScript next?
I am still mourning pre-React GitHub. Maybe rose-tinted glasses, but it was so pleasant to use
- imposter 6d ago[dead]
- vendiddy 6d agoI would attribute that more to culture. For example https://diffs.com/ https://diffs.com/ is built in React and it's basically instant.
- bob1029 6d agoI would attribute it to physics. If the entire page is rendered on the server, the information required to do so is presumably reasonably approximate (same datacenter). If most of the page is rendered on the client, the information needs to be pulled in from arbitrary physical distances. At some point the engineering really is this simple.
- zelphirkalt 6d agoWhich is also, or at least has also been a culture thing, because of the "Oh no, we can't possibly do the computation of all that on our backend! Yikes! Let that run on every single client instead! Let users spend their own compute over and over." culture.
- vendiddy 5d agoBut this is way faster than GitHub isn't it: https://diffshub.com/oven-sh/bun/pull/30412 https://diffshub.com/oven-sh/bun/pull/30412 Compare that to this: https://github.com/oven-sh/bun/pull/30412/changes https://github.com/oven-sh/bun/pull/30412/changes I agree there are limitations bc of physics, but I don't think it explains this particular difference.
- mike_hearn 6d agoIs it? I looked at the source but it doesn't appear to be react. It has a React API but also a "vanilla js" API and when I looked at the code it seems to be doing everything by hand: https://github.com/pierrecomputer/pierre/blob/main/packages/diffs/src/components/FileDiff.ts https://github.com/pierrecomputer/pierre/blob/main/packages/... ... albeit using React inspired terminology like props and hydration.
- vmg12 6d agoYou'd be wrong, diffs is vanilla js with a react wrapper.
- vendiddy 5d agoOk I stand corrected. Some have mentioned the React layer is very thin it's mostly vanilla JS! I think my point still stands that, if MSFT cared, it would be fast. The issue is not the technology choice in this case. For example, look at their demo here: https://diffshub.com/oven-sh/bun/pull/30412 https://diffshub.com/oven-sh/bun/pull/30412 It's way faster than GitHub and you check the network tab.
- fg137 6d agoI don't think UI frameworks will go away any time soon. They solve a very different problem from React Native.
- stn_za 6d agoDropping Javascript and going back to native yea
- agos 6d agoit was also terrible, but in a different way