News for hackers. Stuff that matters.
Re:BeeWare – write Python, run everywhere using native UIs by IshKebab on Sunday February 06, 2022 @02:51PM (#30236281)
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.
Re:BeeWare – write Python, run everywhere using native UIs by zerkten on Sunday February 06, 2022 @05:14PM (#30237562)
If 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.

Re:BeeWare – write Python, run everywhere using native UIs by nvllsvm on Sunday February 06, 2022 @03:06PM (#30236436)
The language is the main reason to choose this. It's for people who like Python and want to write a GUI in it.
Re:BeeWare – write Python, run everywhere using native UIs by alexklark on Sunday February 06, 2022 @03:48PM (#30236839)
Can 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.
Re:BeeWare – write Python, run everywhere using native UIs by progval on Sunday February 06, 2022 @05:27PM (#30237664)
> interpreted languages with huge over-bloat like csharp, python, java, ruby

csharp and java, famously interpreted languages, unlike javascript.

Re:BeeWare – write Python, run everywhere using native UIs by cpill on Sunday February 06, 2022 @06:20PM (#30238120)
well, 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.
Re:BeeWare – write Python, run everywhere using native UIs by hakube on Sunday February 06, 2022 @08:16PM (#30238965)
Why are you asking them to do that? They want to do it, let them do it. It's none of your business.
Re:BeeWare – write Python, run everywhere using native UIs by silisili on Sunday February 06, 2022 @04:04PM (#30236986)
Python 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.

Re:BeeWare – write Python, run everywhere using native UIs by billfruit on Sunday February 06, 2022 @07:09PM (#30238498)
Yes, 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).
Re:BeeWare – write Python, run everywhere using native UIs by bogwog on Sunday February 06, 2022 @03:05PM (#30236427)
> better language

Sarcasm?

Re:BeeWare – write Python, run everywhere using native UIs by IshKebab on Monday February 07, 2022 @08:51AM (#30244812)
No? Python is an average language.
Re:BeeWare – write Python, run everywhere using native UIs by bogwog on Monday February 07, 2022 @10:35AM (#30246239)
And so you think Javascript is an above average language?
Re:BeeWare – write Python, run everywhere using native UIs by IshKebab on Monday February 07, 2022 @11:10AM (#30246722)
Javascript 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.
Re:BeeWare – write Python, run everywhere using native UIs by bogwog on Monday February 07, 2022 @11:53AM (#30247461)
Correction: 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.

Re:BeeWare – write Python, run everywhere using native UIs by coldtea on Sunday February 06, 2022 @03:30PM (#30236672)
Because 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...

Re:BeeWare – write Python, run everywhere using native UIs by udbhavs on Sunday February 06, 2022 @03:04PM (#30236414)
I would love a cross platform native toolkit like this for a typed language like Kotlin or Rust
Re:BeeWare – write Python, run everywhere using native UIs by nu11ptr on Sunday February 06, 2022 @04:51PM (#30237386)
SixtyFPS (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.

Re:BeeWare – write Python, run everywhere using native UIs by coldtea on Sunday February 06, 2022 @03:32PM (#30236689)
Well, there is one for Kotlin:

https://www.jetbrains.com/lp/compose-mpp/

Re:BeeWare – write Python, run everywhere using native UIs by udbhavs on Sunday February 06, 2022 @03:50PM (#30236870)
Kotlin 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
Re:BeeWare – write Python, run everywhere using native UIs by amelius on Sunday February 06, 2022 @04:06PM (#30236998)
There are so many different languages, that we stopped making any progress!
Re:BeeWare – write Python, run everywhere using native UIs by nu11ptr on Sunday February 06, 2022 @04:56PM (#30237421)
I 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).

Re:BeeWare – write Python, run everywhere using native UIs by frou_dh on Sunday February 06, 2022 @05:57PM (#30237928)
libui, 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.

Re:BeeWare – write Python, run everywhere using native UIs by jasfi on Sunday February 06, 2022 @05:52PM (#30237886)
Check out https://nexusdev.tools/

Kotlin/Rust could be supported if there's enough interest.

Re:BeeWare – write Python, run everywhere using native UIs by pseudalopex on Sunday February 06, 2022 @06:48PM (#30238354)
It's just a short description and an email address collector. And not native. "Initially for Flutter only. HTML/JS support coming soon."
Re:BeeWare – write Python, run everywhere using native UIs by bmitc on Sunday February 06, 2022 @06:22PM (#30238130)
What would your thoughts be if there was one for F#?
Re:BeeWare – write Python, run everywhere using native UIs by udbhavs on Monday February 07, 2022 @12:04AM (#30240645)
That 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.