Live data from Hacker News

Java in the Browser

jpro.one

21–30 of 113 posts

Re: Java in the Browser

#21

Site is down but it seems like server side rendering which is pretty terrible. There are better solutions for Java developers such as teavm one which Codename One built the web UI support. It supports both web assembly and plain JS. The latter has the advantage of smaller size. Transpiles Java threads into async/await calls. Pretty cool stuff.

JPro can also target WebAssembly.

Re: Java in the Browser

#22
post #18

I do not know. .NET created with Blazor a modern Applet tech stack based on WebAssembly and HTML. Would not Java be able to do the same and just port the applet API onto a Canvas? Would not that reactivate a whole existing ecosystem?

Java solutions for JS and WebAssembly as targets are older than Blazor actually, see TeaVM and CheerpJ, and then there was GWT alongside Vaadin.

Re: Java in the Browser

#24

there's a price for this?? I'm not sure what this is by looking at their homepage, is this similar to WASM? also who would pay to develop something for the web anymore?

Enterprises that aren't going to rewrite from scratch and rather look forward to solutions to keep existing code running.

The same reason IBM and Unisys keep their mainframes and microcomputers running with updated hardware.

Re: Java in the Browser

#25

Anyone remember that Java applet in the nineties where there was some 2D wireframe "animal" moving in a rectangle and there was, IIRC, a tiny circle at each joint and you grab it and move it and it'd move the thing around / distort it. It was the first "serious" Java in the Browser I remember. It was all black & white. Maybe some HNer (not an HNer back then obviously) wrote it back in the days?

I remember! Perhaps that is Soda Constructor:

https://en.wikipedia.org/wiki/Soda_Constructor http://maciejmatyka.blogspot.com/2018/02/soda-constructor-re...

Re: Java in the Browser

#26

Anyone remember that Java applet in the nineties where there was some 2D wireframe "animal" moving in a rectangle and there was, IIRC, a tiny circle at each joint and you grab it and move it and it'd move the thing around / distort it. It was the first "serious" Java in the Browser I remember. It was all black & white. Maybe some HNer (not an HNer back then obviously) wrote it back in the days?

[deleted]

Re: Java in the Browser

#27

Anyone remember that Java applet in the nineties where there was some 2D wireframe "animal" moving in a rectangle and there was, IIRC, a tiny circle at each joint and you grab it and move it and it'd move the thing around / distort it. It was the first "serious" Java in the Browser I remember. It was all black & white. Maybe some HNer (not an HNer back then obviously) wrote it back in the days?

Soda Constructor? Yeah, that was a fun one.

Here's a decent JS clone for some nostalgia: http://panoramx.ift.uni.wroc.pl/~maq/lovesoda/0.36beta.html

Re: Java in the Browser

#28

Site is down but it seems like server side rendering which is pretty terrible. There are better solutions for Java developers such as teavm one which Codename One built the web UI support. It supports both web assembly and plain JS. The latter has the advantage of smaller size. Transpiles Java threads into async/await calls. Pretty cool stuff.

What's so bad about server rendering

Re: Java in the Browser

#29

Now someone please compile a real JRE into WASM and do it right, so I can revive applets with a simple embed. There are loads of old applets that have huge historic and technical value which are becoming harder and harder to use. Example: https://www.grc.nasa.gov/www/k-12/rocket/ienzl.html

Here you go: https://chrome.google.com/webstore/detail/cheerpj-applet-run...

CheerpJ does exactly that: it ships a full JVM implementation (including Swing/AWT, Threads, ...) that runs in JS/Wasm inside your browser. The Applet Runner extension detects applets in the page and runs them through CheerpJ.

The example that you list seems to work.

Re: Java in the Browser

#30

Anyone remember that Java applet in the nineties where there was some 2D wireframe "animal" moving in a rectangle and there was, IIRC, a tiny circle at each joint and you grab it and move it and it'd move the thing around / distort it. It was the first "serious" Java in the Browser I remember. It was all black & white. Maybe some HNer (not an HNer back then obviously) wrote it back in the days?

The first Java applets that stood out for me were Anfy Team’s. My images looked supercool with a rippling reflection underneath them!
Post reply on HN