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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A simple Minecraft written in Rust

169 点作者 gnocchi超过 10 年前

13 条评论

kibwen超过 10 年前
Last I heard, Hematite was more of a Rust-based renderer of Minecraft worlds than an actual game. For example, I don&#x27;t think it currently supports construction or destruction of blocks.<p>Piston, the project that&#x27;s backing Hematite, is very interesting in that it&#x27;s an attempt to explore idiomatic approaches to game engine design in Rust. I&#x27;m not sure how many game developers will value Rust&#x27;s memory safety over C++&#x27;s sheer flexibility and mature tooling, but I commend the Piston developers for taking a chance on a new and unproven language!<p>EDIT: If you&#x27;d like to take a closer look at game development in Rust, be aware that there exist dedicated communities for this on reddit ( <a href="http://www.reddit.com/r/rust_gamedev" rel="nofollow">http:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;rust_gamedev</a> ) and IRC ( <a href="http://client01.chat.mibbit.com/?server=irc.mozilla.org&amp;channel=%23rust-gamedev" rel="nofollow">http:&#x2F;&#x2F;client01.chat.mibbit.com&#x2F;?server=irc.mozilla.org&amp;chan...</a> , a.k.a. #rust-gamdev on irc.mozilla.org).
评论 #9023788 未加载
评论 #9026291 未加载
ConfuciusSay超过 10 年前
Nice job, now if you can make a simple Rust in Minecraft I&#x27;ll be even more impressed!
评论 #9024256 未加载
harry8超过 10 年前
I have a question for people who&#x27;ve advanced ahead of me into rust.<p>With the C and the kind of C++ I write I have some kind of idea what the assembly language that will be generated by the code I&#x27;m writing looks like. I have some idea how the data is going to be laid out in memory. You can think of C and good C++ code as a more convenient way of writing the machine instructions that will execute on your cpu, well at least kinda. But you really can&#x27;t do this with say, haskell or clojure (he said aware he knows little about the former and even less about the latter).<p>How is rust? Can you write some rust code knowing this datastructure will be laid out like so, knowing this function will likely not thrash cache too badly and so on? Inline asm? If you had the crazy idea of writing the &quot;platinum&quot; linker in rust in an attempt to outperform the (written in c++) gold linker is that doomed before you start. Nothing to choose for efficiency between these languages?<p>Oh and how&#x27;s the debugger? Same as gdb on c++?
评论 #9028542 未加载
gnocchi超过 10 年前
Lots of other examples here too <a href="https://github.com/PistonDevelopers" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PistonDevelopers</a> and website available here <a href="http://www.piston.rs/" rel="nofollow">http:&#x2F;&#x2F;www.piston.rs&#x2F;</a> for those who want to get started with piston
kvark超过 10 年前
Note that Hematite uses gfx-rs for rendering, it was mentioned on HN earlier:<p><a href="https://news.ycombinator.com/item?id=8610459" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8610459</a>
toqueteos超过 10 年前
Build appears as broken but it should be working, Travis is doing its thing. EDIT: Green Travis again :)
评论 #9023515 未加载
mjfl超过 10 年前
Something I always wonder for games not made with C++: how is the performance?
评论 #9024101 未加载
评论 #9024008 未加载
donpdonp超过 10 年前
If you&#x27;re looking to play a open source minecraft-like game, without worrying about microsoft copyrights on world files, <a href="http://minetest.net/" rel="nofollow">http:&#x2F;&#x2F;minetest.net&#x2F;</a> is a lot of fun.
评论 #9024281 未加载
GoofballJones超过 10 年前
Now write the game &quot;Rust&quot; in Minecraft.
anonbanker超过 10 年前
I hope Microsoft plays nice with these clones in the future. Especially when they use official assets.
idunning超过 10 年前
How is that dependency graph plotted in the README?
评论 #9023717 未加载
评论 #9023722 未加载
Navarr超过 10 年前
Next up: A simple Rust written in Rust.
评论 #9024917 未加载
abtinf超过 10 年前
First person to say something like &quot;This isn&#x27;t minecraft, minecraft is way more than just placing blocks!&quot; loses.