【Hacker News搬运】《我的世界》中的“坏苹果”
-
Title: "Bad Apple" in Minecraft
《我的世界》中的“坏苹果”
Text:
Url: https://purplesyringa.moe/blog/we-built-the-best-bad-apple-in-minecraft/
由于我是一个文本和代码处理的人工智能,我无法直接访问或分析网页内容。不过,我可以提供一个使用 JinaReader 来抓取和分析网页内容的示例代码。如果你想要自己处理这个链接的内容,你可以按照以下步骤操作: 1. 首先,你需要安装 JinaReader。由于我不能使用pip来安装包,这里假设JinaReader已经安装在你的环境中。 2. 使用以下Python代码来抓取网页内容,并使用一个简单的文本摘要方法来总结内容。这里使用的是一个非常基础的摘要方法,实际应用中可能需要更复杂的NLP技术。 ```python from jina import Document from jina.executors.text import TextSummarizer # 创建一个Jina client client = Document(client_type='indexer', hosts='localhost:5001') # 模拟从网页获取的内容 url = "https://purplesyringa.moe/blog/we-built-the-best-bad-apple-in-minecraft/" content = client.get(url) # 添加一个执行器来摘要文本 summarizer = TextSummarizer() client.add(summarizer) # 执行摘要任务 summary = client.process(content) # 打印摘要结果 print(summary)
请注意,上述代码只是一个示例,实际使用中可能需要处理诸如网络请求、错误处理、内容解析等多个方面。
至于翻译非中文内容,你可以使用Jina中的翻译执行器或者集成一个外部翻译API。以下是一个使用假设的翻译执行器的示例:
from jina.executors.text import TextTranslator # 创建一个翻译执行器 translator = TextTranslator() # 在Jina client中添加翻译执行器 client.add(translator) # 翻译内容 translated_content = client.process(content) # 打印翻译后的内容 print(translated_content)
由于我无法直接访问外部链接,因此无法为你提供实际的抓取和翻译结果。如果你需要将非中文内容翻译成中文并总结,你需要运行上述代码,并且确保你的环境中已经正确安装了JinaReader和相关依赖。
## Post by: purplesyringa ### Comments: **pzmarzly**: I learned way more about computer graphics here than I expected. Kudos to the author.<p>One nit: the picture that the author called "The sun" is actually Eirin [0] looking at the moon. In that scene [1] she's reaching for the moon, where she was exiled from, only to hesitate and retract the hand. In the next scene, Kaguya [2] also reaches for the moon, but does not hesitate. I'm not sure what the symbolism here was supposed to mean, as according to Touhou wiki it was Eirin's plan to steal the moon.<p>[0] <a href="https://en.touhouwiki.net/wiki/Eirin_Yagokoro" rel="nofollow">https://en.touhouwiki.net/wiki/Eirin_Yagokoro</a><p>[1] <a href="https://youtu.be/FtutLA63Cp8?t=99" rel="nofollow">https://youtu.be/FtutLA63Cp8?t=99</a><p>[2] <a href="https://en.touhouwiki.net/wiki/Kaguya_Houraisan" rel="nofollow">https://en.touhouwiki.net/wiki/Kaguya_Houraisan</a> > **pzmarzly**: 我在这里学到的计算机图形学比我想象的要多得多。向作者致敬<p> 一个小问题:作者称之为";太阳";实际上是艾琳在看月亮。在那个场景[1]中,她;她伸手去月球,却犹豫了一下,缩回了手。在下一个场景中,Kaguya[2]也伸手去拿月亮,但毫不犹豫。我;我不确定这里的象征意义是什么,因为根据Touhou wiki,它是Eirin;我们计划偷月亮<p> [0]<a href=“https:/;en.touhouwiki.netM;wikiO;Eirin_Yagokoro”rel=“nofollow”>https:/;en.touhouwiki.net;维基;Eirin_Yagokoro</a><p>[1]<a href=“https:”youtu.be“FtutLA63Cp8?t=99”rel=“nofollow”>https:”/;youtu.be;FtutLA63Cp8?t=99</a><p>[2]<a href=“https:”en.touhouwiki.net“wiki:”Kaguya_Houraisan“rel=”nofollow“>https:”/;en.touhouwiki.net;维基;Kaguya_Houraisan</a> **SCUSKU**: I don't really understand how or why Bad Apple is becoming the de-facto graphics rendering "hello world" but it's fun to see in real time. I came across this demo which uses Bad Apple for demonstrating high FPS hypermedia:<p><a href="https://data-star.dev/examples/bad_apple" rel="nofollow">https://data-star.dev/examples/bad_apple</a> > **SCUSKU**: 我不知道;我真的不明白Bad Apple是如何或为什么成为事实上的图形渲染“;你好,世界”;但它;实时观看很有趣。我偶然发现了这个演示,它使用Bad Apple来演示高FPS超媒体:<p><a href=“https:#x2F;#x2F data star.dev#x2F examples#x2F Bad_Apple”rel=“nofollow”>https:/;data star.dev™;示例;bad_apple</a> **tombert**: "Bad Apple on all the things!" is one of my favorite geek trends. I remember the first time I saw it on the Genesis/Mega Drive I was astounded that such a thing was possible on such weak hardware.<p>I love seeing the new ports that people make for underpowered stuff. I'm afraid that I'm not smart enough with low-level programming to ever do one myself, but I have a lot of respect for people that can. > **tombert**: &“;糟糕的苹果在所有的事情&“;是我最喜欢的极客趋势之一。我记得我第一次在Genesis上看到它;Mega Drive让我感到震惊的是,在如此薄弱的硬件上,这样的事情是可能的<p> 我喜欢看到人们为动力不足的东西建造的新港口。我;恐怕我;我对低级编程不够聪明,我自己也不会做,但我非常尊重那些能做的人。 **63**: > it’s even worse: redstone dust is, like, the only component that doesn’t introduce tick delays, but it’s very laggy, because no one at Mojang seems to know graph algorithms.<p>It's gotten much less laggy since the post OP linked to for info was posted, with many improvements in the last 3 years including one very recently. Mojang gets <i>a lot</i> of hate from every direction. It took them so long to make Redstone less laggy because every time they touch Redstone in any way, the community screams at them and any time they do anything other than introduce brand new features the community screams at them so it just wasn't worth it. Getting mad on the Internet and saying they don't know graph algorithms isn't helpful. Mojang has <i>repeatedly</i> hired some of the best and brightest minds in the Minecraft community to work for them (e.g. Panda4994, Kingbdogz, Gnembon) so they do have the technical expertise to do anything they want. What they don't have is infinite time/budget and it turns out that working on a 15 year old Java codebase and a massive multiplatform C++ app at the same time and trying to keep them in sync is really damn hard so can we please give them grace? I'm just tired of so much hate from every direction every second of the day. Can we please just say that Minecraft is awesome? Thanks > **63**: >;更糟糕的是:红石粉尘是唯一不会引入滴答延迟的组件,但它非常落后,因为Mojang似乎没有人知道图形算法<p> 它;自从发布了与for info相关的post OP以来,它的滞后程度大大降低了,在过去的3年里有了许多改进,包括最近的一次改进。Mojang从各个方向都得到了很多仇恨。他们花了很长时间才让Redstone不再那么落后,因为每次他们以任何方式接触Redstone,社区都会对他们大喊大叫,任何时候他们除了引入全新功能外,还会对他们大喊大叫;不值得。在网上疯了,说他们不值得;不知道图算法是;没有帮助。Mojang一再聘请Minecraft社区中一些最优秀、最聪明的人为他们工作(例如Panda4994、Kingbdogz、Gnembon),所以他们确实有技术专长可以做任何他们想做的事情。他们不做什么;t有无限的时间;预算,事实证明,同时开发一个有15年历史的Java代码库和一个大型的多平台C++应用程序并试图保持它们的同步真的很难,所以我们能给他们宽限期吗?我;我只是厌倦了每天每时每刻都有来自四面八方的仇恨。我们能不能说《我的世界》太棒了?谢谢 **vessenes**: > And… that’s it? Looking back, the result looks almost trivial to achieve, which raises the question of why no one has done it before.<p>Umm, wow. I do not share that reaction to the work. This is an awesome dev log and closet lesson in splitting up what seems like an insurmountable task into nearly-impossible-but-doable chunks. Love it.<p>For reference, this renders Bad Apple at 20fps in vanilla minecraft, with only a custom texture and some custom object definitions changed to allow more textures. The rest is (very exotic) vanilla. > **vessenes**: >;然后…就这样?回想起来,结果看起来几乎微不足道,这就提出了为什么以前没有人这样做的问题<p> 嗯,哇。我不同意对这项工作的反应。这是一个很棒的开发日志和壁橱课程,将看似无法克服的任务分解为几乎不可能但可行的块。喜欢它。<p>作为参考,这在香草minecraft中以20fps的速度渲染Bad Apple,只有一个自定义纹理和一些自定义对象定义被更改以允许更多纹理。其余的是(非常奇特的)香草。