TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Java in the Browser

102 pointsby krisgenreover 2 years ago

27 comments

StevePerkinsover 2 years ago
I don&#x27;t know if the performance is terrible in general, or if the demo site is getting crushed by HN traffic at the moment.<p>If it&#x27;s the former, then this is completely useless. If the latter, then I suppose it COULD have some use cases for internal tools and dashboards, in small to mid line-of-business shops that don&#x27;t have many front-end developers on staff (i.e. basically a competitor to .NET&#x27;s Blazor).<p>The REALLY interesting thing here is that this product isn&#x27;t licensed per-server, or per-CPU, but rather &quot;per 8GB block of RAM&quot;! Look, I love Java. It&#x27;s helped me build a great career, build a future for my family, and I really do believe that it&#x27;s the best developer experience out there for the server-side. However, the idea of licensing a Java-based product by its memory usage makes me laugh out loud.
评论 #32566165 未加载
评论 #32567552 未加载
评论 #32565953 未加载
TeaVMFanover 2 years ago
Actual Java in the browser (working, fast, passes Lighthouse) with TeaVM:<p><a href="https:&#x2F;&#x2F;blogs.oracle.com&#x2F;javamagazine&#x2F;post&#x2F;java-in-the-browser-with-teavm" rel="nofollow">https:&#x2F;&#x2F;blogs.oracle.com&#x2F;javamagazine&#x2F;post&#x2F;java-in-the-brows...</a><p>For example, try this 5-letter word game:<p><a href="https:&#x2F;&#x2F;frequal.com&#x2F;wordii&#x2F;" rel="nofollow">https:&#x2F;&#x2F;frequal.com&#x2F;wordii&#x2F;</a>
评论 #32566208 未加载
评论 #32565121 未加载
TacticalCoderover 2 years ago
Anyone remember that Java applet in the nineties where there was some 2D wireframe &quot;animal&quot; moving in a rectangle and there was, IIRC, a tiny circle at each joint and you grab it and move it and it&#x27;d move the thing around &#x2F; distort it. It was the first &quot;serious&quot; <i>Java in the Browser</i> I remember. It was all black &amp; white. Maybe some HNer (not an HNer back then obviously) wrote it back in the days?
评论 #32564607 未加载
评论 #32564768 未加载
评论 #32564587 未加载
评论 #32564742 未加载
评论 #32568266 未加载
评论 #32564594 未加载
评论 #32578656 未加载
jeffreportmill1over 2 years ago
Well this isn&#x27;t helpful for those of us that care about Java in the browser. In any case, JPro is really more &quot;Java projected in the browser&quot; (or like twitch&#x2F;remote-desktop). It&#x27;s a shortcut with significant drawbacks. I&#x27;m more a fan of TeaVM, CheerpJ, J2CL and JSweet.<p><a href="https:&#x2F;&#x2F;reportmill.com&#x2F;snaptea&#x2F;" rel="nofollow">https:&#x2F;&#x2F;reportmill.com&#x2F;snaptea&#x2F;</a>
评论 #32583417 未加载
adrianmsmithover 2 years ago
I have looked around the website and I really have no idea what this is. I feel their marketing and doc could do with a bit more explanation if it&#x27;s intended for devs. Is it like applets in that there is a runtime in the browser? Or more like GWT which compiles Java to Javascript?<p>Also, the website which is apparently created with the technology, is incredibly slow, at least for me.<p>And the website doesn&#x27;t give useful loading indicators, e.g. click a link, nothing happens, or go to the doc section and navigate and lots of empty screens (presumably while the content is loading). No browser loading indicator, nor spinner in the content.
评论 #32564976 未加载
评论 #32563793 未加载
评论 #32563863 未加载
pavlovover 2 years ago
Java in the Browser, February 1996 edition:<p><a href="http:&#x2F;&#x2F;www.antipope.org&#x2F;charlie&#x2F;old&#x2F;journo&#x2F;netscape.html" rel="nofollow">http:&#x2F;&#x2F;www.antipope.org&#x2F;charlie&#x2F;old&#x2F;journo&#x2F;netscape.html</a>
评论 #32564755 未加载
评论 #32563919 未加载
ksherlockover 2 years ago
There was also Browser in the Java - HotJava, Sun&#x27;s circa 1996 web browser written in Java.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;HotJava" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;HotJava</a>
specialistover 2 years ago
Interesting. Runs app on the server, does final rendering of the UI&#x27;s scene graph on the client (within the browser).<p>It&#x27;s not clear from skim reading if the client side rendering is implemented with the DOM or a canvas element.<p>I&#x27;ve always thought it&#x27;d be hysterical to use canvas. The whole browser just to hoist a client side frame buffer. X-Windows reinvented.<p>FWIW, JavaFX is <i>so close</i> to The Correct Answer™. Definitely the best effort thus far. (I haven&#x27;t used SwiftUI yet.)
评论 #32565636 未加载
opvasgerover 2 years ago
it&#x27;s sort of funny - I expect Java in the browser not to work well (as it didn&#x27;t, historically)... And sure enough - the site returns a 502 error :P
评论 #32564248 未加载
floriankirmaierover 2 years ago
Some notes from the developing company:<p>First of all, sorry for the bad performance in the first hours after this post. The server isn&#x27;t setup up for a big traffic peak. It was way higher than we are used to. To improve the performance, we increased the memory.<p>Many of our demos represent heavy business applications. Especially the &quot;FlexGanttFX Demo&quot; is a good example.<p>With JPro the Application itself runs &quot;logically&quot; in the server, and the rendering happens with javascript in the client.<p>Usually, the performance is very fast - and the architecture is not noticed by the user.<p>Feel free to ask any further questions.
评论 #32570683 未加载
samwillisover 2 years ago
Site appears to be down, there is an archive here from June 2020:<p><a href="https:&#x2F;&#x2F;archive.ph&#x2F;mJDAT" rel="nofollow">https:&#x2F;&#x2F;archive.ph&#x2F;mJDAT</a><p>Newer archive on IA from March this year doesn&#x27;t load anything:<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20220316200857&#x2F;https:&#x2F;&#x2F;jpro.one&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20220316200857&#x2F;https:&#x2F;&#x2F;jpro.one&#x2F;</a><p>However has source code including:<p><pre><code> &lt;jpro-app loader=&quot;none&quot; href=&quot;&#x2F;app&#x2F;default&quot; fxcontextmenu=&quot;false&quot; fullscreen=&quot;true&quot; nativescrolling=&quot;true&quot; fxheight=&quot;true&quot; snapshot=&quot;auto&quot; userselect=&quot;true&quot;&gt;&lt;&#x2F;jpro-app&gt; </code></pre> So assuming there was a newer site that had some sort of embedded Java thing...<p>By the sounds of it, it was a demo where the website ran as java on the server, rendering and pushing to the browser in real time? Guessing it couldn&#x27;t handle HN traffic...
评论 #32564223 未加载
评论 #32564023 未加载
gabereiserover 2 years ago
So I guess we’ve come full circle now? Java was the first to run in the browser (via applets).
oaieyover 2 years ago
I do not know. .NET created with Blazor a modern Applet tech stack based on WebAssembly and HTML.<p>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?
评论 #32564418 未加载
manholioover 2 years ago
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.<p>Example: <a href="https:&#x2F;&#x2F;www.grc.nasa.gov&#x2F;www&#x2F;k-12&#x2F;rocket&#x2F;ienzl.html" rel="nofollow">https:&#x2F;&#x2F;www.grc.nasa.gov&#x2F;www&#x2F;k-12&#x2F;rocket&#x2F;ienzl.html</a>
评论 #32564694 未加载
评论 #32566013 未加载
bschwindHNover 2 years ago
This is very advanced satire.
评论 #32565436 未加载
invalidnameover 2 years ago
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.<p>Transpiles Java threads into async&#x2F;await calls. Pretty cool stuff.
评论 #32564673 未加载
评论 #32564408 未加载
mondainxover 2 years ago
WASM really is the way to go for this kind of thing IMHO; I love me some Java and have for decades, but Applets were painful, especially when hooking in native code. HN seems to have killed the demo, I&#x27;ll have to remember to come back later when the hoopla dies down.
cryptonectorover 2 years ago
Java in the browser used to be called applets, no? Anyways, it failed, thought that probably had a lot to do with: JavaScript being more accessible (still is) and the security model for applets (JAAS) being rather lame (it was, and still is, and it continues to exist in spite of applets being gone because JAAS metastasized).
评论 #32583501 未加载
nice_byteover 2 years ago
I tried the demo website - it takes seconds to respond to clicks, even on an M1 mac. I&#x27;d rather set myself on fire than use software built using this technology.
elwellover 2 years ago
&quot;Your scientists were so preoccupied with whether or not they could, they didn&#x27;t stop to think if they should.&quot; - Dr. Ian Malcolm
butzover 2 years ago
Time to update &quot;3 Billion Devices Run Java&quot; message.
robertwt7over 2 years ago
there&#x27;s a price for this??<p>I&#x27;m not sure what this is by looking at their homepage, is this similar to WASM?<p>also who would pay to develop something for the web anymore?
评论 #32564449 未加载
paultopiaover 2 years ago
Proposed subtitle: &quot;the original sin&quot;
Joyfieldover 2 years ago
Gb != GB.
stall84over 2 years ago
wait a minute .. LOL!!!
peterkellyover 2 years ago
I thought we tried this already...
评论 #32565155 未加载
评论 #32568632 未加载
Koshkinover 2 years ago
Looks like it’s a custom webserver.