News for hackers. Stuff that matters.
Re:PyCharm's Transition to Apple Silicon by raymondh on Friday January 29, 2021 @02:36PM (#25961368)
Wow, these are heroic efforts that show a tremendous dedication to achieving acceptable performance and rendering.
Re:PyCharm's Transition to Apple Silicon by ed25519FUUU on Friday January 29, 2021 @03:05PM (#25961701)
Which is a surprise to me because I don’t really consider the jetbrain products to be “performant”. They run fine, sure, but take a long time to start up or open a project, and can get sluggish if left open for awhile.
Re:PyCharm's Transition to Apple Silicon by judge2020 on Friday January 29, 2021 @03:09PM (#25961742)
It can take long on an old system, but that doesn't matter much [to me] when the IDE works fast throughout the day even when periodically opening and closing projects.
Re:PyCharm's Transition to Apple Silicon by bulenkov on Friday January 29, 2021 @03:36PM (#25962126)
IntelliJ start up time is much better now. Take a look on IntelliJ CE (ported to Apple Silicon) vs VS Code (under Rosetta 2) https://www.youtube.com/watch?v=Erg0Dz0MXww Of course this is unfair comparison, but you can see that the start up isn't slow.
Re:PyCharm's Transition to Apple Silicon by GrayShade on Saturday January 30, 2021 @08:29AM (#25968882)
That's indeed not a fair comparison. Mozilla reported up to 2x faster performance and 2.5x faster startup time on the M1 port.
Re:PyCharm's Transition to Apple Silicon by kaszanka on Friday January 29, 2021 @05:22PM (#25963508)
That copy of VS Code seems to be starting very slowly, even taking the emulation into account. Lots of extensions, maybe?

For reference, it starts in around 3 seconds on my 2013ish laptop. (actually, more like 2014 - Haswell i7)

Re:PyCharm's Transition to Apple Silicon by jki275 on Friday January 29, 2021 @03:46PM (#25962271)
JetBrains IDEs are quite heavy in my experience. I like their capabilities (pycharms at least), but they do come at a cost.
Re:PyCharm's Transition to Apple Silicon by oxfordmale on Friday January 29, 2021 @03:53PM (#25962392)
My MacBook Pro 2019 model is about to take off if I use both DataGrip and PyCharm at the same time.
Re:PyCharm's Transition to Apple Silicon by deergomoo on Friday January 29, 2021 @04:14PM (#25962629)
To be fair, a stern glance is usually enough to get a 2019 MacBook hot enough to cook your breakfast
Re:PyCharm's Transition to Apple Silicon by temp667 on Friday January 29, 2021 @04:04PM (#25962524)
Jetbrain stuff has always been slow - until I got an AMD 5600 (ram at 3200). For whatever reason, this combo of chip and updates to their software maybe (I turn off a lot of the add ins) - I've stopped being annoyed at the speed. It's "fast enough".
Re:PyCharm's Transition to Apple Silicon by mark_l_watson on Friday January 29, 2021 @07:03PM (#25964540)
I don’t disagree with you, their IDEs have been full featured but a little slow. Suggestion, if I may: remove all plugins unless you really need them.

That changes on Apple M1 Silicon. PyCharm and IntelliJ native are very fast, as is Apple’s XCode. Life is sweet.

Re:PyCharm's Transition to Apple Silicon by brundolf on Friday January 29, 2021 @05:38PM (#25963701)
> To this end, we began to investigate how we could handle this transition with grace. It soon turned out that we had to re-write a lot of the JIT system, a core component of the JVM itself, which was something we had little to no experience in.

Why couldn't they just merge the (presumable) upstream OpenJDK support into their fork?

Re:PyCharm's Transition to Apple Silicon by tcmb on Friday January 29, 2021 @03:06PM (#25961717)
You would think that Java is maybe not the right tool for the job, if you have to write your own Runtime first.
Re:PyCharm's Transition to Apple Silicon by daniel-thompson on Friday January 29, 2021 @03:28PM (#25962003)
They didn't write the runtime, they just modified a (relatively) small piece of it. From the article:

