Live data from Hacker News

Say no to Electron: use JavaFX to write a fast, responsive desktop app

sites.google.com

71–80 of 143 posts

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#71

Earlier quoted context omitted.

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

This is surprising, I've never seen anyone say that IDEA is faster than VSC. In my experience it's _vastly_ slower.

I work with a project that contains tens of thousands of classes that span about 3m lines of code. Jump to any symbol responds to a fuzzy search in about one second. Jump to class autocompletes instantly as I type, and a rename takes a few seconds to update all classes in the project, including references from xml files and comments.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#72

Don't say no to Electron just yet. And if you do, jesus, there's better alternatives than JavaFX (use Qt). You know what Electron has brought us? It's brought the Linux desktop reliable feature parity with other platforms. Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. Discord, another fantastic Electron app, is functionally iden…

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

I mean, Java applications work ludicrously well. They're not slow, and they really do run on anything. I'm straight up double-clicking .jar files on Mac and Windows without any problems (on linux double click is kinda a myth so I just "java -jar" it). There are good Look&Feel jars for swing. I just wish Swing itself didn't feel like enterprise programming. Java requires me to be so verbose it feels like I'm doing WebDev again.

I'm convinced all of the mud slung on Java is due to enterprise programs and other software not motivated by quality (more of a "you have no choice but to use this to interact with our hardware/service and we CBA to make multi platform so you're stuck with our lazy java. Oh, and we come from the school of abstracting things to hell because creating more red tape impresses upper management.")

IntelliJ is I think the first application that showed me that Java is Good, Actually™ by delivering on those mythical promises of compatibility and speed.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#73
post #40

Earlier quoted context omitted.

Once the runtime is bundled in, what does the size of the standalone application come in at? Curious if it is close that of a bare Electron app (around 50-90 MB, depending on the platform).

For Java 8 it is about 200mb. Java 9 should be smaller because it should only bundle the parts the app actually used.

Isn’t that the JDK, the jre is smaller from what I remember.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#74

Don't say no to Electron just yet. And if you do, jesus, there's better alternatives than JavaFX (use Qt). You know what Electron has brought us? It's brought the Linux desktop reliable feature parity with other platforms. Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. Discord, another fantastic Electron app, is functionally iden…

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

IntelliJ faster than VS Code? I don’t think anyone who’s used both products could make such a claim with a straight face.

I joke with my coworkers that I know they’ve fired up IDEA because I can hear it. Whenever it’s on, their fans are dialed up to full blast.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#76

Don't say no to Electron just yet. And if you do, jesus, there's better alternatives than JavaFX (use Qt). You know what Electron has brought us? It's brought the Linux desktop reliable feature parity with other platforms. Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. Discord, another fantastic Electron app, is functionally iden…

>> Visual Studio Code (often hailed as "one of the best-optimized electron apps")

Is this some kind of joke? VS Code is a glorified text editor that ate your CPU trying to blink the cursor: https://github.com/Microsoft/vscode/issues/22900

Microsoft has a real IDE, and it ain't written in JS.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#77

Earlier quoted context omitted.

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

As someone who spends all day in IntelliJ there's no way it's 10x as fast, hell for me it's flipped the other direction. VSCode is easily 10x faster than IntelliJ. If I'm writing Java I'll happily use IntelliJ but anything else it's VSCode or vim.

Sure vim beats out both of them but I'm constantly having to wait for VSCode to catch up with me or my cursor will start inserting characters at the wrong spot. IntelliJ works as fast as I can think (minus the boot up time).

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#78
post #74

Earlier quoted context omitted.

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

IntelliJ faster than VS Code? I don’t think anyone who’s used both products could make such a claim with a straight face. I joke with my coworkers that I know they’ve fired up IDEA because I can hear it. Whenever it’s on, their fans are dialed up to full blast.

I'm curious how large the project is and whether it's the same project on both editors.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#79

Earlier quoted context omitted.

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

I mean, Java applications work ludicrously well. They're not slow, and they really do run on anything. I'm straight up double-clicking .jar files on Mac and Windows without any problems (on linux double click is kinda a myth so I just "java -jar" it). There are good Look&Feel jars for swing. I just wish Swing itself didn't feel like enterprise programming. Java requires me to be so verbose it feels like I'm doing Web…

They don't seem to like double-click on the Linux Desktop. AppImage? Yeah, just go to the console, make it executable, then run it from there.
Post reply on HN