6 ms·
I just don't understand why you'd choose something as slow as Python for this. Not sure how it could compete with React Native which seems like the closest equi
by IshKebab 5y ago
I just don't understand why you'd choose something as slow as Python for this. Not sure how it could compete with React Native which seems like the closest equivalent, but in a much faster and better language.
- udbhavs 5y agoI would love a cross platform native toolkit like this for a typed language like Kotlin or Rust
- coldtea 5y agoWell, there is one for Kotlin: https://www.jetbrains.com/lp/compose-mpp/ https://www.jetbrains.com/lp/compose-mpp/
- udbhavs 5y agoKotlin multiplattorm doesn't do iOS UI, only some business logic sharing using kotlin compiled to native. The UI layer still needs to be in Swift
- amelius 5y agoThere are so many different languages, that we stopped making any progress!
- nu11ptr 5y agoI agree with this, and yet, I love these new languages (esp. Rust) so I'd hate to halt progress. Instead, what I think we need is a solid cross platform native UI library targeting C (libui would be a candidate - before it lost momentum). It would then be a reasonable amount of work to create multi-language bindings. Instead we have things like wxWidgets/Qt that are a pain to create bindings for since it is written in C++. As proof this would accelerate things, notice how many languages have GTK bindings (C based).
- frou_dh 5y agolibui, even if it was properly maintained, would still only be suitable for toy applications. As a user, I don't want to use toy applications. So hats off to those who do things properly and use the real platform frameworks.
- nu11ptr 5y agoSixtyFPS (https://sixtyfps.io/ https://sixtyfps.io/) is in progress for Rust, but it is still early days. It also does not technically use a native toolkit (it uses Qt), but I believe that might be on roadmap. For traditional GUI apps, I think the lack of a table or tree widget is the most limiting for the time being. They have stated they intend to remedy that. I should also add that it is GPL - with all that implies. They also have commercial licenses.
- jasfi 5y agoCheck out https://nexusdev.tools/ https://nexusdev.tools/ Kotlin/Rust could be supported if there's enough interest.
- pseudalopex 5y agoIt's just a short description and an email address collector. And not native. "Initially for Flutter only. HTML/JS support coming soon."
- bmitc 5y agoWhat would your thoughts be if there was one for F#?
- udbhavs 5y agoThat would be great too. I haven't gotten around to learning any ML-style languages but it looks very nice. I know MAUI is supposedly in the works for .NET but I'm not sure how it will ultimately turn out compared to Flutter or RN. But if it gets close to its ambitious goals I would definitely give it a try.
- bogwog 5y ago> better language Sarcasm?
- IshKebab 5y agoNo? Python is an average language.
- bogwog 5y agoAnd so you think Javascript is an above average language?
- IshKebab 5y agoJavascript is also average. But Typescript is definitely an above-average language. Much better than Python, especially when you consider the insane performance compared to Python and the fact that it can run in the web.
- bogwog 5y agoCorrection: javascript is warm dog doodoo. Typescript tries to fix a lot of the problems JS has, but still inherits a lot of its problems. > especially when you consider the insane performance compared to Python In my experience, people who complain about Python’s performance don’t actually have experience with software optimization. Aka, the same people who decide to use C++ “because fast”. Even if you only look at synthetic benchmarks, there is not a single thing that would make javascript stand out as a good choice for high performance computing, V8 or not. But even if you find yourself in a situation where you’re stuck with javascript and have to optimize a particularly nasty hot path, the types of techniques you’d need to rely on aren’t going to be all that different than what you’d have to do with Python (with similar results). The difference is that the Python environment can almost always outsource processing to a C library (maybe even hand written assembly). That’s really only possible with typescript if you’re working with Node, but I don’t think that’s what you’re referring to considering the context of this thread. > and the fact that it can run in the web. AKA, the only reason to use Javascript pre-Node. Post Node, you get to share code throughout your whole stack, but even then that’s rarely the best objective choice, and the benfits of using a single language tend to be overblown in my experience. For example, an Elixir/Erlang backend would be overwhelmingly more beneficial to any project than the minor conveniences of a single language (and I think Erlang is even slower than Python) When/if web assmebly becomes more popular, I think JS/TS will finally die because web developers will finally be exposed to good languages, and will not want to go back to the mess that JS is/was.
- nvllsvm 5y agoThe language is the main reason to choose this. It's for people who like Python and want to write a GUI in it.
- alexklark 5y agoCan they go and do it somewhere else? I don’t need another ugly and power draining app in my iphone that I might forced to use. I wish apple forbid to use in store all these inferior interpreted languages with huge over-bloat like csharp, python, java, ruby. They are fine a tool for heating the earth and get corp to purchase even more servers for CRUD, but not to use in a battery powered device.
- hakube 5y agoWhy are you asking them to do that? They want to do it, let them do it. It's none of your business.
- progval 5y ago> interpreted languages with huge over-bloat like csharp, python, java, ruby csharp and java, famously interpreted languages, unlike javascript.
- cpill 5y agowell, the thing is that python provides a nice interface to some ugly, but efficient lower level libs. it can hook into any C or C++ library.
- coldtea 5y agoBecause you get to use Python. And why would Python level "slow" matter at all for most kinds of apps? You're not writing games or bitmap editors with this...
- deleted 5y ago[deleted]
- silisili 5y agoPython is one of, if not the, easiest languages to learn and use. I feel that's why it took off in science related fields - non CS people can jump in and be productive quickly. Seeing as this is for GUIs and not say, computing digits of Pi, I think Python is a fantastic choice for this. I honestly wish Python had taken off as the web language instead of JS, but that's a conversation for another time. FWIW, I'm not a Python fanatic or anything, I haven't used it in years - but it's hard to argue it's not a great language for beginners.
- billfruit 5y agoYes, Python seems simpler in some aspects, but it does lack the ball-of-clay flexibility of JS, and Python feature-set seem rather conservative speaking in the 2020s (Its standard library data structures abounds in a very mutable api, for example).
- zerkten 5y agoIf you want to make a quick shift from writing command line apps to writing GUI apps then you are the target for this. If you need to be writing high value mobile or desktop apps then this is a less of a compelling option as you note. There are a lot of very high quality libraries like Pandas and SciPy that are not available in the React Native ecosystem. Tools like those provided by BeeWare let you add a GUI quickly. The folks interested in interacting with something running on these data science libraries tolerate imperfect user experiences more than the average consumer. If we looked at React Native we could level your argument at it as well. Why use RN when you could build real native apps? Surely, that's the most optimal experience over a third-party platform, no matter how good RN is in practice.