Live data from Hacker News

Ask HN: How to make a native GUI with a modern language?

news.ycombinator.com

11–20 of 145 posts

Re: Ask HN: How to make a native GUI with a modern language?

#14

Personally I like JavaFX. I made something pretty complicated with tkinter and Python. It's not that hard to do but the result looks awful, it doesn't support many features people expect in 2022, and the documentation for using tk in Python is poor. You probably need to refer to the tcl/tk documentation and translate it in your head to apply to Python. As much as people hate Electron, the rendering engine in a web br…

> trouble w/ Electron is that you have 30MB of runtime for any application

JavaFX has the same problem? Or you rely on user's JREs already installed? I'd think 30MB really isn't much any more.

Re: Ask HN: How to make a native GUI with a modern language?

#15

Personally I like JavaFX. I made something pretty complicated with tkinter and Python. It's not that hard to do but the result looks awful, it doesn't support many features people expect in 2022, and the documentation for using tk in Python is poor. You probably need to refer to the tcl/tk documentation and translate it in your head to apply to Python. As much as people hate Electron, the rendering engine in a web br…

I used JavaFX a while ago and hated it. It was insanely slow, fonts were awful and the lib of components was non existent.

It really felt like something created by someone but never used in the real world. Is it even used anywhere?

Re: Ask HN: How to make a native GUI with a modern language?

#18
post #14

Personally I like JavaFX. I made something pretty complicated with tkinter and Python. It's not that hard to do but the result looks awful, it doesn't support many features people expect in 2022, and the documentation for using tk in Python is poor. You probably need to refer to the tcl/tk documentation and translate it in your head to apply to Python. As much as people hate Electron, the rendering engine in a web br…

> trouble w/ Electron is that you have 30MB of runtime for any application JavaFX has the same problem? Or you rely on user's JREs already installed? I'd think 30MB really isn't much any more.

The difference is that Electron is bundled with every app.

If you have 200 electron apps, that’s 200x30mb.

With Java, the JRE is reused so the binaries can be smaller.

Re: Ask HN: How to make a native GUI with a modern language?

#19
post #14

Personally I like JavaFX. I made something pretty complicated with tkinter and Python. It's not that hard to do but the result looks awful, it doesn't support many features people expect in 2022, and the documentation for using tk in Python is poor. You probably need to refer to the tcl/tk documentation and translate it in your head to apply to Python. As much as people hate Electron, the rendering engine in a web br…

> trouble w/ Electron is that you have 30MB of runtime for any application JavaFX has the same problem? Or you rely on user's JREs already installed? I'd think 30MB really isn't much any more.

[deleted]

Re: Ask HN: How to make a native GUI with a modern language?

#20

Personally I like JavaFX. I made something pretty complicated with tkinter and Python. It's not that hard to do but the result looks awful, it doesn't support many features people expect in 2022, and the documentation for using tk in Python is poor. You probably need to refer to the tcl/tk documentation and translate it in your head to apply to Python. As much as people hate Electron, the rendering engine in a web br…

I haven't used it myself (yet), but https://tauri.app/ looks very promising as Electron alternative. It uses the OS's browser so it doesn't have the bundle size issue you describe.

Isn’t the downside to this then that although you’re using the native browser you’re losing the whole point of Electron which is to have a consistent environment regardless of where it’s run?
Post reply on HN