TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

14 点作者 floodfx超过 1 年前
Hey HN. I wrote a LiveView implementation for the JVM called Undead. (The name Undead is a play on the &quot;Live&quot; part of LiveViews.)<p>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.<p>It&#x27;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&#x27;t too scared that is. ;)

2 条评论

exabrial超过 1 年前
First thing, this is wicked cool.<p>I&#x27;ve never heard of LiveViews before, but honestly this is what I think we&#x27;ve been looking for... treat the browser just as a rendering engine, keep your codebase on the server.<p>I&#x27;m curious if the protocol could be implemented on Quarkus, or preferably Tomcat or TomEE... one thing we&#x27;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 &#x27;EventScoped&#x27; bean and CDI Events would fit right into the whole concept.<p>Can you explain a little more about what&#x27;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&#x27;s happening on the server side? Somehow it arrives at a diff command for the client. Curious what&#x27;s happening to calculate the diff!
评论 #38199322 未加载
Tagbert超过 1 年前
Curious. What is &quot;LiveView&quot;? Web searches return likely unrelated terms.<p>What is the use case for this project:
评论 #38100965 未加载
评论 #38095957 未加载