Python -- editor advice, tools, etc.

Status
Not open for further replies.

Sunner

Ars Praefectus
4,992
Subscriptor++
[url=http:/civis/viewtopic.php?p=25336863#p25336863:1bfbt9cf said:
fandingo[/url]":1bfbt9cf]
[url=http:/civis/viewtopic.php?p=25336831#p25336831:1bfbt9cf said:
Sunner[/url]":1bfbt9cf]While on the topic, since PyCharms seems to be all around adored I figured I'd give it a go, except all my work boxes are Linux. The problem is, to be blunt, performance is utter shit. I'm used to font rendering being wonky so that was easy enough to fix, but I haven't ran into a Java GUI app this slow since I ran SMC on some old SPARC box back in early 2000. I mucked about a bit with Xmm/Xms since my boxes have plenty of memory but to no avail.
I also tried some different JDK's, Oracle 1.7, OpenJDK 1.7 and 1.8, same deal either way.
There's nothing in particular that's slow by the way, the entire UI is just all around sluggish, menus, clicking boxes, even typing.

Anyone ran into and maybe even fixed this? My Google fu is weak and only brought me complaints about font rendering. This is both Fedora 19 and RHEL 6 by the way, 64-bit both. The boxes are Xeon/Corei7's or higher and plenty of RAM so no slouches, the weakest link by far being the graphics cards(the shitty nVidia Quadros, I don't recall the exact names but basically the ones that are glorified 2D cards, not that it should matter).

That's interesting.

I run Pycharm on Linux, specifically Fedora 19 with OpenJDK. I even edited out the stupid OpenJDK performance warning because I didn't have any problems.

Could you provide some additional information about your platform? Distro and version should be sufficient if it's popular. Graphics and CPU would be helpful, too.
I missed the last part of your post.

Run htop with Pycharm and see if there are CPU spikes. That's the only thing that it could be. I'm leaning towards graphics problems. Are you using the Nvidia driver or default Nouveau in Fedora?

lspci will tell you the GPU model.

I'm not on one of those boxes currently so no lspci, but it's basically the cheapest Quadro NVS cards of a few years ago, but I rather doubt they're the issue considering other things work fine including Java apps such as JEdit and Eclipse. I forgot to mention it but I've ran htop and it just spikes the CPU whenever I do things like move around the menus, and drops it immediately if I let Charms go.
nVidia drivers, 304 and 319 on different boxes.

I should perhaps mention that I'm no programmer to begin with, more of a sysadmin, so I'm fairly comfortable with my Linux-fu, not so much with my Java/PyCharms-fu. If it's an X/nVidia issue it's exclusive to pyCharms even among Java apps. Heck, even Minecraft works fine. :p
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
I've run IDEA in a lot of places over the last few years and have never had any problems on Fedora with it. Great perf all the way around, even on a ~20,000 class codebase. (Active refactoring was slow, but general operation, searching, etc. was fine.)

Minecraft isn't a Java GUI app; its frame is native and everything is rendered with native. If anything it's probably a Swing/X/nVidia problem; IDEA is Swing, but jEdit is AWT and Eclipse is SWT.

Try installing NetBeans. (Not using it, nobody should do that, but it's Swing so it may exhibit similar behaviors.)
 
[url=http:/civis/viewtopic.php?p=25337151#p25337151:2uo2uiv4 said:
Blacken00100[/url]":2uo2uiv4]I've run IDEA in a lot of places over the last few years and have never had any problems on Fedora with it. Great perf all the way around, even on a ~20,000 class codebase. (Active refactoring was slow, but general operation, searching, etc. was fine.)

Minecraft isn't a Java GUI app; its frame is native and everything is rendered with native. If anything it's probably a Swing/X/nVidia problem; IDEA is Swing, but jEdit is AWT and Eclipse is SWT.

Try installing NetBeans. (Not using it, nobody should do that, but it's Swing so it may exhibit similar behaviors.)

++
+= 1

I strongly believe that it is a graphics issue.
 

Sunner

Ars Praefectus
4,992
Subscriptor++
Good news all around, and relevant to the OP as well.
PyCharm 3.0 is available and it comes with an entirely free open source edition, it lacks some features but I'm guessing for most people who just want to muck about a bit it's more than sufficient. And for some reason it also seems to have solved my performance problem, I really have no idea why after looking at the what's new page, but hey, it works so I'm happy.
 
[url=http:/civis/viewtopic.php?p=25369889#p25369889:3k3rklvn said:
Sunner[/url]":3k3rklvn]Good news all around, and relevant to the OP as well.
PyCharm 3.0 is available and it comes with an entirely free open source edition, it lacks some features but I'm guessing for most people who just want to muck about a bit it's more than sufficient. And for some reason it also seems to have solved my performance problem, I really have no idea why after looking at the what's new page, but hey, it works so I'm happy.

Thanks for this note!

Wish I knew about IDEA before I put money on Sublime Text. Not that Sublime Text is bad, but my needs would have been better met with an IDE.
 

Ben_H

Ars Scholae Palatinae
1,059
[url=http:/civis/viewtopic.php?p=25373489#p25373489:3nrs42w8 said:
EmeraldArcana[/url]":3nrs42w8]
Wish I knew about IDEA before I put money on Sublime Text. Not that Sublime Text is bad, but my needs would have been better met with an IDE.
I was lucky enough to find it before paying for Sublime. I am doing tons of stuff with Java this year so I decided to explore my options before going all-in on Sublime. My initial plan was to use Sublime, but after using IDEA, it seems like IDEA is by far the superior solution for doing Java. There's just so many little things to remember and I found that was slowing me down a lot with Sublime. Not to mention all of the automated stuff you can get it to do for you (automated code creation stuff. The automatic Javadoc template setup as soon as you type "/**" is quite nice too. I was doing that all manually in Sublime).

I still will use Sublime for C/C++ and Python though. Being able to use makefiles and test my C and Python code via terminal from within the editor is quite nice. I much prefer it to using an IDE. We were supposed to use Eclipse with the C++ plugin for first term but I vetoed that in a hurry and switched to Vim before switching to Sublime with Vim hotkeys.

I've used the Pydev plugin for Eclipse for Python and a couple other things but I still prefer my plugin-crammed Sublime for doing my Python stuff.
 
I'm not sure what all you've got installed with Sublime, but if you've got IDEA, you have most of the tools that you love in Java available in Python, too. IME, a lot of Sublime plugins try to recreate things that come with IDEA by default, which means that you'd probably end up to pretty close the same place.

Not saying that you should use IDEA, just pointing out that it's probably an alternative option.
 

Ben_H

Ars Scholae Palatinae
1,059
[url=http:/civis/viewtopic.php?p=25381071#p25381071:3ehc0su7 said:
SituationSoap[/url]":3ehc0su7]I'm not sure what all you've got installed with Sublime, but if you've got IDEA, you have most of the tools that you love in Java available in Python, too. IME, a lot of Sublime plugins try to recreate things that come with Sublime by default, which means that you'd probably end up to pretty close the same place.

Not saying that you should use IDEA, just pointing out that it's probably an alternative option.
Huh, I didn't know that. I will definitely check that out. Thanks!
 
Trying to figure out IntelliJ's product line. Let's say I do development in Python, Ruby, Javascript. Do I need to purchase the separate products (PyCharms, RubyMine, WebStorm) individually? Or does "IntelliJ IDEA" do it all as well as the individually-sold products do?

Oh wait I found it:

As always, all the covered improvements will also be available in IntelliJ IDEA, PhpStorm, RubyMine, PyCharm and AppCode, either out of the box or as a plugin, with the upcoming releases.

So at an academic pricing of $99 IntelliJ seems like a no-brainer. And here I bought Sublime a few months ago precisely to edit code with...
 

drogin

Ars Tribunus Angusticlavius
8,283
Subscriptor++
I think it depends on your overall life.

For me, Sublime is the way to go because it doesn't just get used for hacking on Python code. I use it to author Markdown (and make use of the great Marked integration), I use it to take notes, etc.

It is super fast, I like the keyboard shortcuts, and I like that I can do things like "only enable vintage mode based on syntax" selection.

I like that if I want to, I can extend the editor with simple Python scripts.

I'm not saying IDEA can't do these things, but I've found Sublime so useful that I use it for my light AND heavy weight tasks.
 
Status
Not open for further replies.