9 ms·
IntelliJ IDEA and the whole IntelliJ platform migrates to Java 8
- thejosh 11y agoI really like the IntelliJ products (especially PHPStorm with the Symfony2 plugins, PyCharm, etc) but you really need a 'beefy' computer to run it properly. SSDs are a must.
- ggreer 11y agoMaybe your performance issues are caused by plugins? I have no problems using IntelliJ on a base model 12" MacBook (1.1GHz Core M, 8GB RAM, 256GB PCIe SSD). I don't use Symfony2, though. Side note: I am of the opinion that no matter you're doing, SSDs are a must. If you don't already use one as your primary drive, please upgrade. Once you go SSD, any machine with platters will feel broken. This goes double for laptops, which often contain slower 7200RPM and 5400RPM drives.
- turaw 11y agoI'm on a ~5 year old Thinkpad (w/ an i5-520m; apparently it benches to roughly the same as the M-5Y31 that's probably in your macbook), but IDEA pins a couple cores on my processor to 100% for half a minute whenever it opens a project and incurs a noticeable delay when tabbing to and from its window. Compared to my work machine, IntelliJ truly crawls. I suppose I'm asking, have you had _any_ responsiveness problems? Or does it work flawlessly?
- kris-s 11y agoIs it a big project? In PyCharm at least, the indexing is pretty slow even on my beefier machines. Once that's done it's smooth.
- eventualhorizon 11y agoHow much heap are you allocating? I was seeing unusually poor performance while working with a large project until I bumped the heap up to 4-6g. It still takes a minute when I open the project but is pretty performant otherwise. Also, I've had to invalidate the cache a couple of times when idea was behaving strangely (over a 5 yr or so period)
- turaw 11y agoGood suggestion; I've cranked it up to 5 GB from the default (0.75, iirc) in case the problems were stemming from the garbage collector spinning. Haven't tried it out yet, but thanks :)
- snuxoll 11y ago5GB could potentially have a detrimental impact as well, instead of there not being enough memory and causing the GC to have to run aggressively you may simply be causing the GC to pause longer when it runs due to a larger heap of dead objects (the default GC is really bad here, G1 is a lot better). Try starting with 1-2GB, increase past if really necessary (it's been more than enough for me, personally).
- turaw 11y agoIn practice it seems to be hovering at around 1-2 anyways. On a side note, I really hate that the JVM requires users to be aware of its heap tuning parameters :/
- snuxoll 11y agoOne of the reasons why Java is largely relegated as a server-side language, I feel. I write WPF apps on .Net and I never have to worry about what I need to set for my heap size because the frameworks garbage collector just works as I'd expect it to - do the same thing with JavaFX and I feel like tearing my hair out.
- ggreer 11y agoI just timed it, and IntelliJ 15.0.2 took 27 seconds to start up, load a project[1], and finish indexing it. The UI was visible after 17 seconds. As soon as they appeared, UI elements worked fine. I notice no delay or lag when ⌘ + tabbing to IntelliJ. I'd like it if IntelliJ was faster, but I don't have many qualms with the current level of performance. 1. This project: https://github.com/Floobits/floobits-intellij https://github.com/Floobits/floobits-intellij
- turaw 11y agoWell, startup time aside, it seems like increasing the memory has done the trick? Or it may have all been some subjective nonsense to begin with. In any case, it is at least practice at being patient :)
- devsquid 11y agoruns flawlessly for me on my 8~ yr old device (some AMD quad core thing). Boot ups are always a bit of a crunch, but afterwards its one of the best performing IDEs I've ever used.
- bdcravens 11y agoI'm running WebStorm on the same machine, and haven't noticed it being too slow.
- userbinator 11y agoThat's not unusual for any app based on the JVM.
- bitmapbrother 11y agoReminds me of the time I installed Visual Studio 2015. That pig sprayed over 30 GB of files onto my HDD and still needed 3rd party plugins to be on the same level as IntelliJ.
- alkonaut 11y agoThat's a bit excessive, did you install all of the vs stuff (all languages & tools including c++, office dev tools, silverlight, light switch etc)? If you just choose C# it's a bit better (though still big). And yes you still need Resharper, ironically made by JetBrains, for it to be on the level of IntelliJ.
- userbinator 11y agoVS2015's installer is notoriously uncustomisable - it installs a bunch of useless stuff without letting you choose. https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/2207833-make-the-visual-studio-installer-more-customizable https://visualstudio.uservoice.com/forums/121579-visual-stud...
- gelasio 11y agoIt's amazing how one man's "pig" can be a ton of other people's "best IDE that there is". At least in the case of Visual Studio...I don't hear quite as many people naming IntelliJ as "the best". Not even close.
- bitmapbrother 11y agoThe only people I hear calling Visual Studio "the best" are usually .NET developers. Considering their lack of choices I'm not surprised.
- frik 11y agoTo speed up IntelliJ products, immediately open Settings -> Directories and exclude all unnecessary folders. Otherwise a crawler background process will indexes every file, and it consumes a lot of CPU and IO resources.
- reitzensteinm 11y agoIn one extreme example, my project was a scraper that scraped in 80k images or so, and IntelliJ was essentially unusable until I did this (16 gig of ram, SSD, i7 quad core etc), and completely fine afterwards. So if anyone is having performance problems, please do check this out.
- rugdobe 11y agowhat kind of scraping project was it?
- reitzensteinm 11y agoSteam sales - I posted it here a while back. Clojure + Reagent site - http://www.hydralist.com http://www.hydralist.com
- djhworld 11y agoGot any more detailed instructions for this? I'm running the OSX version of IntelliJ, I can't see this option anywhere
- frik 11y agoFile -> Settings -> search for "direct" Depending on the product version the settings dialog is a bit different: https://www.google.com/#q=intellij+exclude+folders https://www.google.com/#q=intellij+exclude+folders
- spdionis 11y agoRight click the directory -> mark directory as -> excluded.
- spdionis 11y agoIf the project is not enormous a simple hard disk is ok. A lot of RAM is much more important than SSD. Sure indexing the first time takes enough time for you to go grab a coffee but otherwise it runs pretty fast.
- StevePerkins 11y agoYour issues are related to the number of plugins being loaded. I primarily write Java in my professional life, using IntelliJ Ultimate Edition. I have to do so on a MacBook Pro with SSD to be productive. Lately I primarily write Go in my personal life. I use the free IntelliJ Community Edition (with Go plugin only) on all my devices. On a CHROMEBOOK with 2 GB of RAM running Crouton, my experience with Community Edition is almost as snappy as my 16 GB MacBook experience with Ultimate Edition. You can radically speed up your IntelliJ environment by being more judicious in which plugins you enable. Quite honestly, lately I've wondered why I bother with Ultimate Edition at all... since the only non-free plugins I really use are for HTML and JavaScript support (and even those only rarely). If my company wants to pay for an Ultimate license and a MacBook on which to run it, then I'll gladly use them... but if it were my money I'd probably just stick to Community Edition for my needs.
- ckarthik17 11y agoSimilar experience. I usually use IntelliJ in my Macbook. But when I had to code on an enterprise laptop with 4 GB RAM (with many enterprise bloatware), I was surprised IntelliJ performed so well. That too, I was working on 10 modules.
- mark_l_watson 11y agoGreat advice. I have the "everything" JetBrains license but I still keep an up to date community edition IntelliJ installed with no plugins but Clojure - definitely plugins that are not used should not be installed.
- spiralganglion 11y agoAs someone who is about to heavily start using the Cursive IDE (built on top of IntelliJ IDEA), this is wonderful news. Coming from a frontend web dev background, Java 6 has been a layer of slime at the bottom of the barrel of sweet wine that is Clojure. Now, as soon as Minecraft gets off Java 6, I can rid my system of that infernal scourge. https://cursive-ide.com https://cursive-ide.com
- fierycatnet 11y agoCursive is great, glad to see it mentioned. JetBrains are doing good for themselves, I hope their Kotlin language will gain some traction eventually too. Cursive is amazing because it's built on top of open source IDEA but I'd like to see Kotlin take off as well. Overall I think JetBrains are doing great.
- russjr08 11y agoHave you upgraded to the new Minecraft launcher? It bundles its own JRE, and I'm pretty sure it's Java 7.
- SquareWheel 11y agoCurrent bundled Java version is 1.8.0_25.
- SquareWheel 11y ago>Now, as soon as Minecraft gets off Java 6, I can rid my system of that infernal scourge. Minecraft's Windows launcher has actually included Java 8[1] for some time. Even if using your own install though, it should work just fine (or even better). [1] https://twitter.com/MojangSupport/status/562199004516466689 https://twitter.com/MojangSupport/status/562199004516466689
- rms_returns 11y agoCall me old, but I still use eclipse even for android programming (using the ADT plugin). Every IDE has pros/cons, and both eclipse and intellij have their shares, but if you consider the big picture, they mostly even out. In fact, I would rather argue that the features on which intellij rules are of superficial nature and have more to do with a "nice feel" (such as more friendly code-completion or better looking graphics/colors). But features that eclipse rules are more substantial (like performance, ability to work on wide range of projects). The only reason that intellij appears to have more fanboys is that it doesn't come free. And its human nature that if you spend bucks on something, the free alternative will obviously look inferior to you!
- n0us 11y agoIronically enough I finally caved and bought a sublime text license a few months ago but since then I've learned vim and mostly use that now.
- lorenzhs 11y agoSame for me, used it without a license for several years and then two months after I finally bought one, I switched to Emacs. It also seems like development of ST3 has once again ground to a halt, no new beta releases since July.
- vvanders 11y agoEclipse is not what I would call the paramount of performance.
- melted 11y agoEclipse has gotten quite a bit better over the past couple of years. If you haven't tried it in a while, try again.
- rms_returns 11y agoSecond that. I had a few issues with trying out mars, but I use kepler daily and it simply rocks on Ubuntu 14.04!
- markbao 11y agoExplain like I'm five: Does this mean that IntelliJ IDEA will get faster?
- landr0id 11y agoI can't comment on performance but it definitely allows for easier plugin development. Another thing I think this affects is some things like font rendering (e.g. you can now use ligatures if your font supports them) since they use their own custom JDK.
- jonathonf 11y agoHN != Reddit.
- asp_hornet 11y agoyou're right. on reddit they would have answered his question instead of giving a snarky response like yours.
- jonathonf 11y agoHN readers are not five years old; increasingly reductive questions don't help anyone.
- jonathonf 11y agoDownvoted again; try looking at it this way. Does the question need to be answered in such a way to be understandable by a five year-old? Does the question actually need to be prefixed in such a way? No, and no? Then let's not get drawn in to making people think for themselves less and expect a little more of them instead - this is how learning and real growth works.
- dominotw 11y agonow just embed neovim and make it awesome.
- cmsimike 11y agoIdeaVim [0], a free plugin, is the best vim emulator I've ever used. [0] https://github.com/JetBrains/ideavim https://github.com/JetBrains/ideavim
- echelon 11y agoSeconded. IdeaVim is incredible. It's been close to 1:1 parity with the vim features I need.
- therein 11y agoIt just ruins Command+C and Command+V for me. Yes, I understand I can go into visual mode and use 'y' and 'p' but what if I want to paste from the system clipboard rather than the IdeaVim clipboard? Command+V simply just doesn't work and 'p' obviously contains the IdeaVim clipboard buffer.
- jen20 11y ago$ cat ~/.ideavimrc set clipboard+=unnamed That sets IdeaVim to use the system clipboard by default. However, this has the same effects as making vim use the system clipboard by default: for example, executing ci" will pull the text between the quotes onto the system clipboard, overwriting whatever is there. Personally I prefer this behaviour in vim, emacs (with Evil, obviously), and IdeaVim though. YMMV, but it is possible!
- dustinleblanc 11y agoSuper helpful! Thanks for the tip
- innocentoldguy 11y ago
- spdustin 11y agoI still can't seem to figure out: can IDEA + plugins = PyCharm & RubyMine & PHPStorm & WebStorm?
- mbell 11y agoKind of. The core functionality is the same but the plugins generally lag behind the functionality of the focused IDEs by around one major release. Additionally there are some general tweaks to the UI such that the overall experience is more streamlined with the focused IDEs.
- 2muchcoffeeman 11y agoYeah, if you have the ultimate edition, you can get plugins to do pretty much what all their other products do. Except for maybe AppCode.
- Igglyboo 11y agoIt comes about 95% of the way. The plugins usually lag slightly behind the individual IDEs and their are some minor UI tweaks.
- hhariri 11y agoThey usually do not lag behind. They are made available as plugins the same day that the IDE is released.
- VeilEm 11y agoNo, they can't. The special versions of their editors do things that are not possible in a plugin because of how much the UI changes the editor. The good news is that you can now get a license for all of the intellij based IDEs. It's not cheap, but worth it.
- hhariri 11y agoThat's actually not correct. The functionality of all IDE's we have (with exception of AppCode and CLion) can be obtained via plugins on IntelliJ IDEA. The smaller IDE's are focused around the specific platform / functionality.
- codecamper 11y agoDoes anyone know if there was some relationship between Jetbrains & Netbeans? Netbeans started as Xelfi in Prague mid 90s. Jetbrains is also based in Prague. A friend of mine started Xelfi -- I'm trying to figure out how awesome my friend is.
- semtele 11y agoThere was no relation between them. Java was hot back at the time, many companies jumped in.
- currywurst 11y agoNetbeans is actually a great IDE, and no doubt has come a long way. It works well "out of the box" compared to Eclipse, and feels lighter than IntelliJ but still comes with tons of project templates that actually work well without further customization.
- codecamper 11y agoMy friend is pretty awesome -- both as a coder & a great all around guy. Very fortunate to have met him & it made living in Prague much more interesting & fun for a nerd like me back in those days. I could never get my head around Netbeans, and I never really gave it another chance. Downloaded IntelliJ after it came up in an interview & was hooked ever since then. Happy for Appcode as well.
- numan1617 11y agoThis is awesome news. Hopefully this means I won't have to edit my Info.plist file with every update now.
- nowprovision 11y agoIntelliJ reminds me of ramp up prior to Firefox 3.5, forever announcing performance increases which never seem tangible. However we're at Firefox 43 now and it seems to have delivered on the 3.5 promises, I still hold out hold for IntelliJ perhaps nearer v20. Damn shame atm though as Cursive Clojure looks awesome.
- oblio 11y agoThe Firefox performance increases were (are?) tangible. I don't really remember which version first delivered them, but a long time ago I used Opera (9?) because it was much faster when opening a lot of tabs. Then Firefox became a lot more responsive.
- mschuster91 11y agoJava as base platform? Shit, didn't know that, and it totally explains the slowness on anything <8GB and spinning rust instead of a HDD. Can anyone please tell me a reasonably complex GUI program in Java that is actually fast and resource-efficient? Counter-examples include IDEA, Lotus Notes, JDownloader, SAP... I believe that while Java may be a nice programming language, you import slowness and resource starving of your system by using it.
- V-2 11y agoHm, I write Java for a living (Android) and Java being a nice language would be one of the last things about it to come to my mind...
- campers 11y agoHave you looked at using Kotlin instead?
- V-2 11y agoYes! Much of an improvement, definitely. Especially since it approaches maturity now. It's going to take a while until it gains wider acceptance as a production language in commercial projects though.
- mobiuscog 11y agoAndroid is mostly the Android APIs and 'way of doing things' though. It certainly isn't the same as desktop or Enterprise Java. I've been writing Java for over 15 years and still don't want to write Android apps in any capacity. It certainly has quirks and issues (as all languages do) but I'd say it'a as 'nice' (if not more so) as most popular languages.
- V-2 11y agoWell, maybe, but that's because the most popular languages happen not to overlap with particularly nice ones ;) Java certainly feels dated (I know it's trying to catch up).
- StevePerkins 11y agoInteresting that all of the discussion is rambling about IntelliJ in general (e.g. Is it slow? Is it better than this other IDE? Ermagherd, Java sucks! Etc). Nothing about the actual specific topic, which is that one of the most prominent development tools in the Java ecosystem now expects the current Java version to be installed. Expecting the current version might sound mundane to a Rubyist or Node person (and it might sound like a pipe dream to a wistful Pythonist!). However, it's a pretty big change in the Java world. Backwards compatibility is highly prized...and tool or library authors have always been reluctant to use current language features, for fear of excluding users stuck on old versions. Back when I was working in "the enterprise world", it wasn't unheard to see shops still stuck on 1.4 long after Java 7 had been released. Up until a few years ago, it was sometimes still a big deal for libraries to start incorporating generics (introduced with Java 5 in 2004). Java 8 was SUPPOSED to an even bigger shift than Java 5, with an even slower adoption rate. However, for some reason it feels like the opposite is proving true. I'm seeing tools and libraries move to Java 8 shockingly soon compared to past experience. I wonder why this is. Perhaps after the rocky Java 5 migration, large companies embraced the practice of updating their deployed versions more frequently? Maybe it's Oracle releasing new Java versions every two years now, and being more aggressive about end-of-life'ing the prior versions? Or perhaps it's just that I've been out of the enterprise environment and working for startups instead these past several years, and the situation in large companies is still as conservative and outdated as ever?
- vbezhenar 11y agoYou can use latest Idea to write code on Java 1.4, I guess. The topic is about JRE used to launch Idea itself. You can use any JRE to launch your projects from Idea.
- StevePerkins 11y agoSure, but developers in the corporate enterprise world often don't have control over the software installed on their workstations. I realize that Hacker News skews toward a different industry segment, and it's hard for people outside of the enterprise to fully grasp its horrors. But believe it or not, expecting the current version of Java to be installed on a Java developer's machine is actually a pretty big shift!
- Too 11y agoAs an end user of IDEA, not writing any plugins and already got java 8 installed, will i notice anything by this?
- Randgalt 11y agoCue the Java haters in 3, 2, 1
- mc_hammer 11y agopl0x (plz) bring the clion features (refactor and more) to the go ide/plugin that thing is sweet
- s_kilk 11y agoI've given it a whirl, but it looks like their handling of non-English/Qwerty keyboard layouts is as broken as ever: https://youtrack.jetbrains.com/issue/IDEA-63779 https://youtrack.jetbrains.com/issue/IDEA-63779 It's disappointing, as I like the tool and would like to adopt it for every-day development.