> JetBrains forked the OpenJDK project in order to facilitate better control over how the IDEs looked on Macs a well as other HiDPI screens; JetBrains Runtime was born and we bundled it with our IDEs from 2014.

> There are many facets of the runtime, and we do not know every little crevice of it, rather we focus on the part of the code that handles the rendering of UI on screens.

Re:PyCharm's Transition to Apple Silicon by aaomidi on Friday January 29, 2021 @04:53PM (#25963154)
This isn't it's own runtime. It's a modified JDK and when you're one of the largest pieces of GUI software in Java, you're obviously going to have things you want to change in it.

They've created a huge platform. They're going to have needs that aren't met in a pre-packaged thing.

VSCode avoided using any frontend frameworks, does that mean they made a wrong engineering choice?

Re:PyCharm's Transition to Apple Silicon by acdha on Friday January 29, 2021 @03:37PM (#25962128)
Here's the problem: they selected Java many, many years ago back when Apple shipped Java as part of Mac OS X. I believe they're based on IntelliJ and presumably have added a considerable amount of their own code over the last 20 years. They certainly didn't know that the Oracle acquisition would lead to Apple removing a not unpopular feature due to legal risks.

With a large cross-platform codebase like that, Java is an understandable choice and at any point the cost of switching would be greater than the cost of fixing the current issue.

Re:PyCharm's Transition to Apple Silicon by bassman9000 on Friday January 29, 2021 @09:58PM (#25965582)
Ah, yes. The classic let's rewrite everything from first principles instead of using a proven, state-of-the-art runtime for which we just to reimplement font rendering.
Re:PyCharm's Transition to Apple Silicon by criddell on Friday January 29, 2021 @04:56PM (#25963208)
Not necessarily. It could be that even though they have to rewrite some of the runtime it's still the right tool for the job.
Re:PyCharm's Transition to Apple Silicon by deaddodo on Friday January 29, 2021 @03:24PM (#25961947)
This was my main thought. Maybe all that effort expended on managing the runtime could be aggregated into a unified effort in a more cohesive (to your goals) language.
Re:PyCharm's Transition to Apple Silicon by diroussel on Friday January 29, 2021 @03:35PM (#25962115)
IntelliJ had been based on java for twenty years. It has worked well as a mainstream cross platform application that has been around before, and outlived, other approaches.

Moving to another language would surely be many more orders of magnitude than plugging in a new JIT?

Re:PyCharm's Transition to Apple Silicon by pjmlp on Friday January 29, 2021 @03:54PM (#25962403)
Lets see how far they actually manage to go with Kotlin/Native, they seem to be trying to make Kotlin the new Delphi.

I don't have any hopes for it besides Android, which is working thanks Google gatekeeping Java updates and pushing Kotlin instead.

Re:PyCharm's Transition to Apple Silicon by derivagral on Friday January 29, 2021 @02:28PM (#25961288)
> To hear the whole story, listen to the podcast

Is there a transcript somewhere?

Re:PyCharm's Transition to Apple Silicon by throwawaysea on Friday January 29, 2021 @02:55PM (#25961588)
So here's the same podcast on YouTube: https://youtu.be/OgzERBIemjw

If you're on a computer, click the three dots that are to the right of "Save" and then click "Open Transcript". These are auto-generated so the fidelity may not be there but it's one shortcut to reading the podcast.

Re:PyCharm's Transition to Apple Silicon by darkteflon on Saturday January 30, 2021 @12:43AM (#25966551)
So, uh, is there an M1 build available now? It’s not clear to me from this blog post or scanning the release notes for the past few releases. Last time I tried PyCharm, in November I believe, it wasn’t really useable through Rosetta so was waiting for the native JRE.
Re:PyCharm's Transition to Apple Silicon by miohtama on Friday January 29, 2021 @04:25PM (#25962771)
I did not know Jetbrains ships it own JVM. What engine they use?
Re:PyCharm's Transition to Apple Silicon by daniel-thompson on Friday January 29, 2021 @04:33PM (#25962899)
Re:PyCharm's Transition to Apple Silicon by snicker7 on Friday January 29, 2021 @04:36PM (#25962945)
tl;dr: Article has little substance and instead points reader to a podcast.

Ugh.