News for hackers. Stuff that matters.
Re:Electron 9.0 by Avi-D-coder on Monday May 18, 2020 @10:02PM (#23230595)
How is Swing closer to native than DOM?
Re:Electron 9.0 by rubber_duck on Tuesday May 19, 2020 @01:21AM (#23231496)
You aren't sandboxed - you can reach out to native API/code if you hit some limits, you have threads, etc.
Re:Electron 9.0 by tomc1985 on Monday May 18, 2020 @10:04PM (#23230611)
For one, Swing isn't build on top of technologies that specialize in displaying interactive documents
Re:Electron 9.0 by Avi-D-coder on Tuesday May 19, 2020 @12:08AM (#23231190)
Intuitively it it feels like that should make swing faster, but experientially swing feels heavy and slow.

Is swing poorly optimized, is it due to being in Java?

I'm not a UI dev and have not thought about it much.

Re:Electron 9.0 by tomc1985 on Tuesday May 19, 2020 @01:15AM (#23231462)
I'd agree that Swing feels heavy... but Electron feels an order of magnitude heavier.

Though, when done right, it feels fairly close to native. I earn my pay working with IDEA and if you turn off the plugins you don't need its actually quite snappy where you would reasonably expect it to be. I would bet it takes far less optimization to get there than an equivalent Electron application