Live data from Hacker News

React Native for Windows and Mac

microsoft.github.io

481–490 of 505 posts

Re: React Native for Windows and Mac

#481
post #5

Flutter seems to be gaining ground on React Native. And they also have web and desktop ports. Recently flutter overtook react native on Google trends.

Flutter on the web is absolutely insane. For those who don't know, it basically strips away everything and wraps it in a big terrifyingly complex mess of code and renders everything in a canvas. Flutter advocates like to claim that that's "only a fallback" for when things get complex but as far as I can tell the vast majority of things (including the simplest examples from Flutter itself) force the entire thing into…

[deleted]

Re: React Native for Windows and Mac

#482
post #368
post #92

Earlier quoted context omitted.

> RN isn't even native, it still includes a Javascript bridge "Native" doesn't describe the programming language, but the GUI layer. Native == non-web-browser.

The GUI layer in a static sense. You can't have native realtime interactions with the GUI, for instance dragging and interactive animations. You can choose one of two things: 1) Run a single precomputed action or animation in native-land when receiving an event from JS. No interaction is possible. 2) Run a requestAnimationFrame loop in JS which is passing the bridge (6 API calls on Android - 3 layers per direction) 6…

you can, using react-native-reanimated, also, the upcoming fabric work will enable this as well.

Re: React Native for Windows and Mac

#483

Earlier quoted context omitted.

Office already uses react native for parts of their desktop and mobile platforms, win32 is in the process of integrating react-native support. So does Adobe at least if their github is any indication. And if you look at the end consumer software which have billions of users, who in one way or the other pay for it, it's almost always built on web tech these days. Discord, Skype, Slack, Spotify, and so on. Of course th…

Consumers don’t pay Slack - businesses do. No one cares about the Spotify UI. People don’t interact with Spotify that much. They listen to it. The business model of charging upfront isn't exactly a sign of popularity, if anything it's the opposite. In a capitalist system how else do you measure value than what people are willing to pay enough for to have a sustainable business? End users aren’t paying for Slack. They…

I literally can't follow your points. Of course people care about the Spotify UI, that's how they interact with Spotify. And it doesn't matter if end users or businesses pay for Slack, people do pay for Slack and its software and UI is part of what they pay for.

Are you just going to find a different reason why you're going to ignore software built on a web tech-stack? Add up the market valuation of all companies using web technology to bring software to their users. Then compare it to the native market. It's not even close.

It's perfectly fine to use market value to estimate utility in a capitalist system. You just can't ignore every piece of software you don't like.

Re: React Native for Windows and Mac

#484

Earlier quoted context omitted.

fwiw, I've been doing professional JS (mostly server, good amount of client) for about 5 years now and have never pulled in a single function package before as a direct dependency. Every team I've been on has used Lodash or Underscore in the capacity you describe. https://lodash.com/docs/4.17.15 https://underscorejs.org/

I agree that this is the sane alternative, but sanity does not seem to be winning out. Our friend number-is-nan, for example, has 12 million downloads a week. A week!

It’s like someone saw how much the is-odd/is-even (yes one of those first two depends on the other and just returns the inverse with !) packages are downloaded per week and said “hold my beer”

Of course they don’t hold a candle to “is-number” which has 29M/week

Of course this is completely unrepresentative of reality because “yolo just install dependencies at deployment” may mean it’s downloaded 5 or 10 or 50 times for a high traffic site/service with a bunch of backend installations.

Re: React Native for Windows and Mac

#485

Earlier quoted context omitted.

Angular.js is currently causing problems for me, as it's going to be unsupported in about a year.

https://angular.io/guide/upgrade

The point is precisely that I have to do that.

GP asked for evidence of Google abandoning things, and Angular.js is exactly that.

Upgrading to an incompatible framework is not supporting the old one.

Re: React Native for Windows and Mac

#486
post #263

Earlier quoted context omitted.

The browser is where the hundreds of megabytes vanish to when you use a JS app instead of a native one. That might still be better (I'm undecided, personally), but it's worth recognizing that heavy native app is still there, just shared with a lot of other JS apps.

You could say the same about system libraries/binaries every native app needs to run

Valid point, for sure.

Re: React Native for Windows and Mac

#487
post #450

Earlier quoted context omitted.

> Yes, it is theoretically possible for a TypeScript type to be "wrong" and the underlying variable to have a different type. Unlike most languages, TypeScript is just a high-level static analysis compiler service that compiles to JS that executes in a JS VM. It has no control over what happens at runtime, it doesn't know about external libraries and user input, how its TypeScript functions are going to be invoked. A…

I know how it works. I'm talking about practical implications . In practice, say I have type User = { name: string, email: string } let loggedInUser: User = { name: 'Bob', email: 'bob@examaple.com' } or even // Can't change the contents, only reassign the whole variable let loggedInUser: Readonly = ... and only ever use that `loggedInUser` from TypeScript code (because my entire codebase is TypeScript), and I avoid t…

To sort of answer my own question, there is one more "leak" I forgot about - array bounds are unchecked https://github.com/Microsoft/TypeScript/issues/11122, which can give you `undefined` (though not `null`) without it being reflected in the type of the expression. Similar for objects with arbitrary keys (i.e. maps/dictionaries/etc.) https://github.com/microsoft/TypeScript/issues/13778.

E.g. `const a = [1, 2, 3]` will let you do `a[5]` and still give it type `number` instead of `number|undefined` as mentioned in the github issue. Many other languages also do this (though they have runtime checks/errors).

So that kinda sucks, but the rest still stands (there is still no practically realistic way for `null` or anything other than `undefined` to get there). Hopefully they'll fix that in the future with a new compiler setting.

Re: React Native for Windows and Mac

#488
post #439

Earlier quoted context omitted.

I'm still a MongoDB cerificated developer. The popularity has dropped as with the amount of positions available. There may come a time when this applies to Go.

I'm curious, what seems to be the Next Big Thing that is superceding MongoDB?

My guess is returning to SQL databases. An SQL database can handle a surprisingly large workload pretty well and provides some very nice correctness guarantees.

Re: React Native for Windows and Mac

#489
post #439

Earlier quoted context omitted.

I'm still a MongoDB cerificated developer. The popularity has dropped as with the amount of positions available. There may come a time when this applies to Go.

I'm curious, what seems to be the Next Big Thing that is superceding MongoDB?

Graphql. Managed databases. A new beginning with Postgres for some.

Postgres is not new. It was part of my stack 10 years ago. So many new people have moved to postgres it has become hot.

Re: React Native for Windows and Mac

#490
post #225

Earlier quoted context omitted.

But junk software is still junk and not worth the trouble.

Are we to presume you think that using native SDKs saves your junk software from being junk? I'm not sure how else to interpret your comment in this thread.

Having software that doesn't act like native software makes it junk. I've deleted a lot of software that was created with cross-platform SDKs that just didn't behave the way every other program on my computer did. I don't have time for that. It's a lot more likely that something created with a native SDK will behave like a native app than something slapped together with the cross-platform SDK du jour.
Post reply on HN