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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Multiplayer NES Server in 77 Lines of Go

127 点作者 ola将近 10 年前

8 条评论

sschueller将近 10 年前
mmm, not sure if doing this counts as using 77 lines of code:<p><pre><code> import ( &quot;github.com&#x2F;gin-gonic&#x2F;gin&quot; &quot;github.com&#x2F;gorilla&#x2F;websocket&quot; &quot;github.com&#x2F;olahol&#x2F;melody&quot; &quot;net&#x2F;http&quot; &quot;sync&quot; ) </code></pre> But still impressive.
评论 #9609731 未加载
评论 #9610011 未加载
andrewliebchen将近 10 年前
It might be simple, but it&#x27;s certainly not simplistic :)
eynix_将近 10 年前
I don&#x27;t get the difference between github.com&#x2F;gorilla&#x2F;websocket &amp; github.com&#x2F;olahol&#x2F;melody. Does someone have a clue ?
评论 #9611288 未加载
tokenrove将近 10 年前
It would be nice to see state-synchronization using rewinding like GGPO, instead of just sending the inputs which introduces a lot of latency.
评论 #9611528 未加载
geff82将近 10 年前
So how many stories &quot;X in Go&quot; or &quot;Y in Rust&quot; a day will we have in future? Its a bit much currently...
SpaceManNabs将近 10 年前
Is there any documentation around? I have no idea how any of this code works, and it doesn&#x27;t seem to similar to the web apps that I have seen before. Haven&#x27;t worked with melody before either...
评论 #9609719 未加载
mappu将近 10 年前
What&#x27;s the best solution in Go to support graceful degradation for browsers without websockets &#x2F; networks that disallow it?
评论 #9609794 未加载
评论 #9610861 未加载
oknoorap将近 10 年前
well done, impressive.