Live data from Hacker News

IntelliJ IDEA 2021.1

blog.jetbrains.com

51–60 of 77 posts

Re: IntelliJ IDEA 2021.1

#51
post #5

Started off as very slow on a not-terribly large project > cache cleanup > does not even start without trashing the .idea folder anymore > still slooow. Command + space takes forever (=seconds) to show the context menu. IntelliJ feels like a proper IDE now :).

Wait for it to finish indexing, try to remove unnecessary folders from the indexes.

Re: IntelliJ IDEA 2021.1

#53
post #46
post #44

Earlier quoted context omitted.

How? Are you using custom JDK with Wayland?

Not an expert on the subject, but AFAIK Jetbrains runs their own Java VM by default. To run intellij on Wayland you do need _JAVA_AWT_WM_NONREPARENTING=1 in your env. It works, but has some quirks as I wrote above.

Sorry, that's not true. This just makes it "work", but it's still being rendered in Xwayland.

Here's how you can test:

Run intellij; `pkill Xwayland`

or, try running intellij on a machine which does not have xwayland installed at all.

The thing is: wayland does _not_ have scaling issues, those are inherently X11 problems.

The issue which is tracking this: https://youtrack.jetbrains.com/issue/JBR-3206

I also just ran this and watched for Xwayland to spawn, killed Xwayland and it died.

Re: IntelliJ IDEA 2021.1

#54
post #21

Earlier quoted context omitted.

Does Doom Emacs provide the same functionality as IntelliJ IDEA?

Some additional anecdata: on my maxed out 16” (admittedly Intel) Mac, IntelliJ/PyCharm/Goland/Webstorm are all quicker to start than Spacemacs. I haven’t tried Doom Emacs but don’t get the impression it would be much quicker.

I'll have started Doom, opened a project, found my file, edited, saved and closed, while IntelliJ's indexing bar is still at 10%.

Re: IntelliJ IDEA 2021.1

#55
post #21

Earlier quoted context omitted.

Does Doom Emacs provide the same functionality as IntelliJ IDEA?

Some additional anecdata: on my maxed out 16” (admittedly Intel) Mac, IntelliJ/PyCharm/Goland/Webstorm are all quicker to start than Spacemacs. I haven’t tried Doom Emacs but don’t get the impression it would be much quicker.

[deleted]

Re: IntelliJ IDEA 2021.1

#56
post #9

Earlier quoted context omitted.

Has always been fast for me and Idea has been the best java IDE around. What specs do you run and how large is your project?

As someone who switches between doom emacs and intellij: If you have to ask questions like, "What specs do you run and how large is your project?" it is slow.

On the other hand, I've found Emacs to be slower than Idea, with frequent "synchronous waiting on ui thread" style slowdowns for many different actions...

Re: IntelliJ IDEA 2021.1

#57
post #21

Earlier quoted context omitted.

Some additional anecdata: on my maxed out 16” (admittedly Intel) Mac, IntelliJ/PyCharm/Goland/Webstorm are all quicker to start than Spacemacs. I haven’t tried Doom Emacs but don’t get the impression it would be much quicker.

I'll have started Doom, opened a project, found my file, edited, saved and closed, while IntelliJ's indexing bar is still at 10%.

What does this indexing buy you time wise later?

And what about starting it with an already indexed project?

Re: IntelliJ IDEA 2021.1

#58
post #26

Earlier quoted context omitted.

The problem is that Intellij is written in Java, using the hotspot JVM, which is JIT compiled. But IDEs, especially fully featured IDEs, are a terrible type of workload for JIT compilation. They're full of branches, which can easily cause recompilations, and the breadth of features mean that there is never really a spot hot enough to stay compiled outside of the editor itself. I really wish AOT compilation was taken…

AOT can't take into consideration runtime, which might result in less efficient code compilation vs JIT. So it is apples vs oranges. One is faster here the other there. GC might be an issue, but for me IDEA feels fast and the added benefit of code navigation vs e.g. vim is worth it.

>AOT can't take into consideration runtime, which might result in less efficient code compilation vs JIT.

That has for decades been a "in the future we'll have flying-cars" style promise for 99% of workloads...

Sure, JIT can theoritically optimize based on runtime hints. But most of the time, for any practical use, it's slower than AOT.

Re: IntelliJ IDEA 2021.1

#59
post #22

Earlier quoted context omitted.

The problem is that Intellij is written in Java, using the hotspot JVM, which is JIT compiled. But IDEs, especially fully featured IDEs, are a terrible type of workload for JIT compilation. They're full of branches, which can easily cause recompilations, and the breadth of features mean that there is never really a spot hot enough to stay compiled outside of the editor itself. I really wish AOT compilation was taken…

Hotspot can cache generated binary code across runs since Java 11, but people keep using Java 8....

IntelliJ comes (optionally, but by default) with it's own packaged JRE/JDK/Java version iirc, so that wouldn't be an issue...

Re: IntelliJ IDEA 2021.1

#60
post #31

Earlier quoted context omitted.

One of the main selling points of doom emacs is that it starts up more quickly than spacemacs.

It starts quickly because everything is lazy loaded, if you open project it will start language server, start indexing etc, It's definitely not much faster than IntelliJ, but functionality is still behind.

It does depend a bit on the language server. There are a few language servers that are nicer than the equivalent IntelliJ plugins, though that is generally not even remotely the case for JVM languages that aren't Clojure. AFAICT, the state of the union for Java is that it's not habitable without an IDE, and the only habitable IDE is IntelliJ.
Post reply on HN