News for hackers. Stuff that matters.
Re:Say no to Electron: use JavaFX to write a fast, responsiv... by smaddox on Tuesday October 03, 2017 @11:33AM (#15393074)
As much as I dislike the inherent complexity of Electron, VSCode and Discord are existence proofs that it can be used effectively.

VSCode is far faster than any other IDE I've used, and even beats VIM in terminal in terms of responsiveness (altough I suspect this is not VIM's fault).

Discord is overall a great application, and quite responsive.

Both are slightly bloated in terms of memory, from what I supect they could be. But not nearly as bloated as many of the competing Java and C++ applications.

Re:Say no to Electron: use JavaFX to write a fast, responsiv... by ch4s3 on Tuesday October 03, 2017 @11:43AM (#15393173)
>But not nearly as bloated as many of the competing Java and C++ applications.

I too like discord and VSCode, but VSCode uses far more resources than sublime, with the tradeoff being that it's more easily extensible and has a faster release cycle(which may or may not be related to team size). VIM locally is obviously also going to be much faster and capable of opening far larger files than VSCode.

Re:Say no to Electron: use JavaFX to write a fast, responsiv... by smaddox on Tuesday October 03, 2017 @03:15PM (#15395191)
I haven't tried using sublime as a full IDE, so I'm not comparing against sublime.
Re:Say no to Electron: use JavaFX to write a fast, responsiv... by ch4s3 on Tuesday October 03, 2017 @05:21PM (#15396317)
Ahh, that's fair. If you're looking for something quick, and don't need the bleeding edge stuff like the language server, then sublime is very nice.
Re:Say no to Electron: use JavaFX to write a fast, responsiv... by mike_hearn on Tuesday October 03, 2017 @12:13PM (#15393482)
If an Electron app is beating vim in responsiveness on your machine, I suspect there's something wrong with your machine. Vim should react instantly in every case. I have yet to see that from any Electron app I use.
Re:Say no to Electron: use JavaFX to write a fast, responsiv... by smaddox on Tuesday October 03, 2017 @03:17PM (#15395203)
I suspect it would be more responsive using Macvim/Gvim. I suspect the terminal emulator adds some keypress latency.
Re:Say no to Electron: use JavaFX to write a fast, responsiv... by yorwba on Tuesday October 03, 2017 @12:01PM (#15393353)
One thing that can make vim in a terminal feel slow is related to the escape character doing double duty to signal extra information to terminal applications (e.g. arrow keys or window size) on the same channel as regular input.

To catch a single press of the escape key, vim needs to wait a little bit to make sure it's not the start of an escape sequence. Sometimes that delay is configured too generous and becomes noticeable, especially when chaining applications (like running vim in tmux).

Re:Say no to Electron: use JavaFX to write a fast, responsiv... by smaddox on Tuesday October 03, 2017 @03:18PM (#15395218)
Hmm. I'll have to look at this closer. If it's adjustable, that might greatly improve the responsiveness.
Re:Say no to Electron: use JavaFX to write a fast, responsiv... by talles on Tuesday October 03, 2017 @12:04PM (#15393375)
> even beats VIM in terminal in terms of responsiveness

For real?