> It is not only shorter, it is also easier to read and to edit, and can easily utilize the power of the state. Easier to read and edit is obviously subjective, but shorter is not and that front page is just straight up lying. The Qt example is most definitely shorter. What am I missing?
Hey. I'm the author. It's hard to find a simple example that everyone understands but can show capabilities. If you're used to Qt then you're going to like Qt better, but I mainly developed this for people who want to use React. You are obviously free to use whatever you want. But if you have any suggestions let me know!
Proton Native – React Native for the desktop
151–160 of 295 posts
Re: Proton Native – React Native for the desktop
#152Earlier quoted context omitted.
None of those are apps I particularly enjoy using or would want to use.
Facebook? Instagram? Airbnb? We're talking about some of the most popular apps in the world. What exactly is your problem with them?
Re: Proton Native – React Native for the desktop
#153This is super cool. Are there any demonstrations comparing performance between electron and your app?
I dont think that'd be very useful. Proton is pretty much native C with just a JS runtime on top, it might even be faster than Qt. So a benchmark against Qt maybe?
Re: Proton Native – React Native for the desktop
#154>You can create a GUI using something like Qt, but the code to make it is messy and unorganized. It doesn't serve the author well to make this comparison. Saying it's less messy to manage Proton/React source code files and the associated Node/JS/etc infrastructure is an extremely dubious claim. One of the things I like best about Qt is how non-messy Qt development is. Most everything (source files, resources, etc.) l…
And if we want to compare the syntax then this would be the QML equivalent: import QtQuick 2.9 import QtQuick.Controls 1.3 ApplicationWindow { title: "Example" visible: true width: 300 height: 300 Button { text: "Button" anchors.centerIn: parent onClicked: console.log('Hello') } }
I may be biased, but to me the QML code is much cleaner and clearer than JSX.
Re: Proton Native – React Native for the desktop
#155Earlier quoted context omitted.
Actually, earlier today Electron 2.0.0 dropped and includes an `affinity` option, which throws everything under one process. Supposed to help with memory/resource usage.
Wow, nice! Didn't think there was much room to improve given the dependency on Chrome.
Re: Proton Native – React Native for the desktop
#156Earlier quoted context omitted.
Anything that reduces the number of running chrome instances on my poor little laptop would be nice.
Chrome is like the elephant that comes and sits on my laptop. Would be unusable without the great suspender.
Re: Proton Native – React Native for the desktop
#157Earlier quoted context omitted.
Facebook? Instagram? Airbnb? We're talking about some of the most popular apps in the world. What exactly is your problem with them?
they are the most popular because they are needed to access a service. But they are all a fucking pain to use.
Re: Proton Native – React Native for the desktop
#158Earlier quoted context omitted.
Facebook? Instagram? Airbnb? We're talking about some of the most popular apps in the world. What exactly is your problem with them?
they are the most popular because they are needed to access a service. But they are all a fucking pain to use.
Re: Proton Native – React Native for the desktop
#159Earlier quoted context omitted.
I've used Qt developing various data-heavy apps for financial research at work and agree that making this comparison is rather inappropriate. For people who are not familiar with JSX this is not any better than the Qt syntax. This would be an alternative to Qt, but before I see a full-fledging app developed with great performance/memory metrics using this, I am not convinced enough to put it in my framework stack.
I used Qt in the early days, and always found the signal/slot model to handle events quite cumbersome. Handling events through closures (like typically done in JavaScript) is, imho, much nicer.
Re: Proton Native – React Native for the desktop
#160Earlier quoted context omitted.
> and now we're making traditional UI dev like web It's been like that on Windows since 2006 with XAML. In fact, if you squint at typical JSX, it looks like XAML. Disclosure: I work at Microsoft.
Or MXML, which most certainly was influenced if not entirely derived from XAML. Everything old is new again!
OpenLaszlo was most immediately inspired by HTML and (for data binding) XSLT. I looked at Mozart for ideas on constraints, but we ended up rolling our own design — mostly because constraints were never supposed to be a feature, so they were designed and developed incrementally, in discretely releasable baby steps.
Adobe did due diligence of the company sometime around 2002-2003 too, but that deal fell through. An Adobe PM also signed up for our beta program, initially under a pseudonym, but he eventually came clean. I’ve always been curious whether Flex/MXML was related to either of those encounters.
[1] https://en.wikipedia.org/wiki/OpenLaszlo
[2] https://ssl.weepee.org/lps-4.6.1/docs/developers/program-dev...