from Hacker News

Show HN: Undead – scary fast, bewitching web pages on the JVM with no JavaScript

by floodfx on 10/31/23, 5:16 PM with 6 comments

Hey HN. I wrote a LiveView implementation for the JVM called Undead. (The name Undead is a play on the "Live" part of LiveViews.)

I had been waiting for the new StringTemplates feature of Java 21 which made it scary-easy to get the right data structures to make things work.

It's been enchanting to write Java after about ten years in Javascript and Go lands. Would love folks to try it out and lmk what you think. If you aren't too scared that is. ;)

  • by exabrial on 11/8/23, 4:22 AM

    First thing, this is wicked cool.

    I've never heard of LiveViews before, but honestly this is what I think we've been looking for... treat the browser just as a rendering engine, keep your codebase on the server.

    I'm curious if the protocol could be implemented on Quarkus, or preferably Tomcat or TomEE... one thing we've come to love in recent years is CDI. It just make writing large applications very easy because they can all be broken down into simple parts and tested individually using Mockito. I could imagine all sorts of cool CDI extensions with this... an 'EventScoped' bean and CDI Events would fit right into the whole concept.

    Can you explain a little more about what's happening? Watching the network inspector, it looks like the browser is relaying events back to the server over a websocket (as you said). After that, what's happening on the server side? Somehow it arrives at a diff command for the client. Curious what's happening to calculate the diff!

  • by Tagbert on 11/1/23, 5:15 AM

    Curious. What is "LiveView"? Web searches return likely unrelated terms.

    What is the use case for this project: