Show HN: 300k lines of Java UI code running as JavaScript in browser
1–10 of 75 posts
Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#2Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#3Good riddance horrific ball of JS/HTML/CSS
Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#4Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#5Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#6Java and JavaScript are not that different. We used to have a security testing engine that was written in Java and transpiled into JavaScript with our own compiler. It works and it was OK in the days when static typing was one of those things that were missing from modern JavaScript. We do not do this any more. Everything is JavaScript these days.
Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#7Ah, the cycle is complete. Straight back to Java Applets now that we have 8000000 layers of abstraction in the middle. Good riddance horrific ball of JS/HTML/CSS
Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#8Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#9This is… actually not bad. :shocked:
I'm assuming I'm supposed to be seeing something else.
Edit: I tried "Run RMStudio Swing". That one actually loads eventually. I don't understand what kind of app it is, but it appears to leak DOM elements. I see 99 DOM elements when the editor first loads ("New"). Mousing back and forth over the menus for a few seconds makes the number of elements increase by hundreds, and it never goes back down.
Re: Show HN: 300k lines of Java UI code running as JavaScript in browser
#10Appears the tech behind this "cheerpj" a java transpiled to javascript[1] system that appears to contain all of openjdk including swing(!?!). That's kind of cool actually. But creating applications with such a system seems highly problematic. See for example GWT (google web toolkit)[2] which also transpiled java to javascript. I only see legacy GWT apps around nowadays, the world moved on. So I really don't see the a…